FFmpeg
Loading...
Searching...
No Matches
stack_internal.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_STACK_INTERNAL_H
20#define AVFILTER_STACK_INTERNAL_H
21
22#ifdef HWContext
23
25
26enum {
27 STACK_H = 0,
28 STACK_V = 1,
29 STACK_X = 2
30};
31
32typedef struct StackItemRegion {
33 int x;
34 int y;
35 int width;
36 int height;
37} StackItemRegion;
38
39typedef struct StackBaseContext {
40 HWContext hwctx; /**< must be the first field */
41
42 FFFrameSync fs;
43 int mode;
44 uint8_t fillcolor[4];
45 int fillcolor_enable;
46 StackItemRegion *regions;
47
48 /* Options */
49 int nb_inputs;
50 int shortest;
51 int tile_width;
52 int tile_height;
53 int nb_grid_columns;
54 int nb_grid_rows;
55 char *layout;
56 char *fillcolor_str;
57} StackBaseContext;
58
59static int config_comm_output(AVFilterLink *outlink);
60static int stack_init(AVFilterContext *avctx);
61static av_cold void stack_uninit(AVFilterContext *avctx);
62static int stack_activate(AVFilterContext *avctx);
63
64#endif
65
66#endif /* AVFILTER_STACK_INTERNAL_H */
#define fs(width, name, subs,...)
Definition cbs_vp9.c:200
mode
Use these values in ebur128_init (or'ed).
Definition ebur128.h:83
#define av_cold
Definition attributes.h:117
uint64_t layout
static int stack_activate(AVFilterContext *avctx)
static int stack_init(AVFilterContext *avctx)
static int config_comm_output(AVFilterLink *outlink)
static av_cold void stack_uninit(AVFilterContext *avctx)
An instance of a filter.
Definition avfilter.h:273
#define height
Definition dsp.h:89
#define width
Definition dsp.h:89
#define HWContext