seek.mak 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. # files from fate-acodec
  2. FATE_SEEK_ACODEC += adpcm-ima_qt adpcm-ima_qt-trellis \
  3. adpcm-ima_wav adpcm-ima_wav-trellis \
  4. adpcm-ms adpcm-ms-trellis \
  5. adpcm-swf adpcm-swf-trellis \
  6. adpcm-yamaha adpcm-yamaha-trellis \
  7. alac flac mp2 \
  8. pcm-alaw pcm-mulaw pcm-s8 pcm-u8 \
  9. pcm-s16be pcm-s16le pcm-s24be \
  10. pcm-s24le pcm-s32be pcm-s32le \
  11. pcm-f32be pcm-f32le pcm-f64be \
  12. pcm-f64le \
  13. fate-seek-acodec-adpcm-ima_qt: SRC = fate/acodec-adpcm-ima_qt.aiff
  14. fate-seek-acodec-adpcm-ima_wav: SRC = fate/acodec-adpcm-ima_wav.wav
  15. fate-seek-acodec-adpcm-ms: SRC = fate/acodec-adpcm-ms.wav
  16. fate-seek-acodec-adpcm-swf: SRC = fate/acodec-adpcm-swf.flv
  17. fate-seek-acodec-adpcm-yamaha: SRC = fate/acodec-adpcm-yamaha.wav
  18. fate-seek-acodec-adpcm-ima_qt-trellis: SRC = fate/acodec-adpcm-ima_qt-trellis.aiff
  19. fate-seek-acodec-adpcm-ima_wav-trellis: SRC = fate/acodec-adpcm-ima_wav-trellis.wav
  20. fate-seek-acodec-adpcm-ms-trellis: SRC = fate/acodec-adpcm-ms-trellis.wav
  21. fate-seek-acodec-adpcm-swf-trellis: SRC = fate/acodec-adpcm-swf-trellis.flv
  22. fate-seek-acodec-adpcm-yamaha-trellis: SRC = fate/acodec-adpcm-yamaha-trellis.wav
  23. fate-seek-acodec-alac: SRC = fate/acodec-alac.mov
  24. fate-seek-acodec-flac: SRC = fate/acodec-flac.flac
  25. fate-seek-acodec-mp2: SRC = fate/acodec-mp2.mp2
  26. fate-seek-acodec-pcm-alaw: SRC = fate/acodec-pcm-alaw.wav
  27. fate-seek-acodec-pcm-f32be: SRC = fate/acodec-pcm-f32be.au
  28. fate-seek-acodec-pcm-f32le: SRC = fate/acodec-pcm-f32le.wav
  29. fate-seek-acodec-pcm-f64be: SRC = fate/acodec-pcm-f64be.au
  30. fate-seek-acodec-pcm-f64le: SRC = fate/acodec-pcm-f64le.wav
  31. fate-seek-acodec-pcm-mulaw: SRC = fate/acodec-pcm-mulaw.wav
  32. fate-seek-acodec-pcm-s16be: SRC = fate/acodec-pcm-s16be.mov
  33. fate-seek-acodec-pcm-s16le: SRC = fate/acodec-pcm-s16le.wav
  34. fate-seek-acodec-pcm-s24be: SRC = fate/acodec-pcm-s24be.mov
  35. fate-seek-acodec-pcm-s24le: SRC = fate/acodec-pcm-s24le.wav
  36. fate-seek-acodec-pcm-s32be: SRC = fate/acodec-pcm-s32be.mov
  37. fate-seek-acodec-pcm-s32le: SRC = fate/acodec-pcm-s32le.wav
  38. fate-seek-acodec-pcm-s8: SRC = fate/acodec-pcm-s8.mov
  39. fate-seek-acodec-pcm-u8: SRC = fate/acodec-pcm-u8.wav
  40. FATE_SEEK_ACODEC := $(FATE_SEEK_ACODEC:%=fate-seek-acodec-%)
  41. # The following disables every fate-seek-* test whose
  42. # corresponding fate-* test has unmet requirements (or is disabled).
  43. FATE_SEEK_ACODEC := $(filter $(subst fate-,fate-seek-,$(FATE_ACODEC)), $(FATE_SEEK_ACODEC))
  44. FATE_SEEK += $(FATE_SEEK_ACODEC)
  45. # files from fate-vsynth_lena
  46. FATE_SEEK_VSYNTH_LENA += asv1 asv2 \
  47. dnxhd-720p dnxhd-720p-rd \
  48. dnxhd-1080i dnxhd-4k-hr-lb \
  49. dv dv-411 dv-50 \
  50. ffv1 \
  51. flashsv \
  52. flv \
  53. h261 h263 h263p \
  54. huffyuv \
  55. jpegls ljpeg mjpeg \
  56. mpeg1 mpeg1b \
  57. mpeg2-422 mpeg2-idct-int \
  58. mpeg2-ilace mpeg2-ivlc-qprd \
  59. mpeg2-thread mpeg2-thread-ivlc \
  60. mpeg4 $(FATE_MPEG4_AVI) \
  61. msmpeg4 msmpeg4v2 \
  62. rgb \
  63. roqvideo \
  64. rv10 rv20 \
  65. snow snow-ll \
  66. svq1 \
  67. wmv1 wmv2 \
  68. yuv \
  69. fate-seek-vsynth_lena-asv1: SRC = fate/vsynth_lena-asv1.avi
  70. fate-seek-vsynth_lena-asv2: SRC = fate/vsynth_lena-asv2.avi
  71. fate-seek-vsynth_lena-dnxhd-1080i: SRC = fate/vsynth_lena-dnxhd-1080i.mov
  72. fate-seek-vsynth_lena-dnxhd-720p: SRC = fate/vsynth_lena-dnxhd-720p.dnxhd
  73. fate-seek-vsynth_lena-dnxhd-720p-rd: SRC = fate/vsynth_lena-dnxhd-720p.dnxhd
  74. fate-seek-vsynth_lena-dnxhd-4k-hr-lb: SRC = fate/vsynth_lena-dnxhd-4k-hr-lb.dnxhd
  75. fate-seek-vsynth_lena-dv: SRC = fate/vsynth_lena-dv.dv
  76. fate-seek-vsynth_lena-dv-411: SRC = fate/vsynth_lena-dv-411.dv
  77. fate-seek-vsynth_lena-dv-50: SRC = fate/vsynth_lena-dv-50.dv
  78. fate-seek-vsynth_lena-ffv1: SRC = fate/vsynth_lena-ffv1.avi
  79. fate-seek-vsynth_lena-flashsv: SRC = fate/vsynth_lena-flashsv.flv
  80. fate-seek-vsynth_lena-flv: SRC = fate/vsynth_lena-flv.flv
  81. fate-seek-vsynth_lena-h261: SRC = fate/vsynth_lena-h261.avi
  82. fate-seek-vsynth_lena-h263: SRC = fate/vsynth_lena-h263.avi
  83. fate-seek-vsynth_lena-h263p: SRC = fate/vsynth_lena-h263p.avi
  84. fate-seek-vsynth_lena-huffyuv: SRC = fate/vsynth_lena-huffyuv.avi
  85. fate-seek-vsynth_lena-jpegls: SRC = fate/vsynth_lena-jpegls.avi
  86. fate-seek-vsynth_lena-ljpeg: SRC = fate/vsynth_lena-ljpeg.avi
  87. fate-seek-vsynth_lena-mjpeg: SRC = fate/vsynth_lena-mjpeg.avi
  88. fate-seek-vsynth_lena-mpeg1: SRC = fate/vsynth_lena-mpeg1.mpeg1video
  89. fate-seek-vsynth_lena-mpeg1b: SRC = fate/vsynth_lena-mpeg1b.mpeg1video
  90. fate-seek-vsynth_lena-mpeg2-422: SRC = fate/vsynth_lena-mpeg2-422.mpeg2video
  91. fate-seek-vsynth_lena-mpeg2-idct-int: SRC = fate/vsynth_lena-mpeg2-idct-int.mpeg2video
  92. fate-seek-vsynth_lena-mpeg2-ilace: SRC = fate/vsynth_lena-mpeg2-ilace.mpeg2video
  93. fate-seek-vsynth_lena-mpeg2-ivlc-qprd: SRC = fate/vsynth_lena-mpeg2-ivlc-qprd.mpeg2video
  94. fate-seek-vsynth_lena-mpeg2-thread: SRC = fate/vsynth_lena-mpeg2-thread.mpeg2video
  95. fate-seek-vsynth_lena-mpeg2-thread-ivlc: SRC = fate/vsynth_lena-mpeg2-thread-ivlc.mpeg2video
  96. fate-seek-vsynth_lena-mpeg4: SRC = fate/vsynth_lena-mpeg4.mp4
  97. fate-seek-vsynth_lena-mpeg4-adap: SRC = fate/vsynth_lena-mpeg4-adap.avi
  98. fate-seek-vsynth_lena-mpeg4-adv: SRC = fate/vsynth_lena-mpeg4-adv.avi
  99. fate-seek-vsynth_lena-mpeg4-error: SRC = fate/vsynth_lena-mpeg4-error.avi
  100. fate-seek-vsynth_lena-mpeg4-nr: SRC = fate/vsynth_lena-mpeg4-nr.avi
  101. fate-seek-vsynth_lena-mpeg4-nsse: SRC = fate/vsynth_lena-mpeg4-nsse.avi
  102. fate-seek-vsynth_lena-mpeg4-qpel: SRC = fate/vsynth_lena-mpeg4-qpel.avi
  103. fate-seek-vsynth_lena-mpeg4-qprd: SRC = fate/vsynth_lena-mpeg4-qprd.avi
  104. fate-seek-vsynth_lena-mpeg4-rc: SRC = fate/vsynth_lena-mpeg4-rc.avi
  105. fate-seek-vsynth_lena-mpeg4-thread: SRC = fate/vsynth_lena-mpeg4-thread.avi
  106. fate-seek-vsynth_lena-msmpeg4: SRC = fate/vsynth_lena-msmpeg4.avi
  107. fate-seek-vsynth_lena-msmpeg4v2: SRC = fate/vsynth_lena-msmpeg4v2.avi
  108. fate-seek-vsynth_lena-rgb: SRC = fate/vsynth_lena-rgb.avi
  109. fate-seek-vsynth_lena-roqvideo: SRC = fate/vsynth_lena-roqvideo.roq
  110. fate-seek-vsynth_lena-rv10: SRC = fate/vsynth_lena-rv10.rm
  111. fate-seek-vsynth_lena-rv20: SRC = fate/vsynth_lena-rv20.rm
  112. fate-seek-vsynth_lena-snow: SRC = fate/vsynth_lena-snow.avi
  113. fate-seek-vsynth_lena-snow-ll: SRC = fate/vsynth_lena-snow-ll.avi
  114. fate-seek-vsynth_lena-svq1: SRC = fate/vsynth_lena-svq1.mov
  115. fate-seek-vsynth_lena-wmv1: SRC = fate/vsynth_lena-wmv1.avi
  116. fate-seek-vsynth_lena-wmv2: SRC = fate/vsynth_lena-wmv2.avi
  117. fate-seek-vsynth_lena-yuv: SRC = fate/vsynth_lena-yuv.avi
  118. FATE_SEEK_VSYNTH_LENA := $(FATE_SEEK_VSYNTH_LENA:%=fate-seek-vsynth_lena-%)
  119. FATE_SEEK_VSYNTH_LENA := $(filter $(subst fate-,fate-seek-,$(FATE_VSYNTH_LENA)), $(FATE_SEEK_VSYNTH_LENA))
  120. FATE_SAMPLES_SEEK += $(FATE_SEEK_VSYNTH_LENA)
  121. # files from fate-lavf-audio
  122. FATE_SEEK_LAVF_AUDIO += aiff al au mmf ogg ul voc wav
  123. FATE_SEEK_LAVF_AUDIO := $(FATE_SEEK_LAVF_AUDIO:%=fate-seek-lavf-%)
  124. FATE_SEEK_LAVF_AUDIO := $(filter $(subst fate-,fate-seek-,$(FATE_LAVF_AUDIO)), $(FATE_SEEK_LAVF_AUDIO))
  125. FATE_SEEK += $(FATE_SEEK_LAVF_AUDIO)
  126. # files from fate-lavf-container
  127. FATE_SEEK_LAVF_CONTAINER += asf avi dv flv gxf mkv mov mpg \
  128. mxf mxf_d10 mxf_dv25 mxf_dvcpro50 \
  129. mxf_opatom mxf_opatom_audio \
  130. nut swf ts wtv
  131. # rm is special: fate-lavf-rm does not read the created file
  132. # and therefore does not require the corresponding demuxer
  133. # to be present, so we have to explicitly check for this here.
  134. FATE_SEEK_LAVF_CONTAINER-$(CONFIG_RM_DEMUXER) += rm
  135. FATE_SEEK_LAVF_CONTAINER += $(FATE_SEEK_LAVF_CONTAINER-yes)
  136. FATE_SEEK_LAVF_CONTAINER := $(FATE_SEEK_LAVF_CONTAINER:%=fate-seek-lavf-%)
  137. FATE_SEEK_LAVF_CONTAINER := $(filter $(subst fate-,fate-seek-,$(FATE_LAVF_CONTAINER)), $(FATE_SEEK_LAVF_CONTAINER))
  138. FATE_SEEK += $(FATE_SEEK_LAVF_CONTAINER)
  139. # files from fate-lavf-video
  140. FATE_SEEK_LAVF_VIDEO += gif y4m
  141. FATE_SEEK_LAVF_VIDEO := $(FATE_SEEK_LAVF_VIDEO:%=fate-seek-lavf-%)
  142. FATE_SEEK_LAVF_VIDEO := $(filter $(subst fate-,fate-seek-,$(FATE_LAVF_VIDEO)), $(FATE_SEEK_LAVF_VIDEO))
  143. FATE_SEEK += $(FATE_SEEK_LAVF_VIDEO)
  144. $(FATE_SEEK_LAVF_AUDIO) $(FATE_SEEK_LAVF_CONTAINER) $(FATE_SEEK_LAVF_VIDEO): SRC = lavf/lavf.$(@:fate-seek-lavf-%=%)
  145. # files from fate-lavf-image
  146. FATE_SEEK_LAVF_IMAGE += bmp jpg pcx pgm ppm sgi tga tiff
  147. FATE_SEEK_LAVF_IMAGE := $(FATE_SEEK_LAVF_IMAGE:%=fate-seek-lavf-%)
  148. FATE_SEEK_LAVF_IMAGE := $(filter $(subst fate-,fate-seek-,$(FATE_LAVF_IMAGES)), $(FATE_SEEK_LAVF_IMAGE))
  149. $(FATE_SEEK_LAVF_IMAGE): SRC = images/$(@:fate-seek-lavf-%=%)/%02d.$(@:fate-seek-lavf-%=%)
  150. FATE_SEEK += $(FATE_SEEK_LAVF_IMAGE)
  151. #files from fate-lavf-image2pipe
  152. FATE_SEEK_LAVF_IMAGE2PIPE += pbmpipe pgmpipe ppmpipe
  153. FATE_SEEK_LAVF_IMAGE2PIPE := $(FATE_SEEK_LAVF_IMAGE2PIPE:%=fate-seek-lavf-%)
  154. FATE_SEEK_LAVF_IMAGE2PIPE := $(filter $(subst fate-,fate-seek-,$(FATE_LAVF_IMAGE2PIPE)), $(FATE_SEEK_LAVF_IMAGE2PIPE))
  155. $(FATE_SEEK_LAVF_IMAGE2PIPE): SRC = lavf/$(@:fate-seek-lavf-%pipe=%)pipe.$(@:fate-seek-lavf-%pipe=%)
  156. FATE_SEEK += $(FATE_SEEK_LAVF_IMAGE2PIPE)
  157. # extra files
  158. FATE_SEEK_EXTRA-$(CONFIG_MP3_DEMUXER) += fate-seek-extra-mp3
  159. FATE_SEEK_EXTRA-$(call ALLYES, CACHE_PROTOCOL PIPE_PROTOCOL MP3_DEMUXER) += fate-seek-cache-pipe
  160. FATE_SEEK_EXTRA-$(CONFIG_MATROSKA_DEMUXER) += fate-seek-mkv-codec-delay
  161. FATE_SEEK_EXTRA-$(call ALLYES, MOV_DEMUXER FILE_PROTOCOL) += fate-seek-extra-mp4
  162. FATE_SEEK_EXTRA-$(call ALLYES, MOV_DEMUXER FILE_PROTOCOL) += fate-seek-empty-edit-mp4
  163. FATE_SEEK_EXTRA-$(call ALLYES, MOV_DEMUXER FILE_PROTOCOL) += fate-seek-test-iibbibb-mp4
  164. FATE_SEEK_EXTRA-$(call ALLYES, MOV_DEMUXER FILE_PROTOCOL) += fate-seek-test-iibbibb-neg-ctts-mp4
  165. fate-seek-extra-mp3: CMD = run libavformat/tests/seek$(EXESUF) $(TARGET_SAMPLES)/gapless/gapless.mp3 -fastseek 1
  166. fate-seek-extra-mp4: CMD = run libavformat/tests/seek$(EXESUF) $(TARGET_SAMPLES)/mov/buck480p30_na.mp4 -duration 180 -frames 4
  167. fate-seek-empty-edit-mp4: CMD = run libavformat/tests/seek$(EXESUF) $(TARGET_SAMPLES)/mov/empty_edit_5s.mp4 -duration 15 -frames 4
  168. fate-seek-test-iibbibb-mp4: CMD = run libavformat/tests/seek$(EXESUF) $(TARGET_SAMPLES)/mov/test_iibbibb.mp4 -duration 13 -frames 4
  169. fate-seek-test-iibbibb-neg-ctts-mp4: CMD = run libavformat/tests/seek$(EXESUF) $(TARGET_SAMPLES)/mov/test_iibbibb_neg_ctts.mp4 -duration 13 -frames 4
  170. fate-seek-cache-pipe: CMD = cat $(SAMPLES)/gapless/gapless.mp3 | run libavformat/tests/seek$(EXESUF) cache:pipe:0 -read_ahead_limit -1
  171. fate-seek-mkv-codec-delay: CMD = run libavformat/tests/seek$(EXESUF) $(TARGET_SAMPLES)/mkv/codec_delay_opus.mkv
  172. FATE_SEEK_EXTRA += $(FATE_SEEK_EXTRA-yes)
  173. $(FATE_SEEK) $(FATE_SAMPLES_SEEK) $(FATE_SEEK_EXTRA): libavformat/tests/seek$(EXESUF)
  174. $(FATE_SEEK) $(FATE_SAMPLES_SEEK): CMD = run libavformat/tests/seek$(EXESUF) $(TARGET_PATH)/tests/data/$(SRC)
  175. $(FATE_SEEK) $(FATE_SAMPLES_SEEK): fate-seek-%: fate-%
  176. $(subst fate-seek-,fate-,$(FATE_SAMPLES_SEEK) $(FATE_SEEK)): KEEP_FILES ?= 1
  177. fate-seek-%: REF = $(SRC_PATH)/tests/ref/seek/$(@:fate-seek-%=%)
  178. FATE_AVCONV += $(FATE_SEEK)
  179. FATE_SAMPLES_AVCONV += $(FATE_SAMPLES_SEEK) $(FATE_SEEK_EXTRA)
  180. fate-seek: $(FATE_SEEK) $(FATE_SAMPLES_SEEK) $(FATE_SEEK_EXTRA)