Add keys to retrieve color aspects from metadata

Add keys to retrieve color standard, color transfer and color range from
MediaMetadataRetriever.

Bug: 114329709
Test: put hdr/non-hdr contents and check media db

Change-Id: Ifa90f12a572b330f87acd6ef06e1e83ddceb8483
This commit is contained in:
Toshikazu Saito
2018-08-29 15:00:22 +09:00
committed by Chong Zhang
parent ac87c0a884
commit 26b3de310f

View File

@@ -923,5 +923,39 @@ public class MediaMetadataRetriever
* @hide
*/
public static final int METADATA_KEY_EXIF_LENGTH = 34;
/**
* This key retrieves the color standard, if available.
*
* @see MediaFormat#COLOR_STANDARD_BT709
* @see MediaFormat#COLOR_STANDARD_BT601_PAL
* @see MediaFormat#COLOR_STANDARD_BT601_NTSC
* @see MediaFormat#COLOR_STANDARD_BT2020
*
* @hide
*/
public static final int METADATA_KEY_COLOR_STANDARD = 35;
/**
* This key retrieves the color transfer, if available.
*
* @see MediaFormat#COLOR_TRANSFER_LINEAR
* @see MediaFormat#COLOR_TRANSFER_SDR_VIDEO
* @see MediaFormat#COLOR_TRANSFER_ST2084
* @see MediaFormat#COLOR_TRANSFER_HLG
*
* @hide
*/
public static final int METADATA_KEY_COLOR_TRANSFER = 36;
/**
* This key retrieves the color range, if available.
*
* @see MediaFormat#COLOR_RANGE_LIMITED
* @see MediaFormat#COLOR_RANGE_FULL
*
* @hide
*/
public static final int METADATA_KEY_COLOR_RANGE = 37;
// Add more here...
}