mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-11-06 05:17:42 +00:00
fate/ffv1: test the default slice layout of 32bit float frames
The size and checksum of the encoded file pin the slice layout and the remap coding of a 704x576 float frame, which the 360x288 default slice limit splits into 2x2 slices.
This commit is contained in:
1 parent
6364d8606c
commit
7c7b6befaa
2 files changed
+14
-1
No files matched your search
+6
-1
@@ -1,5 +1,7 @@
|
||||
FATE_FFV1_FLOAT32-$(call TRANSCODE, FFV1, NUT, LAVFI_INDEV WRAPPED_AVFRAME_DECODER COLOR_FILTER FORMAT_FILTER GEQ_FILTER SCALE_FILTER) += \
|
||||
fate-ffv1-golomb-float32-26bit fate-ffv1-golomb-float32-1bit
|
||||
FATE_FFV1_FLOAT32-$(call TRANSCODE, FFV1, NUT, LAVFI_INDEV WRAPPED_AVFRAME_DECODER TESTSRC_FILTER FORMAT_FILTER SCALE_FILTER) += \
|
||||
fate-ffv1-float32-slices
|
||||
|
||||
fate-ffv1-golomb-float32-26bit: CMD = transcode lavfi "color=black:s=352x288:r=1:d=8,format=gbrpf32,geq=r=X+Y*W:g=X+Y*W:b=X+W*if(lt(Y\,2*(25+N+floor(N/2)+2*floor(N/7))-4)\,if(mod(Y\,2)\,290-(25+N+floor(N/2)+2*floor(N/7))+(Y-1)/2\,290-2*(25+N+floor(N/2)+2*floor(N/7))+Y/2)\,if(eq(Y\,2*(25+N+floor(N/2)+2*floor(N/7))-4)\,19\,if(lt(Y\,2*(25+N+floor(N/2)+2*floor(N/7))+16)\,Y-2*(25+N+floor(N/2)+2*floor(N/7))+3\,if(lt(Y\,286)\,Y-2*(25+N+floor(N/2)+2*floor(N/7))+4\,Y-(25+N+floor(N/2)+2*floor(N/7))+2))))" nut \
|
||||
"-c:v ffv1 -strict experimental -coder 0 -remap_mode 1 -slices 1 -g 1" "-pix_fmt gbrpf32le -vf scale"
|
||||
@@ -9,6 +11,9 @@ fate-ffv1-golomb-float32-26bit: CMD = transcode lavfi "color=black:s=352x288:r=1
|
||||
fate-ffv1-golomb-float32-1bit: CMD = transcode lavfi "color=black:s=64x48:r=1:d=1,format=gbrpf32,geq=r=1+mod(floor(X*Y/7)\,2):g=1+mod(floor(X*Y/7)\,2):b=1+mod(floor(X*Y/7)\,2)" nut \
|
||||
"-c:v ffv1 -strict experimental -coder 0 -remap_mode 1" "-pix_fmt gbrpf32le -vf scale"
|
||||
|
||||
# Default slice layout of a 32bit float frame larger than 360x288
|
||||
fate-ffv1-float32-slices: CMD = transcode lavfi "testsrc=size=704x576:r=1:d=1,format=gbrpf32" nut \
|
||||
"-c:v ffv1 -strict experimental" "-pix_fmt gbrpf32le -vf scale"
|
||||
|
||||
FATE_FFMPEG += $(FATE_FFV1_FLOAT32-yes)
|
||||
fate-ffv1: $(FATE_FFV1_FLOAT32-yes)
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
33045e83befdf2085c63bfaea7c60006 *tests/data/fate/ffv1-float32-slices.nut
|
||||
9585 tests/data/fate/ffv1-float32-slices.nut
|
||||
#tb 0: 1/1
|
||||
#media_type 0: video
|
||||
#codec_id 0: rawvideo
|
||||
#dimensions 0: 704x576
|
||||
#sar 0: 1/1
|
||||
0, 0, 0, 1, 4866048, 0x1b0e9bf0
|
||||
Reference in new issue
Block a user