FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
vaapi_vpp.h
Go to the documentation of this file.
1 /*
2  * This file is part of FFmpeg.
3  *
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.
8  *
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.
13  *
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
17  */
18 
19 #ifndef AVFILTER_VAAPI_VPP_H
20 #define AVFILTER_VAAPI_VPP_H
21 
22 #include <va/va.h>
23 #include <va/va_vpp.h>
24 
25 #include "libavutil/hwcontext.h"
27 
28 #include "avfilter.h"
29 
30 typedef struct VAAPIVPPContext {
31  const AVClass *class;
32 
35 
36  int valid_ids;
37  VAConfigID va_config;
38  VAContextID va_context;
39 
42 
44  int output_width; // computed width
45  int output_height; // computed height
46 
47  VABufferID filter_buffers[VAProcFilterCount];
49 
51 
54 
56 
58 
60 
62 
64 
66 
68 
70  int type,
71  const void *data,
72  size_t size,
73  int count);
74 
76  VAProcPipelineParameterBuffer *params,
77  VASurfaceID output_surface);
78 
79 #endif /* AVFILTER_VAAPI_VPP_H */
int ff_vaapi_vpp_config_input(AVFilterLink *inlink)
Definition: vaapi_vpp.c:70
void ff_vaapi_vpp_pipeline_uninit(AVFilterContext *avctx)
Definition: vaapi_vpp.c:44
ptrdiff_t const GLvoid * data
Definition: opengl_enc.c:101
int(* build_filter_params)(AVFilterContext *avctx)
Definition: vaapi_vpp.h:50
Main libavfilter public API header.
int nb_filter_buffers
Definition: vaapi_vpp.h:48
int ff_vaapi_vpp_make_param_buffers(AVFilterContext *avctx, int type, const void *data, size_t size, int count)
Definition: vaapi_vpp.c:251
API-specific header for AV_HWDEVICE_TYPE_VAAPI.
AVColorSpace
YUV colorspace type.
Definition: pixfmt.h:486
void(* pipeline_uninit)(AVFilterContext *avctx)
Definition: vaapi_vpp.h:52
ptrdiff_t size
Definition: opengl_enc.c:101
AVBufferRef * input_frames_ref
Definition: vaapi_vpp.h:40
GLenum GLint * params
Definition: opengl_enc.c:114
GLsizei count
Definition: opengl_enc.c:109
typedef void(APIENTRY *FF_PFNGLACTIVETEXTUREPROC)(GLenum texture)
int ff_vaapi_vpp_colour_standard(enum AVColorSpace av_cs)
Definition: vaapi_vpp.c:237
VABufferID filter_buffers[VAProcFilterCount]
Definition: vaapi_vpp.h:47
GLint GLenum type
Definition: opengl_enc.c:105
Describe the class of an AVClass context structure.
Definition: log.h:67
VAConfigID va_config
Definition: vaapi_vpp.h:37
This struct describes a set or pool of "hardware" frames (i.e.
Definition: hwcontext.h:123
VAContextID va_context
Definition: vaapi_vpp.h:38
enum AVPixelFormat output_format
Definition: vaapi_vpp.h:43
AVVAAPIDeviceContext * hwctx
Definition: vaapi_vpp.h:33
A reference to a data buffer.
Definition: buffer.h:81
int
void ff_vaapi_vpp_ctx_uninit(AVFilterContext *avctx)
Definition: vaapi_vpp.c:365
int ff_vaapi_vpp_render_picture(AVFilterContext *avctx, VAProcPipelineParameterBuffer *params, VASurfaceID output_surface)
Definition: vaapi_vpp.c:280
void ff_vaapi_vpp_ctx_init(AVFilterContext *avctx)
Definition: vaapi_vpp.c:351
AVHWFramesContext * input_frames
Definition: vaapi_vpp.h:41
VAAPI connection details.
An instance of a filter.
Definition: avfilter.h:338
AVBufferRef * device_ref
Definition: vaapi_vpp.h:34
int ff_vaapi_vpp_query_formats(AVFilterContext *avctx)
Definition: vaapi_vpp.c:27
int ff_vaapi_vpp_config_output(AVFilterLink *outlink)
Definition: vaapi_vpp.c:95
AVPixelFormat
Pixel format.
Definition: pixfmt.h:64