2 * This file is part of FFmpeg.
4 * FFmpeg is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * FFmpeg is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with FFmpeg; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19#ifndef AVCODEC_VAAPI_DECODE_H
20#define AVCODEC_VAAPI_DECODE_H
32 return (uintptr_t)pic->
data[3];
72 const void *params_data,
75 const void *slice_data,
89#endif /* AVCODEC_VAAPI_DECODE_H */
Libavcodec external API header.
reference-counted frame API
API-specific header for AV_HWDEVICE_TYPE_VAAPI.
AVPixelFormat
Pixel format.
A reference to a data buffer.
main external API structure.
This structure describes decoded (raw) audio or video data.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
This struct aggregates all the (hardware/vendor-specific) "high-level" state, i.e.
This struct describes a set or pool of "hardware" frames (i.e.
VAAPI connection details.
VAAPI-specific data associated with a frame pool.
AVVAAPIDeviceContext * hwctx
AVHWDeviceContext * device
enum AVPixelFormat surface_format
VASurfaceAttrib pixel_format_attribute
AVHWFramesContext * frames
AVVAAPIFramesContext * hwfc
VABufferID * param_buffers
int nb_slice_buffers_allocated
VABufferID * slice_buffers
int nb_param_buffers_allocated
VASurfaceID output_surface
int ff_vaapi_decode_make_param_buffer(AVCodecContext *avctx, VAAPIDecodePicture *pic, int type, const void *data, size_t size)
static VASurfaceID ff_vaapi_get_surface_id(AVFrame *pic)
int ff_vaapi_common_frame_params(AVCodecContext *avctx, AVBufferRef *hw_frames_ctx)
int ff_vaapi_decode_issue(AVCodecContext *avctx, VAAPIDecodePicture *pic)
int ff_vaapi_decode_init(AVCodecContext *avctx)
int ff_vaapi_decode_uninit(AVCodecContext *avctx)
int ff_vaapi_decode_cancel(AVCodecContext *avctx, VAAPIDecodePicture *pic)
int ff_vaapi_decode_make_slice_buffer(AVCodecContext *avctx, VAAPIDecodePicture *pic, const void *params_data, int nb_params, size_t params_size, const void *slice_data, size_t slice_size)