vcodec.mak 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. fate-vsynth1-%: SRC = tests/data/vsynth1.yuv
  2. fate-vsynth2-%: SRC = tests/data/vsynth2.yuv
  3. fate-vsynth%: CODEC = $(word 3, $(subst -, ,$(@)))
  4. fate-vsynth%: FMT = avi
  5. fate-vsynth%: CMD = enc_dec "rawvideo -s 352x288 -pix_fmt yuv420p $(RAWDECOPTS)" $(SRC) $(FMT) "-c $(CODEC) $(ENCOPTS)" rawvideo "-s 352x288 -pix_fmt yuv420p -vsync 0 $(DECOPTS)" -keep "$(DECINOPTS)"
  6. fate-vsynth%: CMP_UNIT = 1
  7. fate-vsynth%: REF = $(SRC_PATH)/tests/ref/vsynth/$(@:fate-%=%)
  8. FATE_VCODEC-$(call ENCDEC, AMV, AVI) += amv
  9. FATE_VCODEC-$(call ENCDEC, ASV1, AVI) += asv1
  10. fate-vsynth%-asv1: ENCOPTS = -qscale 10
  11. FATE_VCODEC-$(call ENCDEC, ASV2, AVI) += asv2
  12. fate-vsynth%-asv2: ENCOPTS = -qscale 10
  13. FATE_VCODEC-$(call ENCDEC, CLJR, AVI) += cljr
  14. FATE_VCODEC-$(call ENCDEC, DNXHD, DNXHD) += dnxhd-720p \
  15. dnxhd-720p-rd \
  16. dnxhd-720p-10bit
  17. fate-vsynth%-dnxhd-720p: ENCOPTS = -s hd720 -b 90M \
  18. -pix_fmt yuv422p -frames 5 -qmax 8
  19. fate-vsynth%-dnxhd-720p: FMT = dnxhd
  20. fate-vsynth%-dnxhd-720p-rd: ENCOPTS = -s hd720 -b 90M -threads 4 -mbd rd \
  21. -pix_fmt yuv422p -frames 5 -qmax 8
  22. fate-vsynth%-dnxhd-720p-rd: FMT = dnxhd
  23. fate-vsynth%-dnxhd-720p-10bit: ENCOPTS = -s hd720 -b 90M \
  24. -pix_fmt yuv422p10 -frames 5 -qmax 8
  25. fate-vsynth%-dnxhd-720p-10bit: FMT = dnxhd
  26. FATE_VCODEC-$(call ENCDEC, DNXHD, MOV) += dnxhd-1080i
  27. fate-vsynth%-dnxhd-1080i: ENCOPTS = -s hd1080 -b 120M -flags +ildct \
  28. -pix_fmt yuv422p -frames 5 -qmax 8
  29. fate-vsynth%-dnxhd-1080i: FMT = mov
  30. FATE_VCODEC-$(call ENCDEC, DVVIDEO, DV) += dv dv-411 dv-50
  31. fate-vsynth%-dv: CODEC = dvvideo
  32. fate-vsynth%-dv: ENCOPTS = -dct int -s pal
  33. fate-vsynth%-dv: FMT = dv
  34. fate-vsynth%-dv-411: CODEC = dvvideo
  35. fate-vsynth%-dv-411: ENCOPTS = -dct int -s pal -pix_fmt yuv411p \
  36. -sws_flags area
  37. fate-vsynth%-dv-411: DECOPTS = -sws_flags area
  38. fate-vsynth%-dv-411: FMT = dv
  39. fate-vsynth%-dv-50: CODEC = dvvideo
  40. fate-vsynth%-dv-50: ENCOPTS = -dct int -s pal -pix_fmt yuv422p \
  41. -sws_flags neighbor
  42. fate-vsynth%-dv-50: DECOPTS = -sws_flags neighbor
  43. fate-vsynth%-dv-50: FMT = dv
  44. FATE_VCODEC-$(call ENCDEC, FFV1, AVI) += ffv1 ffv1.0
  45. fate-vsynth%-ffv1: ENCOPTS = -slices 4
  46. fate-vsynth%-ffv1.0: CODEC = ffv1
  47. FATE_VCODEC-$(call ENCDEC, FFVHUFF, AVI) += ffvhuff
  48. FATE_VCODEC-$(call ENCDEC, FLASHSV, FLV) += flashsv
  49. fate-vsynth%-flashsv: ENCOPTS = -sws_flags neighbor+full_chroma_int
  50. fate-vsynth%-flashsv: DECOPTS = -sws_flags area
  51. fate-vsynth%-flashsv: FMT = flv
  52. FATE_VCODEC-$(call ENCDEC, FLASHSV2, FLV) += flashsv2
  53. fate-vsynth%-flashsv2: ENCOPTS = -sws_flags neighbor+full_chroma_int -strict experimental -compression_level 0
  54. fate-vsynth%-flashsv2: DECOPTS = -sws_flags area
  55. fate-vsynth%-flashsv2: FMT = flv
  56. FATE_VCODEC-$(call ENCDEC, FLV, FLV) += flv
  57. fate-vsynth%-flv: ENCOPTS = -qscale 10
  58. fate-vsynth%-flv: FMT = flv
  59. FATE_VCODEC-$(call ENCDEC, H261, AVI) += h261
  60. fate-vsynth%-h261: ENCOPTS = -qscale 11
  61. FATE_VCODEC-$(call ENCDEC, H263, AVI) += h263 h263-obmc h263p
  62. fate-vsynth%-h263: ENCOPTS = -qscale 10
  63. fate-vsynth%-h263-obmc: ENCOPTS = -qscale 10 -obmc 1
  64. fate-vsynth%-h263p: ENCOPTS = -qscale 2 -flags +aic -umv 1 -aiv 1 -ps 300
  65. FATE_VCODEC-$(call ENCDEC, HUFFYUV, AVI) += huffyuv
  66. fate-vsynth%-huffyuv: ENCOPTS = -pix_fmt yuv422p -sws_flags neighbor
  67. fate-vsynth%-huffyuv: DECOPTS = -strict -2 -sws_flags neighbor
  68. FATE_VCODEC-$(call ENCDEC, JPEGLS, AVI) += jpegls
  69. fate-vsynth%-jpegls: ENCOPTS = -sws_flags neighbor+full_chroma_int
  70. fate-vsynth%-jpegls: DECOPTS = -sws_flags area
  71. FATE_VCODEC-$(call ENCDEC, JPEG2000, AVI) += jpeg2000 jpeg2000-97
  72. fate-vsynth%-jpeg2000: ENCOPTS = -qscale 7 -strict experimental -pred 1 -pix_fmt rgb24
  73. fate-vsynth%-jpeg2000: DECINOPTS = -vcodec jpeg2000
  74. fate-vsynth%-jpeg2000-97: ENCOPTS = -qscale 7 -strict experimental -pix_fmt rgb24
  75. fate-vsynth%-jpeg2000-97: DECINOPTS = -vcodec jpeg2000
  76. FATE_VCODEC-$(call ENCDEC, LJPEG MJPEG, AVI) += ljpeg
  77. fate-vsynth%-ljpeg: ENCOPTS = -strict -1
  78. FATE_VCODEC-$(call ENCDEC, MJPEG, AVI) += mjpeg mjpeg-422 mjpeg-444
  79. fate-vsynth%-mjpeg: ENCOPTS = -qscale 9 -pix_fmt yuvj420p
  80. fate-vsynth%-mjpeg-422: ENCOPTS = -qscale 9 -pix_fmt yuvj422p
  81. fate-vsynth%-mjpeg-444: ENCOPTS = -qscale 9 -pix_fmt yuvj444p
  82. FATE_VCODEC-$(call ENCDEC, MPEG1VIDEO, MPEG1VIDEO MPEGVIDEO) += mpeg1 mpeg1b
  83. fate-vsynth%-mpeg1: FMT = mpeg1video
  84. fate-vsynth%-mpeg1: CODEC = mpeg1video
  85. fate-vsynth%-mpeg1: ENCOPTS = -qscale 10
  86. fate-vsynth%-mpeg1b: CODEC = mpeg1video
  87. fate-vsynth%-mpeg1b: ENCOPTS = -qscale 8 -bf 3 -ps 200
  88. fate-vsynth%-mpeg1b: FMT = mpeg1video
  89. FATE_MPEG2 = mpeg2 \
  90. mpeg2-422 \
  91. mpeg2-idct-int \
  92. mpeg2-ilace \
  93. mpeg2-ivlc-qprd \
  94. mpeg2-thread \
  95. mpeg2-thread-ivlc
  96. FATE_VCODEC-$(call ENCDEC, MPEG2VIDEO, MPEG2VIDEO MPEGVIDEO) += $(FATE_MPEG2)
  97. $(FATE_MPEG2:%=fate-vsynth\%-%): FMT = mpeg2video
  98. $(FATE_MPEG2:%=fate-vsynth\%-%): CODEC = mpeg2video
  99. fate-vsynth%-mpeg2: ENCOPTS = -qscale 10
  100. fate-vsynth%-mpeg2-422: ENCOPTS = -b:v 1000k \
  101. -bf 2 \
  102. -trellis 1 \
  103. -flags +mv0+ildct+ilme \
  104. -mpv_flags +qp_rd \
  105. -intra_vlc 1 \
  106. -mbd rd \
  107. -pix_fmt yuv422p
  108. fate-vsynth%-mpeg2-idct-int: ENCOPTS = -qscale 10 -idct int -dct int
  109. fate-vsynth%-mpeg2-ilace: ENCOPTS = -qscale 10 -flags +ildct+ilme
  110. fate-vsynth%-mpeg2-ivlc-qprd: ENCOPTS = -b:v 500k \
  111. -bf 2 \
  112. -trellis 1 \
  113. -flags +mv0 \
  114. -mpv_flags +qp_rd \
  115. -intra_vlc 1 \
  116. -cmp 2 -subcmp 2 \
  117. -mbd rd
  118. fate-vsynth%-mpeg2-thread: ENCOPTS = -qscale 10 -bf 2 -flags +ildct+ilme \
  119. -threads 2 -slices 2
  120. fate-vsynth%-mpeg2-thread-ivlc: ENCOPTS = -qscale 10 -bf 2 -flags +ildct+ilme \
  121. -intra_vlc 1 -threads 2 -slices 2
  122. FATE_MPEG4_MP4 = mpeg4
  123. FATE_MPEG4_AVI = mpeg4-rc \
  124. mpeg4-adv \
  125. mpeg4-qprd \
  126. mpeg4-adap \
  127. mpeg4-qpel \
  128. mpeg4-thread \
  129. mpeg4-error \
  130. mpeg4-nr
  131. FATE_VCODEC-$(call ENCDEC, MPEG4, MP4 MOV) += $(FATE_MPEG4_MP4)
  132. FATE_VCODEC-$(call ENCDEC, MPEG4, AVI) += $(FATE_MPEG4_AVI)
  133. fate-vsynth%-mpeg4: ENCOPTS = -qscale 10 -flags +mv4 -mbd bits
  134. fate-vsynth%-mpeg4: FMT = mp4
  135. fate-vsynth%-mpeg4-adap: ENCOPTS = -b 550k -bf 2 -flags +mv4+mv0 \
  136. -trellis 1 -cmp 1 -subcmp 2 \
  137. -mbd rd -scplx_mask 0.3
  138. fate-vsynth%-mpeg4-adv: ENCOPTS = -qscale 9 -flags +mv4+aic \
  139. -data_partitioning 1 -trellis 1 \
  140. -mbd bits -ps 200
  141. fate-vsynth%-mpeg4-error: ENCOPTS = -qscale 7 -flags +mv4+aic \
  142. -data_partitioning 1 -mbd rd \
  143. -ps 250 -error 10
  144. fate-vsynth%-mpeg4-nr: ENCOPTS = -qscale 8 -flags +mv4 -mbd rd -nr 200
  145. fate-vsynth%-mpeg4-qpel: ENCOPTS = -qscale 7 -flags +mv4+qpel -mbd 2 \
  146. -bf 2 -cmp 1 -subcmp 2
  147. fate-vsynth%-mpeg4-qprd: ENCOPTS = -b 450k -bf 2 -trellis 1 \
  148. -flags +mv4+mv0 -mpv_flags +qp_rd \
  149. -cmp 2 -subcmp 2 -mbd rd
  150. fate-vsynth%-mpeg4-rc: ENCOPTS = -b 400k -bf 2
  151. fate-vsynth%-mpeg4-thread: ENCOPTS = -b 500k -flags +mv4+aic \
  152. -data_partitioning 1 -trellis 1 \
  153. -mbd bits -ps 200 -bf 2 \
  154. -threads 2 -slices 2
  155. FATE_VCODEC-$(call ENCDEC, MSMPEG4V3, AVI) += msmpeg4
  156. fate-vsynth%-msmpeg4: ENCOPTS = -qscale 10
  157. FATE_VCODEC-$(call ENCDEC, MSMPEG4V2, AVI) += msmpeg4v2
  158. fate-vsynth%-msmpeg4v2: ENCOPTS = -qscale 10
  159. FATE_VCODEC-$(call ENCDEC, PNG, AVI) += mpng
  160. fate-vsynth%-mpng: CODEC = png
  161. FATE_VCODEC-$(call ENCDEC, MSVIDEO1, AVI) += msvideo1
  162. FATE_VCODEC-$(call ENCDEC, PRORES, MOV) += prores prores_ks
  163. fate-vsynth%-prores: FMT = mov
  164. fate-vsynth%-prores_ks: ENCOPTS = -profile hq
  165. fate-vsynth%-prores_ks: FMT = mov
  166. FATE_VCODEC-$(call ENCDEC, QTRLE, MOV) += qtrle qtrlegray
  167. fate-vsynth%-qtrle: FMT = mov
  168. fate-vsynth%-qtrlegray: CODEC = qtrle
  169. fate-vsynth%-qtrlegray: ENCOPTS = -pix_fmt gray
  170. fate-vsynth%-qtrlegray: FMT = mov
  171. FATE_VCODEC-$(call ENCDEC, RAWVIDEO, AVI) += rgb
  172. fate-vsynth%-rgb: CODEC = rawvideo
  173. fate-vsynth%-rgb: ENCOPTS = -pix_fmt bgr24
  174. FATE_VCODEC-$(call ENCDEC, ROQ, ROQ) += roqvideo
  175. fate-vsynth%-roqvideo: CODEC = roqvideo
  176. fate-vsynth%-roqvideo: ENCOPTS = -frames 5
  177. fate-vsynth%-roqvideo: RAWDECOPTS = -r 30
  178. fate-vsynth%-roqvideo: FMT = roq
  179. FATE_VCODEC-$(call ENCDEC, RV10, RM) += rv10
  180. fate-vsynth%-rv10: ENCOPTS = -qscale 10
  181. fate-vsynth%-rv10: FMT = rm
  182. FATE_VCODEC-$(call ENCDEC, RV20, RM) += rv20
  183. fate-vsynth%-rv20: ENCOPTS = -qscale 10
  184. fate-vsynth%-rv20: FMT = rm
  185. FATE_VCODEC-$(call ENCDEC, SNOW, AVI) += snow snow-hpel snow-ll
  186. fate-vsynth%-snow: ENCOPTS = -strict -2 -qscale 2 -flags +qpel \
  187. -me_method iter -dia_size 2 \
  188. -cmp 12 -subcmp 12 -s 128x64
  189. fate-vsynth%-snow-hpel: ENCOPTS = -strict -2 -qscale 2 \
  190. -me_method iter -dia_size 2 \
  191. -cmp 12 -subcmp 12 -s 128x64
  192. fate-vsynth%-snow-ll: ENCOPTS = -strict -2 -qscale .001 -pred 1 \
  193. -flags +mv4+qpel
  194. FATE_VCODEC-$(call ENCDEC, SVQ1, MOV) += svq1
  195. fate-vsynth%-svq1: ENCOPTS = -qscale 3 -pix_fmt yuv410p
  196. fate-vsynth%-svq1: FMT = mov
  197. FATE_VCODEC-$(call ENCDEC, R210, AVI) += r210
  198. FATE_VCODEC-$(call ENCDEC, V210, AVI) += v210
  199. FATE_VCODEC-$(call ENCDEC, V308, AVI) += v308
  200. FATE_VCODEC-$(call ENCDEC, V408, AVI) += v408
  201. fate-vsynth%-v408: ENCOPTS = -sws_flags neighbor+bitexact
  202. fate-vsynth%-v408: DECOPTS = -sws_flags neighbor+bitexact
  203. FATE_VCODEC-$(call ENCDEC, AVUI, MOV) += avui
  204. fate-vsynth%-avui: ENCOPTS = -s pal -strict experimental -sws_flags neighbor+bitexact
  205. fate-vsynth%-avui: DECOPTS = -sws_flags neighbor+bitexact
  206. fate-vsynth%-avui: FMT = mov
  207. FATE_VCODEC-$(call ENCDEC, WMV1, AVI) += wmv1
  208. fate-vsynth%-wmv1: ENCOPTS = -qscale 10
  209. FATE_VCODEC-$(call ENCDEC, WMV2, AVI) += wmv2
  210. fate-vsynth%-wmv2: ENCOPTS = -qscale 10
  211. FATE_VCODEC-$(call ENCDEC, RAWVIDEO, AVI) += yuv
  212. fate-vsynth%-yuv: CODEC = rawvideo
  213. FATE_VCODEC-$(call ENCDEC, YUV4, AVI) += yuv4
  214. FATE_VCODEC-$(call ENCDEC, Y41P, AVI) += y41p
  215. FATE_VCODEC-$(call ENCDEC, ZLIB, AVI) += zlib
  216. FATE_VCODEC += $(FATE_VCODEC-yes)
  217. FATE_VSYNTH1 = $(FATE_VCODEC:%=fate-vsynth1-%)
  218. FATE_VSYNTH2 = $(FATE_VCODEC:%=fate-vsynth2-%)
  219. $(FATE_VSYNTH1): tests/data/vsynth1.yuv
  220. $(FATE_VSYNTH2): tests/data/vsynth2.yuv
  221. FATE_AVCONV += $(FATE_VSYNTH1) $(FATE_VSYNTH2)
  222. fate-vsynth1: $(FATE_VSYNTH1)
  223. fate-vsynth2: $(FATE_VSYNTH2)
  224. fate-vcodec: fate-vsynth1 fate-vsynth2