]> git.sesse.net Git - ffmpeg/blob - libavfilter/vsrc_testsrc.c
h264: (trivial) make ff_h264_lps_state static
[ffmpeg] / libavfilter / vsrc_testsrc.c
1 /*
2  * Copyright (c) 2007 Nicolas George <nicolas.george@normalesup.org>
3  * Copyright (c) 2011 Stefano Sabatini
4  *
5  * This file is part of FFmpeg.
6  *
7  * FFmpeg is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * FFmpeg is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with FFmpeg; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20  */
21
22 /**
23  * @file
24  * Misc test sources.
25  *
26  * testsrc is based on the test pattern generator demuxer by Nicolas George:
27  * http://lists.ffmpeg.org/pipermail/ffmpeg-devel/2007-October/037845.html
28  *
29  * rgbtestsrc is ported from MPlayer libmpcodecs/vf_rgbtest.c by
30  * Michael Niedermayer.
31  */
32
33 #include <float.h>
34
35 #include "libavutil/opt.h"
36 #include "libavutil/intreadwrite.h"
37 #include "libavutil/parseutils.h"
38 #include "avfilter.h"
39
40 typedef struct {
41     const AVClass *class;
42     int h, w;
43     unsigned int nb_frame;
44     AVRational time_base;
45     int64_t pts, max_pts;
46     char *size;                 ///< video frame size
47     char *rate;                 ///< video frame rate
48     char *duration;             ///< total duration of the generated video
49     AVRational sar;             ///< sample aspect ratio
50     int nb_decimals;
51
52     void (* fill_picture_fn)(AVFilterContext *ctx, AVFilterBufferRef *picref);
53
54     /* only used by rgbtest */
55     int rgba_map[4];
56 } TestSourceContext;
57
58 #define OFFSET(x) offsetof(TestSourceContext, x)
59
60 static const AVOption testsrc_options[]= {
61     { "size",     "set video size",     OFFSET(size),     AV_OPT_TYPE_STRING, {.str = "320x240"}, 0, 0 },
62     { "s",        "set video size",     OFFSET(size),     AV_OPT_TYPE_STRING, {.str = "320x240"}, 0, 0 },
63     { "rate",     "set video rate",     OFFSET(rate),     AV_OPT_TYPE_STRING, {.str = "25"},      0, 0 },
64     { "r",        "set video rate",     OFFSET(rate),     AV_OPT_TYPE_STRING, {.str = "25"},      0, 0 },
65     { "duration", "set video duration", OFFSET(duration), AV_OPT_TYPE_STRING, {.str = NULL},      0, 0 },
66     { "d",        "set video duration", OFFSET(duration), AV_OPT_TYPE_STRING, {.str = NULL},      0, 0 },
67     { "sar",      "set video sample aspect ratio", OFFSET(sar), AV_OPT_TYPE_RATIONAL, {.dbl= 1},  0, INT_MAX },
68     { "decimals", "set number of decimals to show", OFFSET(nb_decimals), AV_OPT_TYPE_INT, {.dbl=0},  INT_MIN, INT_MAX },
69     { "n",        "set number of decimals to show", OFFSET(nb_decimals), AV_OPT_TYPE_INT, {.dbl=0},  INT_MIN, INT_MAX },
70     { NULL },
71 };
72
73 static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
74 {
75     TestSourceContext *test = ctx->priv;
76     AVRational frame_rate_q;
77     int64_t duration = -1;
78     int ret = 0;
79
80     av_opt_set_defaults(test);
81
82     if ((ret = (av_set_options_string(test, args, "=", ":"))) < 0) {
83         av_log(ctx, AV_LOG_ERROR, "Error parsing options string: '%s'\n", args);
84         return ret;
85     }
86
87     if ((ret = av_parse_video_size(&test->w, &test->h, test->size)) < 0) {
88         av_log(ctx, AV_LOG_ERROR, "Invalid frame size: '%s'\n", test->size);
89         return ret;
90     }
91     av_freep(&test->size);
92
93     if ((ret = av_parse_video_rate(&frame_rate_q, test->rate)) < 0 ||
94         frame_rate_q.den <= 0 || frame_rate_q.num <= 0) {
95         av_log(ctx, AV_LOG_ERROR, "Invalid frame rate: '%s'\n", test->rate);
96         return ret;
97     }
98     av_freep(&test->rate);
99
100     if ((test->duration) && (ret = av_parse_time(&duration, test->duration, 1)) < 0) {
101         av_log(ctx, AV_LOG_ERROR, "Invalid duration: '%s'\n", test->duration);
102         return ret;
103     }
104     av_freep(&test->duration);
105
106     if (test->nb_decimals && strcmp(ctx->filter->name, "testsrc")) {
107         av_log(ctx, AV_LOG_WARNING,
108                "Option 'decimals' is ignored with source '%s'\n",
109                ctx->filter->name);
110     }
111
112     test->time_base.num = frame_rate_q.den;
113     test->time_base.den = frame_rate_q.num;
114     test->max_pts = duration >= 0 ?
115         av_rescale_q(duration, AV_TIME_BASE_Q, test->time_base) : -1;
116     test->nb_frame = 0;
117     test->pts = 0;
118
119     av_log(ctx, AV_LOG_INFO, "size:%dx%d rate:%d/%d duration:%f sar:%d/%d\n",
120            test->w, test->h, frame_rate_q.num, frame_rate_q.den,
121            duration < 0 ? -1 : test->max_pts * av_q2d(test->time_base),
122            test->sar.num, test->sar.den);
123     return 0;
124 }
125
126 static int config_props(AVFilterLink *outlink)
127 {
128     TestSourceContext *test = outlink->src->priv;
129
130     outlink->w = test->w;
131     outlink->h = test->h;
132     outlink->sample_aspect_ratio = test->sar;
133     outlink->time_base = test->time_base;
134
135     return 0;
136 }
137
138 static int request_frame(AVFilterLink *outlink)
139 {
140     TestSourceContext *test = outlink->src->priv;
141     AVFilterBufferRef *picref;
142
143     if (test->max_pts >= 0 && test->pts >= test->max_pts)
144         return AVERROR_EOF;
145     picref = avfilter_get_video_buffer(outlink, AV_PERM_WRITE,
146                                        test->w, test->h);
147     picref->pts = test->pts++;
148     picref->pos = -1;
149     picref->video->key_frame = 1;
150     picref->video->interlaced = 0;
151     picref->video->pict_type = AV_PICTURE_TYPE_I;
152     picref->video->sample_aspect_ratio = test->sar;
153     test->fill_picture_fn(outlink->src, picref);
154     test->nb_frame++;
155
156     avfilter_start_frame(outlink, avfilter_ref_buffer(picref, ~0));
157     avfilter_draw_slice(outlink, 0, picref->video->h, 1);
158     avfilter_end_frame(outlink);
159     avfilter_unref_buffer(picref);
160
161     return 0;
162 }
163
164 #if CONFIG_NULLSRC_FILTER
165
166 static const char *nullsrc_get_name(void *ctx)
167 {
168     return "nullsrc";
169 }
170
171 static const AVClass nullsrc_class = {
172     .class_name = "NullSourceContext",
173     .item_name  = nullsrc_get_name,
174     .option     = testsrc_options,
175 };
176
177 static void nullsrc_fill_picture(AVFilterContext *ctx, AVFilterBufferRef *picref) { }
178
179 static av_cold int nullsrc_init(AVFilterContext *ctx, const char *args, void *opaque)
180 {
181     TestSourceContext *test = ctx->priv;
182
183     test->class = &nullsrc_class;
184     test->fill_picture_fn = nullsrc_fill_picture;
185     return init(ctx, args, opaque);
186 }
187
188 AVFilter avfilter_vsrc_nullsrc = {
189     .name        = "nullsrc",
190     .description = NULL_IF_CONFIG_SMALL("Null video source, return unprocessed video frames."),
191     .init       = nullsrc_init,
192     .priv_size  = sizeof(TestSourceContext),
193
194     .inputs    = (const AVFilterPad[]) {{ .name = NULL}},
195     .outputs   = (const AVFilterPad[]) {{ .name = "default",
196                                     .type = AVMEDIA_TYPE_VIDEO,
197                                     .request_frame = request_frame,
198                                     .config_props  = config_props, },
199                                   { .name = NULL}},
200 };
201
202 #endif /* CONFIG_NULLSRC_FILTER */
203
204 #if CONFIG_TESTSRC_FILTER
205
206 static const char *testsrc_get_name(void *ctx)
207 {
208     return "testsrc";
209 }
210
211 static const AVClass testsrc_class = {
212     .class_name = "TestSourceContext",
213     .item_name  = testsrc_get_name,
214     .option     = testsrc_options,
215 };
216
217 /**
218  * Fill a rectangle with value val.
219  *
220  * @param val the RGB value to set
221  * @param dst pointer to the destination buffer to fill
222  * @param dst_linesize linesize of destination
223  * @param segment_width width of the segment
224  * @param x horizontal coordinate where to draw the rectangle in the destination buffer
225  * @param y horizontal coordinate where to draw the rectangle in the destination buffer
226  * @param w width  of the rectangle to draw, expressed as a number of segment_width units
227  * @param h height of the rectangle to draw, expressed as a number of segment_width units
228  */
229 static void draw_rectangle(unsigned val, uint8_t *dst, int dst_linesize, unsigned segment_width,
230                            unsigned x, unsigned y, unsigned w, unsigned h)
231 {
232     int i;
233     int step = 3;
234
235     dst += segment_width * (step * x + y * dst_linesize);
236     w *= segment_width * step;
237     h *= segment_width;
238     for (i = 0; i < h; i++) {
239         memset(dst, val, w);
240         dst += dst_linesize;
241     }
242 }
243
244 static void draw_digit(int digit, uint8_t *dst, unsigned dst_linesize,
245                        unsigned segment_width)
246 {
247 #define TOP_HBAR        1
248 #define MID_HBAR        2
249 #define BOT_HBAR        4
250 #define LEFT_TOP_VBAR   8
251 #define LEFT_BOT_VBAR  16
252 #define RIGHT_TOP_VBAR 32
253 #define RIGHT_BOT_VBAR 64
254     struct {
255         int x, y, w, h;
256     } segments[] = {
257         { 1,  0, 5, 1 }, /* TOP_HBAR */
258         { 1,  6, 5, 1 }, /* MID_HBAR */
259         { 1, 12, 5, 1 }, /* BOT_HBAR */
260         { 0,  1, 1, 5 }, /* LEFT_TOP_VBAR */
261         { 0,  7, 1, 5 }, /* LEFT_BOT_VBAR */
262         { 6,  1, 1, 5 }, /* RIGHT_TOP_VBAR */
263         { 6,  7, 1, 5 }  /* RIGHT_BOT_VBAR */
264     };
265     static const unsigned char masks[10] = {
266         /* 0 */ TOP_HBAR         |BOT_HBAR|LEFT_TOP_VBAR|LEFT_BOT_VBAR|RIGHT_TOP_VBAR|RIGHT_BOT_VBAR,
267         /* 1 */                                                        RIGHT_TOP_VBAR|RIGHT_BOT_VBAR,
268         /* 2 */ TOP_HBAR|MID_HBAR|BOT_HBAR|LEFT_BOT_VBAR                             |RIGHT_TOP_VBAR,
269         /* 3 */ TOP_HBAR|MID_HBAR|BOT_HBAR                            |RIGHT_TOP_VBAR|RIGHT_BOT_VBAR,
270         /* 4 */          MID_HBAR         |LEFT_TOP_VBAR              |RIGHT_TOP_VBAR|RIGHT_BOT_VBAR,
271         /* 5 */ TOP_HBAR|BOT_HBAR|MID_HBAR|LEFT_TOP_VBAR                             |RIGHT_BOT_VBAR,
272         /* 6 */ TOP_HBAR|BOT_HBAR|MID_HBAR|LEFT_TOP_VBAR|LEFT_BOT_VBAR               |RIGHT_BOT_VBAR,
273         /* 7 */ TOP_HBAR                                              |RIGHT_TOP_VBAR|RIGHT_BOT_VBAR,
274         /* 8 */ TOP_HBAR|BOT_HBAR|MID_HBAR|LEFT_TOP_VBAR|LEFT_BOT_VBAR|RIGHT_TOP_VBAR|RIGHT_BOT_VBAR,
275         /* 9 */ TOP_HBAR|BOT_HBAR|MID_HBAR|LEFT_TOP_VBAR              |RIGHT_TOP_VBAR|RIGHT_BOT_VBAR,
276     };
277     unsigned mask = masks[digit];
278     int i;
279
280     draw_rectangle(0, dst, dst_linesize, segment_width, 0, 0, 8, 13);
281     for (i = 0; i < FF_ARRAY_ELEMS(segments); i++)
282         if (mask & (1<<i))
283             draw_rectangle(255, dst, dst_linesize, segment_width,
284                            segments[i].x, segments[i].y, segments[i].w, segments[i].h);
285 }
286
287 #define GRADIENT_SIZE (6 * 256)
288
289 static void test_fill_picture(AVFilterContext *ctx, AVFilterBufferRef *picref)
290 {
291     TestSourceContext *test = ctx->priv;
292     uint8_t *p, *p0;
293     int x, y;
294     int color, color_rest;
295     int icolor;
296     int radius;
297     int quad0, quad;
298     int dquad_x, dquad_y;
299     int grad, dgrad, rgrad, drgrad;
300     int seg_size;
301     int second;
302     int i;
303     uint8_t *data = picref->data[0];
304     int width  = picref->video->w;
305     int height = picref->video->h;
306
307     /* draw colored bars and circle */
308     radius = (width + height) / 4;
309     quad0 = width * width / 4 + height * height / 4 - radius * radius;
310     dquad_y = 1 - height;
311     p0 = data;
312     for (y = 0; y < height; y++) {
313         p = p0;
314         color = 0;
315         color_rest = 0;
316         quad = quad0;
317         dquad_x = 1 - width;
318         for (x = 0; x < width; x++) {
319             icolor = color;
320             if (quad < 0)
321                 icolor ^= 7;
322             quad += dquad_x;
323             dquad_x += 2;
324             *(p++) = icolor & 1 ? 255 : 0;
325             *(p++) = icolor & 2 ? 255 : 0;
326             *(p++) = icolor & 4 ? 255 : 0;
327             color_rest += 8;
328             if (color_rest >= width) {
329                 color_rest -= width;
330                 color++;
331             }
332         }
333         quad0 += dquad_y;
334         dquad_y += 2;
335         p0 += picref->linesize[0];
336     }
337
338     /* draw sliding color line */
339     p0 = p = data + picref->linesize[0] * height * 3/4;
340     grad = (256 * test->nb_frame * test->time_base.num / test->time_base.den) %
341         GRADIENT_SIZE;
342     rgrad = 0;
343     dgrad = GRADIENT_SIZE / width;
344     drgrad = GRADIENT_SIZE % width;
345     for (x = 0; x < width; x++) {
346         *(p++) =
347             grad < 256 || grad >= 5 * 256 ? 255 :
348             grad >= 2 * 256 && grad < 4 * 256 ? 0 :
349             grad < 2 * 256 ? 2 * 256 - 1 - grad : grad - 4 * 256;
350         *(p++) =
351             grad >= 4 * 256 ? 0 :
352             grad >= 1 * 256 && grad < 3 * 256 ? 255 :
353             grad < 1 * 256 ? grad : 4 * 256 - 1 - grad;
354         *(p++) =
355             grad < 2 * 256 ? 0 :
356             grad >= 3 * 256 && grad < 5 * 256 ? 255 :
357             grad < 3 * 256 ? grad - 2 * 256 : 6 * 256 - 1 - grad;
358         grad += dgrad;
359         rgrad += drgrad;
360         if (rgrad >= GRADIENT_SIZE) {
361             grad++;
362             rgrad -= GRADIENT_SIZE;
363         }
364         if (grad >= GRADIENT_SIZE)
365             grad -= GRADIENT_SIZE;
366     }
367     p = p0;
368     for (y = height / 8; y > 0; y--) {
369         memcpy(p+picref->linesize[0], p, 3 * width);
370         p += picref->linesize[0];
371     }
372
373     /* draw digits */
374     seg_size = width / 80;
375     if (seg_size >= 1 && height >= 13 * seg_size) {
376         double time = av_q2d(test->time_base) * test->nb_frame *
377                       pow(10, test->nb_decimals);
378         if (time > INT_MAX)
379             return;
380         second = (int)time;
381         x = width - (width - seg_size * 64) / 2;
382         y = (height - seg_size * 13) / 2;
383         p = data + (x*3 + y * picref->linesize[0]);
384         for (i = 0; i < 8; i++) {
385             p -= 3 * 8 * seg_size;
386             draw_digit(second % 10, p, picref->linesize[0], seg_size);
387             second /= 10;
388             if (second == 0)
389                 break;
390         }
391     }
392 }
393
394 static av_cold int test_init(AVFilterContext *ctx, const char *args, void *opaque)
395 {
396     TestSourceContext *test = ctx->priv;
397
398     test->class = &testsrc_class;
399     test->fill_picture_fn = test_fill_picture;
400     return init(ctx, args, opaque);
401 }
402
403 static int test_query_formats(AVFilterContext *ctx)
404 {
405     static const enum PixelFormat pix_fmts[] = {
406         PIX_FMT_RGB24, PIX_FMT_NONE
407     };
408     avfilter_set_common_pixel_formats(ctx, avfilter_make_format_list(pix_fmts));
409     return 0;
410 }
411
412 AVFilter avfilter_vsrc_testsrc = {
413     .name      = "testsrc",
414     .description = NULL_IF_CONFIG_SMALL("Generate test pattern."),
415     .priv_size = sizeof(TestSourceContext),
416     .init      = test_init,
417
418     .query_formats   = test_query_formats,
419
420     .inputs    = (const AVFilterPad[]) {{ .name = NULL}},
421
422     .outputs   = (const AVFilterPad[]) {{ .name = "default",
423                                     .type = AVMEDIA_TYPE_VIDEO,
424                                     .request_frame = request_frame,
425                                     .config_props  = config_props, },
426                                   { .name = NULL }},
427 };
428
429 #endif /* CONFIG_TESTSRC_FILTER */
430
431 #if CONFIG_RGBTESTSRC_FILTER
432
433 static const char *rgbtestsrc_get_name(void *ctx)
434 {
435     return "rgbtestsrc";
436 }
437
438 static const AVClass rgbtestsrc_class = {
439     .class_name = "RGBTestSourceContext",
440     .item_name  = rgbtestsrc_get_name,
441     .option     = testsrc_options,
442 };
443
444 #define R 0
445 #define G 1
446 #define B 2
447 #define A 3
448
449 static void rgbtest_put_pixel(uint8_t *dst, int dst_linesize,
450                               int x, int y, int r, int g, int b, enum PixelFormat fmt,
451                               int rgba_map[4])
452 {
453     int32_t v;
454     uint8_t *p;
455
456     switch (fmt) {
457     case PIX_FMT_BGR444: ((uint16_t*)(dst + y*dst_linesize))[x] = ((r >> 4) << 8) | ((g >> 4) << 4) | (b >> 4); break;
458     case PIX_FMT_RGB444: ((uint16_t*)(dst + y*dst_linesize))[x] = ((b >> 4) << 8) | ((g >> 4) << 4) | (r >> 4); break;
459     case PIX_FMT_BGR555: ((uint16_t*)(dst + y*dst_linesize))[x] = ((r>>3)<<10) | ((g>>3)<<5) | (b>>3); break;
460     case PIX_FMT_RGB555: ((uint16_t*)(dst + y*dst_linesize))[x] = ((b>>3)<<10) | ((g>>3)<<5) | (r>>3); break;
461     case PIX_FMT_BGR565: ((uint16_t*)(dst + y*dst_linesize))[x] = ((r>>3)<<11) | ((g>>2)<<5) | (b>>3); break;
462     case PIX_FMT_RGB565: ((uint16_t*)(dst + y*dst_linesize))[x] = ((b>>3)<<11) | ((g>>2)<<5) | (r>>3); break;
463     case PIX_FMT_RGB24:
464     case PIX_FMT_BGR24:
465         v = (r << (rgba_map[R]*8)) + (g << (rgba_map[G]*8)) + (b << (rgba_map[B]*8));
466         p = dst + 3*x + y*dst_linesize;
467         AV_WL24(p, v);
468         break;
469     case PIX_FMT_RGBA:
470     case PIX_FMT_BGRA:
471     case PIX_FMT_ARGB:
472     case PIX_FMT_ABGR:
473         v = (r << (rgba_map[R]*8)) + (g << (rgba_map[G]*8)) + (b << (rgba_map[B]*8)) + (255 << (rgba_map[A]*8));
474         p = dst + 4*x + y*dst_linesize;
475         AV_WL32(p, v);
476         break;
477     }
478 }
479
480 static void rgbtest_fill_picture(AVFilterContext *ctx, AVFilterBufferRef *picref)
481 {
482     TestSourceContext *test = ctx->priv;
483     int x, y, w = picref->video->w, h = picref->video->h;
484
485     for (y = 0; y < h; y++) {
486          for (x = 0; x < picref->video->w; x++) {
487              int c = 256*x/w;
488              int r = 0, g = 0, b = 0;
489
490              if      (3*y < h  ) r = c;
491              else if (3*y < 2*h) g = c;
492              else                b = c;
493
494              rgbtest_put_pixel(picref->data[0], picref->linesize[0], x, y, r, g, b,
495                                ctx->outputs[0]->format, test->rgba_map);
496          }
497      }
498 }
499
500 static av_cold int rgbtest_init(AVFilterContext *ctx, const char *args, void *opaque)
501 {
502     TestSourceContext *test = ctx->priv;
503
504     test->class = &rgbtestsrc_class;
505     test->fill_picture_fn = rgbtest_fill_picture;
506     return init(ctx, args, opaque);
507 }
508
509 static int rgbtest_query_formats(AVFilterContext *ctx)
510 {
511     static const enum PixelFormat pix_fmts[] = {
512         PIX_FMT_RGBA, PIX_FMT_ARGB, PIX_FMT_BGRA, PIX_FMT_ABGR,
513         PIX_FMT_BGR24, PIX_FMT_RGB24,
514         PIX_FMT_RGB444, PIX_FMT_BGR444,
515         PIX_FMT_RGB565, PIX_FMT_BGR565,
516         PIX_FMT_RGB555, PIX_FMT_BGR555,
517         PIX_FMT_NONE
518     };
519     avfilter_set_common_pixel_formats(ctx, avfilter_make_format_list(pix_fmts));
520     return 0;
521 }
522
523 static int rgbtest_config_props(AVFilterLink *outlink)
524 {
525     TestSourceContext *test = outlink->src->priv;
526
527     switch (outlink->format) {
528     case PIX_FMT_ARGB:  test->rgba_map[A] = 0; test->rgba_map[R] = 1; test->rgba_map[G] = 2; test->rgba_map[B] = 3; break;
529     case PIX_FMT_ABGR:  test->rgba_map[A] = 0; test->rgba_map[B] = 1; test->rgba_map[G] = 2; test->rgba_map[R] = 3; break;
530     case PIX_FMT_RGBA:
531     case PIX_FMT_RGB24: test->rgba_map[R] = 0; test->rgba_map[G] = 1; test->rgba_map[B] = 2; test->rgba_map[A] = 3; break;
532     case PIX_FMT_BGRA:
533     case PIX_FMT_BGR24: test->rgba_map[B] = 0; test->rgba_map[G] = 1; test->rgba_map[R] = 2; test->rgba_map[A] = 3; break;
534     }
535
536     return config_props(outlink);
537 }
538
539 AVFilter avfilter_vsrc_rgbtestsrc = {
540     .name      = "rgbtestsrc",
541     .description = NULL_IF_CONFIG_SMALL("Generate RGB test pattern."),
542     .priv_size = sizeof(TestSourceContext),
543     .init      = rgbtest_init,
544
545     .query_formats   = rgbtest_query_formats,
546
547     .inputs    = (const AVFilterPad[]) {{ .name = NULL}},
548
549     .outputs   = (const AVFilterPad[]) {{ .name = "default",
550                                     .type = AVMEDIA_TYPE_VIDEO,
551                                     .request_frame = request_frame,
552                                     .config_props  = rgbtest_config_props, },
553                                   { .name = NULL }},
554 };
555
556 #endif /* CONFIG_RGBTESTSRC_FILTER */