aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Rapp <t.rapp@noa-archive.com>2017-07-25 09:42:21 +0200
committerTobias Rapp <t.rapp@noa-archive.com>2017-07-27 08:53:37 +0200
commit60008c0fe94bd78be15097e5aceffd9fcb80c1b6 (patch)
tree1576aba18a88034bdddc87c07d2065bb516add15
parent296debd213bd6dce7647cedd34eb64e5b94cdc92 (diff)
downloadffmpeg-60008c0fe94bd78be15097e5aceffd9fcb80c1b6.tar.gz
fate: update pixfmt_best test to check for endianness
Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
-rw-r--r--libavutil/tests/pixfmt_best.c14
-rw-r--r--tests/ref/fate/pixfmt_best2
2 files changed, 15 insertions, 1 deletions
diff --git a/libavutil/tests/pixfmt_best.c b/libavutil/tests/pixfmt_best.c
index a617633e9b..e98fcc19a5 100644
--- a/libavutil/tests/pixfmt_best.c
+++ b/libavutil/tests/pixfmt_best.c
@@ -117,6 +117,20 @@ int main(void)
TEST(AV_PIX_FMT_GBRAP10, AV_PIX_FMT_RGB48);
TEST(AV_PIX_FMT_GBRAP12, AV_PIX_FMT_RGB48);
+ // Formats containing the same data in different endianness.
+ TEST(AV_PIX_FMT_GRAY10BE, AV_PIX_FMT_GRAY10);
+ TEST(AV_PIX_FMT_GRAY10LE, AV_PIX_FMT_GRAY10);
+ TEST(AV_PIX_FMT_GRAY16BE, AV_PIX_FMT_GRAY16);
+ TEST(AV_PIX_FMT_GRAY16LE, AV_PIX_FMT_GRAY16);
+ TEST(AV_PIX_FMT_YUV422P10BE, AV_PIX_FMT_YUV422P10);
+ TEST(AV_PIX_FMT_YUV422P10LE, AV_PIX_FMT_YUV422P10);
+ TEST(AV_PIX_FMT_YUV444P16BE, AV_PIX_FMT_YUV444P16);
+ TEST(AV_PIX_FMT_YUV444P16LE, AV_PIX_FMT_YUV444P16);
+ TEST(AV_PIX_FMT_RGB565BE, AV_PIX_FMT_RGB565);
+ TEST(AV_PIX_FMT_RGB565LE, AV_PIX_FMT_RGB565);
+ TEST(AV_PIX_FMT_RGB48BE, AV_PIX_FMT_RGB48);
+ TEST(AV_PIX_FMT_RGB48LE, AV_PIX_FMT_RGB48);
+
// Opaque formats are least unlike each other.
TEST(AV_PIX_FMT_DXVA2_VLD, AV_PIX_FMT_VDPAU);
diff --git a/tests/ref/fate/pixfmt_best b/tests/ref/fate/pixfmt_best
index 1118198098..699e2e4213 100644
--- a/tests/ref/fate/pixfmt_best
+++ b/tests/ref/fate/pixfmt_best
@@ -1 +1 @@
-60 tests passed, 0 tests failed.
+72 tests passed, 0 tests failed.