avformat/nut: add support for yuva444/422p12 pixel format
authorPaul B Mahol <onemda@gmail.com>
Fri, 14 Dec 2018 10:26:30 +0000 (11:26 +0100)
committerPaul B Mahol <onemda@gmail.com>
Fri, 14 Dec 2018 10:26:30 +0000 (11:26 +0100)
18 files changed:
libavcodec/raw.c
libavformat/nut.c
tests/ref/fate/filter-pixdesc-yuva422p12be
tests/ref/fate/filter-pixdesc-yuva422p12le
tests/ref/fate/filter-pixdesc-yuva444p12be
tests/ref/fate/filter-pixdesc-yuva444p12le
tests/ref/fate/filter-pixfmts-copy
tests/ref/fate/filter-pixfmts-crop
tests/ref/fate/filter-pixfmts-field
tests/ref/fate/filter-pixfmts-fieldorder
tests/ref/fate/filter-pixfmts-hflip
tests/ref/fate/filter-pixfmts-il
tests/ref/fate/filter-pixfmts-null
tests/ref/fate/filter-pixfmts-pad
tests/ref/fate/filter-pixfmts-scale
tests/ref/fate/filter-pixfmts-swapuv
tests/ref/fate/filter-pixfmts-transpose
tests/ref/fate/filter-pixfmts-vflip

index d731c08..b6fb91c 100644 (file)
@@ -177,6 +177,10 @@ const PixelFormatTag ff_raw_pix_fmt_tags[] = {
     { AV_PIX_FMT_YUVA422P10BE, MKTAG(10 , 10 , '4', 'Y') },
     { AV_PIX_FMT_YUVA444P10LE, MKTAG('Y', '4',  0 , 10 ) },
     { AV_PIX_FMT_YUVA444P10BE, MKTAG(10 ,  0 , '4', 'Y') },
+    { AV_PIX_FMT_YUVA422P12LE, MKTAG('Y', '4', 10 , 12 ) },
+    { AV_PIX_FMT_YUVA422P12BE, MKTAG(12 , 10 , '4', 'Y') },
+    { AV_PIX_FMT_YUVA444P12LE, MKTAG('Y', '4',  0 , 12 ) },
+    { AV_PIX_FMT_YUVA444P12BE, MKTAG(12 ,  0 , '4', 'Y') },
     { AV_PIX_FMT_YUVA420P16LE, MKTAG('Y', '4', 11 , 16 ) },
     { AV_PIX_FMT_YUVA420P16BE, MKTAG(16 , 11 , '4', 'Y') },
     { AV_PIX_FMT_YUVA422P16LE, MKTAG('Y', '4', 10 , 16 ) },
index e65f424..4fbbcb1 100644 (file)
@@ -143,6 +143,11 @@ const AVCodecTag ff_nut_video_tags[] = {
     { AV_CODEC_ID_RAWVIDEO,         MKTAG('Y', '4',   0,  10) },
     { AV_CODEC_ID_RAWVIDEO,         MKTAG(10,    0, '4', 'Y') },
 
+    { AV_CODEC_ID_RAWVIDEO,         MKTAG('Y', '4',   0,  12) },
+    { AV_CODEC_ID_RAWVIDEO,         MKTAG(12,    0, '4', 'Y') },
+    { AV_CODEC_ID_RAWVIDEO,         MKTAG('Y', '4',  10,  12) },
+    { AV_CODEC_ID_RAWVIDEO,         MKTAG(12,   10, '4', 'Y') },
+
     { AV_CODEC_ID_RAWVIDEO,         MKTAG('Y', '1',   0,  12) },
     { AV_CODEC_ID_RAWVIDEO,         MKTAG(12,    0, '1', 'Y') },
     { AV_CODEC_ID_RAWVIDEO,         MKTAG('Y', '1',   0,  16) },
index 6849910..16df4e4 100644 (file)
@@ -1 +1 @@
-pixdesc-yuva422p12beb822920a4a148c62ea35d75e38ee39cf
+pixdesc-yuva422p12be0420bebaa8a56fea28a06fd565f8e6b3
index 9177091..b7452cc 100644 (file)
@@ -1 +1 @@
-pixdesc-yuva422p12le88c6e0db15868c513be817f3555e73cc
+pixdesc-yuva422p12le5dff3afb6301abbc0e2a85761b8c5c64
index b113852..cfe454f 100644 (file)
@@ -1 +1 @@
-pixdesc-yuva444p12bea6cf79e0128198b076e1e0763de8101f
+pixdesc-yuva444p12be952d5e6b4a3494c5228527237fdfc413
index eb88fe7..95aa2a9 100644 (file)
@@ -1 +1 @@
-pixdesc-yuva444p12le67e55a290376dad40c4d99e54ab5b842
+pixdesc-yuva444p12le235218d42dbbe40fbc044755825c6a95
index 0e1f9ee..0609344 100644 (file)
@@ -129,8 +129,8 @@ yuva420p9le         0e9c9803aaaddc9f38e419de587793c2
 yuva422p            8f6bb778647e5dee62f544d646321171
 yuva422p10be        2f7204c93a1e5bfb04538852f99e4074
 yuva422p10le        c8082548aca999edde77ef2749b1ff4c
-yuva422p12be        10c9b731e96a8801093974d853f4fdc2
-yuva422p12le        b2bd03163b3810915deebdff5901f14d
+yuva422p12be        19f8205cca3d19bfd4ad9cd2bfb07a0e
+yuva422p12le        38e6c7d87332852d660df5594529fa6e
 yuva422p16be        427ad55f7464121bb3ce164641772bc6
 yuva422p16le        af6f8df651275de58129e010bb45ffcd
 yuva422p9be         47579cc2cea861ca1461589b80c4720f
@@ -138,8 +138,8 @@ yuva422p9le         aaeab2bfe80a29390e8666103ed8bb40
 yuva444p            459fad5abfd16db9bb6a52761dc74cc1
 yuva444p10be        fa16bae4fc25429deb944ffa9f5b28a0
 yuva444p10le        92f820d3481b7ebcb48b98a73e7b4c90
-yuva444p12be        d06344a8118bff2bb8bb0ef71e1a24f0
-yuva444p12le        734414ed0ce19fe3340e44c5495ff152
+yuva444p12be        d8193387128a1b1efc51f36a12c85385
+yuva444p12le        9c17bf72b083f93040d1e19516b54de7
 yuva444p16be        c80c1899789a6411d0025730efc8f01c
 yuva444p16le        2ed56ea50fafda4d226c9b133755dad8
 yuva444p9be         4903fde22b15d28da90761ac1cfcb1c5
index 3e3bb77..4e4b6e4 100644 (file)
@@ -126,8 +126,8 @@ yuva420p9le         abff60ecbe6e867949399710953bd1fc
 yuva422p            ad564e513a8c08ff0ec99324e204dfbd
 yuva422p10be        61c806e5e02ea4c90ad3156c90957a18
 yuva422p10le        41507ce136674ad458e562d44c67ddca
-yuva422p12be        2fa3d91a758022d636f7b41a812267d0
-yuva422p12le        ecaa0a18aab0833e8ebe8e84c6888c50
+yuva422p12be        e686b37d6738aae3c1d25bd36f3e518c
+yuva422p12le        95bb91f2922bdd2eb9aa6fabe86d4994
 yuva422p16be        3437cce47184e4b9a7a681831816e1ea
 yuva422p16le        0d534fcd61fc54fa9d4bbae5bde537ec
 yuva422p9be         588f72cd85285ed71a519525a947dedc
@@ -135,8 +135,8 @@ yuva422p9le         d5a5d50f414caa1563700207931f0e0a
 yuva444p            64bd3debe7c2b8cca91bc1d6e2a8d80e
 yuva444p10be        1291045203be7d60b9015fa7e34b5716
 yuva444p10le        75865370fb0c018fb8663958bafcdc51
-yuva444p12be        e0057ff4cda878908153644c8b0744bd
-yuva444p12le        86b8ff8dcaf8802b705eb922738250c1
+yuva444p12be        ff58aed06f42e1258ae04509bccaad0a
+yuva444p12le        00ab9d34f0fd4ba23b48e8ae4bf93c17
 yuva444p16be        f817caf234aaf5848b2bc9679582ed56
 yuva444p16le        b32ad623fc423f897ff31c4073ea2a6f
 yuva444p9be         48498d994c3c9070f31773e39da306dd
index a09e61a..d59c982 100644 (file)
@@ -129,8 +129,8 @@ yuva420p9le         00d48d3b1b0383b92ccdb26543cfb7f8
 yuva422p            801bfb0d4c9e7a524d97bfa11f7995fd
 yuva422p10be        a0d743770698deea2be35ceb2bb0eaad
 yuva422p10le        6a0861e5c887f3213dc34d8674611950
-yuva422p12be        ec0201d920e6e638f4f7dbb4f8e0f105
-yuva422p12le        dee014ad4ae521a9ca3462423ec8ac47
+yuva422p12be        87dc9f7efc97d5e1bbea7564eca62a2a
+yuva422p12le        137f75ade26b6d631d3998127e411a00
 yuva422p16be        c870b697714221ef9168b6984294e501
 yuva422p16le        fef7d5f29dfec9ee36216b7a610b4b39
 yuva422p9be         83ff1ae035bb587dc59acf4121602dac
@@ -138,8 +138,8 @@ yuva422p9le         75baca2a93a8e76b27ea208858213819
 yuva444p            cfbd995b538c34dee9c107ecf875b283
 yuva444p10be        de8b80b4c3a12624412530f09de6dd39
 yuva444p10le        04c93877f724a29b47bc8c0a10a3036b
-yuva444p12be        da6b3bd545d95221d5386606e54b0e19
-yuva444p12le        701ca18afae09fda784e9d28a87b7a74
+yuva444p12be        a9efd9944314bb7fc9ba359bc3446446
+yuva444p12le        acc831041bbf13e75636c0426f82aa19
 yuva444p16be        b10fd7c1b61ac22bdb285f0d91a390f1
 yuva444p16le        cac82ffc36b7052747407663fc5ed510
 yuva444p9be         a6f66d08b3370fdd90987a6143b7b91c
index da60deb..1996649 100644 (file)
@@ -96,8 +96,8 @@ yuv444p9le          9bb3dde9fadb3c03a0ef8305b5f67a7e
 yuva422p            c470da57cde22b452deb8874df710dce
 yuva422p10be        a2ffa080ae661c1033aa38be28002922
 yuva422p10le        a4f5e8006f8ea3f964206605045e0fe0
-yuva422p12be        1d22c07c307533666293c33f7342ab25
-yuva422p12le        4b4c12dc912c765dc7005234989c806c
+yuva422p12be        ec44f9fc083d5f39051f2a65daea6890
+yuva422p12le        5fd785e19f68538ba76e6e505447239c
 yuva422p16be        929ec5d4bcfac13ba8a02f12e3f5fc7f
 yuva422p16le        7155a6036e25719f2e4d2d47212f077d
 yuva422p9be         b1af62d553d790e041e80cf89608efe3
@@ -105,8 +105,8 @@ yuva422p9le         65c80faeb0021deb232ee451f77c89e3
 yuva444p            9ac54882677f1fc5553a97ea558e942d
 yuva444p10be        3326267d176a8dfed2c7511b926962e6
 yuva444p10le        bfe957d1b5fea3585b3942cbfdd529ad
-yuva444p12be        ab482b348c5463862d4e97a3fa14d3ac
-yuva444p12le        9293d176f8af64f2205cdc52e9d87d1d
+yuva444p12be        ecaa57b7f0b04c3e8779a5f5dcd23032
+yuva444p12le        6b645eeaff8363d82ff686b3b020cae3
 yuva444p16be        2f80d411847856e1364659dee8b23485
 yuva444p16le        5796be8d66371b60037fc8053c27e900
 yuva444p9be         a83599c0e9fca08f6b7c6e02c2413fcf
index 0ba2b54..f171a95 100644 (file)
@@ -126,8 +126,8 @@ yuva420p9le         15e6654f50eddf97f852070d8dd8f009
 yuva422p            902dc911ee175d9b1f2addcc03aab9a3
 yuva422p10be        fb927978446e975f7424600495a7acde
 yuva422p10le        1d0b5a5946b824810b1b83a7ce429274
-yuva422p12be        1dd4352ae7d8ae8c2e2c8e86d3a7f6bf
-yuva422p12le        c3314505aa1cd693f9369a15a40a2e18
+yuva422p12be        5407e82d1c4356472ad549e5ae38ea1e
+yuva422p12le        5dc0e1910b248e12989ae937ddeec342
 yuva422p16be        88977e5ddcee9377525c3f251fdeb25e
 yuva422p16le        d6a50a91be5fc720ca97fc2f6fbd3bb2
 yuva422p9be         996d8d73648c602c73c51e2d95b6cf9b
@@ -135,8 +135,8 @@ yuva422p9le         2d64684a8844967e9ffe827c04e3c917
 yuva444p            53247be24822d158c0866cd58d2ceeba
 yuva444p10be        9f3c25c3b9d26787d0bf8da2b15c75c6
 yuva444p10le        1721b843b721629da7a0cd76ac665708
-yuva444p12be        0eb0346073da8189340560e671f667b7
-yuva444p12le        e8ee7338bad40ac44b6794eebc04f459
+yuva444p12be        9feb6e1d8bfe9b7fd5e352465f278704
+yuva444p12le        12a949ebcf0f94e4a2f9915ef778680a
 yuva444p16be        635fb2720470e0042a7c9b70bf908a2c
 yuva444p16le        6d5bd13f8bb804bd1158c1af732a24e1
 yuva444p9be         3d3e7491192aa4e396015bf8e3755a24
index e874a9d..0839a77 100644 (file)
@@ -128,8 +128,8 @@ yuva420p9le         fbc3300867510900fec84caf718e8601
 yuva422p            6c347a539965cd63cddfeec598858c11
 yuva422p10be        d34bf5f06ac5c67e12409aa111b4e21b
 yuva422p10le        ecb3cc8d77cee05e54d4de60831be159
-yuva422p12be        d71d284f2cd3fceaee0bde0330822d53
-yuva422p12le        904321ad92a59c1579164355847f7209
+yuva422p12be        de287adba746037e68ff81cf7dc59e57
+yuva422p12le        761e18a8a73b55113e57ec39de33a4e6
 yuva422p16be        47a8d3c98492d31bce0ed0d6f74f5131
 yuva422p16le        a950acae1f7ffc47a0951a40e3309b09
 yuva422p9be         0217ba7015245e017ceb0a3eeb39fa56
@@ -137,8 +137,8 @@ yuva422p9le         1bbb5ba2b649bbe47c928012deb4e3ae
 yuva444p            c8153b52159fb0f392459b8be406c294
 yuva444p10be        b0456e5ecdd87c983573e1016db85178
 yuva444p10le        f9b10500666ba220ce42b478a6785dae
-yuva444p12be        20aa90ebde0dea31c5bfcc30557a7fd3
-yuva444p12le        d11703c80f1600d69587694cba465b8d
+yuva444p12be        eb83a157ff3d750d3ee71c9c598c01b9
+yuva444p12le        6cc82bf7cc18194db81397debfc01951
 yuva444p16be        97f8cb6ed835c7c5cd2fb112b1e135c7
 yuva444p16le        47170401a8c348d3f05f6530607d066b
 yuva444p9be         d5c0170b41221a9607e6ae586880a383
index 0e1f9ee..0609344 100644 (file)
@@ -129,8 +129,8 @@ yuva420p9le         0e9c9803aaaddc9f38e419de587793c2
 yuva422p            8f6bb778647e5dee62f544d646321171
 yuva422p10be        2f7204c93a1e5bfb04538852f99e4074
 yuva422p10le        c8082548aca999edde77ef2749b1ff4c
-yuva422p12be        10c9b731e96a8801093974d853f4fdc2
-yuva422p12le        b2bd03163b3810915deebdff5901f14d
+yuva422p12be        19f8205cca3d19bfd4ad9cd2bfb07a0e
+yuva422p12le        38e6c7d87332852d660df5594529fa6e
 yuva422p16be        427ad55f7464121bb3ce164641772bc6
 yuva422p16le        af6f8df651275de58129e010bb45ffcd
 yuva422p9be         47579cc2cea861ca1461589b80c4720f
@@ -138,8 +138,8 @@ yuva422p9le         aaeab2bfe80a29390e8666103ed8bb40
 yuva444p            459fad5abfd16db9bb6a52761dc74cc1
 yuva444p10be        fa16bae4fc25429deb944ffa9f5b28a0
 yuva444p10le        92f820d3481b7ebcb48b98a73e7b4c90
-yuva444p12be        d06344a8118bff2bb8bb0ef71e1a24f0
-yuva444p12le        734414ed0ce19fe3340e44c5495ff152
+yuva444p12be        d8193387128a1b1efc51f36a12c85385
+yuva444p12le        9c17bf72b083f93040d1e19516b54de7
 yuva444p16be        c80c1899789a6411d0025730efc8f01c
 yuva444p16le        2ed56ea50fafda4d226c9b133755dad8
 yuva444p9be         4903fde22b15d28da90761ac1cfcb1c5
index fb2543f..c863d54 100644 (file)
@@ -58,12 +58,12 @@ yuva420p16le        ff45de790e7bdd3c25d8aad51289aba9
 yuva420p9le         8ef1f3b3e01b5ce222e4caeec3dec396
 yuva422p            91dcecc4bfdff1f0db9ef8b9b5b9ac2a
 yuva422p10le        1ba292c74c8646fd077a6116142b1bc8
-yuva422p12le        df634ea77606d7a30e945aedb4c1e610
+yuva422p12le        50e59879a9b64ac0fc7f76a110537baa
 yuva422p16le        383226550fe9c93d6e8bf0d45d1423d1
 yuva422p9le         0fb76788c905c6d448143aa3c5eae116
 yuva444p            fb60941a57596b277417a3c7c00aa194
 yuva444p10le        251ea4ead8300d752eb355a08cbb0352
-yuva444p12le        d6b2feb13cd8d07200d2cd309ea3639a
+yuva444p12le        f38b7c5747b43bcc6d647f143cb069cf
 yuva444p16le        5b65287e1862d2d9f1ad2cfdcde94661
 yuva444p9le         e6946c10b94c271e7ea24b3bcff314e1
 yuvj411p            87dbac57b211ab4823c1abbd702f1516
index 12d34c9..3226e8b 100644 (file)
@@ -129,8 +129,8 @@ yuva420p9le         1fdfcde9cf7ef1d41002175b5793435f
 yuva422p            3a80cb3e08782033aabfeff1e8969403
 yuva422p10be        94b13db95ceb970ded9773c095ade7d4
 yuva422p10le        544965627ee94964b9cc57750c385b31
-yuva422p12be        12170e2334085876d93e244413a0652f
-yuva422p12le        161acda7381a0c1ab53d0047fc329acd
+yuva422p12be        4285def72fb83a9c918d78453220a4b7
+yuva422p12le        accda73617ccfa3c45ced5e2a48a8323
 yuva422p16be        95be33f9599958669f3c1cb24e54a5e5
 yuva422p16le        ed83cc6e8fb70306d0622962504d1fcf
 yuva422p9be         5ff6aeca90b8392133d7b1addfbd639b
@@ -138,8 +138,8 @@ yuva422p9le         451965b076c628b0eabaa4ef33f98ded
 yuva444p            f120326d9d940c9ac5cf5fd160969b82
 yuva444p10be        1838cd61a24fda56a7379c9cd9cb1629
 yuva444p10le        c5c2f602caab63c58954f5a80691436a
-yuva444p12be        fef6bfb35297eb632c31d633a0aab964
-yuva444p12le        b9bd7d5f03c50d6e841697958edd7bda
+yuva444p12be        befc6a3602bc58df4f4e8490ae6782cf
+yuva444p12le        8d13b714cdbadd2aa4e16c1ec673c0e2
 yuva444p16be        39ca2e32aa61b210b6c528855d24a16b
 yuva444p16le        cd2e0a001d8175f2204b2eb411c6a801
 yuva444p9be         58add24afbf43ff0ff7079cc1948fb56
index 62b9102..676a440 100644 (file)
@@ -48,8 +48,8 @@ yuva420p9le         7f445bfa33b6875cc65b47cee24c3154
 yuva422p            a1bd5c90b7bde1d3657025612a6f231e
 yuva422p10be        05bcc2394cfb0406d37b942423f6dbe7
 yuva422p10le        c166994709af82b9cdcebe4a7057348c
-yuva422p12be        75ecde2821167c494602415400a9031e
-yuva422p12le        28ff820ae76228acfb31c93adeed037f
+yuva422p12be        30f4f9d6a2a623c45c4474e4aac8f7b9
+yuva422p12le        79dfb02173b19beb76b9f0b76a96d1d5
 yuva422p16be        9599ed5721f52028c3acfeb7b33ddc87
 yuva422p16le        dbb74e0bb2cf732e39e669f60ec6e1cf
 yuva422p9be         39093fec98b02e83b7e20dab3e5e4cf6
@@ -57,8 +57,8 @@ yuva422p9le         a0a6dd2e62ea01e8a2268c7d88385252
 yuva444p            ff2441de373fbfaed7bc199a7abe5a3e
 yuva444p10be        857043b712213eee329d2fb584d74c3e
 yuva444p10le        c3c451b3605af959a5d80146f4170e9d
-yuva444p12be        24a81bcbed8a8204eb2792dfb4bf43f5
-yuva444p12le        f3bb6e5ce6bae9d7120247e6a38ef06f
+yuva444p12be        d60fd21b48fa6a3677a9070d5b2eafdb
+yuva444p12le        8f43565353cf0ce0a06f6b1261e42a53
 yuva444p16be        356d72791dfd91861b21630e315d40cb
 yuva444p16le        176591ce074ba8befc5fb279446ca1be
 yuva444p9be         675f0ed3e6572b05f06d9e44611bdff5
index 4a54ecc..7bcb88c 100644 (file)
@@ -108,8 +108,8 @@ yuva420p9le         6e5cb3e761a9c45e26370307c49f8831
 yuva444p            4f9e649fbc2c0c91178d1576e462bb31
 yuva444p10be        9450fbac30b5f9da7414c895695591a9
 yuva444p10le        84a93637bf2c7e498380beff9b1fc503
-yuva444p12be        b0983a1174d4aeae02749ff60b930b45
-yuva444p12le        d1240a7788dd5c02ce9a321d898f133c
+yuva444p12be        3eae4234e38ce068600dd7fdb39e04d2
+yuva444p12le        c4a4a3601a7fb9ef02770384e155f3d7
 yuva444p16be        9fd2f00ea9bef8e488228bc0b47b28cb
 yuva444p16le        ae9fd8d1baea0f8626b963816d667d2d
 yuva444p9be         4ce11ae57780f74c78cdd5c06be4bded
index 3ff3f40..933ea0c 100644 (file)
@@ -129,8 +129,8 @@ yuva420p9le         aec21fa8f1088b7898cd80a30f382224
 yuva422p            39707b0dfdaadeefa20819080365db15
 yuva422p10be        53fbfe6d7eb01e2007003383c5d91850
 yuva422p10le        df1f95630ccd7bf05b95b6b3061cbeef
-yuva422p12be        a297d90880c29975c3b47cdd991df197
-yuva422p12le        537ecbdc216cbd3a9b0f0889a19861c5
+yuva422p12be        6b13c0f628b4369c2ecabb3aaf02dbc6
+yuva422p12le        5413c3f022d30fbdd9f1d4e35468c8c4
 yuva422p16be        35ad91fa92b04e13d6b557d2f250ade1
 yuva422p16le        8fb93970118fde962f5dbcd156966722
 yuva422p9be         2b16b2dc102ad688a3023f30e3c6f9d9
@@ -138,8 +138,8 @@ yuva422p9le         6a23d290358691a9d8bab49582265764
 yuva444p            442a690385166bed3e785d9262c1c501
 yuva444p10be        bb6d52902c30f5cc63ddc3fbe3346bf5
 yuva444p10le        6e43f7c44e070fce492dcb1b038de85e
-yuva444p12be        15c4d3a59ade7131ab3cc0d1742bfd6d
-yuva444p12le        861aa56e414fd1e428ffb51a7a698bb2
+yuva444p12be        437e75242255bcaeb853c35284f3b58c
+yuva444p12le        5864b489dff8cd98f46ca86b32f357e2
 yuva444p16be        b8801dccf64b3eadc2a5b5db67ae0b0f
 yuva444p16le        8e72ae66754badf5d1eeb094e6bf0ddc
 yuva444p9be         bcd845394351ca6d15e947342802957d