aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Ekström <jeebjp@gmail.com>2012-08-19 20:07:13 +0300
committerAnton Khirnov <anton@khirnov.net>2012-08-20 11:23:10 +0200
commitb96509c93ce6ebb0e997e0b2a55cf10c786a2812 (patch)
treee6f19008dafebb344427925a04a815c233b8ebc1
parent1ab5a780424ae8755858e153def1173a50a44e4c (diff)
downloadffmpeg-b96509c93ce6ebb0e997e0b2a55cf10c786a2812.tar.gz
fate: Add FATE tests for the Ut Video encoder
Signed-off-by: Anton Khirnov <anton@khirnov.net>
-rw-r--r--tests/fate/utvideo.mak42
-rw-r--r--tests/ref/fate/utvideoenc_rgb_left51
-rw-r--r--tests/ref/fate/utvideoenc_rgb_median51
-rw-r--r--tests/ref/fate/utvideoenc_rgb_none51
-rw-r--r--tests/ref/fate/utvideoenc_rgba_left51
-rw-r--r--tests/ref/fate/utvideoenc_rgba_median51
-rw-r--r--tests/ref/fate/utvideoenc_rgba_none51
-rw-r--r--tests/ref/fate/utvideoenc_yuv420_left51
-rw-r--r--tests/ref/fate/utvideoenc_yuv420_median51
-rw-r--r--tests/ref/fate/utvideoenc_yuv420_none51
-rw-r--r--tests/ref/fate/utvideoenc_yuv422_left51
-rw-r--r--tests/ref/fate/utvideoenc_yuv422_median51
-rw-r--r--tests/ref/fate/utvideoenc_yuv422_none51
13 files changed, 654 insertions, 0 deletions
diff --git a/tests/fate/utvideo.mak b/tests/fate/utvideo.mak
index 4e350f722e..991072ef47 100644
--- a/tests/fate/utvideo.mak
+++ b/tests/fate/utvideo.mak
@@ -24,3 +24,45 @@ fate-utvideo_yuv422_median: CMD = framecrc -i $(SAMPLES)/utvideo/utvideo_yuv422_
FATE_SAMPLES_AVCONV += $(FATE_UTVIDEO)
fate-utvideo: $(FATE_UTVIDEO)
+
+fate-utvideoenc%: CMD = framemd5 -f image2 -vcodec pgmyuv -i $(TARGET_PATH)/tests/vsynth1/%02d.pgm -vcodec utvideo -f avi ${OPTS}
+fate-utvideoenc%: tests/vsynth1/00.pgm
+
+FATE_UTVIDEOENC += fate-utvideoenc_rgba_none
+fate-utvideoenc_rgba_none: OPTS = -pix_fmt rgba -pred 3
+
+FATE_UTVIDEOENC += fate-utvideoenc_rgba_left
+fate-utvideoenc_rgba_left: OPTS = -pix_fmt rgba -pred left
+
+FATE_UTVIDEOENC += fate-utvideoenc_rgba_median
+fate-utvideoenc_rgba_median: OPTS = -pix_fmt rgba -pred median
+
+FATE_UTVIDEOENC += fate-utvideoenc_rgb_none
+fate-utvideoenc_rgb_none: OPTS = -pix_fmt rgb24 -pred 3
+
+FATE_UTVIDEOENC += fate-utvideoenc_rgb_left
+fate-utvideoenc_rgb_left: OPTS = -pix_fmt rgb24 -pred left
+
+FATE_UTVIDEOENC += fate-utvideoenc_rgb_median
+fate-utvideoenc_rgb_median: OPTS = -pix_fmt rgb24 -pred median
+
+FATE_UTVIDEOENC += fate-utvideoenc_yuv420_none
+fate-utvideoenc_yuv420_none: OPTS = -pix_fmt yuv420p -pred 3
+
+FATE_UTVIDEOENC += fate-utvideoenc_yuv420_left
+fate-utvideoenc_yuv420_left: OPTS = -pix_fmt yuv420p -pred left
+
+FATE_UTVIDEOENC += fate-utvideoenc_yuv420_median
+fate-utvideoenc_yuv420_median: OPTS = -pix_fmt yuv420p -pred median
+
+FATE_UTVIDEOENC += fate-utvideoenc_yuv422_none
+fate-utvideoenc_yuv422_none: OPTS = -pix_fmt yuv422p -pred 3
+
+FATE_UTVIDEOENC += fate-utvideoenc_yuv422_left
+fate-utvideoenc_yuv422_left: OPTS = -pix_fmt yuv422p -pred left
+
+FATE_UTVIDEOENC += fate-utvideoenc_yuv422_median
+fate-utvideoenc_yuv422_median: OPTS = -pix_fmt yuv422p -pred median
+
+FATE_AVCONV += $(FATE_UTVIDEOENC)
+fate-utvideoenc: $(FATE_UTVIDEOENC)
diff --git a/tests/ref/fate/utvideoenc_rgb_left b/tests/ref/fate/utvideoenc_rgb_left
new file mode 100644
index 0000000000..4f090398aa
--- /dev/null
+++ b/tests/ref/fate/utvideoenc_rgb_left
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 168240, 116019db2e5350536a51e8d7a609c2b9
+0, 1, 1, 1, 167868, 0700499b0f8b9b09601b969caa2c2efd
+0, 2, 2, 1, 169216, 890e18b99ccca7601d1f68efd19e906b
+0, 3, 3, 1, 168156, b9bf194312e492f1cf3ee624e08bb30a
+0, 4, 4, 1, 167680, 53383c3fc77f6e35b58525ab2440fe85
+0, 5, 5, 1, 168516, 8c7150e8246b8c9a2f1985a0f80d68a7
+0, 6, 6, 1, 167712, d46508dad0cf7cd3f7e1aca50a16537b
+0, 7, 7, 1, 168172, 1b2643b67d0dddc04e65ff1e751b11ba
+0, 8, 8, 1, 167388, 0104ea69082aac2190a96bbe7971eac7
+0, 9, 9, 1, 168300, 6768cdc8383c4abdee474edddaab452b
+0, 10, 10, 1, 167960, ef3e8ed5dfc2dbdae9ac818b0c9964f7
+0, 11, 11, 1, 168024, 98d0fd2d82c43cabc4be25a304aa3e3a
+0, 12, 12, 1, 166460, db5cf5154a710972d2f2468cf1e5694c
+0, 13, 13, 1, 167284, 7caf2ab0d10c138a06846680145e18de
+0, 14, 14, 1, 168788, f7c071cc22bc822cd780df2ae761c98f
+0, 15, 15, 1, 168312, defc3b454e98c362e155e63765e5e7fe
+0, 16, 16, 1, 167888, 37713f91a4d342fab759a390eb0e5858
+0, 17, 17, 1, 167428, 56c9e1e039ec4ca3bad163c5f7356398
+0, 18, 18, 1, 166792, a67cc85635ff5c706c37273c8f6ace48
+0, 19, 19, 1, 167220, 797aa3302fa9b865e28ac517beff2fe7
+0, 20, 20, 1, 166612, 160d49cb2b549972ed15165221392fe8
+0, 21, 21, 1, 166676, fcd0bdcae5b009f34074b56ab566d92f
+0, 22, 22, 1, 167792, cdc6496a8ca7e41c8f23e56a2f995a07
+0, 23, 23, 1, 168040, 0c56322c9cde9e76f3a6a732fdb861bc
+0, 24, 24, 1, 168656, ed627dd70d9f1335c844ee7a62db29a0
+0, 25, 25, 1, 168456, b3282f8f1792206c4fed9101213032da
+0, 26, 26, 1, 168120, 43b3094cfa9e5985fa447bf25e0a8bcc
+0, 27, 27, 1, 167480, c1a58fd31844b0fa99a323921c4c3269
+0, 28, 28, 1, 165320, b0f33fddd18a2a74177721e8d1cb13e3
+0, 29, 29, 1, 165104, 2413e9a95b02a64629cd7ce6d4de799b
+0, 30, 30, 1, 166604, b17539db5a3f394632f9afadcaeaca38
+0, 31, 31, 1, 167500, 178dd023eee970d729089e0172659c27
+0, 32, 32, 1, 167264, ff5afb31aff707ded3c472044f685ddc
+0, 33, 33, 1, 169008, 99edb6139d09310a3fc686e76f982ae9
+0, 34, 34, 1, 168108, 66a41bba03235e2a501520198a415a7a
+0, 35, 35, 1, 168016, 028d708a5fcd6e708a3ae471052f5f00
+0, 36, 36, 1, 166984, 585c78a2e01493581dfbb395db7be582
+0, 37, 37, 1, 167388, 4ae14a7cb1016a19ff3bfc067797e774
+0, 38, 38, 1, 165388, fa0f0cc6c5efcdea4c15033ff104aee1
+0, 39, 39, 1, 165524, 868c476a1a007be410b05ba24f9d3efc
+0, 40, 40, 1, 165784, 4bfbcdcd82bb04c9aaf0a8f192b67d52
+0, 41, 41, 1, 166404, 09ff4d32a36dd63b035e2b430b790687
+0, 42, 42, 1, 166872, 3ef565aac161a5d9eb91b74496669a68
+0, 43, 43, 1, 166772, 1d7e9b7115408887a564bff985e92da3
+0, 44, 44, 1, 166588, 48e3e7c6b5f98e206f3837ef163d26ab
+0, 45, 45, 1, 164396, ff338e650a3475185f03842d7a691680
+0, 46, 46, 1, 163504, 21cba98fb1c03ffc149e582a4e70404c
+0, 47, 47, 1, 164248, f92c93800bff6486f09e170bead7f470
+0, 48, 48, 1, 164444, dc04c0e3b86bf42363046a2a56c76c82
+0, 49, 49, 1, 163844, 48007251ab2dd2d0228ac9095b190718
diff --git a/tests/ref/fate/utvideoenc_rgb_median b/tests/ref/fate/utvideoenc_rgb_median
new file mode 100644
index 0000000000..7a5febc7d9
--- /dev/null
+++ b/tests/ref/fate/utvideoenc_rgb_median
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 149240, 7a580af923f79d740391481f44080fb8
+0, 1, 1, 1, 148992, 5083a5e7c7ba433a157441aeb93cec33
+0, 2, 2, 1, 150648, 05657dc59cf5f9c0b1eb4ec875000cb8
+0, 3, 3, 1, 149716, 8a7742db11d0d35f5b575423099b5bd7
+0, 4, 4, 1, 149272, f437090e4782d65f65b06eb1d47c9aa0
+0, 5, 5, 1, 150044, d8d00cf8ae06b6ca8d30a89e7c9666f8
+0, 6, 6, 1, 149532, 4abc60d6ea18bffe28151e0f4549aa95
+0, 7, 7, 1, 149316, a12ddb15795b63b7bf1ce8a66fa1815e
+0, 8, 8, 1, 149516, 3752007da5c2c1963314d35e2d580783
+0, 9, 9, 1, 149520, 419534098fa161671528cc77e307cf79
+0, 10, 10, 1, 149444, 383a3b79634d6aeecfc7eb0a5a5c9b7b
+0, 11, 11, 1, 149164, 5a5901882e8b9aa5a6300b7d786c2b16
+0, 12, 12, 1, 147996, fe9fb5d4cd97c7ad7f11c87b9f75b0a9
+0, 13, 13, 1, 149152, 83e0c36884b91263d2d235fab9a3b3e7
+0, 14, 14, 1, 149640, 366bdff8c41cb2f5a90810f719661bcc
+0, 15, 15, 1, 149600, e72f5f3e18b7a98443094d6e34d5286c
+0, 16, 16, 1, 148916, a94a62b5647365d13081a6c3398b127d
+0, 17, 17, 1, 149520, fdbc007fb7443b5bfd388d273413d20b
+0, 18, 18, 1, 148468, bc4c7b5324fe5658c15e8540dbc7130a
+0, 19, 19, 1, 148388, e9caa4e18c0bffb07039427d0a98798d
+0, 20, 20, 1, 147772, 3eb6bde758e13296e61911d6f574a49f
+0, 21, 21, 1, 148128, 64cc6d5c819d10e725c30fe69ef040ae
+0, 22, 22, 1, 148200, d5b8a93061a70e55b8b751d3c1a4ac5c
+0, 23, 23, 1, 149312, ef912e5a3640992dd2948037535b0341
+0, 24, 24, 1, 149244, 8df2d35148b9d934f79566cf6371af89
+0, 25, 25, 1, 149040, 27f1c2a77ae36fa23bd36ecf4df67fb8
+0, 26, 26, 1, 149020, 995370b34bd96cd5004ba5c4d449fd3f
+0, 27, 27, 1, 148308, b0a7cd8ee1db8fd0d1324450386de11c
+0, 28, 28, 1, 148016, 6d211a6b4e790e9c46757053782e6713
+0, 29, 29, 1, 147324, 730619aa336408d3d5694eb8e3ea2d71
+0, 30, 30, 1, 148104, 34c53deccc3be58bdc4cd9c0e3f19918
+0, 31, 31, 1, 149004, 710a4724ffac1457b8437f94c8e97b8b
+0, 32, 32, 1, 148452, be7c947371e8a434233eb7eaeef95c8d
+0, 33, 33, 1, 149076, 694fc1872869e16aaf176473f2094c52
+0, 34, 34, 1, 148952, f35b66ac7f42cbaf849a41536306cb85
+0, 35, 35, 1, 149012, 3f5d904d5a8b3d169f8c87f21b712ef6
+0, 36, 36, 1, 148464, 363df43764cb27a2d2a16e9246bf2c76
+0, 37, 37, 1, 148968, 2e08d0c96fdc99b091ad20c1aed208b6
+0, 38, 38, 1, 147744, 15412763aec2d25f9a23de4fa3cf60dc
+0, 39, 39, 1, 148124, f76679ddeaf18af0ef9563c7b7d86636
+0, 40, 40, 1, 147800, 3195234ce043d883252fbe7a01dbe86c
+0, 41, 41, 1, 148528, dd4b892d143ebd326452f5504d23d794
+0, 42, 42, 1, 147752, eb8c442bcc34a8a38e5101c1e00615c9
+0, 43, 43, 1, 147832, d834c5e4e0a1ab0a31c13eb7ac40fbc1
+0, 44, 44, 1, 148000, 9761129bd0122132d2154a56c2ceec62
+0, 45, 45, 1, 147344, 9b76ab62f501f0714076d9f94bb4374a
+0, 46, 46, 1, 146744, 184298b63c13730635f347eecdb506dd
+0, 47, 47, 1, 145980, ef4f03747a2a76016fc66df7a32a57b8
+0, 48, 48, 1, 146228, e2618fe6c95722d63cbce7ae5021ed16
+0, 49, 49, 1, 145756, 9f9187896e840d163ad955c1a37756fe
diff --git a/tests/ref/fate/utvideoenc_rgb_none b/tests/ref/fate/utvideoenc_rgb_none
new file mode 100644
index 0000000000..4b74a224f8
--- /dev/null
+++ b/tests/ref/fate/utvideoenc_rgb_none
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 302912, d2964d8013869388b92b546f105a7541
+0, 1, 1, 1, 302880, a06917f2dd5905034b78d80b4702ade9
+0, 2, 2, 1, 302740, b8af48307700460aed09e61ff43297d8
+0, 3, 3, 1, 302784, d8bec7604718716daf04814fb889064d
+0, 4, 4, 1, 302824, d1f2f9055165254003868dcde305c423
+0, 5, 5, 1, 302796, c18722063e9cf19ee8cdcb69266c722a
+0, 6, 6, 1, 302796, cf00264e1e5f43890b5be16dc2aa0a75
+0, 7, 7, 1, 302860, d9b305b43c36ed06fa347e04daa26772
+0, 8, 8, 1, 302892, f69c6b0c027ac5f3d7e9e56609b36559
+0, 9, 9, 1, 302896, f81634542eb893a8150edfd91168d91e
+0, 10, 10, 1, 302776, 91509d83dc2c9308d9e29ed2b3c49b44
+0, 11, 11, 1, 302792, 7109c49d3c65cdc9afd8f0f3917dc36f
+0, 12, 12, 1, 302908, db307334fe92965b4500fb7f67ce4ffd
+0, 13, 13, 1, 302784, d18a2017145423cd7f5880cb44e34c4b
+0, 14, 14, 1, 302668, 1b2362477600ad99fdcca3bc2167be9e
+0, 15, 15, 1, 302696, cf38dc4d728a291f6206ee0dc4dec00c
+0, 16, 16, 1, 302788, d1d7743274cef21e137d9aa512ca1edc
+0, 17, 17, 1, 302840, 89d46fec602e9ebe4cae55961da71f4c
+0, 18, 18, 1, 302928, 46e55d9667f21cd14184bad89de32971
+0, 19, 19, 1, 302984, 8f25e47871bace8b39a2709f49cef11d
+0, 20, 20, 1, 302936, 6dff8cb7bb9fe294fcc79a713a983fb1
+0, 21, 21, 1, 302980, 26191c78d0e2901404776791397c4f83
+0, 22, 22, 1, 302996, 9f414291a8ea4537ac991675034db64b
+0, 23, 23, 1, 302912, d274f2535d109f9b8601f175fcd858cb
+0, 24, 24, 1, 302964, 1d70b563670a33267ae2f6644e1c8e95
+0, 25, 25, 1, 303028, 9d14b635403c286ca9d60fa700e30888
+0, 26, 26, 1, 302988, 8a3a45138a29d38ac70f1fb9f3147c1a
+0, 27, 27, 1, 303056, 2378954ac18fb9b01feb937b76c08a55
+0, 28, 28, 1, 302996, 675d4b6b235c374da450cf00e240185b
+0, 29, 29, 1, 303072, 77a7205787f1e7cca59dd239f6c0591a
+0, 30, 30, 1, 303084, 551c987cb8a574f999577a9e630a5df4
+0, 31, 31, 1, 303024, 73451fc3927d329fe407def293b5467d
+0, 32, 32, 1, 302972, 03c69d8fdebeb8c3ba31e99142e68144
+0, 33, 33, 1, 302904, 5949ab8ff47e72933e4668cf46a76d95
+0, 34, 34, 1, 302828, a9197dd2e0496fce0e8de9950466dc6e
+0, 35, 35, 1, 302972, 9c8c24df0e0196453f7db3182561879a
+0, 36, 36, 1, 303052, 849f0f23b6d2e6af74bff2a45b5d8a63
+0, 37, 37, 1, 303028, 16acb86039a38dbfac48e2a04a48d9ea
+0, 38, 38, 1, 303088, eb5336a28c2b99dd6e4e9f90a5fb5d96
+0, 39, 39, 1, 303048, 5a637b3e6b7b3c4b7aa58f4ffd8c5e29
+0, 40, 40, 1, 303120, f31ef0195ba9c70c5e6dc84ed4e9928a
+0, 41, 41, 1, 303056, 3f73ef08146c697fcec3aa16805aac92
+0, 42, 42, 1, 303092, 89e2ac83290eef0f589d67e3adad2d30
+0, 43, 43, 1, 303140, cde3a48e309c3ca6a3843d2d5aaade79
+0, 44, 44, 1, 303116, 5456c19ccc38237a09986c962350ef60
+0, 45, 45, 1, 303156, 419e78d98541dfd1a9d29a04cf985cf9
+0, 46, 46, 1, 303148, 9b7a7559370798cfae2ccb1731cd89c0
+0, 47, 47, 1, 303196, d9590fdf48bc3be1a4956fb5da3584dd
+0, 48, 48, 1, 303256, e6c90aa1753fc7d6b04cfc7e92b53af1
+0, 49, 49, 1, 303228, 941f240dc62777aba1792f36b70e1f48
diff --git a/tests/ref/fate/utvideoenc_rgba_left b/tests/ref/fate/utvideoenc_rgba_left
new file mode 100644
index 0000000000..eb0112bbff
--- /dev/null
+++ b/tests/ref/fate/utvideoenc_rgba_left
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 181176, da7b045edf219bced5b152791b10c87f
+0, 1, 1, 1, 180804, b06bd1fe1a00a21efe0df3eabb909c9f
+0, 2, 2, 1, 182152, 75e86b780b70de0510be70278b8005d7
+0, 3, 3, 1, 181092, 70beeae6c87daac962fa67a5ef72f250
+0, 4, 4, 1, 180616, b0b8fda4db6828360d67556c8d90ea4f
+0, 5, 5, 1, 181452, 434daeeac59b17aaa3717ae9e5e5a3d7
+0, 6, 6, 1, 180648, c70e591fc050a7d8b88efed67a78c119
+0, 7, 7, 1, 181108, a84cd2efe629a710bf8f2118686ec8e3
+0, 8, 8, 1, 180324, 9e1559a606140bbad9d268d1453e26f8
+0, 9, 9, 1, 181236, 8daa9a96816335c58b88223d8c54f4a0
+0, 10, 10, 1, 180896, 5566aaf2bfb0a5f8601abb55496b0373
+0, 11, 11, 1, 180960, 67eb48372ea714bfb6b962029fa67328
+0, 12, 12, 1, 179396, 49bc20f86bd85dddea8085238ca3221a
+0, 13, 13, 1, 180220, aa783168cf3753dcc68d90155505081e
+0, 14, 14, 1, 181724, cef5a732a3308f7803d36d06e22f2490
+0, 15, 15, 1, 181248, a5bd0e1d9ea5130b35d084929fcb3f1d
+0, 16, 16, 1, 180824, 7ea8991f802ed2db13f12478b8445d96
+0, 17, 17, 1, 180364, f9065f42a52f4485347dfe667101bf3c
+0, 18, 18, 1, 179728, e88bf6901809ff965b76dad488a6dced
+0, 19, 19, 1, 180156, f054de2239e20e776663de033608e0c0
+0, 20, 20, 1, 179548, a328018fc852bb3f8a0a64b30d051d02
+0, 21, 21, 1, 179612, b865fd5fcbe5b6d7ca3e111048ecc3b2
+0, 22, 22, 1, 180728, 8a0a4c6933f8b6323426272fb64722de
+0, 23, 23, 1, 180976, c4a788e3c7b81070013934df31299208
+0, 24, 24, 1, 181592, 9fab2972676d67f86ec7b319ffb78e59
+0, 25, 25, 1, 181392, 7d762db7b2651f259d32a882a499c156
+0, 26, 26, 1, 181056, 1620dc2804ca0d9a48097db7f91bf6bc
+0, 27, 27, 1, 180416, 62dcb666136de841db99096e7c5fadb0
+0, 28, 28, 1, 178256, 27b01db3cf22c2a982b73861d3eb6add
+0, 29, 29, 1, 178040, ef78cd2d2091c03e90ab3feae0b2adcf
+0, 30, 30, 1, 179540, f026cc6577c8fd8ec685a45b88b31b62
+0, 31, 31, 1, 180436, af692865fb34b1418b756e794a9c1c3b
+0, 32, 32, 1, 180200, e65b58ef8e13e67a4c0c45086d299818
+0, 33, 33, 1, 181944, 6eae7d0bf76bf06da71186671901e698
+0, 34, 34, 1, 181044, 740dadcf236ca0af236c09d29b312940
+0, 35, 35, 1, 180952, 5badcbb17e97be7b54fa1e9e49f677ed
+0, 36, 36, 1, 179920, 8827a40f0c1e0b04f6085a7146955e2f
+0, 37, 37, 1, 180324, 9d42e2532a48c4972cb71ac541c3ea57
+0, 38, 38, 1, 178324, 31db217d6e574bf83279288f0b36a628
+0, 39, 39, 1, 178460, 8fdc5e7be532e05ddff2e10064113882
+0, 40, 40, 1, 178720, 28fdeaf450edd61a5a0f0dbc75aefe99
+0, 41, 41, 1, 179340, 2988ec8ce759703ef975c55a22ed3cd4
+0, 42, 42, 1, 179808, e27ed3b49dd8c3ef98e3526d9d691b65
+0, 43, 43, 1, 179708, 14415299804aa63cb7b262af6869a371
+0, 44, 44, 1, 179524, bb75948719d5af9e48543fa0c932f746
+0, 45, 45, 1, 177332, b0984e1db78dcc3d44a010444d87cf78
+0, 46, 46, 1, 176440, bd57710508310a95ad41cd056b715e12
+0, 47, 47, 1, 177184, f81326c0bce9ca0efe7edae7659d0e8b
+0, 48, 48, 1, 177380, edf7f2fd74be9992edda43ea87e524b7
+0, 49, 49, 1, 176780, 8902e18670264eec47294ffde934fcb9
diff --git a/tests/ref/fate/utvideoenc_rgba_median b/tests/ref/fate/utvideoenc_rgba_median
new file mode 100644
index 0000000000..5b2386c62c
--- /dev/null
+++ b/tests/ref/fate/utvideoenc_rgba_median
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 162176, 56d4b5bfb2f08741c34ebb18dc5baf13
+0, 1, 1, 1, 161928, ac877a6e1afeb6813e5b79110dd5b847
+0, 2, 2, 1, 163584, 0559b537142474bdebc6fa2af9cca544
+0, 3, 3, 1, 162652, 3c36b59df75490a091035dfd6ebcbe01
+0, 4, 4, 1, 162208, d411c2aacdbdb828dae6bcd522a8b5d3
+0, 5, 5, 1, 162980, 658724afc8be5ceff75cb308a99267cb
+0, 6, 6, 1, 162468, 9dcb4ed413892aae0f3490d9baca4ddd
+0, 7, 7, 1, 162252, 2bc2f2fa252036ddf8241a0f1956ea8c
+0, 8, 8, 1, 162452, 4d41518201cb1295aad71df4fb1fedb9
+0, 9, 9, 1, 162456, 6811e63d77b8e842c13fba38afd65017
+0, 10, 10, 1, 162380, 710437537764369906cdf1858aea9e70
+0, 11, 11, 1, 162100, 60d1d475a78e1222a3f116db88d6dc8c
+0, 12, 12, 1, 160932, d9b8588ab35792e70c51354faea611cc
+0, 13, 13, 1, 162088, 3d88ee1f80ae7877afc5c142758a9346
+0, 14, 14, 1, 162576, e3357aea30458fb86c05d2a9cb5f3c8e
+0, 15, 15, 1, 162536, 117a4eae0ed02bb6ae32d23e591a3ae4
+0, 16, 16, 1, 161852, fa14269ae83e546dbbfa40f1aaf82bc8
+0, 17, 17, 1, 162456, 8c40b4e6507f7af04b1cae3848d6cfcc
+0, 18, 18, 1, 161404, 7211261a35fef4fae67b160eac1eb259
+0, 19, 19, 1, 161324, cd634211ef67871bd6860ec005ac0118
+0, 20, 20, 1, 160708, 8b65a6f7459670dd8ba5fb01b1344065
+0, 21, 21, 1, 161064, 85203e969ec6e8081c7cea4bb65de1cf
+0, 22, 22, 1, 161136, 296f3621d6b7f630768e5d7437629c42
+0, 23, 23, 1, 162248, ce43a1896160c289bbe5d56dafeeebc7
+0, 24, 24, 1, 162180, 0411ba4d9bdb8ea145a38214cab93aff
+0, 25, 25, 1, 161976, e6bb765a977e81afff62aab1a1a2ca2f
+0, 26, 26, 1, 161956, 8528eee65853c2e7298eb9e3c6ca9fa2
+0, 27, 27, 1, 161244, 332fa087a6ceceb610f3895ca5d81e4c
+0, 28, 28, 1, 160952, 4f3b0b92e63bdd0fd3f102e968e6f432
+0, 29, 29, 1, 160260, dd2de3bce5b80161547e33a748ce6b6a
+0, 30, 30, 1, 161040, 1306d4826a20d22810f19579e93d0f63
+0, 31, 31, 1, 161940, 1724203fd332573e778624d61c3251b0
+0, 32, 32, 1, 161388, da336f3865edf7e54ae14ca6d01de859
+0, 33, 33, 1, 162012, 2a04855ce96edec00e1860722e0f23a2
+0, 34, 34, 1, 161888, 4e525c0ff2ddfe1dd74f655037c52f39
+0, 35, 35, 1, 161948, 4a4723b617c8b142a3d9a1b30bf0c99c
+0, 36, 36, 1, 161400, a8250f7d6da6e7eb91c5b042679737e2
+0, 37, 37, 1, 161904, 15f4274bbaaa517865d0e212a03ee5fa
+0, 38, 38, 1, 160680, f7ee2864aa4c1c555fe0176b1b886294
+0, 39, 39, 1, 161060, 0f9eb1b9a798fe070d5d5b1587106e12
+0, 40, 40, 1, 160736, 988f20899af28deb7187cb89268fac7a
+0, 41, 41, 1, 161464, c279f41499a76c4548200859a3990d8b
+0, 42, 42, 1, 160688, 6d730f0c2a195845050af864af9f6bf1
+0, 43, 43, 1, 160768, ae1a3ad132c3ad269ca156d4948df74e
+0, 44, 44, 1, 160936, 32d6264955012575fad51675ef40b72b
+0, 45, 45, 1, 160280, aabff2df269f802b05d07c2bdcd7deae
+0, 46, 46, 1, 159680, 57f2bf1bca662fd2652dc9a04b883295
+0, 47, 47, 1, 158916, 5dfd2f6a29c73972d7f7431bc4e7f099
+0, 48, 48, 1, 159164, 1eeee6293474fc26cefad5cb2174d088
+0, 49, 49, 1, 158692, 56cee1ab036ccdfc9de75475d31fc221
diff --git a/tests/ref/fate/utvideoenc_rgba_none b/tests/ref/fate/utvideoenc_rgba_none
new file mode 100644
index 0000000000..1991ba63e1
--- /dev/null
+++ b/tests/ref/fate/utvideoenc_rgba_none
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 303172, abd9a3e31bc4b3c4103eb95e21dd74e6
+0, 1, 1, 1, 303140, 29e62ca01ba6520da8c35442ddfa7bec
+0, 2, 2, 1, 303000, 03bc2de7e91ef1e929c4032a1469465f
+0, 3, 3, 1, 303044, d7316b5074897ceb5861de482006ec07
+0, 4, 4, 1, 303084, 8a29268305ef904301658ec2664241c7
+0, 5, 5, 1, 303056, 975dd2ac1e4b6dcd2a909889bac98604
+0, 6, 6, 1, 303056, b3ccb6e7a35e44616dc246b747edcb23
+0, 7, 7, 1, 303120, 593e11ab37e42cf285f9a13bf671b60e
+0, 8, 8, 1, 303152, 542aeb683f988532116f29fb3cc0a41c
+0, 9, 9, 1, 303156, f42a3e67219288391cdd131c12c2da87
+0, 10, 10, 1, 303036, a37840b759223d8d7e18902fb6073247
+0, 11, 11, 1, 303052, bbb27328a3d8949923daaa0b5ed28b3d
+0, 12, 12, 1, 303168, 522b1e74feb75bd7c4a71e5d85a3fda2
+0, 13, 13, 1, 303044, 961add62cf8853b41d281164344716be
+0, 14, 14, 1, 302928, 01b5005db00eb6dde2d8231e797ab40d
+0, 15, 15, 1, 302956, 6d448f007b545f370d2dffff0fb57e00
+0, 16, 16, 1, 303048, 942ec6895f66b5f08ee6cdc5604641ad
+0, 17, 17, 1, 303100, d83c9630bedd853cac07e26b6f99f77d
+0, 18, 18, 1, 303188, 6b9a7a78b71e64ed9a6c33a844387db4
+0, 19, 19, 1, 303244, bfa627071fd9be90f752d44a933aa89b
+0, 20, 20, 1, 303196, b1ec566949ac10d73bc16b3025cbeae4
+0, 21, 21, 1, 303240, d63e8b323bcff8a00cf7cbe99dc35a7f
+0, 22, 22, 1, 303256, 75fd6c994639c9e135d5030f31d8b21d
+0, 23, 23, 1, 303172, ac0e8390b59c639daba597c1b61fd6cb
+0, 24, 24, 1, 303224, 507bbfb7401ad63ddf318ef152615873
+0, 25, 25, 1, 303288, 5f223867377e295e954407632ccddcbb
+0, 26, 26, 1, 303248, 14c1be3751f3e05894e286e870f9d8ce
+0, 27, 27, 1, 303316, 9d924c4c4603ac5d9c2659f13cbcf928
+0, 28, 28, 1, 303256, c05f5d99182899aefb57e914e336e0ba
+0, 29, 29, 1, 303332, 41a65ae85522875f582de0487b0afab0
+0, 30, 30, 1, 303344, 749dc30e61b9d5a179c3513b5e6ca052
+0, 31, 31, 1, 303284, 958be38d742fb0c5fce50a50bcbe91e2
+0, 32, 32, 1, 303232, df178e2c1819c832d9a468e22f0d6bed
+0, 33, 33, 1, 303164, db6061112448b9b29c84e9c045561dde
+0, 34, 34, 1, 303088, c3e0f93fd01155c0d4671a24ba82e4c3
+0, 35, 35, 1, 303232, 5b2254a77fbbd0066fcacf1593c92f8f
+0, 36, 36, 1, 303312, ed9c65e2d573a7491b964d8cd160df9c
+0, 37, 37, 1, 303288, 9cf8fa422d4fc4e458cab411614c4e47
+0, 38, 38, 1, 303348, 9e00fe9b2003d28d97c3c766d6eaf6b6
+0, 39, 39, 1, 303308, 4abeab3a986bcaa2cdc6a3898fb7aea0
+0, 40, 40, 1, 303380, 4fefa9101b72a398a411348a5ac0f398
+0, 41, 41, 1, 303316, cbc28418d47be7ac8f7d3922cfd382a9
+0, 42, 42, 1, 303352, e365776166badae59207351c5302c4ee
+0, 43, 43, 1, 303400, 7d207922a9ff4a64c9fc08d32d53541e
+0, 44, 44, 1, 303376, fa84592162246745c77a528301f30532
+0, 45, 45, 1, 303416, 29013e5e5ef8a0f5de63f8946386eeed
+0, 46, 46, 1, 303408, e56901bf9b5559ba91105fe6f388ea41
+0, 47, 47, 1, 303456, 12958be8a6f6beadd9b94db6d4295b6c
+0, 48, 48, 1, 303516, bf8175a090ee88158f26a3eaff0ae79c
+0, 49, 49, 1, 303488, 964be87620c228652924bfd68faa25d9
diff --git a/tests/ref/fate/utvideoenc_yuv420_left b/tests/ref/fate/utvideoenc_yuv420_left
new file mode 100644
index 0000000000..fe6c3c5314
--- /dev/null
+++ b/tests/ref/fate/utvideoenc_yuv420_left
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 59820, db20782033a18141a292da3f1a1c1782
+0, 1, 1, 1, 60040, c2f90e3de0c305ab8aac2530e3cd0e41
+0, 2, 2, 1, 61072, 97b0337a4185ef9d8e2533649860ad9a
+0, 3, 3, 1, 59680, 876d24900ef83e7958c9a1e54c82f330
+0, 4, 4, 1, 58620, 7732915d2a50f38951d46e36dcd49236
+0, 5, 5, 1, 60276, 343ef35f003da592451cab1ffbf158aa
+0, 6, 6, 1, 60504, 6823f1ef02f27719bb602911aa8caab5
+0, 7, 7, 1, 59916, 5f9ce306dc27d84d1af6d378b385c715
+0, 8, 8, 1, 60104, bac83cb16811318ad602ff391fdc94c7
+0, 9, 9, 1, 60352, bbd85ee4ccaad1b30b74d9edd1916291
+0, 10, 10, 1, 60324, 950230449f907a0615139fe2e1033a47
+0, 11, 11, 1, 60312, 8ba4355ecf4d738524bd331b98e87af7
+0, 12, 12, 1, 59196, 1efcac9ee097b0e027cc4e9d9d61037c
+0, 13, 13, 1, 59684, 9815ca06f7a99fb648f8f2856441517f
+0, 14, 14, 1, 61028, e4d684a1106cf78cd19ed87bd7ff7bab
+0, 15, 15, 1, 61116, 60f20615fb500d1baf9b1d07aa0f62f4
+0, 16, 16, 1, 60096, 35bc9f5e7f8a34c4221840f556d99df8
+0, 17, 17, 1, 59900, c8f756e698eeff9b55d83319f96865ce
+0, 18, 18, 1, 59424, 3ac4bb99ded21039ec65b1959c27347e
+0, 19, 19, 1, 59100, ff576160ae91bd8466f6d33b5750cce9
+0, 20, 20, 1, 58768, 86ed0e0c1a0f23ee6f3beabd0cc5691d
+0, 21, 21, 1, 58604, c0674d3c5973ff503e736a984326b42d
+0, 22, 22, 1, 58984, ec47ecc40d18b5e5216572db7aca4399
+0, 23, 23, 1, 59724, 119c234e452012e4475d09698e859dbc
+0, 24, 24, 1, 60688, 6720b72beefcdaa5355a68b763b8c7ca
+0, 25, 25, 1, 59768, 2dc4e643f97f9123842836df17a165ce
+0, 26, 26, 1, 59116, 3660544cdd5c0424578aa2cf6edc93d5
+0, 27, 27, 1, 58776, 465d3d35793fd088644746fc2b941a3c
+0, 28, 28, 1, 56948, c452face29e359c118cb206b8a99330e
+0, 29, 29, 1, 56984, d8c15040ca27d8cbf5e0f4a9464de289
+0, 30, 30, 1, 58172, 930839ebaa292a9f3348da3ba58a8c1f
+0, 31, 31, 1, 59008, bb9d062bf494bc1d4a0056dd8790bb25
+0, 32, 32, 1, 59568, e3f0f969063c614f7fefbc0269c4c029
+0, 33, 33, 1, 61276, f2e98cab7a320a9748c943910d0eda1d
+0, 34, 34, 1, 60056, 6875b10061cb1c303a18f186d65247ed
+0, 35, 35, 1, 59272, ad3f45ed83560479904c6395f857c95b
+0, 36, 36, 1, 58592, eca4f8faa40a737f56f6e492d98845c1
+0, 37, 37, 1, 58764, fa68a3723ba5b965532768b41dc73b60
+0, 38, 38, 1, 58300, 741a2ae174d721e3f3c0d13e54132095
+0, 39, 39, 1, 58260, 3546ddc2620a4c9fa415c0252a5eb9a4
+0, 40, 40, 1, 57324, f11c6053a5448e9b4830ef4fe833e5de
+0, 41, 41, 1, 58988, 6ae00a0b48f5ecdafcfd958684a21bcb
+0, 42, 42, 1, 58828, 6239ee212ca7decde8ad4cb304f0f786
+0, 43, 43, 1, 58736, 279226528c101b94f4e458151e7f5383
+0, 44, 44, 1, 58160, 2e8427fd4f232a7798488dfbbbc93db0
+0, 45, 45, 1, 56796, fab0929df1bfa6d4f09d962defaa58e7
+0, 46, 46, 1, 55932, 71da16ee5673bdbc5b69f01da23725d3
+0, 47, 47, 1, 56368, 20a7d362adb0f920f792106d034630fe
+0, 48, 48, 1, 56424, ba44ca273348efefafb5e73df81e26e9
+0, 49, 49, 1, 55508, e6df309da7552a2676e82f1f4644a694
diff --git a/tests/ref/fate/utvideoenc_yuv420_median b/tests/ref/fate/utvideoenc_yuv420_median
new file mode 100644
index 0000000000..b5288d38cd
--- /dev/null
+++ b/tests/ref/fate/utvideoenc_yuv420_median
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 62916, e8443c85edaa534618869eb50a54d8ee
+0, 1, 1, 1, 62856, 0b9504992a19ffbe5a1f12d823a15f0f
+0, 2, 2, 1, 64112, 609f1d6cfd57fc87565f3078c48c06f0
+0, 3, 3, 1, 62748, e57217dc1de96a6c9494ceea126e71a1
+0, 4, 4, 1, 61696, d3bba27c92b9cc4503274dffdcb7de3e
+0, 5, 5, 1, 63320, f84c26950c6aa2a29af17a923723ea18
+0, 6, 6, 1, 63556, 2f2b60577616ea085b77b0154b8eb935
+0, 7, 7, 1, 62812, c2cd5836f6ea3bcbf5affdfb623e1aab
+0, 8, 8, 1, 63204, 010dd4c0a5681507f96502abfe1a8b55
+0, 9, 9, 1, 63516, 69b945a7afd1efad7c473c1113f66c5f
+0, 10, 10, 1, 63356, 05c2acb737b75e96d757fbd4270d9109
+0, 11, 11, 1, 63364, f63b1184912c6f25fce3f5fd166fc90c
+0, 12, 12, 1, 62416, 3bb6161920400a4535188103e5ee9b64
+0, 13, 13, 1, 62980, 6482cec5429083c3759588a2d81c2dc8
+0, 14, 14, 1, 63964, 8567a41bc0e6a6acef2c5b9991a370da
+0, 15, 15, 1, 64044, a80fc046d821bb7d3b1d0732b5528a0d
+0, 16, 16, 1, 62976, 623d43978c0255d7ad94dbbb08911c74
+0, 17, 17, 1, 63084, 1459781283da8935125776f157db1fc9
+0, 18, 18, 1, 62436, e9c751f7690590affd7e85775fe21fca
+0, 19, 19, 1, 62168, 948822a3568448032d2d0742031c6a33
+0, 20, 20, 1, 61724, 724e7f5384f8a9c7a03cba49abc1bef1
+0, 21, 21, 1, 61736, 3b0a781f947af472439852fd70d7e235
+0, 22, 22, 1, 62000, 0e41647e42cecc7644a42e3d96f34cfb
+0, 23, 23, 1, 62848, 1fc1813e6b44d573f3327533c161a262
+0, 24, 24, 1, 63504, 96c17ee6abc37fa6db608716d02b8ac7
+0, 25, 25, 1, 62732, 2cbeaaddd16d4686a3abdfaba7309107
+0, 26, 26, 1, 62288, b7263b7119853aee434290fb3cd30a16
+0, 27, 27, 1, 61788, e915b09f59360c1ffb92c2b80499e020
+0, 28, 28, 1, 60272, 0aab9182c5fb047344bdae541fb1befb
+0, 29, 29, 1, 60268, bc1bf979670850c37ab31e329dd909a6
+0, 30, 30, 1, 61268, 74a62d3c1363ea38d2a8687ac39a4112
+0, 31, 31, 1, 62264, 5b689d5835044b1582f664c1a3c3f336
+0, 32, 32, 1, 62668, 10638908ec2b59e0b75168ed7cce4141
+0, 33, 33, 1, 63864, 78bac64552f0a2450fc87fe8153a6774
+0, 34, 34, 1, 63032, befb82196b484ec3bb9d0eb57beb3c42
+0, 35, 35, 1, 62512, aea5110ce91111c9ce93865a82134125
+0, 36, 36, 1, 61772, 2744a404a3448db9db6214c688b4ed9f
+0, 37, 37, 1, 62044, c712fbf903d575fd4adc926470f99799
+0, 38, 38, 1, 61780, 97664d4ecf4492e0b8aa3ca025730158
+0, 39, 39, 1, 61724, 4b89a0cb4f99398e412eb4c4b8268fad
+0, 40, 40, 1, 60560, db2de1312d493917ebd805972a0d0086
+0, 41, 41, 1, 62284, b85ab454e9599ca9b52fc4e3ad2faaec
+0, 42, 42, 1, 61864, ae717317d753d6334d317abff4c51491
+0, 43, 43, 1, 61728, 70d6c4c68a112fde735195c5177123c8
+0, 44, 44, 1, 61252, 14b9a9e1686a1787991dfd40ed871184
+0, 45, 45, 1, 60224, ad1094331e5b2c27381e4e1781baa85c
+0, 46, 46, 1, 59416, a7b2ef933eaf0c8706bcf1f1f06dc01e
+0, 47, 47, 1, 59656, 89ff0f1c3ded6aa335f9c3ee66dead8e
+0, 48, 48, 1, 59616, 5fc6c44004562ed74b536374059a8bdd
+0, 49, 49, 1, 58836, feb32d803459a18e487f87c02ec1bf5c
diff --git a/tests/ref/fate/utvideoenc_yuv420_none b/tests/ref/fate/utvideoenc_yuv420_none
new file mode 100644
index 0000000000..981339140d
--- /dev/null
+++ b/tests/ref/fate/utvideoenc_yuv420_none
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 144516, 8b4c8d3ae74da0306cbb7c6709f16ec5
+0, 1, 1, 1, 144504, 041bcfd819fec93241baa2797e2c97c2
+0, 2, 2, 1, 144384, 9a3efab6db020060e877bcd68f6153b5
+0, 3, 3, 1, 144428, d650148e1b29eaf2ada94bad59214b06
+0, 4, 4, 1, 144596, 8a070f1c074181d3ebc8ff93d8218c91
+0, 5, 5, 1, 144456, d53157d4f6d4c97452061b05e9bd4589
+0, 6, 6, 1, 144424, fc15bb77ea351dcb8790f6a228d9a899
+0, 7, 7, 1, 144416, 36d9f2deea7d96c8c694a0464fbfb6f6
+0, 8, 8, 1, 144328, 07850891af07fd9491b7d4957309c59a
+0, 9, 9, 1, 144328, 98ec846ba6a928f1f8feaceffdc2ca47
+0, 10, 10, 1, 144252, eecbc81aeef72a557681fff3ade0e1ea
+0, 11, 11, 1, 144176, 716f45f97fbbee271c756b51c1442a04
+0, 12, 12, 1, 144460, 4b53f968b67f0a3fcc751551685dc616
+0, 13, 13, 1, 144320, a0989eba4abc67fc3f97286b5ebb6b6f
+0, 14, 14, 1, 144256, b565b531adde9de04ac8dd18441f4b10
+0, 15, 15, 1, 144240, 93866939e1799cc7a638e684d583c3fc
+0, 16, 16, 1, 144320, 6289947dfb7c1c56f7f38c293325b08d
+0, 17, 17, 1, 144360, d348dba72b01e64687d9772c6e408f16
+0, 18, 18, 1, 144356, a7285a69d3351c0ff37fc4e052e4445e
+0, 19, 19, 1, 144368, 6fc446cf8455acec4422dc87c9c3fd9a
+0, 20, 20, 1, 144388, 54d73f606e23d78675cf505a2e877e2f
+0, 21, 21, 1, 144424, 2d55f4fc58a611608c814bf624671103
+0, 22, 22, 1, 144352, ccd87aa111216071adba2ac6867e5a70
+0, 23, 23, 1, 144384, 5a159db181501aafac455eb6ec37645b
+0, 24, 24, 1, 144384, 0cd8523c88838fb4e59200d324206fc5
+0, 25, 25, 1, 144328, 7a537ae88e6b91ee637415fc1bdfdfb3
+0, 26, 26, 1, 144416, 2beb77ab1ec30d463442ba1b0b995a22
+0, 27, 27, 1, 144524, 032209c413e2906cea0ac1f229e731b0
+0, 28, 28, 1, 144680, 370581756f4df5ecb7127d9bad3f219d
+0, 29, 29, 1, 144656, b43f514332e63452f08cfcecca2c2820
+0, 30, 30, 1, 144500, 8debbbdf18df1a82161356f93aa5da22
+0, 31, 31, 1, 144504, 04b1d817b10d4529d0108311e131a395
+0, 32, 32, 1, 144380, f64c22d9b822b2b7744ed17dc93c0fea
+0, 33, 33, 1, 144176, b7fe2a1d51921876dc3294a28a8b73f4
+0, 34, 34, 1, 144188, bdbaf871cf4f0f9762d487719bd5d70d
+0, 35, 35, 1, 144356, b90c993423632180fcc924fb687a6e2b
+0, 36, 36, 1, 144556, 2d88e31846cdb41ab346dd94fc473854
+0, 37, 37, 1, 144524, 95b4f8749ee5dbeda91c0e650b13c250
+0, 38, 38, 1, 144540, c34b4aa099ec50f3f10d52670a8e3d2e
+0, 39, 39, 1, 144460, a4f79bdebaed29910d148293c6909766
+0, 40, 40, 1, 144540, c359072ba35fb124eb6da7a74e7d746b
+0, 41, 41, 1, 144356, 6c759d3621208fe60018d0bac631fbe3
+0, 42, 42, 1, 144340, 421a7417934af7f46c121c45b7ee9d28
+0, 43, 43, 1, 144436, 7954efe1687e9d823018aef879ac5958
+0, 44, 44, 1, 144488, 338bfdc6ac006a086c19ba256226d4f8
+0, 45, 45, 1, 144604, ff31f6f7706968bb150c98fd17ce59ac
+0, 46, 46, 1, 144600, a532db975d958b0b17406b3e7cae78a5
+0, 47, 47, 1, 144520, b1c007e9f754c2ddf039f3d4767cdcb1
+0, 48, 48, 1, 144472, a03290fb08b8b054f18fee2209f5bd13
+0, 49, 49, 1, 144508, 7d9eda64f4fc11c95dcd63a1130cb5ab
diff --git a/tests/ref/fate/utvideoenc_yuv422_left b/tests/ref/fate/utvideoenc_yuv422_left
new file mode 100644
index 0000000000..3fe834f1eb
--- /dev/null
+++ b/tests/ref/fate/utvideoenc_yuv422_left
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 91796, 4c8297f7f28046125c690222c3214896
+0, 1, 1, 1, 92148, ba8df4e34baa5679735980d32ab4dcbb
+0, 2, 2, 1, 93280, 82eebd80efb688a5da6779237895a254
+0, 3, 3, 1, 91620, 481fe4261a0dcdc7179753c786425a0e
+0, 4, 4, 1, 90468, 8fe1fde928524130efd2adb3e5dbfc14
+0, 5, 5, 1, 92192, 937ccb039db2a25448c3bf4f7d8dcc82
+0, 6, 6, 1, 92208, 07f66e4f355f84c3a1ed85add165bda1
+0, 7, 7, 1, 91880, 7a680775a71c0db8a7b06545d489a016
+0, 8, 8, 1, 91964, 8c91d9908ec476e6457155fbbc20551a
+0, 9, 9, 1, 92320, 99577a047b9b6c9d18370c636e093cb9
+0, 10, 10, 1, 92316, 6ee62076a75b457c358aa3da45638c6c
+0, 11, 11, 1, 92284, 6c82d57786e0e1010944e6a1c535252e
+0, 12, 12, 1, 90932, 0e5bb1fd031143e8001852bd42a2d708
+0, 13, 13, 1, 91620, c590080aebc74c4d64090161a43146b5
+0, 14, 14, 1, 93124, 4bf756daa31db1a64148ace4e8ec8a17
+0, 15, 15, 1, 93152, d9b9edf360b36ac3f54bfd835596294f
+0, 16, 16, 1, 92088, efd7436e924eacb2177021bd6b676410
+0, 17, 17, 1, 91828, d8434dd3ceb3fb8026e380cec20aeda7
+0, 18, 18, 1, 91216, c546d8e3a45395f8037280750dc344fd
+0, 19, 19, 1, 90892, 9912d9aaf53dc505cf0be17a4013e893
+0, 20, 20, 1, 90416, fecb67be6f80a2c368c3e0c864033363
+0, 21, 21, 1, 90288, 9a32f067364f8ac7d145826e5b1af157
+0, 22, 22, 1, 90824, 4feb2146c84616ac093a21805961896c
+0, 23, 23, 1, 91592, 57f7ca368fd6e578d19a95e4270b932b
+0, 24, 24, 1, 92692, 71da3aa27ac6abdbef33c933b3ada49e
+0, 25, 25, 1, 91588, 21b36844ab555ca2c8565b16a6cd3cda
+0, 26, 26, 1, 90940, c0d4e047f4bcb7741dda13dc093f1ff7
+0, 27, 27, 1, 90548, 61e91e2723e3d402efd4166a8d537799
+0, 28, 28, 1, 88380, 142ca8a9b848583906a6872559f6afe4
+0, 29, 29, 1, 88412, 12ed09ec8ab4b0c933f306eab12bbb2e
+0, 30, 30, 1, 89856, b12d495e747e44c624f2f1b54da68488
+0, 31, 31, 1, 90764, 6593de0da477a1acef29231046c4e036
+0, 32, 32, 1, 91328, 305797e1e5cd779192e71d0c7c62d590
+0, 33, 33, 1, 93216, 560d8fd4f3ed691c7a32243412156eae
+0, 34, 34, 1, 92044, fee3c383804680b4d7b4516ccd399c70
+0, 35, 35, 1, 91148, 78683ab3ed20af28d7a70a6ec46cb51b
+0, 36, 36, 1, 90376, 9c42b34763c52af7d4bedbf7f4188c26
+0, 37, 37, 1, 90632, a5796dd685a695292fa324565dfd5475
+0, 38, 38, 1, 89844, 0c05fd10b989657cf6cb6142dada5dc9
+0, 39, 39, 1, 89808, 0524cf03f546d2694cf3743d27da6b85
+0, 40, 40, 1, 88900, 0e45ddf73bf25ba03b3ddf4c8fcbe710
+0, 41, 41, 1, 90584, 4af285ba46599e268926613f23cffea9
+0, 42, 42, 1, 90560, c94bfa84bf549464025aef51c3084abb
+0, 43, 43, 1, 90424, c3abba4ca926d22094b58fb3c87d301f
+0, 44, 44, 1, 89796, f765800cb70f5601481077442e5e8255
+0, 45, 45, 1, 88132, 0670d35d34a3fd6926dd3c5771f8929a
+0, 46, 46, 1, 87176, 0068a72ac885f81a37e65b0a9c460d26
+0, 47, 47, 1, 87644, 999cd5da8ac0bceb83132ea027ef998e
+0, 48, 48, 1, 87712, b7f38fb617599a6fbb7304790e7a8249
+0, 49, 49, 1, 86632, fce71c4a72c805cbfe08dbf187f20c5a
diff --git a/tests/ref/fate/utvideoenc_yuv422_median b/tests/ref/fate/utvideoenc_yuv422_median
new file mode 100644
index 0000000000..ade2923264
--- /dev/null
+++ b/tests/ref/fate/utvideoenc_yuv422_median
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 89780, 3e91243736f0d8c96ec01e53e1a0ca1a
+0, 1, 1, 1, 89692, 29e8beef70f920150f3405328130c1f4
+0, 2, 2, 1, 90912, 8ef86647ae9006cb888248b346091603
+0, 3, 3, 1, 89568, 9af0abff68a9e66adf177e626c88477d
+0, 4, 4, 1, 88552, 7149af41c6213afb224d5e483b6a0771
+0, 5, 5, 1, 90188, 7a8818cdf4c5cfb961a84e6f0affb333
+0, 6, 6, 1, 90220, 10a59f9d437355a7cfcc87800ad58f55
+0, 7, 7, 1, 89432, e7ade031b0cfe8ba5720ca82c0b5134a
+0, 8, 8, 1, 89892, 21b4ae6db7817caec958caa6d993d08e
+0, 9, 9, 1, 90404, 90fda92c74b423705233620283ff11b0
+0, 10, 10, 1, 90028, efa74c6cea3e5b4795a570e4ecec8359
+0, 11, 11, 1, 90056, ac9426560a82c563184be68c9a044245
+0, 12, 12, 1, 89116, 523dfd6c2d8732b4c709270648bd3fc6
+0, 13, 13, 1, 89820, d6829b4ac96790f3b38d54465afc281c
+0, 14, 14, 1, 90720, b2d2130e5a677a292c6ac5ee715fb08b
+0, 15, 15, 1, 90900, fd63286afaa80474c069910091c48d82
+0, 16, 16, 1, 89892, dce4344b86b6f6452da8e5c582817bbb
+0, 17, 17, 1, 89896, b4b4afffba0a9b93b8677695b0246096
+0, 18, 18, 1, 89172, c842bcea2ae28737b696b7066f032c21
+0, 19, 19, 1, 88920, a90e2a3326ad821a972ed5663e4db3dd
+0, 20, 20, 1, 88380, f6e80319224d2d1164f8c92465434d83
+0, 21, 21, 1, 88508, 5338f8602eb21ec8c98f9a94c614c6ae
+0, 22, 22, 1, 88636, b5342f8831e4c75755097230ea56caf4
+0, 23, 23, 1, 89764, 6cdfe5b2789b960cd24592f0d4c8e450
+0, 24, 24, 1, 90252, 317353d115124d89d7648b9381221fe9
+0, 25, 25, 1, 89500, add22cae4aaec687340ad45cf7adfd1a
+0, 26, 26, 1, 89036, 0a2b14e5ceec26f9498d1caea1767870
+0, 27, 27, 1, 88676, b0978d633f9f1aacbf1bfd1a779e654a
+0, 28, 28, 1, 87092, a5aed642ca45d403a89b12d9405128e1
+0, 29, 29, 1, 87168, bbf30ee8918be97766c50219886b2045
+0, 30, 30, 1, 88084, 5913cbc1c3adebb6f9f230b24f3a3eee
+0, 31, 31, 1, 89056, 9f86fd1126923de5bbcf57b3e4c19824
+0, 32, 32, 1, 89372, fb6b14b16c900523dad7c8be2969776e
+0, 33, 33, 1, 90372, 7c95a49abadaa5914d71a3b8ccd069fc
+0, 34, 34, 1, 89732, 7d7ad876e67daa9aafa88e5117c5db2a
+0, 35, 35, 1, 89264, c546830ac81b57f4284fd9567687adbf
+0, 36, 36, 1, 88692, 640a270b1c421f5864264a22c4dcef61
+0, 37, 37, 1, 89044, b46a8cdedadd85dadc999bb71e9c9a1b
+0, 38, 38, 1, 88672, 5a906c0ecf4d818fe8baccbaa0fd306e
+0, 39, 39, 1, 88492, 80ce9360ac56c79cce311392db8fcf76
+0, 40, 40, 1, 87372, 34e03634ebdf41d5faeb93a8322feec5
+0, 41, 41, 1, 88896, edff2238d908325809b07b542b6f95d7
+0, 42, 42, 1, 88604, 575ac8566e144c94c5c09cbaae333262
+0, 43, 43, 1, 88424, a42e08d0624a5fbb91aee7c1030c442c
+0, 44, 44, 1, 87932, eee99a04e2934a541a6bad33ccd64c38
+0, 45, 45, 1, 86916, 37ba014aa01c2cf100e719e67bec00c1
+0, 46, 46, 1, 86316, e5b94ffcb55d82d2fd5a3a31084b00fe
+0, 47, 47, 1, 86428, 96cea3d74a0c8ff2702ca2bbccf9ec6e
+0, 48, 48, 1, 86228, 1390793cf7369b808abfefb53affb800
+0, 49, 49, 1, 85284, 89d0772c948e95af1f78ae2a0dd341c8
diff --git a/tests/ref/fate/utvideoenc_yuv422_none b/tests/ref/fate/utvideoenc_yuv422_none
new file mode 100644
index 0000000000..69c4b65301
--- /dev/null
+++ b/tests/ref/fate/utvideoenc_yuv422_none
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0, 0, 0, 1, 191804, f2daaab85ecc8227c958e44b3456fae8
+0, 1, 1, 1, 191828, 80c599b8f3c58db35f181059aec90869
+0, 2, 2, 1, 191672, 081ab347067e368c3e92ac1faa2ea933
+0, 3, 3, 1, 191700, 198425dac62730270553fef97ac3ef38
+0, 4, 4, 1, 191976, a667de6623f7d11b7f7d9fe40abd578e
+0, 5, 5, 1, 191764, 1ba21a4be3b534b6a651640bf12b63cf
+0, 6, 6, 1, 191720, 9d63ddee2324fc96727607c5980709f9
+0, 7, 7, 1, 191692, b86bfa6ecfeee06775495a170a7c8bb9
+0, 8, 8, 1, 191584, a86a64a1d383ef072f2fc17e7976d048
+0, 9, 9, 1, 191556, 8faea41b0af5ab445eb65f34727d0cfa
+0, 10, 10, 1, 191476, e20631164f65ad55642216c8cdfb414c
+0, 11, 11, 1, 191280, daf024a253a90b8b6f59b570ca63356e
+0, 12, 12, 1, 191700, fae65d15784413cbc36c6e06f9f3d868
+0, 13, 13, 1, 191432, aa799f4516b2e48e706da61e5a8fc1f3
+0, 14, 14, 1, 191420, 61d1e5031a2b5e6819c8531aa34fe4c1
+0, 15, 15, 1, 191416, f3e1e60fb59f4e9f1d9e98c0eee42c3c
+0, 16, 16, 1, 191504, 2aae6896ded24fb31898249ea0d99355
+0, 17, 17, 1, 191592, 1d48065c7e445284b8bd49f4fbe20668
+0, 18, 18, 1, 191612, 37ffbf09c3f44f4b954253627453bd3a
+0, 19, 19, 1, 191624, fa479dd1f2a412115d95bb8389f61be8
+0, 20, 20, 1, 191600, 4642ec6004690fbeb3c28a41198faeb3
+0, 21, 21, 1, 191664, 4ffff6d4daba3a27c0493826b4777b59
+0, 22, 22, 1, 191544, 9ba114162c29f537783770c2968cba9a
+0, 23, 23, 1, 191584, 56fa5cef18ff2b91677183e4063d94b7
+0, 24, 24, 1, 191648, 854aa515d70326a6e6230403f6e46cd8
+0, 25, 25, 1, 191528, 56a8493b14f553ea72d15414b349032c
+0, 26, 26, 1, 191644, 89a2e45e7c9a679a532054bfa4c621ce
+0, 27, 27, 1, 191808, 6a09e77d1581dd82b5013f05e32cffe9
+0, 28, 28, 1, 192036, 4375e948a177a7d9242e521671c6083f
+0, 29, 29, 1, 191968, ec50a1d34a2cd973510bc5059137dc0a
+0, 30, 30, 1, 191740, c0c96ae654189fb0db4862584d102db8
+0, 31, 31, 1, 191792, 7243b58b1a72213ad95230f5ac8bbe72
+0, 32, 32, 1, 191636, ae0e180bd5f1b79cf2862865e5a5b89e
+0, 33, 33, 1, 191408, 85f18294eef023a0ff995fd75d22da47
+0, 34, 34, 1, 191332, ff1c7c120d5f10027ff8e07fef2ca459
+0, 35, 35, 1, 191552, 36dd28b3ed917e1a9dd460fbafccbd42
+0, 36, 36, 1, 191860, c864fe9b3ed74afc68d1206b3be60717
+0, 37, 37, 1, 191832, 3135be8c92e17e8dfbe713f2119407a8
+0, 38, 38, 1, 191816, 1a19ec6f037aecd3523879a071dd6b7d
+0, 39, 39, 1, 191708, ff5394fbaf21e31025ccb71189274d67
+0, 40, 40, 1, 191816, 39fd9856c94d386633ac796fbe159904
+0, 41, 41, 1, 191552, 2f5b8e24915c66a5213e8a587368c538
+0, 42, 42, 1, 191556, 28a1056a5f58b2916d8151def7e102af
+0, 43, 43, 1, 191704, 30000db8f792b0b762d4c9ea1b442d0b
+0, 44, 44, 1, 191792, 013de9696edc2cdfcd81d239be89a988
+0, 45, 45, 1, 191952, 44ed3f7914e4c2e7b51ecdcefbef36db
+0, 46, 46, 1, 191924, 764583676fd2595cedf13d61c4d4339a
+0, 47, 47, 1, 191788, bb29d4f35e3d05e7851c986ba410a551
+0, 48, 48, 1, 191716, 2ade356badd31d5f2208c512c374671d
+0, 49, 49, 1, 191736, 29c0753eb219082c9f7dca220a4c50ec