![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
This file contains functions related to hw acceleration. More...


Go to the source code of this file.
Classes | |
| struct | hw_accel_state |
Functions | |
| enum hw_accel_type | hw_accel_from_pixfmt (enum AVPixelFormat) |
| enum hw_accel_type | hw_accel_from_str (const char *str) |
| const char * | hw_accel_to_str (enum hw_accel_type type) |
| codec_t | hw_accel_to_ug_pixfmt (enum hw_accel_type type) |
| void | hwaccel_state_init (struct hw_accel_state *hwaccel) |
| Initializes hw_accel_state structure. | |
| void | hwaccel_state_reset (struct hw_accel_state *hwaccel) |
| Uninitializes existing acceleration and resets hw_accel_state to initial state. | |
This file contains functions related to hw acceleration.
Definition in file hwaccel_libav_common.h.
| enum hw_accel_type hw_accel_from_pixfmt | ( | enum | AVPixelFormat | ) |
Definition at line 98 of file hwaccel_libav_common.c.
References accel_str_map, av_pixfmt, and HWACCEL_NONE.
Referenced by get_format_callback(), and libavcodec_decompress().
| enum hw_accel_type hw_accel_from_str | ( | const char * | str | ) |
Definition at line 76 of file hwaccel_libav_common.c.
References accel_str_map, color_printf(), HWACCEL_NONE, name, STR_LEN, and TBOLD.
Referenced by get_format_callback(), and validate_hwacc_param().

| const char * hw_accel_to_str | ( | enum hw_accel_type | type | ) |
Definition at line 110 of file hwaccel_libav_common.c.
References accel_str_map, and type.
| codec_t hw_accel_to_ug_pixfmt | ( | enum hw_accel_type | type | ) |
Definition at line 121 of file hwaccel_libav_common.c.
References accel_str_map, type, and VIDEO_CODEC_NONE.
Referenced by libavcodec_decompress_get_priority().
| void hwaccel_state_init | ( | struct hw_accel_state * | hwaccel | ) |
Initializes hw_accel_state structure.
Definition at line 132 of file hwaccel_libav_common.c.
References hw_accel_state::copy, hw_accel_state::ctx, HWACCEL_NONE, hw_accel_state::tmp_frame, hw_accel_state::type, and hw_accel_state::uninit.
Referenced by hwaccel_state_reset(), and libavcodec_decompress_init().
| void hwaccel_state_reset | ( | struct hw_accel_state * | hwaccel | ) |
Uninitializes existing acceleration and resets hw_accel_state to initial state.
Definition at line 141 of file hwaccel_libav_common.c.
References hw_accel_state::ctx, hwaccel_state_init(), hw_accel_state::tmp_frame, and hw_accel_state::uninit.
Referenced by deconfigure(), and get_format_callback().
