ffmpeg | branch: master | James Almer <jamr...@gmail.com> | Wed Oct 16 12:51:29 2024 -0300| [062fcacc8ff65a53a21139e1a9132660c9a5abd3] | committer: James Almer
avfilter/vsrc_testsrc: fill the xv30le alpha bits As with other pixel formats, set the undefined alpha bits to opaque. Signed-off-by: James Almer <jamr...@gmail.com> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=062fcacc8ff65a53a21139e1a9132660c9a5abd3 --- libavfilter/vsrc_testsrc.c | 3 ++- tests/ref/fate/filter-yuvtestsrc-xv30le | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/libavfilter/vsrc_testsrc.c b/libavfilter/vsrc_testsrc.c index d57464a6c0..6fd8c73757 100644 --- a/libavfilter/vsrc_testsrc.c +++ b/libavfilter/vsrc_testsrc.c @@ -1171,7 +1171,8 @@ static void yuvtest_put_pixel(uint8_t *dstp[4], int dst_linesizep[4], case AV_PIX_FMT_XV30LE: n = (y << ((desc->comp[0].offset*8) + desc->comp[0].shift)) + (u << ((desc->comp[1].offset*8) + desc->comp[1].shift)) + - (v << ((desc->comp[2].offset*8) + desc->comp[2].shift)); + (v << ((desc->comp[2].offset*8) + desc->comp[2].shift)) + + (3U << (desc->comp[1].shift ? 0 : 30)); AV_WL32(&dstp[0][i*4 + j*dst_linesizep[0]], n); break; case AV_PIX_FMT_XV36: diff --git a/tests/ref/fate/filter-yuvtestsrc-xv30le b/tests/ref/fate/filter-yuvtestsrc-xv30le index 4d5a4ce8c1..bd2e65e88a 100644 --- a/tests/ref/fate/filter-yuvtestsrc-xv30le +++ b/tests/ref/fate/filter-yuvtestsrc-xv30le @@ -3,8 +3,8 @@ #codec_id 0: rawvideo #dimensions 0: 320x240 #sar 0: 1/1 -0, 0, 0, 1, 307200, 0xc7a544aa -0, 1, 1, 1, 307200, 0xc7a544aa -0, 2, 2, 1, 307200, 0xc7a544aa -0, 3, 3, 1, 307200, 0xc7a544aa -0, 4, 4, 1, 307200, 0xc7a544aa +0, 0, 0, 1, 307200, 0xb20e51d9 +0, 1, 1, 1, 307200, 0xb20e51d9 +0, 2, 2, 1, 307200, 0xb20e51d9 +0, 3, 3, 1, 307200, 0xb20e51d9 +0, 4, 4, 1, 307200, 0xb20e51d9 _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".