Home
last modified time | relevance | path

Searched refs:mastering (Results 1 – 1 of 1) sorted by relevance

/frameworks/av/media/libstagefright/matroska/
DMatroskaExtractor.cpp1132 const mkvparser::MasteringMetadata *mastering = color->mastering_metadata; in getColorInformation() local
1133 if (mastering != NULL) { in getColorInformation()
1136 if (mastering->luminance_max >= 0.5 && mastering->luminance_max < 65535.5) { in getColorInformation()
1137 info.sType1.mMaxDisplayLuminance = (uint16_t)(mastering->luminance_max + 0.5); in getColorInformation()
1139 if (mastering->luminance_min >= 0.00005 && mastering->luminance_min < 6.55355) { in getColorInformation()
1142 (uint16_t)(10000 * mastering->luminance_min + 0.5); in getColorInformation()
1145 if (isValidPrimary(mastering->white_point)) { in getColorInformation()
1146 info.sType1.mW.x = (uint16_t)(50000 * mastering->white_point->x + 0.5); in getColorInformation()
1147 info.sType1.mW.y = (uint16_t)(50000 * mastering->white_point->y + 0.5); in getColorInformation()
1149 if (isValidPrimary(mastering->r) && isValidPrimary(mastering->g) in getColorInformation()
[all …]