--- libavfilter/vsrc_testsrc.c | 36 +++++++++++++++++++++++------------- 1 file changed, 23 insertions(+), 13 deletions(-)
diff --git a/libavfilter/vsrc_testsrc.c b/libavfilter/vsrc_testsrc.c index 3f0da18..72ae16e 100644 --- a/libavfilter/vsrc_testsrc.c +++ b/libavfilter/vsrc_testsrc.c @@ -801,23 +801,33 @@ AVFilter ff_vsrc_rgbtestsrc = { #if CONFIG_SMPTEBARS_FILTER || CONFIG_SMPTEHDBARS_FILTER static const uint8_t rainbow[7][4] = { - { 180, 128, 128, 255 }, /* gray */ - { 168, 44, 136, 255 }, /* yellow */ - { 145, 147, 44, 255 }, /* cyan */ - { 133, 63, 52, 255 }, /* green */ - { 63, 193, 204, 255 }, /* magenta */ - { 51, 109, 212, 255 }, /* red */ - { 28, 212, 120, 255 }, /* blue */ + { 180, 128, 128, 255 }, /* 75% gray */ + { 161, 44, 141, 255 }, /* 75% yellow */ + { 131, 156, 44, 255 }, /* 75% cyan */ + { 112, 72, 57, 255 }, /* 75% green */ + { 83, 183, 198, 255 }, /* 75% magenta */ + { 65, 99, 212, 255 }, /* 75% red */ + { 34, 212, 114, 255 }, /* 75% blue */ +}; + +static const uint8_t rainbowhd[7][4] = { + { 180, 128, 128, 255 }, /* 75% gray */ + { 168, 44, 136, 255 }, /* 75% yellow */ + { 145, 147, 44, 255 }, /* 75% cyan */ + { 133, 63, 52, 255 }, /* 75% green */ + { 63, 193, 204, 255 }, /* 75% magenta */ + { 51, 109, 212, 255 }, /* 75% red */ + { 28, 212, 120, 255 }, /* 75% blue */ }; static const uint8_t wobnair[7][4] = { - { 32, 240, 118, 255 }, /* blue */ + { 34, 212, 114, 255 }, /* 75% blue */ { 19, 128, 128, 255 }, /* 7.5% intensity black */ - { 54, 184, 198, 255 }, /* magenta */ + { 83, 183, 198, 255 }, /* 75% magenta */ { 19, 128, 128, 255 }, /* 7.5% intensity black */ - { 188, 154, 16, 255 }, /* cyan */ + { 131, 156, 44, 255 }, /* 75% cyan */ { 19, 128, 128, 255 }, /* 7.5% intensity black */ - { 191, 128, 128, 255 }, /* gray */ + { 180, 128, 128, 255 }, /* 75% gray */ }; static const uint8_t white[4] = { 235, 128, 128, 255 }; @@ -995,7 +1005,7 @@ static void smptehdbars_fill_picture(AVFilterContext *ctx, AVFrame *picref) r_w = FFALIGN((((test->w + 3) / 4) * 3) / 7, 1 << pixdesc->log2_chroma_w); for (i = 0; i < 7; i++) { - draw_bar(test, rainbow[i], x, 0, r_w, r_h, picref); + draw_bar(test, rainbowhd[i], x, 0, r_w, r_h, picref); x += r_w; } draw_bar(test, gray40, x, 0, test->w - x, r_h, picref); @@ -1006,7 +1016,7 @@ static void smptehdbars_fill_picture(AVFilterContext *ctx, AVFrame *picref) draw_bar(test, i_pixel, x, y, r_w, r_h, picref); x += r_w; tmp = r_w * 6; - draw_bar(test, rainbow[0], x, y, tmp, r_h, picref); + draw_bar(test, rainbowhd[0], x, y, tmp, r_h, picref); x += tmp; l_w = x; draw_bar(test, blue, x, y, test->w - x, r_h, picref); -- 2.4.5 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel