![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
This file contains functions related to hw acceleration. More...
#include "debug.h"#include "hwaccel_libav_common.h"#include "libavcodec/lavc_common.h"#include "types.h"#include "utils/color_out.h"#include "utils/macros.h"
Go to the source code of this file.
Functions | |
| enum hw_accel_type | hw_accel_from_pixfmt (enum AVPixelFormat pixfmt) |
| 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. | |
Variables | ||
| struct { | ||
| enum AVPixelFormat av_pixfmt | ||
| const char * name | ||
| enum hw_accel_type type | ||
| codec_t ug_pixfmt | ||
| } | accel_str_map [] | |
This file contains functions related to hw acceleration.
Definition in file hwaccel_libav_common.c.
| enum hw_accel_type hw_accel_from_pixfmt | ( | enum AVPixelFormat | pixfmt | ) |
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().

| const struct { ... } accel_str_map[] |
Referenced by hw_accel_from_pixfmt(), hw_accel_from_str(), hw_accel_to_str(), and hw_accel_to_ug_pixfmt().
| enum AVPixelFormat av_pixfmt |
Definition at line 60 of file hwaccel_libav_common.c.
Referenced by filter(), get_av_to_ug_pixfmt(), and hw_accel_from_pixfmt().
| const char* name |
Definition at line 58 of file hwaccel_libav_common.c.
Referenced by hw_accel_from_str().
| enum hw_accel_type type |
Definition at line 59 of file hwaccel_libav_common.c.
Referenced by hw_accel_to_str(), and hw_accel_to_ug_pixfmt().
| codec_t ug_pixfmt |
Definition at line 61 of file hwaccel_libav_common.c.