mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 00:32:31 +00:00
avfilter/vsrc_testsrc: add support for XV48
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
707e2184ca
commit
42b748f738
@ -1175,6 +1175,7 @@ static void yuvtest_put_pixel(uint8_t *dstp[4], int dst_linesizep[4],
|
||||
AV_WL32(&dstp[0][i*4 + j*dst_linesizep[0]], n);
|
||||
break;
|
||||
case AV_PIX_FMT_XV36:
|
||||
case AV_PIX_FMT_XV48:
|
||||
case AV_PIX_FMT_AYUV64:
|
||||
AV_WN16(&dstp[0][i*8 + ayuv_map[Y]*2 + j*dst_linesizep[0]], y << desc->comp[0].shift);
|
||||
AV_WN16(&dstp[0][i*8 + ayuv_map[U]*2 + j*dst_linesizep[0]], u << desc->comp[1].shift);
|
||||
@ -1244,7 +1245,7 @@ static const enum AVPixelFormat yuvtest_pix_fmts[] = {
|
||||
AV_PIX_FMT_YUV444P12, AV_PIX_FMT_YUV444P14,
|
||||
AV_PIX_FMT_YUV444P16, AV_PIX_FMT_VYU444,
|
||||
AV_PIX_FMT_AYUV, AV_PIX_FMT_UYVA, AV_PIX_FMT_AYUV64,
|
||||
AV_PIX_FMT_VUYA, AV_PIX_FMT_VUYX,
|
||||
AV_PIX_FMT_VUYA, AV_PIX_FMT_VUYX, AV_PIX_FMT_XV48,
|
||||
AV_PIX_FMT_XV30LE, AV_PIX_FMT_V30XLE, AV_PIX_FMT_XV36,
|
||||
AV_PIX_FMT_NONE
|
||||
};
|
||||
|
@ -133,6 +133,9 @@ fate-filter-yuvtestsrc-xv30le: CMD = framecrc -lavfi yuvtestsrc=rate=5:duration=
|
||||
FATE_FILTER-$(call FILTERFRAMECRC, YUVTESTSRC SCALE) += fate-filter-yuvtestsrc-xv36
|
||||
fate-filter-yuvtestsrc-xv36: CMD = framecrc -lavfi yuvtestsrc=rate=5:duration=1,format=xv36,scale -pix_fmt xv36le
|
||||
|
||||
FATE_FILTER-$(call FILTERFRAMECRC, YUVTESTSRC SCALE) += fate-filter-yuvtestsrc-xv48
|
||||
fate-filter-yuvtestsrc-xv48: CMD = framecrc -lavfi yuvtestsrc=rate=5:duration=1,format=xv48,scale -pix_fmt xv48le
|
||||
|
||||
FATE_FILTER-$(call FILTERFRAMECRC, TESTSRC FORMAT CONCAT SCALE, LAVFI_INDEV FILE_PROTOCOL) += fate-filter-lavd-scalenorm
|
||||
fate-filter-lavd-scalenorm: tests/data/filtergraphs/scalenorm
|
||||
fate-filter-lavd-scalenorm: CMD = framecrc -f lavfi -graph_file $(TARGET_PATH)/tests/data/filtergraphs/scalenorm -i dummy
|
||||
|
10
tests/ref/fate/filter-yuvtestsrc-xv48
Normal file
10
tests/ref/fate/filter-yuvtestsrc-xv48
Normal file
@ -0,0 +1,10 @@
|
||||
#tb 0: 1/5
|
||||
#media_type 0: video
|
||||
#codec_id 0: rawvideo
|
||||
#dimensions 0: 320x240
|
||||
#sar 0: 1/1
|
||||
0, 0, 0, 1, 614400, 0x7fd08452
|
||||
0, 1, 1, 1, 614400, 0x7fd08452
|
||||
0, 2, 2, 1, 614400, 0x7fd08452
|
||||
0, 3, 3, 1, 614400, 0x7fd08452
|
||||
0, 4, 4, 1, 614400, 0x7fd08452
|
Loading…
Reference in New Issue
Block a user