You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

542 lines
18KB

  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. * @file
  23. * Misc test sources.
  24. *
  25. * testsrc is based on the test pattern generator demuxer by Nicolas George:
  26. * http://lists.ffmpeg.org/pipermail/ffmpeg-devel/2007-October/037845.html
  27. *
  28. * rgbtestsrc is ported from MPlayer libmpcodecs/vf_rgbtest.c by
  29. * Michael Niedermayer.
  30. */
  31. #include <float.h>
  32. #include "libavutil/opt.h"
  33. #include "libavutil/intreadwrite.h"
  34. #include "libavutil/parseutils.h"
  35. #include "avfilter.h"
  36. #include "formats.h"
  37. #include "internal.h"
  38. #include "video.h"
  39. typedef struct {
  40. const AVClass *class;
  41. int w, h;
  42. unsigned int nb_frame;
  43. AVRational time_base;
  44. int64_t pts, max_pts;
  45. char *rate; ///< video frame rate
  46. char *duration; ///< total duration of the generated video
  47. AVRational sar; ///< sample aspect ratio
  48. int nb_decimals;
  49. void (* fill_picture_fn)(AVFilterContext *ctx, AVFilterBufferRef *picref);
  50. /* only used by rgbtest */
  51. int rgba_map[4];
  52. } TestSourceContext;
  53. #define OFFSET(x) offsetof(TestSourceContext, x)
  54. static const AVOption testsrc_options[]= {
  55. { "size", "set video size", OFFSET(w), AV_OPT_TYPE_IMAGE_SIZE, {.str = "320x240"}, 0, 0 },
  56. { "s", "set video size", OFFSET(w), AV_OPT_TYPE_IMAGE_SIZE, {.str = "320x240"}, 0, 0 },
  57. { "rate", "set video rate", OFFSET(rate), AV_OPT_TYPE_STRING, {.str = "25"}, 0, 0 },
  58. { "r", "set video rate", OFFSET(rate), AV_OPT_TYPE_STRING, {.str = "25"}, 0, 0 },
  59. { "duration", "set video duration", OFFSET(duration), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0 },
  60. { "d", "set video duration", OFFSET(duration), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0 },
  61. { "sar", "set video sample aspect ratio", OFFSET(sar), AV_OPT_TYPE_RATIONAL, {.dbl= 1}, 0, INT_MAX },
  62. /* only used by testsrc */
  63. { "decimals", "set number of decimals to show", OFFSET(nb_decimals), AV_OPT_TYPE_INT, {.dbl=0}, INT_MIN, INT_MAX },
  64. { "n", "set number of decimals to show", OFFSET(nb_decimals), AV_OPT_TYPE_INT, {.dbl=0}, INT_MIN, INT_MAX },
  65. { NULL },
  66. };
  67. static av_cold int init(AVFilterContext *ctx, const char *args)
  68. {
  69. TestSourceContext *test = ctx->priv;
  70. AVRational frame_rate_q;
  71. int64_t duration = -1;
  72. int ret = 0;
  73. av_opt_set_defaults(test);
  74. if ((ret = (av_set_options_string(test, args, "=", ":"))) < 0) {
  75. av_log(ctx, AV_LOG_ERROR, "Error parsing options string: '%s'\n", args);
  76. return ret;
  77. }
  78. if ((ret = av_parse_video_rate(&frame_rate_q, test->rate)) < 0) {
  79. av_log(ctx, AV_LOG_ERROR, "Invalid frame rate: '%s'\n", test->rate);
  80. return ret;
  81. }
  82. av_freep(&test->rate);
  83. if ((test->duration) && (ret = av_parse_time(&duration, test->duration, 1)) < 0) {
  84. av_log(ctx, AV_LOG_ERROR, "Invalid duration: '%s'\n", test->duration);
  85. return ret;
  86. }
  87. av_freep(&test->duration);
  88. if (test->nb_decimals && strcmp(ctx->filter->name, "testsrc")) {
  89. av_log(ctx, AV_LOG_WARNING,
  90. "Option 'decimals' is ignored with source '%s'\n",
  91. ctx->filter->name);
  92. }
  93. test->time_base.num = frame_rate_q.den;
  94. test->time_base.den = frame_rate_q.num;
  95. test->max_pts = duration >= 0 ?
  96. av_rescale_q(duration, AV_TIME_BASE_Q, test->time_base) : -1;
  97. test->nb_frame = 0;
  98. test->pts = 0;
  99. av_log(ctx, AV_LOG_VERBOSE, "size:%dx%d rate:%d/%d duration:%f sar:%d/%d\n",
  100. test->w, test->h, frame_rate_q.num, frame_rate_q.den,
  101. duration < 0 ? -1 : test->max_pts * av_q2d(test->time_base),
  102. test->sar.num, test->sar.den);
  103. return 0;
  104. }
  105. static int config_props(AVFilterLink *outlink)
  106. {
  107. TestSourceContext *test = outlink->src->priv;
  108. outlink->w = test->w;
  109. outlink->h = test->h;
  110. outlink->sample_aspect_ratio = test->sar;
  111. outlink->time_base = test->time_base;
  112. return 0;
  113. }
  114. static int request_frame(AVFilterLink *outlink)
  115. {
  116. TestSourceContext *test = outlink->src->priv;
  117. AVFilterBufferRef *picref;
  118. int ret;
  119. if (test->max_pts >= 0 && test->pts >= test->max_pts)
  120. return AVERROR_EOF;
  121. picref = ff_get_video_buffer(outlink, AV_PERM_WRITE, test->w, test->h);
  122. if (!picref)
  123. return AVERROR(ENOMEM);
  124. picref->pts = test->pts++;
  125. picref->pos = -1;
  126. picref->video->key_frame = 1;
  127. picref->video->interlaced = 0;
  128. picref->video->pict_type = AV_PICTURE_TYPE_I;
  129. picref->video->sample_aspect_ratio = test->sar;
  130. test->fill_picture_fn(outlink->src, picref);
  131. test->nb_frame++;
  132. if ((ret = ff_start_frame(outlink, picref)) < 0 ||
  133. (ret = ff_draw_slice(outlink, 0, test->h, 1)) < 0 ||
  134. (ret = ff_end_frame(outlink)) < 0)
  135. return ret;
  136. return 0;
  137. }
  138. #if CONFIG_NULLSRC_FILTER
  139. static const AVClass nullsrc_class = {
  140. .class_name = "nullsrc",
  141. .item_name = av_default_item_name,
  142. .option = testsrc_options,
  143. .version = LIBAVUTIL_VERSION_INT,
  144. .category = AV_CLASS_CATEGORY_FILTER,
  145. };
  146. static void nullsrc_fill_picture(AVFilterContext *ctx, AVFilterBufferRef *picref) { }
  147. static av_cold int nullsrc_init(AVFilterContext *ctx, const char *args)
  148. {
  149. TestSourceContext *test = ctx->priv;
  150. test->class = &nullsrc_class;
  151. test->fill_picture_fn = nullsrc_fill_picture;
  152. return init(ctx, args);
  153. }
  154. AVFilter avfilter_vsrc_nullsrc = {
  155. .name = "nullsrc",
  156. .description = NULL_IF_CONFIG_SMALL("Null video source, return unprocessed video frames."),
  157. .init = nullsrc_init,
  158. .priv_size = sizeof(TestSourceContext),
  159. .inputs = (const AVFilterPad[]) {{ .name = NULL}},
  160. .outputs = (const AVFilterPad[]) {{ .name = "default",
  161. .type = AVMEDIA_TYPE_VIDEO,
  162. .request_frame = request_frame,
  163. .config_props = config_props, },
  164. { .name = NULL}},
  165. };
  166. #endif /* CONFIG_NULLSRC_FILTER */
  167. #if CONFIG_TESTSRC_FILTER
  168. AVFILTER_DEFINE_CLASS(testsrc);
  169. /**
  170. * Fill a rectangle with value val.
  171. *
  172. * @param val the RGB value to set
  173. * @param dst pointer to the destination buffer to fill
  174. * @param dst_linesize linesize of destination
  175. * @param segment_width width of the segment
  176. * @param x horizontal coordinate where to draw the rectangle in the destination buffer
  177. * @param y horizontal coordinate where to draw the rectangle in the destination buffer
  178. * @param w width of the rectangle to draw, expressed as a number of segment_width units
  179. * @param h height of the rectangle to draw, expressed as a number of segment_width units
  180. */
  181. static void draw_rectangle(unsigned val, uint8_t *dst, int dst_linesize, unsigned segment_width,
  182. unsigned x, unsigned y, unsigned w, unsigned h)
  183. {
  184. int i;
  185. int step = 3;
  186. dst += segment_width * (step * x + y * dst_linesize);
  187. w *= segment_width * step;
  188. h *= segment_width;
  189. for (i = 0; i < h; i++) {
  190. memset(dst, val, w);
  191. dst += dst_linesize;
  192. }
  193. }
  194. static void draw_digit(int digit, uint8_t *dst, unsigned dst_linesize,
  195. unsigned segment_width)
  196. {
  197. #define TOP_HBAR 1
  198. #define MID_HBAR 2
  199. #define BOT_HBAR 4
  200. #define LEFT_TOP_VBAR 8
  201. #define LEFT_BOT_VBAR 16
  202. #define RIGHT_TOP_VBAR 32
  203. #define RIGHT_BOT_VBAR 64
  204. struct {
  205. int x, y, w, h;
  206. } segments[] = {
  207. { 1, 0, 5, 1 }, /* TOP_HBAR */
  208. { 1, 6, 5, 1 }, /* MID_HBAR */
  209. { 1, 12, 5, 1 }, /* BOT_HBAR */
  210. { 0, 1, 1, 5 }, /* LEFT_TOP_VBAR */
  211. { 0, 7, 1, 5 }, /* LEFT_BOT_VBAR */
  212. { 6, 1, 1, 5 }, /* RIGHT_TOP_VBAR */
  213. { 6, 7, 1, 5 } /* RIGHT_BOT_VBAR */
  214. };
  215. static const unsigned char masks[10] = {
  216. /* 0 */ TOP_HBAR |BOT_HBAR|LEFT_TOP_VBAR|LEFT_BOT_VBAR|RIGHT_TOP_VBAR|RIGHT_BOT_VBAR,
  217. /* 1 */ RIGHT_TOP_VBAR|RIGHT_BOT_VBAR,
  218. /* 2 */ TOP_HBAR|MID_HBAR|BOT_HBAR|LEFT_BOT_VBAR |RIGHT_TOP_VBAR,
  219. /* 3 */ TOP_HBAR|MID_HBAR|BOT_HBAR |RIGHT_TOP_VBAR|RIGHT_BOT_VBAR,
  220. /* 4 */ MID_HBAR |LEFT_TOP_VBAR |RIGHT_TOP_VBAR|RIGHT_BOT_VBAR,
  221. /* 5 */ TOP_HBAR|BOT_HBAR|MID_HBAR|LEFT_TOP_VBAR |RIGHT_BOT_VBAR,
  222. /* 6 */ TOP_HBAR|BOT_HBAR|MID_HBAR|LEFT_TOP_VBAR|LEFT_BOT_VBAR |RIGHT_BOT_VBAR,
  223. /* 7 */ TOP_HBAR |RIGHT_TOP_VBAR|RIGHT_BOT_VBAR,
  224. /* 8 */ TOP_HBAR|BOT_HBAR|MID_HBAR|LEFT_TOP_VBAR|LEFT_BOT_VBAR|RIGHT_TOP_VBAR|RIGHT_BOT_VBAR,
  225. /* 9 */ TOP_HBAR|BOT_HBAR|MID_HBAR|LEFT_TOP_VBAR |RIGHT_TOP_VBAR|RIGHT_BOT_VBAR,
  226. };
  227. unsigned mask = masks[digit];
  228. int i;
  229. draw_rectangle(0, dst, dst_linesize, segment_width, 0, 0, 8, 13);
  230. for (i = 0; i < FF_ARRAY_ELEMS(segments); i++)
  231. if (mask & (1<<i))
  232. draw_rectangle(255, dst, dst_linesize, segment_width,
  233. segments[i].x, segments[i].y, segments[i].w, segments[i].h);
  234. }
  235. #define GRADIENT_SIZE (6 * 256)
  236. static void test_fill_picture(AVFilterContext *ctx, AVFilterBufferRef *picref)
  237. {
  238. TestSourceContext *test = ctx->priv;
  239. uint8_t *p, *p0;
  240. int x, y;
  241. int color, color_rest;
  242. int icolor;
  243. int radius;
  244. int quad0, quad;
  245. int dquad_x, dquad_y;
  246. int grad, dgrad, rgrad, drgrad;
  247. int seg_size;
  248. int second;
  249. int i;
  250. uint8_t *data = picref->data[0];
  251. int width = picref->video->w;
  252. int height = picref->video->h;
  253. /* draw colored bars and circle */
  254. radius = (width + height) / 4;
  255. quad0 = width * width / 4 + height * height / 4 - radius * radius;
  256. dquad_y = 1 - height;
  257. p0 = data;
  258. for (y = 0; y < height; y++) {
  259. p = p0;
  260. color = 0;
  261. color_rest = 0;
  262. quad = quad0;
  263. dquad_x = 1 - width;
  264. for (x = 0; x < width; x++) {
  265. icolor = color;
  266. if (quad < 0)
  267. icolor ^= 7;
  268. quad += dquad_x;
  269. dquad_x += 2;
  270. *(p++) = icolor & 1 ? 255 : 0;
  271. *(p++) = icolor & 2 ? 255 : 0;
  272. *(p++) = icolor & 4 ? 255 : 0;
  273. color_rest += 8;
  274. if (color_rest >= width) {
  275. color_rest -= width;
  276. color++;
  277. }
  278. }
  279. quad0 += dquad_y;
  280. dquad_y += 2;
  281. p0 += picref->linesize[0];
  282. }
  283. /* draw sliding color line */
  284. p0 = p = data + picref->linesize[0] * height * 3/4;
  285. grad = (256 * test->nb_frame * test->time_base.num / test->time_base.den) %
  286. GRADIENT_SIZE;
  287. rgrad = 0;
  288. dgrad = GRADIENT_SIZE / width;
  289. drgrad = GRADIENT_SIZE % width;
  290. for (x = 0; x < width; x++) {
  291. *(p++) =
  292. grad < 256 || grad >= 5 * 256 ? 255 :
  293. grad >= 2 * 256 && grad < 4 * 256 ? 0 :
  294. grad < 2 * 256 ? 2 * 256 - 1 - grad : grad - 4 * 256;
  295. *(p++) =
  296. grad >= 4 * 256 ? 0 :
  297. grad >= 1 * 256 && grad < 3 * 256 ? 255 :
  298. grad < 1 * 256 ? grad : 4 * 256 - 1 - grad;
  299. *(p++) =
  300. grad < 2 * 256 ? 0 :
  301. grad >= 3 * 256 && grad < 5 * 256 ? 255 :
  302. grad < 3 * 256 ? grad - 2 * 256 : 6 * 256 - 1 - grad;
  303. grad += dgrad;
  304. rgrad += drgrad;
  305. if (rgrad >= GRADIENT_SIZE) {
  306. grad++;
  307. rgrad -= GRADIENT_SIZE;
  308. }
  309. if (grad >= GRADIENT_SIZE)
  310. grad -= GRADIENT_SIZE;
  311. }
  312. p = p0;
  313. for (y = height / 8; y > 0; y--) {
  314. memcpy(p+picref->linesize[0], p, 3 * width);
  315. p += picref->linesize[0];
  316. }
  317. /* draw digits */
  318. seg_size = width / 80;
  319. if (seg_size >= 1 && height >= 13 * seg_size) {
  320. double time = av_q2d(test->time_base) * test->nb_frame *
  321. pow(10, test->nb_decimals);
  322. if (time > INT_MAX)
  323. return;
  324. second = (int)time;
  325. x = width - (width - seg_size * 64) / 2;
  326. y = (height - seg_size * 13) / 2;
  327. p = data + (x*3 + y * picref->linesize[0]);
  328. for (i = 0; i < 8; i++) {
  329. p -= 3 * 8 * seg_size;
  330. draw_digit(second % 10, p, picref->linesize[0], seg_size);
  331. second /= 10;
  332. if (second == 0)
  333. break;
  334. }
  335. }
  336. }
  337. static av_cold int test_init(AVFilterContext *ctx, const char *args)
  338. {
  339. TestSourceContext *test = ctx->priv;
  340. test->class = &testsrc_class;
  341. test->fill_picture_fn = test_fill_picture;
  342. return init(ctx, args);
  343. }
  344. static int test_query_formats(AVFilterContext *ctx)
  345. {
  346. static const enum PixelFormat pix_fmts[] = {
  347. PIX_FMT_RGB24, PIX_FMT_NONE
  348. };
  349. ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
  350. return 0;
  351. }
  352. AVFilter avfilter_vsrc_testsrc = {
  353. .name = "testsrc",
  354. .description = NULL_IF_CONFIG_SMALL("Generate test pattern."),
  355. .priv_size = sizeof(TestSourceContext),
  356. .init = test_init,
  357. .query_formats = test_query_formats,
  358. .inputs = (const AVFilterPad[]) {{ .name = NULL}},
  359. .outputs = (const AVFilterPad[]) {{ .name = "default",
  360. .type = AVMEDIA_TYPE_VIDEO,
  361. .request_frame = request_frame,
  362. .config_props = config_props, },
  363. { .name = NULL }},
  364. };
  365. #endif /* CONFIG_TESTSRC_FILTER */
  366. #if CONFIG_RGBTESTSRC_FILTER
  367. static const AVClass rgbtestsrc_class = {
  368. .class_name = "rgbtestsrc",
  369. .item_name = av_default_item_name,
  370. .option = testsrc_options,
  371. .version = LIBAVUTIL_VERSION_INT,
  372. .category = AV_CLASS_CATEGORY_FILTER,
  373. };
  374. #define R 0
  375. #define G 1
  376. #define B 2
  377. #define A 3
  378. static void rgbtest_put_pixel(uint8_t *dst, int dst_linesize,
  379. int x, int y, int r, int g, int b, enum PixelFormat fmt,
  380. int rgba_map[4])
  381. {
  382. int32_t v;
  383. uint8_t *p;
  384. switch (fmt) {
  385. case PIX_FMT_BGR444: ((uint16_t*)(dst + y*dst_linesize))[x] = ((r >> 4) << 8) | ((g >> 4) << 4) | (b >> 4); break;
  386. case PIX_FMT_RGB444: ((uint16_t*)(dst + y*dst_linesize))[x] = ((b >> 4) << 8) | ((g >> 4) << 4) | (r >> 4); break;
  387. case PIX_FMT_BGR555: ((uint16_t*)(dst + y*dst_linesize))[x] = ((r>>3)<<10) | ((g>>3)<<5) | (b>>3); break;
  388. case PIX_FMT_RGB555: ((uint16_t*)(dst + y*dst_linesize))[x] = ((b>>3)<<10) | ((g>>3)<<5) | (r>>3); break;
  389. case PIX_FMT_BGR565: ((uint16_t*)(dst + y*dst_linesize))[x] = ((r>>3)<<11) | ((g>>2)<<5) | (b>>3); break;
  390. case PIX_FMT_RGB565: ((uint16_t*)(dst + y*dst_linesize))[x] = ((b>>3)<<11) | ((g>>2)<<5) | (r>>3); break;
  391. case PIX_FMT_RGB24:
  392. case PIX_FMT_BGR24:
  393. v = (r << (rgba_map[R]*8)) + (g << (rgba_map[G]*8)) + (b << (rgba_map[B]*8));
  394. p = dst + 3*x + y*dst_linesize;
  395. AV_WL24(p, v);
  396. break;
  397. case PIX_FMT_RGBA:
  398. case PIX_FMT_BGRA:
  399. case PIX_FMT_ARGB:
  400. case PIX_FMT_ABGR:
  401. v = (r << (rgba_map[R]*8)) + (g << (rgba_map[G]*8)) + (b << (rgba_map[B]*8)) + (255 << (rgba_map[A]*8));
  402. p = dst + 4*x + y*dst_linesize;
  403. AV_WL32(p, v);
  404. break;
  405. }
  406. }
  407. static void rgbtest_fill_picture(AVFilterContext *ctx, AVFilterBufferRef *picref)
  408. {
  409. TestSourceContext *test = ctx->priv;
  410. int x, y, w = picref->video->w, h = picref->video->h;
  411. for (y = 0; y < h; y++) {
  412. for (x = 0; x < picref->video->w; x++) {
  413. int c = 256*x/w;
  414. int r = 0, g = 0, b = 0;
  415. if (3*y < h ) r = c;
  416. else if (3*y < 2*h) g = c;
  417. else b = c;
  418. rgbtest_put_pixel(picref->data[0], picref->linesize[0], x, y, r, g, b,
  419. ctx->outputs[0]->format, test->rgba_map);
  420. }
  421. }
  422. }
  423. static av_cold int rgbtest_init(AVFilterContext *ctx, const char *args)
  424. {
  425. TestSourceContext *test = ctx->priv;
  426. test->class = &rgbtestsrc_class;
  427. test->fill_picture_fn = rgbtest_fill_picture;
  428. return init(ctx, args);
  429. }
  430. static int rgbtest_query_formats(AVFilterContext *ctx)
  431. {
  432. static const enum PixelFormat pix_fmts[] = {
  433. PIX_FMT_RGBA, PIX_FMT_ARGB, PIX_FMT_BGRA, PIX_FMT_ABGR,
  434. PIX_FMT_BGR24, PIX_FMT_RGB24,
  435. PIX_FMT_RGB444, PIX_FMT_BGR444,
  436. PIX_FMT_RGB565, PIX_FMT_BGR565,
  437. PIX_FMT_RGB555, PIX_FMT_BGR555,
  438. PIX_FMT_NONE
  439. };
  440. ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
  441. return 0;
  442. }
  443. static int rgbtest_config_props(AVFilterLink *outlink)
  444. {
  445. TestSourceContext *test = outlink->src->priv;
  446. switch (outlink->format) {
  447. 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;
  448. 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;
  449. case PIX_FMT_RGBA:
  450. 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;
  451. case PIX_FMT_BGRA:
  452. 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;
  453. }
  454. return config_props(outlink);
  455. }
  456. AVFilter avfilter_vsrc_rgbtestsrc = {
  457. .name = "rgbtestsrc",
  458. .description = NULL_IF_CONFIG_SMALL("Generate RGB test pattern."),
  459. .priv_size = sizeof(TestSourceContext),
  460. .init = rgbtest_init,
  461. .query_formats = rgbtest_query_formats,
  462. .inputs = (const AVFilterPad[]) {{ .name = NULL}},
  463. .outputs = (const AVFilterPad[]) {{ .name = "default",
  464. .type = AVMEDIA_TYPE_VIDEO,
  465. .request_frame = request_frame,
  466. .config_props = rgbtest_config_props, },
  467. { .name = NULL }},
  468. };
  469. #endif /* CONFIG_RGBTESTSRC_FILTER */