FFmpeg
libavfilter
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
24
#include "
libavfilter/framesync.h
"
25
26
enum
{
27
STACK_H = 0,
28
STACK_V = 1,
29
STACK_X = 2
30
};
31
32
typedef
struct
StackItemRegion {
33
int
x;
34
int
y;
35
int
width
;
36
int
height
;
37
} StackItemRegion;
38
39
typedef
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
59
static
int
config_comm_output
(
AVFilterLink
*outlink);
60
static
int
stack_init
(
AVFilterContext
*avctx);
61
static
av_cold
void
stack_uninit
(
AVFilterContext
*avctx);
62
static
int
stack_activate
(
AVFilterContext
*avctx);
63
64
#endif
65
66
#endif
/* AVFILTER_STACK_INTERNAL_H */
FFFrameSync
Frame sync structure.
Definition:
framesync.h:168
AVFilterLink
A link between two filters.
Definition:
avfilter.h:390
HWContext
#define HWContext
Definition:
vf_stack_qsv.c:48
av_cold
#define av_cold
Definition:
attributes.h:90
stack_uninit
static av_cold void stack_uninit(AVFilterContext *avctx)
Definition:
stack_internal.c:288
fs
#define fs(width, name, subs,...)
Definition:
cbs_vp9.c:200
height
#define height
Definition:
dsp.h:89
layout
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 layout
Definition:
filter_design.txt:18
config_comm_output
static int config_comm_output(AVFilterLink *outlink)
Definition:
stack_internal.c:53
framesync.h
mode
mode
Definition:
ebur128.h:83
stack_activate
static int stack_activate(AVFilterContext *avctx)
Definition:
stack_internal.c:296
stack_init
static int stack_init(AVFilterContext *avctx)
Definition:
stack_internal.c:225
AVFilterContext
An instance of a filter.
Definition:
avfilter.h:269
width
#define width
Definition:
dsp.h:89
Generated on Sun Aug 31 2025 19:22:51 for FFmpeg by
1.8.17