19 #ifndef AVCODEC_VAAPI_DECODE_H 20 #define AVCODEC_VAAPI_DECODE_H 25 #include "libavutil/hwcontext.h" 31 #if FF_API_STRUCT_VAAPI_CONTEXT 35 static inline VASurfaceID ff_vaapi_get_surface_id(
AVFrame *pic)
37 return (uintptr_t)pic->
data[3];
41 MAX_PARAM_BUFFERS = 16,
45 VASurfaceID output_surface;
48 VABufferID param_buffers[MAX_PARAM_BUFFERS];
51 VABufferID *slice_buffers;
57 VAContextID va_context;
59 #if FF_API_STRUCT_VAAPI_CONTEXT 60 FF_DISABLE_DEPRECATION_WARNINGS
64 FF_ENABLE_DEPRECATION_WARNINGS
76 VASurfaceAttrib pixel_format_attribute;
88 const void *params_data,
90 const void *slice_data,
This struct aggregates all the (hardware/vendor-specific) "high-level" state, i.e.
Definition: hwcontext.h:60
VAAPI-specific data associated with a frame pool.
Definition: hwcontext_vaapi.h:88
This structure describes decoded (raw) audio or video data.
Definition: frame.h:218
This structure is used to share data between the FFmpeg library and the client video application...
Definition: vaapi.h:56
API-specific header for AV_HWDEVICE_TYPE_VAAPI.
Libavcodec version macros.
Definition: vaapi_decode.h:55
reference-counted frame API
Libavcodec external API header.
main external API structure.
Definition: avcodec.h:1518
Public libavcodec VA API header.
This struct describes a set or pool of "hardware" frames (i.e.
Definition: hwcontext.h:123
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
Definition: frame.h:232
A reference to a data buffer.
Definition: buffer.h:81
VAAPI connection details.
Definition: hwcontext_vaapi.h:68
AVPixelFormat
Pixel format.
Definition: pixfmt.h:60
Definition: vaapi_decode.h:44