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.

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