cts: correct expected output in testH265HDR10StaticMetadata
The test's expected output has wrong order in RGB. HEVC spes
puts the 3 display primaries in GBR order, then framework fills
the data in RGB order, the first component expected should be R.
bug: 110450940
Change-Id: I72cf2b2d906550b6ae5ab000b6c4dc2462648f7c
(cherry picked from commit 15e06b5deada1f9f73ecf0cb897947972a3e2367)
diff --git a/tests/tests/media/src/android/media/cts/DecoderTest.java b/tests/tests/media/src/android/media/cts/DecoderTest.java
index 10c061e..c1f72f8 100755
--- a/tests/tests/media/src/android/media/cts/DecoderTest.java
+++ b/tests/tests/media/src/android/media/cts/DecoderTest.java
@@ -709,8 +709,14 @@
}
public void testH265HDR10StaticMetadata() throws Exception {
+ // Expected value of MediaFormat.KEY_HDR_STATIC_INFO key.
+ // The associated value is a ByteBuffer. This buffer contains the raw contents of the
+ // Static Metadata Descriptor (including the descriptor ID) of an HDMI Dynamic Range and
+ // Mastering InfoFrame as defined by CTA-861.3.
+ // Media frameworks puts the display primaries in RGB order, here we verify the three
+ // primaries are indeed in this order and fail otherwise.
final String staticInfo =
- "00 c2 33 c4 86 4c 1d b8 0b d0 84 80 3e 13 3d 42" +
+ "00 d0 84 80 3e c2 33 c4 86 4c 1d b8 0b 13 3d 42" +
"40 e8 03 00 00 e8 03 90 01 " ;
testHdrStaticMetadata(R.raw.video_1280x720_hevc_hdr10_static_3mbps,
staticInfo, false /*metadataInContainer*/);