vcodec.mak 16 KB

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