Browse Source

FATE: add a test for H.264 with two fields per packet

tags/n3.3
Anton Khirnov 9 years ago
parent
commit
38efff92f1
2 changed files with 35 additions and 0 deletions
  1. +4
    -0
      tests/fate/h264.mak
  2. +31
    -0
      tests/ref/fate/h264-twofields-packet

+ 4
- 0
tests/fate/h264.mak View File

@@ -198,6 +198,9 @@ FATE_H264-$(call DEMDEC, MOV, H264) += fate-h264-mixed-nal-coding
# this sample has invalid extradata that is not escaped # this sample has invalid extradata that is not escaped
FATE_H264-$(call DEMDEC, MOV, H264) += fate-h264-unescaped-extradata FATE_H264-$(call DEMDEC, MOV, H264) += fate-h264-unescaped-extradata


# this sample contains field-coded frames, with both fields in a single packet
FATE_H264-$(call DEMDEC, MOV, H264) += fate-h264-twofields-packet

FATE_H264-$(call ALLYES, MOV_DEMUXER H264_MP4TOANNEXB_BSF) += fate-h264-bsf-mp4toannexb FATE_H264-$(call ALLYES, MOV_DEMUXER H264_MP4TOANNEXB_BSF) += fate-h264-bsf-mp4toannexb
FATE_H264-$(call DEMDEC, MATROSKA, H264) += fate-h264-direct-bff FATE_H264-$(call DEMDEC, MATROSKA, H264) += fate-h264-direct-bff


@@ -387,6 +390,7 @@ fate-h264-intra-refresh-recovery: CMD = framecrc -i $(TARGET_SAM
fate-h264-invalid-ref-mod: CMD = framecrc -i $(TARGET_SAMPLES)/h264/h264refframeregression.mp4 -an -frames 10 -pix_fmt yuv420p10le fate-h264-invalid-ref-mod: CMD = framecrc -i $(TARGET_SAMPLES)/h264/h264refframeregression.mp4 -an -frames 10 -pix_fmt yuv420p10le
fate-h264-lossless: CMD = framecrc -i $(TARGET_SAMPLES)/h264/lossless.h264 fate-h264-lossless: CMD = framecrc -i $(TARGET_SAMPLES)/h264/lossless.h264
fate-h264-mixed-nal-coding: CMD = framecrc -i $(TARGET_SAMPLES)/h264/mixed-nal-coding.mp4 fate-h264-mixed-nal-coding: CMD = framecrc -i $(TARGET_SAMPLES)/h264/mixed-nal-coding.mp4
fate-h264-twofields-packet: CMD = framecrc -i $(TARGET_SAMPLES)/h264/twofields_packet.mp4 -an -frames 30
fate-h264-unescaped-extradata: CMD = framecrc -i $(TARGET_SAMPLES)/h264/unescaped_extradata.mp4 -an -frames 10 fate-h264-unescaped-extradata: CMD = framecrc -i $(TARGET_SAMPLES)/h264/unescaped_extradata.mp4 -an -frames 10


fate-h264-reinit-%: CMD = framecrc -i $(TARGET_SAMPLES)/h264/$(@:fate-h264-%=%).h264 -vf format=yuv444p10le,scale=w=352:h=288 fate-h264-reinit-%: CMD = framecrc -i $(TARGET_SAMPLES)/h264/$(@:fate-h264-%=%).h264 -vf format=yuv444p10le,scale=w=352:h=288

+ 31
- 0
tests/ref/fate/h264-twofields-packet View File

@@ -0,0 +1,31 @@
#tb 0: 1/90000
0, 0, 0, 0, 3110400, 0x48e39acd
0, 3003, 3003, 0, 3110400, 0x40d65f69
0, 6006, 6006, 0, 3110400, 0xdcbc50bf
0, 9009, 9009, 0, 3110400, 0x73a2276a
0, 12012, 12012, 0, 3110400, 0x84a2b3c6
0, 15015, 15015, 0, 3110400, 0x7cf3b570
0, 18018, 18018, 0, 3110400, 0xa2d1e03a
0, 21021, 21021, 0, 3110400, 0x03220fb1
0, 24024, 24024, 0, 3110400, 0x89cd526a
0, 27027, 27027, 0, 3110400, 0xbb4b7531
0, 30030, 30030, 0, 3110400, 0x0a69f053
0, 33033, 33033, 0, 3110400, 0x0187994b
0, 36036, 36036, 0, 3110400, 0x26ed49fa
0, 39039, 39039, 0, 3110400, 0xbe8966d4
0, 42042, 42042, 0, 3110400, 0x248d203c
0, 45045, 45045, 0, 3110400, 0x3139c754
0, 48048, 48048, 0, 3110400, 0xf22380c4
0, 51051, 51051, 0, 3110400, 0x3e00dcc1
0, 54054, 54054, 0, 3110400, 0x8cbe2483
0, 57057, 57057, 0, 3110400, 0x6951cd63
0, 60060, 60060, 0, 3110400, 0x36aca4c5
0, 63063, 63063, 0, 3110400, 0x4d4f6fbe
0, 66066, 66066, 0, 3110400, 0x997247aa
0, 69069, 69069, 0, 3110400, 0x0fd40e06
0, 72072, 72072, 0, 3110400, 0xa10d2d67
0, 75075, 75075, 0, 3110400, 0x87c481da
0, 78078, 78078, 0, 3110400, 0xe3dca3cd
0, 81081, 81081, 0, 3110400, 0x5f77b078
0, 84084, 84084, 0, 3110400, 0xf1ddd098
0, 87087, 87087, 0, 3110400, 0xedcd1754

Loading…
Cancel
Save