FFmpeg
vf_mergeplanes.c
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 Paul B Mahol
3  *
4  * This file is part of FFmpeg.
5  *
6  * FFmpeg is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * FFmpeg is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with FFmpeg; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 #include "libavutil/avassert.h"
22 #include "libavutil/avstring.h"
23 #include "libavutil/imgutils.h"
24 #include "libavutil/opt.h"
25 #include "libavutil/pixdesc.h"
26 #include "avfilter.h"
27 #include "filters.h"
28 #include "formats.h"
29 #include "framesync.h"
30 #include "video.h"
31 
32 typedef struct Mapping {
33  int input;
34  int plane;
35 } Mapping;
36 
37 typedef struct InputParam {
38  int depth[4];
39  int nb_planes;
40  int planewidth[4];
41  int planeheight[4];
42 } InputParam;
43 
44 typedef struct MergePlanesContext {
45  const AVClass *class;
47  const enum AVPixelFormat out_fmt;
48  int nb_inputs;
49  int nb_planes;
50  int planewidth[4];
51  int planeheight[4];
55 
58 
59 #define OFFSET(x) offsetof(MergePlanesContext, x)
60 #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
61 static const AVOption mergeplanes_options[] = {
62  { "mapping", "set input to output plane mapping", OFFSET(mapping), AV_OPT_TYPE_INT, {.i64=-1}, -1, 0x33333333, FLAGS|AV_OPT_FLAG_DEPRECATED },
63  { "format", "set output pixel format", OFFSET(out_fmt), AV_OPT_TYPE_PIXEL_FMT, {.i64=AV_PIX_FMT_YUVA444P}, 0, INT_MAX, .flags=FLAGS },
64  { "map0s", "set 1st input to output stream mapping", OFFSET(map[0].input), AV_OPT_TYPE_INT, {.i64=0}, 0, 3, FLAGS },
65  { "map0p", "set 1st input to output plane mapping", OFFSET(map[0].plane), AV_OPT_TYPE_INT, {.i64=0}, 0, 3, FLAGS },
66  { "map1s", "set 2nd input to output stream mapping", OFFSET(map[1].input), AV_OPT_TYPE_INT, {.i64=0}, 0, 3, FLAGS },
67  { "map1p", "set 2nd input to output plane mapping", OFFSET(map[1].plane), AV_OPT_TYPE_INT, {.i64=0}, 0, 3, FLAGS },
68  { "map2s", "set 3rd input to output stream mapping", OFFSET(map[2].input), AV_OPT_TYPE_INT, {.i64=0}, 0, 3, FLAGS },
69  { "map2p", "set 3rd input to output plane mapping", OFFSET(map[2].plane), AV_OPT_TYPE_INT, {.i64=0}, 0, 3, FLAGS },
70  { "map3s", "set 4th input to output stream mapping", OFFSET(map[3].input), AV_OPT_TYPE_INT, {.i64=0}, 0, 3, FLAGS },
71  { "map3p", "set 4th input to output plane mapping", OFFSET(map[3].plane), AV_OPT_TYPE_INT, {.i64=0}, 0, 3, FLAGS },
72  { NULL }
73 };
74 
75 AVFILTER_DEFINE_CLASS(mergeplanes);
76 
78 {
79  MergePlanesContext *s = ctx->priv;
80  int64_t m = s->mapping;
81  int i, ret;
82 
83  s->outdesc = av_pix_fmt_desc_get(s->out_fmt);
84  if (!(s->outdesc->flags & AV_PIX_FMT_FLAG_PLANAR) ||
85  s->outdesc->nb_components < 2) {
86  av_log(ctx, AV_LOG_ERROR, "Only planar formats with more than one component are supported.\n");
87  return AVERROR(EINVAL);
88  }
89  s->nb_planes = av_pix_fmt_count_planes(s->out_fmt);
90 
91  for (i = s->nb_planes - 1; i >= 0; i--) {
92  if (m >= 0 && m <= 0x33333333) {
93  s->map[i].plane = m & 0xf;
94  m >>= 4;
95  s->map[i].input = m & 0xf;
96  m >>= 4;
97  }
98 
99  if (s->map[i].plane > 3 || s->map[i].input > 3) {
100  av_log(ctx, AV_LOG_ERROR, "Mapping with out of range input and/or plane number.\n");
101  return AVERROR(EINVAL);
102  }
103 
104  s->nb_inputs = FFMAX(s->nb_inputs, s->map[i].input + 1);
105  }
106 
107  av_assert0(s->nb_inputs && s->nb_inputs <= 4);
108 
109  for (i = 0; i < s->nb_inputs; i++) {
110  AVFilterPad pad = { 0 };
111 
112  pad.type = AVMEDIA_TYPE_VIDEO;
113  pad.name = av_asprintf("in%d", i);
114  if (!pad.name)
115  return AVERROR(ENOMEM);
116 
117  if ((ret = ff_append_inpad_free_name(ctx, &pad)) < 0)
118  return ret;
119  }
120 
121  return 0;
122 }
123 
125 {
126  MergePlanesContext *s = ctx->priv;
128  int i, ret;
129 
130  s->outdesc = av_pix_fmt_desc_get(s->out_fmt);
131  for (i = 0; av_pix_fmt_desc_get(i); i++) {
133  if (desc->comp[0].depth == s->outdesc->comp[0].depth &&
134  (desc->comp[0].depth <= 8 || (desc->flags & AV_PIX_FMT_FLAG_BE) == (s->outdesc->flags & AV_PIX_FMT_FLAG_BE)) &&
135  av_pix_fmt_count_planes(i) == desc->nb_components &&
136  (ret = ff_add_format(&formats, i)) < 0)
137  return ret;
138  }
139 
140  for (i = 0; i < s->nb_inputs; i++)
141  if ((ret = ff_formats_ref(formats, &ctx->inputs[i]->outcfg.formats)) < 0)
142  return ret;
143 
144  formats = NULL;
145  if ((ret = ff_add_format(&formats, s->out_fmt)) < 0 ||
146  (ret = ff_formats_ref(formats, &ctx->outputs[0]->incfg.formats)) < 0)
147  return ret;
148 
149  return 0;
150 }
151 
153 {
154  AVFilterContext *ctx = fs->parent;
155  AVFilterLink *outlink = ctx->outputs[0];
156  MergePlanesContext *s = fs->opaque;
157  AVFrame *in[4] = { NULL };
158  AVFrame *out;
159  int i, ret;
160 
161  for (i = 0; i < s->nb_inputs; i++) {
162  if ((ret = ff_framesync_get_frame(&s->fs, i, &in[i], 0)) < 0)
163  return ret;
164  }
165 
166  out = ff_get_video_buffer(outlink, outlink->w, outlink->h);
167  if (!out)
168  return AVERROR(ENOMEM);
169  out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base);
170 
171  for (i = 0; i < s->nb_planes; i++) {
172  const int input = s->map[i].input;
173  const int plane = s->map[i].plane;
174 
175  av_image_copy_plane(out->data[i], out->linesize[i],
176  in[input]->data[plane], in[input]->linesize[plane],
177  s->planewidth[i] * ((s->indesc[input]->comp[plane].depth + 7) / 8),
178  s->planeheight[i]);
179  }
180 
181  return ff_filter_frame(outlink, out);
182 }
183 
184 static int config_output(AVFilterLink *outlink)
185 {
186  AVFilterContext *ctx = outlink->src;
187  MergePlanesContext *s = ctx->priv;
188  FilterLink *il = ff_filter_link(ctx->inputs[0]);
189  FilterLink *ol = ff_filter_link(outlink);
190  InputParam inputsp[4];
191  FFFrameSyncIn *in;
192  int i, ret;
193 
194  if ((ret = ff_framesync_init(&s->fs, ctx, s->nb_inputs)) < 0)
195  return ret;
196 
197  in = s->fs.in;
198  s->fs.opaque = s;
199  s->fs.on_event = process_frame;
200 
201  outlink->w = ctx->inputs[0]->w;
202  outlink->h = ctx->inputs[0]->h;
203  outlink->time_base = ctx->inputs[0]->time_base;
204  ol->frame_rate = il->frame_rate;
205  outlink->sample_aspect_ratio = ctx->inputs[0]->sample_aspect_ratio;
206 
207  s->planewidth[1] =
208  s->planewidth[2] = AV_CEIL_RSHIFT(outlink->w, s->outdesc->log2_chroma_w);
209  s->planewidth[0] =
210  s->planewidth[3] = outlink->w;
211  s->planeheight[1] =
212  s->planeheight[2] = AV_CEIL_RSHIFT(outlink->h, s->outdesc->log2_chroma_h);
213  s->planeheight[0] =
214  s->planeheight[3] = outlink->h;
215 
216  for (i = 0; i < s->nb_inputs; i++) {
217  InputParam *inputp = &inputsp[i];
218  AVFilterLink *inlink = ctx->inputs[i];
219  s->indesc[i] = av_pix_fmt_desc_get(inlink->format);
220 
221  if (outlink->sample_aspect_ratio.num != inlink->sample_aspect_ratio.num ||
222  outlink->sample_aspect_ratio.den != inlink->sample_aspect_ratio.den) {
223  av_log(ctx, AV_LOG_ERROR, "input #%d link %s SAR %d:%d "
224  "does not match output link %s SAR %d:%d\n",
225  i, ctx->input_pads[i].name,
226  inlink->sample_aspect_ratio.num,
227  inlink->sample_aspect_ratio.den,
228  ctx->output_pads[0].name,
229  outlink->sample_aspect_ratio.num,
230  outlink->sample_aspect_ratio.den);
231  return AVERROR(EINVAL);
232  }
233 
234  inputp->planewidth[1] =
235  inputp->planewidth[2] = AV_CEIL_RSHIFT(inlink->w, s->indesc[i]->log2_chroma_w);
236  inputp->planewidth[0] =
237  inputp->planewidth[3] = inlink->w;
238  inputp->planeheight[1] =
239  inputp->planeheight[2] = AV_CEIL_RSHIFT(inlink->h, s->indesc[i]->log2_chroma_h);
240  inputp->planeheight[0] =
241  inputp->planeheight[3] = inlink->h;
242  inputp->nb_planes = av_pix_fmt_count_planes(inlink->format);
243 
244  for (int j = 0; j < inputp->nb_planes; j++)
245  inputp->depth[j] = s->indesc[i]->comp[j].depth;
246 
247  in[i].time_base = inlink->time_base;
248  in[i].sync = 1;
249  in[i].before = EXT_STOP;
250  in[i].after = EXT_STOP;
251  }
252 
253  for (i = 0; i < s->nb_planes; i++) {
254  const int input = s->map[i].input;
255  const int plane = s->map[i].plane;
256  InputParam *inputp = &inputsp[input];
257 
258  if (plane + 1 > inputp->nb_planes) {
259  av_log(ctx, AV_LOG_ERROR, "input %d does not have %d plane\n",
260  input, plane);
261  goto fail;
262  }
263  if (s->outdesc->comp[i].depth != inputp->depth[plane]) {
264  av_log(ctx, AV_LOG_ERROR, "output plane %d depth %d does not "
265  "match input %d plane %d depth %d\n",
266  i, s->outdesc->comp[i].depth,
267  input, plane, inputp->depth[plane]);
268  goto fail;
269  }
270  if (s->planewidth[i] != inputp->planewidth[plane]) {
271  av_log(ctx, AV_LOG_ERROR, "output plane %d width %d does not "
272  "match input %d plane %d width %d\n",
273  i, s->planewidth[i],
274  input, plane, inputp->planewidth[plane]);
275  goto fail;
276  }
277  if (s->planeheight[i] != inputp->planeheight[plane]) {
278  av_log(ctx, AV_LOG_ERROR, "output plane %d height %d does not "
279  "match input %d plane %d height %d\n",
280  i, s->planeheight[i],
281  input, plane, inputp->planeheight[plane]);
282  goto fail;
283  }
284  }
285 
286  return ff_framesync_configure(&s->fs);
287 fail:
288  return AVERROR(EINVAL);
289 }
290 
292 {
293  MergePlanesContext *s = ctx->priv;
294  return ff_framesync_activate(&s->fs);
295 }
296 
298 {
299  MergePlanesContext *s = ctx->priv;
300 
301  ff_framesync_uninit(&s->fs);
302 }
303 
305  {
306  .name = "default",
307  .type = AVMEDIA_TYPE_VIDEO,
308  .config_props = config_output,
309  },
310 };
311 
313  .name = "mergeplanes",
314  .description = NULL_IF_CONFIG_SMALL("Merge planes."),
315  .priv_size = sizeof(MergePlanesContext),
316  .priv_class = &mergeplanes_class,
317  .init = init,
318  .uninit = uninit,
319  .activate = activate,
320  .inputs = NULL,
324 };
formats
formats
Definition: signature.h:47
ff_get_video_buffer
AVFrame * ff_get_video_buffer(AVFilterLink *link, int w, int h)
Request a picture buffer with a specific set of permissions.
Definition: video.c:116
InputParam
Definition: vf_mergeplanes.c:37
FFFrameSyncIn::time_base
AVRational time_base
Time base for the incoming frames.
Definition: framesync.h:117
ff_framesync_configure
int ff_framesync_configure(FFFrameSync *fs)
Configure a frame sync structure.
Definition: framesync.c:137
mergeplanes_options
static const AVOption mergeplanes_options[]
Definition: vf_mergeplanes.c:61
AVPixelFormat
AVPixelFormat
Pixel format.
Definition: pixfmt.h:71
AVERROR
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample they are references to shared objects When the negotiation mechanism computes the intersection of the formats supported at each end of a all references to both lists are replaced with a reference to the intersection And when a single format is eventually chosen for a link amongst the remaining all references to the list are updated That means that if a filter requires that its input and output have the same format amongst a supported all it has to do is use a reference to the same list of formats query_formats can leave some formats unset and return AVERROR(EAGAIN) to cause the negotiation mechanism toagain later. That can be used by filters with complex requirements to use the format negotiated on one link to set the formats supported on another. Frame references ownership and permissions
opt.h
ff_framesync_uninit
void ff_framesync_uninit(FFFrameSync *fs)
Free all memory currently allocated.
Definition: framesync.c:302
out
FILE * out
Definition: movenc.c:55
ff_filter_frame
int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
Send a frame of data to the next filter.
Definition: avfilter.c:1025
MergePlanesContext::planeheight
int planeheight[4]
Definition: vf_mergeplanes.c:51
av_pix_fmt_desc_get
const AVPixFmtDescriptor * av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
Definition: pixdesc.c:2965
ff_framesync_get_frame
int ff_framesync_get_frame(FFFrameSync *fs, unsigned in, AVFrame **rframe, unsigned get)
Get the current frame in an input.
Definition: framesync.c:270
MergePlanesContext::nb_inputs
int nb_inputs
Definition: vf_mergeplanes.c:48
int64_t
long long int64_t
Definition: coverity.c:34
inlink
The exact code depends on how similar the blocks are and how related they are to the and needs to apply these operations to the correct inlink or outlink if there are several Macros are available to factor that when no extra processing is inlink
Definition: filter_design.txt:212
av_asprintf
char * av_asprintf(const char *fmt,...)
Definition: avstring.c:115
AVFrame
This structure describes decoded (raw) audio or video data.
Definition: frame.h:389
pixdesc.h
AVOption
AVOption.
Definition: opt.h:429
FFMAX
#define FFMAX(a, b)
Definition: macros.h:47
AVFilter::name
const char * name
Filter name.
Definition: avfilter.h:205
FFFrameSync
Frame sync structure.
Definition: framesync.h:168
video.h
MergePlanesContext::planewidth
int planewidth[4]
Definition: vf_mergeplanes.c:50
AVFrame::data
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
Definition: frame.h:410
av_image_copy_plane
void av_image_copy_plane(uint8_t *dst, int dst_linesize, const uint8_t *src, int src_linesize, int bytewidth, int height)
Copy image plane from src to dst.
Definition: imgutils.c:374
AVFilterFormats
A list of supported formats for one end of a filter link.
Definition: formats.h:64
formats.h
av_pix_fmt_count_planes
int av_pix_fmt_count_planes(enum AVPixelFormat pix_fmt)
Definition: pixdesc.c:3005
EXT_STOP
@ EXT_STOP
Completely stop all streams with this one.
Definition: framesync.h:65
MergePlanesContext
Definition: vf_mergeplanes.c:44
fail
#define fail()
Definition: checkasm.h:188
FFFrameSyncIn
Input stream structure.
Definition: framesync.h:102
InputParam::planeheight
int planeheight[4]
Definition: vf_mergeplanes.c:41
InputParam::nb_planes
int nb_planes
Definition: vf_mergeplanes.c:39
FFFrameSyncIn::sync
unsigned sync
Synchronization level: frames on input at the highest sync level will generate output frame events.
Definition: framesync.h:160
AVFILTER_FLAG_DYNAMIC_INPUTS
#define AVFILTER_FLAG_DYNAMIC_INPUTS
The number of the filter inputs is not determined just by AVFilter.inputs.
Definition: avfilter.h:141
AVRational::num
int num
Numerator.
Definition: rational.h:59
query_formats
static int query_formats(AVFilterContext *ctx)
Definition: vf_mergeplanes.c:124
AVFilterPad
A filter pad used for either input or output.
Definition: filters.h:38
MergePlanesContext::fs
FFFrameSync fs
Definition: vf_mergeplanes.c:56
avassert.h
AV_LOG_ERROR
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Definition: log.h:209
av_cold
#define av_cold
Definition: attributes.h:90
s
#define s(width, name)
Definition: cbs_vp9.c:198
AV_CEIL_RSHIFT
#define AV_CEIL_RSHIFT(a, b)
Definition: common.h:60
ff_formats_ref
int ff_formats_ref(AVFilterFormats *f, AVFilterFormats **ref)
Add *ref as a new reference to formats.
Definition: formats.c:678
Mapping
Definition: vf_mergeplanes.c:32
OFFSET
#define OFFSET(x)
Definition: vf_mergeplanes.c:59
av_assert0
#define av_assert0(cond)
assert() equivalent, that is always enabled.
Definition: avassert.h:40
filters.h
ctx
AVFormatContext * ctx
Definition: movenc.c:49
av_rescale_q
int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq)
Rescale a 64-bit integer by 2 rational numbers.
Definition: mathematics.c:142
config_output
static int config_output(AVFilterLink *outlink)
Definition: vf_mergeplanes.c:184
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: filters.h:263
InputParam::planewidth
int planewidth[4]
Definition: vf_mergeplanes.c:40
MergePlanesContext::mapping
int64_t mapping
Definition: vf_mergeplanes.c:46
mergeplanes_outputs
static const AVFilterPad mergeplanes_outputs[]
Definition: vf_mergeplanes.c:304
AVClass
Describe the class of an AVClass context structure.
Definition: log.h:75
activate
static int activate(AVFilterContext *ctx)
Definition: vf_mergeplanes.c:291
NULL
#define NULL
Definition: coverity.c:32
fs
#define fs(width, name, subs,...)
Definition: cbs_vp9.c:200
ff_append_inpad_free_name
int ff_append_inpad_free_name(AVFilterContext *f, AVFilterPad *p)
Definition: avfilter.c:131
MergePlanesContext::map
Mapping map[4]
Definition: vf_mergeplanes.c:52
ff_add_format
int ff_add_format(AVFilterFormats **avff, int64_t fmt)
Add fmt to the list of media formats contained in *avff.
Definition: formats.c:504
MergePlanesContext::out_fmt
enum AVPixelFormat out_fmt
Definition: vf_mergeplanes.c:47
inputs
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several inputs
Definition: filter_design.txt:243
ff_filter_link
static FilterLink * ff_filter_link(AVFilterLink *link)
Definition: filters.h:197
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:94
InputParam::depth
int depth[4]
Definition: vf_mergeplanes.c:38
FLAGS
#define FLAGS
Definition: vf_mergeplanes.c:60
ff_vf_mergeplanes
const AVFilter ff_vf_mergeplanes
Definition: vf_mergeplanes.c:312
AV_PIX_FMT_YUVA444P
@ AV_PIX_FMT_YUVA444P
planar YUV 4:4:4 32bpp, (1 Cr & Cb sample per 1x1 Y & A samples)
Definition: pixfmt.h:174
MergePlanesContext::outdesc
const AVPixFmtDescriptor * outdesc
Definition: vf_mergeplanes.c:54
input
and forward the test the status of outputs and forward it to the corresponding return FFERROR_NOT_READY If the filters stores internally one or a few frame for some input
Definition: filter_design.txt:172
Mapping::plane
int plane
Definition: vf_mergeplanes.c:34
AV_OPT_FLAG_DEPRECATED
#define AV_OPT_FLAG_DEPRECATED
Set if option is deprecated, users should refer to AVOption.help text for more information.
Definition: opt.h:386
i
#define i(width, name, range_min, range_max)
Definition: cbs_h2645.c:256
init
static av_cold int init(AVFilterContext *ctx)
Definition: vf_mergeplanes.c:77
AV_PIX_FMT_FLAG_BE
#define AV_PIX_FMT_FLAG_BE
Pixel format is big-endian.
Definition: pixdesc.h:116
Mapping::input
int input
Definition: vf_mergeplanes.c:33
AVFilterPad::name
const char * name
Pad name.
Definition: filters.h:44
AVFilter
Filter definition.
Definition: avfilter.h:201
ret
ret
Definition: filter_design.txt:187
AVFilterPad::type
enum AVMediaType type
AVFilterPad type.
Definition: filters.h:49
ff_framesync_init
int ff_framesync_init(FFFrameSync *fs, AVFilterContext *parent, unsigned nb_in)
Initialize a frame sync structure.
Definition: framesync.c:86
FFFrameSyncIn::before
enum FFFrameSyncExtMode before
Extrapolation mode for timestamps before the first frame.
Definition: framesync.h:107
AVFILTER_DEFINE_CLASS
AVFILTER_DEFINE_CLASS(mergeplanes)
framesync.h
AVRational::den
int den
Denominator.
Definition: rational.h:60
AV_OPT_TYPE_INT
@ AV_OPT_TYPE_INT
Underlying C type is int.
Definition: opt.h:259
avfilter.h
AV_PIX_FMT_FLAG_PLANAR
#define AV_PIX_FMT_FLAG_PLANAR
At least one pixel component is not in the first data plane.
Definition: pixdesc.h:132
AV_OPT_TYPE_PIXEL_FMT
@ AV_OPT_TYPE_PIXEL_FMT
Underlying C type is enum AVPixelFormat.
Definition: opt.h:307
AVFilterContext
An instance of a filter.
Definition: avfilter.h:457
desc
const char * desc
Definition: libsvtav1.c:79
process_frame
static int process_frame(FFFrameSync *fs)
Definition: vf_mergeplanes.c:152
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
AVPixFmtDescriptor
Descriptor that unambiguously describes how the bits of a pixel are stored in the up to 4 data planes...
Definition: pixdesc.h:69
map
const VDPAUPixFmtMap * map
Definition: hwcontext_vdpau.c:71
imgutils.h
AVFrame::linesize
int linesize[AV_NUM_DATA_POINTERS]
For video, a positive or negative value, which is typically indicating the size in bytes of each pict...
Definition: frame.h:434
av_log
#define av_log(a,...)
Definition: tableprint_vlc.h:27
FFFrameSyncIn::after
enum FFFrameSyncExtMode after
Extrapolation mode for timestamps after the last frame.
Definition: framesync.h:112
ff_framesync_activate
int ff_framesync_activate(FFFrameSync *fs)
Examine the frames in the filter's input and try to produce output.
Definition: framesync.c:353
avstring.h
FILTER_QUERY_FUNC
#define FILTER_QUERY_FUNC(func)
Definition: filters.h:236
MergePlanesContext::indesc
const AVPixFmtDescriptor * indesc[4]
Definition: vf_mergeplanes.c:53
uninit
static av_cold void uninit(AVFilterContext *ctx)
Definition: vf_mergeplanes.c:297
MergePlanesContext::nb_planes
int nb_planes
Definition: vf_mergeplanes.c:49