FFmpeg
Loading...
Searching...
No Matches
vf_gblur.c
Go to the documentation of this file.
1/*
2 * Copyright (c) 2011 Pascal Getreuer
3 * Copyright (c) 2016 Paul B Mahol
4 *
5 * Redistribution and use in source and binary forms, with or without modification,
6 * are permitted provided that the following conditions are met:
7 *
8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above
11 * copyright notice, this list of conditions and the following
12 * disclaimer in the documentation and/or other materials provided
13 * with the distribution.
14 *
15 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19 * HOLDER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
20 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
23 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
24 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28#include <float.h>
29
30#include "libavutil/imgutils.h"
31#include "libavutil/mem.h"
32#include "libavutil/opt.h"
33#include "libavutil/pixdesc.h"
34#include "avfilter.h"
35#include "filters.h"
36#include "gblur.h"
37#include "vf_gblur_init.h"
38#include "video.h"
39
40#define OFFSET(x) offsetof(GBlurContext, x)
41#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_RUNTIME_PARAM
42
43static const AVOption gblur_options[] = {
44 { "sigma", "set sigma", OFFSET(sigma), AV_OPT_TYPE_FLOAT, {.dbl=0.5}, 0.0, 1024, FLAGS },
45 { "steps", "set number of steps", OFFSET(steps), AV_OPT_TYPE_INT, {.i64=1}, 1, 6, FLAGS },
46 { "planes", "set planes to filter", OFFSET(planes), AV_OPT_TYPE_INT, {.i64=0xF}, 0, 0xF, FLAGS },
47 { "sigmaV", "set vertical sigma", OFFSET(sigmaV), AV_OPT_TYPE_FLOAT, {.dbl=-1}, -1, 1024, FLAGS },
48 { NULL }
49};
50
52
53typedef struct ThreadData {
54 int height;
55 int width;
57
58static int filter_horizontally(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
59{
60 GBlurContext *s = ctx->priv;
61 ThreadData *td = arg;
62 const int height = td->height;
63 const int width = td->width;
64 const int slice_start = ff_slice_pos(height, jobnr, nb_jobs);
65 const int slice_end = ff_slice_pos(height, jobnr + 1, nb_jobs);
66 const float boundaryscale = s->boundaryscale;
67 const int steps = s->steps;
68 const float nu = s->nu;
69 float *buffer = s->buffer;
70 float *localbuf = NULL;
71
72 if (s->localbuf)
73 localbuf = s->localbuf + s->stride * width * slice_start;
74
75 s->horiz_slice(buffer + width * slice_start, width, slice_end - slice_start,
76 steps, nu, boundaryscale, localbuf);
77 return 0;
78}
79
80static int filter_vertically(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
81{
82 GBlurContext *s = ctx->priv;
83 ThreadData *td = arg;
84 const int height = td->height;
85 const int width = td->width;
86 const int slice_start = ff_slice_pos(width, jobnr, nb_jobs);
87 const int slice_end = ff_slice_pos(width, jobnr + 1, nb_jobs);
88 const float boundaryscale = s->boundaryscaleV;
89 const int steps = s->steps;
90 const float nu = s->nuV;
91 float *buffer = s->buffer;
92
93 s->verti_slice(buffer, width, height, slice_start, slice_end,
94 steps, nu, boundaryscale);
95
96 return 0;
97}
98
99static int filter_postscale(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
100{
101 GBlurContext *s = ctx->priv;
102 ThreadData *td = arg;
103 const float max = s->flt ? FLT_MAX : (1 << s->depth) - 1;
104 const float min = s->flt ? -FLT_MAX : 0.f;
105 const int height = td->height;
106 const int width = td->width;
107 const int awidth = FFALIGN(width, 64);
108 const int slice_start = ff_slice_pos(height, jobnr, nb_jobs);
109 const int slice_end = ff_slice_pos(height, jobnr + 1, nb_jobs);
110 const float postscale = s->postscale * s->postscaleV;
111 const int slice_size = slice_end - slice_start;
112
113 s->postscale_slice(s->buffer + slice_start * awidth,
114 slice_size * awidth, postscale, min, max);
115
116 return 0;
117}
118
119static void gaussianiir2d(AVFilterContext *ctx, int plane)
120{
121 GBlurContext *s = ctx->priv;
122 const int width = s->planewidth[plane];
123 const int height = s->planeheight[plane];
124 const int nb_threads = ff_filter_get_nb_threads(ctx);
125 ThreadData td;
126
127 if (s->sigma < 0 || s->steps < 0)
128 return;
129
130 td.width = width;
131 td.height = height;
133 NULL, FFMIN(height, nb_threads));
135 NULL, FFMIN(width, nb_threads));
137 NULL, FFMIN(width * height, nb_threads));
138}
139
163
165{
166 GBlurContext *s = ctx->priv;
167
168 av_freep(&s->buffer);
169 av_freep(&s->localbuf);
170}
171
172static int config_input(AVFilterLink *inlink)
173{
175 GBlurContext *s = inlink->dst->priv;
176
177 uninit(inlink->dst);
178
179 s->depth = desc->comp[0].depth;
180 s->flt = !!(desc->flags & AV_PIX_FMT_FLAG_FLOAT);
181 s->planewidth[1] = s->planewidth[2] = AV_CEIL_RSHIFT(inlink->w, desc->log2_chroma_w);
182 s->planewidth[0] = s->planewidth[3] = inlink->w;
183 s->planeheight[1] = s->planeheight[2] = AV_CEIL_RSHIFT(inlink->h, desc->log2_chroma_h);
184 s->planeheight[0] = s->planeheight[3] = inlink->h;
185
186 s->nb_planes = av_pix_fmt_count_planes(inlink->format);
187
188 s->buffer = av_malloc_array(FFALIGN(inlink->w, 64), FFALIGN(inlink->h, 64) * sizeof(*s->buffer));
189 if (!s->buffer)
190 return AVERROR(ENOMEM);
191
192 if (s->sigmaV < 0) {
193 s->sigmaV = s->sigma;
194 }
196
197 return 0;
198}
199
200static void set_params(float sigma, int steps, float *postscale, float *boundaryscale, float *nu)
201{
202 double dnu, lambda;
203
204 lambda = (sigma * sigma) / (2.0 * steps);
205 dnu = (1.0 + 2.0 * lambda - sqrt(1.0 + 4.0 * lambda)) / (2.0 * lambda);
206 *postscale = pow(dnu / lambda, steps);
207 *boundaryscale = 1.0 / (1.0 - dnu);
208 *nu = (float)dnu;
209 if (!isnormal(*postscale))
210 *postscale = 1.f;
211 if (!isnormal(*boundaryscale))
212 *boundaryscale = 1.f;
213 if (!isnormal(*nu))
214 *nu = 0.f;
215}
216
217static int filter_frame(AVFilterLink *inlink, AVFrame *in)
218{
219 AVFilterContext *ctx = inlink->dst;
220 GBlurContext *s = ctx->priv;
221 AVFilterLink *outlink = ctx->outputs[0];
222 AVFrame *out;
223 int plane;
224
225 set_params(s->sigma, s->steps, &s->postscale, &s->boundaryscale, &s->nu);
226 set_params(s->sigmaV, s->steps, &s->postscaleV, &s->boundaryscaleV, &s->nuV);
227
228 if (av_frame_is_writable(in)) {
229 out = in;
230 } else {
231 out = ff_get_video_buffer(outlink, outlink->w, outlink->h);
232 if (!out) {
233 av_frame_free(&in);
234 return AVERROR(ENOMEM);
235 }
237 }
238
239 for (plane = 0; plane < s->nb_planes; plane++) {
240 const int height = s->planeheight[plane];
241 const int width = s->planewidth[plane];
242 float *bptr = s->buffer;
243 const uint8_t *src = in->data[plane];
244 const uint16_t *src16 = (const uint16_t *)in->data[plane];
245 uint8_t *dst = out->data[plane];
246 uint16_t *dst16 = (uint16_t *)out->data[plane];
247 int y, x;
248
249 if (!(s->planes & (1 << plane))) {
250 if (out != in)
251 av_image_copy_plane(out->data[plane], out->linesize[plane],
252 in->data[plane], in->linesize[plane],
253 width * ((s->depth + 7) / 8), height);
254 continue;
255 }
256
257 if (s->flt) {
258 av_image_copy_plane((uint8_t *)bptr, width * sizeof(float),
259 in->data[plane], in->linesize[plane],
260 width * sizeof(float), height);
261 } else if (s->depth == 8) {
262 for (y = 0; y < height; y++) {
263 for (x = 0; x < width; x++) {
264 bptr[x] = src[x];
265 }
266 bptr += width;
267 src += in->linesize[plane];
268 }
269 } else {
270 for (y = 0; y < height; y++) {
271 for (x = 0; x < width; x++) {
272 bptr[x] = src16[x];
273 }
274 bptr += width;
275 src16 += in->linesize[plane] / 2;
276 }
277 }
278
279 gaussianiir2d(ctx, plane);
280
281 bptr = s->buffer;
282 if (s->flt) {
283 av_image_copy_plane(out->data[plane], out->linesize[plane],
284 (uint8_t *)bptr, width * sizeof(float),
285 width * sizeof(float), height);
286 } else if (s->depth == 8) {
287 for (y = 0; y < height; y++) {
288 for (x = 0; x < width; x++)
289 dst[x] = lrintf(bptr[x]);
290 bptr += width;
291 dst += out->linesize[plane];
292 }
293 } else {
294 for (y = 0; y < height; y++) {
295 for (x = 0; x < width; x++)
296 dst16[x] = lrintf(bptr[x]);
297 bptr += width;
298 dst16 += out->linesize[plane] / 2;
299 }
300 }
301 }
302
303 if (out != in)
304 av_frame_free(&in);
305 return ff_filter_frame(outlink, out);
306}
307
308static const AVFilterPad gblur_inputs[] = {
309 {
310 .name = "default",
311 .type = AVMEDIA_TYPE_VIDEO,
312 .config_props = config_input,
313 .filter_frame = filter_frame,
314 },
315};
316
318 .p.name = "gblur",
319 .p.description = NULL_IF_CONFIG_SMALL("Apply Gaussian Blur filter."),
320 .p.priv_class = &gblur_class,
322 .priv_size = sizeof(GBlurContext),
323 .uninit = uninit,
327 .process_command = ff_filter_process_command,
328};
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
Definition dsp.h:87
static int config_input(AVFilterLink *inlink)
const FFFilter ff_vf_gblur
Definition vf_gblur.c:317
static FILE * out
static AVFormatContext * ctx
int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
Send a frame of data to the next filter.
Definition avfilter.c:1068
int ff_filter_process_command(AVFilterContext *ctx, const char *cmd, const char *arg, char *res, int res_len, int flags)
Generic processing of user supplied commands that are set in the same way as the filter options.
Definition avfilter.c:906
int ff_filter_execute(AVFilterContext *ctx, avfilter_action_func *func, void *arg, int *ret, int nb_jobs)
Definition avfilter.c:1696
int ff_filter_get_nb_threads(AVFilterContext *ctx)
Get number of threads for current filter instance.
Definition avfilter.c:846
Main libavfilter public API header.
#define s(width, name)
Definition cbs_vp9.c:198
#define FLAGS
Definition cmdutils.c:598
#define AV_CEIL_RSHIFT(a, b)
Definition common.h:60
#define NULL
Definition coverity.c:32
#define min(a, b)
#define max(a, b)
static int filter_frame(DBEDecodeContext *s, AVFrame *frame)
Definition dolby_e.c:1067
static const FLOAT postscale[64]
Definition faandct.c:55
@ AV_OPT_TYPE_INT
Underlying C type is int.
Definition opt.h:258
@ AV_OPT_TYPE_FLOAT
Underlying C type is float.
Definition opt.h:270
#define AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
Some filters support a generic "enable" expression option that can be used to enable or disable a fil...
Definition avfilter.h:196
#define AVFILTER_FLAG_SLICE_THREADS
The filter supports multithreading by splitting frames into multiple parts and processing them concur...
Definition avfilter.h:166
#define AVERROR(e)
Definition error.h:45
int av_frame_is_writable(AVFrame *frame)
Check if the frame data is writable.
Definition frame.c:535
void av_frame_free(AVFrame **frame)
Free the frame and any dynamically allocated objects in it, e.g.
Definition frame.c:64
int av_frame_copy_props(AVFrame *dst, const AVFrame *src)
Copy only "metadata" fields from src to dst.
Definition frame.c:599
@ AVMEDIA_TYPE_VIDEO
Definition avutil.h:200
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
misc image utilities
static av_cold void uninit(AVBitStreamFilterContext *ctx)
const char * arg
Definition jacosubdec.c:65
#define FILTER_INPUTS(array)
Definition filters.h:264
#define FILTER_OUTPUTS(array)
Definition filters.h:265
static int ff_slice_pos(int total, int jobnr, int nb_jobs)
Compute the boundary index for a slice when work of size total is split into nb_jobs slices.
Definition filters.h:763
#define FILTER_PIXFMTS_ARRAY(array)
Definition filters.h:244
#define AVFILTER_DEFINE_CLASS(fname)
Definition filters.h:478
static void gaussianiir2d(AVFilterContext *ctx, int plane)
Definition vf_gblur.c:119
static int config_input(AVFilterLink *inlink)
Definition vf_gblur.c:172
static int filter_horizontally(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
Definition vf_gblur.c:58
static int filter_vertically(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
Definition vf_gblur.c:80
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
Definition vf_gblur.c:217
static const AVFilterPad gblur_inputs[]
Definition vf_gblur.c:308
static void set_params(float sigma, int steps, float *postscale, float *boundaryscale, float *nu)
Definition vf_gblur.c:200
static av_cold void uninit(AVFilterContext *ctx)
Definition vf_gblur.c:164
#define OFFSET(x)
Definition vf_gblur.c:40
static const AVOption gblur_options[]
Definition vf_gblur.c:43
static int filter_postscale(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
Definition vf_gblur.c:99
#define av_cold
Definition attributes.h:117
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition internal.h:88
static enum AVPixelFormat pix_fmts[]
Definition libkvazaar.c:296
#define lrintf(x)
Definition libm_mips.h:72
const char * desc
Definition libsvtav1.c:83
static const struct @257111027162314367033347246032313251342043035002 planes[]
#define FFMIN(a, b)
Definition macros.h:49
#define FFALIGN(x, a)
Definition macros.h:78
Memory handling functions.
static const int16_t steps[16]
Definition misc4.c:30
static int slice_end(AVCodecContext *avctx, AVFrame *pict, int *got_output)
Handle slice ends.
Definition mpeg12dec.c:1697
AVOptions.
int av_pix_fmt_count_planes(enum AVPixelFormat pix_fmt)
Definition pixdesc.c:3500
const AVPixFmtDescriptor * av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
Definition pixdesc.c:3460
#define AV_PIX_FMT_FLAG_FLOAT
The pixel format contains IEEE-754 floating point values.
Definition pixdesc.h:158
#define AV_PIX_FMT_GBRAP12
Definition pixfmt.h:569
#define AV_PIX_FMT_YUV420P16
Definition pixfmt.h:556
#define AV_PIX_FMT_GBRPF32
Definition pixfmt.h:584
#define AV_PIX_FMT_YUV444P12
Definition pixfmt.h:552
#define AV_PIX_FMT_YUV444P9
Definition pixfmt.h:544
#define AV_PIX_FMT_YUV420P10
Definition pixfmt.h:545
#define AV_PIX_FMT_YUV440P12
Definition pixfmt.h:551
#define AV_PIX_FMT_GRAY9
Definition pixfmt.h:524
#define AV_PIX_FMT_GBRAP16
Definition pixfmt.h:571
#define AV_PIX_FMT_GBRP9
Definition pixfmt.h:563
#define AV_PIX_FMT_YUV422P9
Definition pixfmt.h:543
#define AV_PIX_FMT_YUVA444P10
Definition pixfmt.h:598
#define AV_PIX_FMT_YUVA420P16
Definition pixfmt.h:601
#define AV_PIX_FMT_YUV420P12
Definition pixfmt.h:549
#define AV_PIX_FMT_YUVA420P10
Definition pixfmt.h:596
#define AV_PIX_FMT_YUVA422P9
Definition pixfmt.h:594
#define AV_PIX_FMT_YUV422P12
Definition pixfmt.h:550
#define AV_PIX_FMT_GBRP10
Definition pixfmt.h:564
#define AV_PIX_FMT_YUV422P10
Definition pixfmt.h:546
#define AV_PIX_FMT_GRAY12
Definition pixfmt.h:526
#define AV_PIX_FMT_GBRP12
Definition pixfmt.h:565
#define AV_PIX_FMT_YUV420P9
Definition pixfmt.h:542
#define AV_PIX_FMT_YUVA420P9
Definition pixfmt.h:593
#define AV_PIX_FMT_YUVA422P10
Definition pixfmt.h:597
#define AV_PIX_FMT_GRAYF32
Definition pixfmt.h:588
#define AV_PIX_FMT_YUV420P14
Definition pixfmt.h:553
AVPixelFormat
Pixel format.
Definition pixfmt.h:71
@ AV_PIX_FMT_NONE
Definition pixfmt.h:72
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
Definition pixfmt.h:73
@ AV_PIX_FMT_YUV440P
planar YUV 4:4:0 (1 Cr & Cb sample per 1x2 Y samples)
Definition pixfmt.h:106
@ AV_PIX_FMT_YUV422P
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
Definition pixfmt.h:77
@ AV_PIX_FMT_GRAY8
Y , 8bpp.
Definition pixfmt.h:81
@ AV_PIX_FMT_YUVA420P
planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples)
Definition pixfmt.h:108
@ AV_PIX_FMT_YUVJ440P
planar YUV 4:4:0 full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV440P and setting color_range
Definition pixfmt.h:107
@ AV_PIX_FMT_YUV410P
planar YUV 4:1:0, 9bpp, (1 Cr & Cb sample per 4x4 Y samples)
Definition pixfmt.h:79
@ AV_PIX_FMT_YUV411P
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)
Definition pixfmt.h:80
@ AV_PIX_FMT_YUV444P
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
Definition pixfmt.h:78
@ AV_PIX_FMT_YUVA444P
planar YUV 4:4:4 32bpp, (1 Cr & Cb sample per 1x1 Y & A samples)
Definition pixfmt.h:174
@ AV_PIX_FMT_YUVJ411P
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples) full scale (JPEG), deprecated in favor ...
Definition pixfmt.h:283
@ AV_PIX_FMT_GBRAP
planar GBRA 4:4:4:4 32bpp
Definition pixfmt.h:212
@ AV_PIX_FMT_YUVJ422P
planar YUV 4:2:2, 16bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV422P and setting col...
Definition pixfmt.h:86
@ AV_PIX_FMT_YUVA422P
planar YUV 4:2:2 24bpp, (1 Cr & Cb sample per 2x1 Y & A samples)
Definition pixfmt.h:173
@ AV_PIX_FMT_GBRP
planar GBR 4:4:4 24bpp
Definition pixfmt.h:165
@ AV_PIX_FMT_YUVJ444P
planar YUV 4:4:4, 24bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV444P and setting col...
Definition pixfmt.h:87
@ AV_PIX_FMT_YUVJ420P
planar YUV 4:2:0, 12bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV420P and setting col...
Definition pixfmt.h:85
#define AV_PIX_FMT_YUVA422P12
Definition pixfmt.h:599
#define AV_PIX_FMT_YUV422P14
Definition pixfmt.h:554
#define AV_PIX_FMT_GRAY10
Definition pixfmt.h:525
#define AV_PIX_FMT_GRAY14
Definition pixfmt.h:527
#define AV_PIX_FMT_YUV422P16
Definition pixfmt.h:557
#define AV_PIX_FMT_GRAY16
Definition pixfmt.h:528
#define AV_PIX_FMT_GBRAP10
Definition pixfmt.h:568
#define AV_PIX_FMT_YUVA444P16
Definition pixfmt.h:603
#define AV_PIX_FMT_YUVA422P16
Definition pixfmt.h:602
#define AV_PIX_FMT_GBRP16
Definition pixfmt.h:567
#define AV_PIX_FMT_YUV444P14
Definition pixfmt.h:555
#define AV_PIX_FMT_YUVA444P9
Definition pixfmt.h:595
#define AV_PIX_FMT_GBRP14
Definition pixfmt.h:566
#define AV_PIX_FMT_YUVA444P12
Definition pixfmt.h:600
#define AV_PIX_FMT_GBRAPF32
Definition pixfmt.h:585
#define AV_PIX_FMT_YUV444P16
Definition pixfmt.h:558
#define AV_PIX_FMT_YUV444P10
Definition pixfmt.h:548
An instance of a filter.
Definition avfilter.h:273
void * priv
private data for use by the filter
Definition avfilter.h:288
A filter pad used for either input or output.
Definition filters.h:40
This structure describes decoded (raw) audio or video data.
Definition frame.h:472
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
Definition frame.h:493
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:517
AVOption.
Definition opt.h:428
Descriptor that unambiguously describes how the bits of a pixel are stored in the up to 4 data planes...
Definition pixdesc.h:69
Used for passing data between threads.
Definition dsddec.c:71
#define av_malloc_array(a, b)
#define av_freep(p)
#define src
Definition vp8dsp.c:248
static char buffer[20]
Definition seek.c:32
#define height
Definition dsp.h:89
#define width
Definition dsp.h:89
static int filter_horizontally(AVFilterContext *ctx, int width, int height)
Definition vf_dblur.c:59
static av_unused void ff_gblur_init(GBlurContext *s)
const AVFilterPad ff_video_default_filterpad[1]
An AVFilterPad array whose only entry has name "default" and is of type AVMEDIA_TYPE_VIDEO.
Definition video.c:37
AVFrame * ff_get_video_buffer(AVFilterLink *link, int w, int h)
Request a picture buffer with a specific set of permissions.
Definition video.c:89
static int slice_start(SliceContext *sc, VVCContext *s, VVCFrameContext *fc, const CodedBitstreamUnit *unit, const int is_first_slice)
Definition dec.c:844