21 #ifndef AVCODEC_QSV_INTERNAL_H 22 #define AVCODEC_QSV_INTERNAL_H 24 #include <mfx/mfxvideo.h> 30 #define QSV_VERSION_MAJOR 1 31 #define QSV_VERSION_MINOR 1 33 #define ASYNC_DEPTH_DEFAULT 4 // internal parallelism 35 #define QSV_MAX_ENC_PAYLOAD 2 // # of mfxEncodeCtrl payloads supported 37 #define QSV_VERSION_ATLEAST(MAJOR, MINOR) \ 38 (MFX_VERSION_MAJOR > (MAJOR) || \ 39 MFX_VERSION_MAJOR == (MAJOR) && MFX_VERSION_MINOR >= (MINOR)) 41 #define QSV_RUNTIME_VERSION_ATLEAST(MFX_VERSION, MAJOR, MINOR) \ 42 (MFX_VERSION.Major > (MAJOR)) || \ 43 (MFX_VERSION.Major == (MAJOR) && MFX_VERSION.Minor >= (MINOR)) 51 mfxFrameSurface1 surf;
56 mfxFrameSurface1 surface;
57 mfxEncodeCtrl enc_ctrl;
58 mfxExtDecodedFrameInfo dec_info;
59 mfxExtBuffer *ext_param;
83 int ff_qsv_map_error(mfxStatus mfx_err,
const char **desc);
85 int ff_qsv_print_error(
void *log_ctx, mfxStatus err,
86 const char *error_string);
88 int ff_qsv_print_warning(
void *log_ctx, mfxStatus err,
89 const char *warning_string);
91 int ff_qsv_codec_id_to_mfx(
enum AVCodecID codec_id);
92 int ff_qsv_profile_to_mfx(
enum AVCodecID codec_id,
int profile);
94 int ff_qsv_map_pixfmt(
enum AVPixelFormat format, uint32_t *fourcc);
97 int ff_qsv_init_internal_session(
AVCodecContext *avctx, mfxSession *session,
98 const char *load_plugins);
100 int ff_qsv_init_session_device(
AVCodecContext *avctx, mfxSession *psession,
101 AVBufferRef *device_ref,
const char *load_plugins);
103 int ff_qsv_init_session_frames(
AVCodecContext *avctx, mfxSession *session,
105 const char *load_plugins,
int opaque);
This structure describes decoded (raw) audio or video data.
Definition: frame.h:218
Definition: qsv_internal.h:45
Definition: qsv_internal.h:54
AVCodecID
Identify the syntax and semantics of the bitstream.
Definition: avcodec.h:215
reference-counted frame API
Libavcodec external API header.
main external API structure.
Definition: avcodec.h:1518
AVPictureType
Definition: avutil.h:272
A reference to a data buffer.
Definition: buffer.h:81
Definition: qsv_internal.h:67
AVPixelFormat
Pixel format.
Definition: pixfmt.h:60