<<

 High Metadata For Apple Devices (Preliminary)

Version 0.9 May 31, 2019

 Copyright © 2019 Apple Inc. All rights reserved. Apple, the Apple logo and QuickTime are trademarks of Apple Inc., registered in the U.S. and other countries. Dolby, , and the double-D symbol are trademarks of . 1 Introduction 3

Dolby Vision™ 4

HDR10 6

Hybrid Log-Gamma (HLG) 8

References 9

Document Revision History 10

 Copyright © 2019 Apple Inc. All rights reserved. Apple, the Apple logo and QuickTime are trademarks of Apple Inc., registered in the U.S. and other countries. Dolby, Dolby Vision, and the double-D symbol are trademarks of Dolby Laboratories. 2 Introduction

This document describes the metadata and constraints for (HDR) stored in a QuickTime Movie or ISO Base Media File required for proper display on Apple Plat- forms. Three types of HDR are detailed. 1. Dolby Vision™ 2. HDR10 3. Hybrid Log-Gamma (HLG) Note: The QuickTime Movie File Format Specification and the ISO Base Media File Format Specification use different terminology for broadly equivalent concepts: atoms and boxes; sam- ple descriptions and sample entries. This document uses the former specification's terminolo- gies without loss of generality. This document covers file-based workflows, for HLS streaming requirements go to: https://developer.apple.com/documentation/http_live_streaming/hls_authoring_specification_- for_apple_devices

 Copyright © 2019 Apple Inc. All rights reserved. Apple, the Apple logo and QuickTime are trademarks of Apple Inc., registered in the U.S. and other countries. Dolby, Dolby Vision, and the double-D symbol are trademarks of Dolby Laboratories. 3 Dolby Vision™ Only Dolby Vision™ Profile 5 is supported. Refer to Dolby Vision™ Streams Within the ISO Base Media File Format [2] for the syntax and semantics of the metadata stored within the Dol- by Decoder Configuration Record (‘dvcC’).

Constraints on Sample Description / Sample Entry • The codec type shall be ‘dvh1'. • HEVC shall be encoded at Main10 Profile • Dolby Vision™ Profile 5. • Only Single-track files are supported. • The Dolby Decoder Configuration Record ('dvcC') shall be present. • The (‘colr’) atom with these values shall be present. • Color Primaries shall be set to 2 (Unspecified). • Color Transfer Function Index shall be set to 2 (Unspecified). • Color Matrix Index shall be set to 2 (Unspecified).

 Copyright © 2019 Apple Inc. All rights reserved. Apple, the Apple logo and QuickTime are trademarks of Apple Inc., registered in the U.S. and other countries. Dolby, Dolby Vision, and the double-D symbol are trademarks of Dolby Laboratories. 4 Movie atom HEVC Decoder Configuration Record (hvcC)

Track atom Common Video Parameter Set … Media atom

Video Media Information atom

Sample Table atom

Sample Description atom

Codec dvh1

hvcC Dolby Decoder Configuration Record (dvcC)

… dvcC

colr Color Paramter Information (colr) nclc Color Primary (2) Color Transfer Function (2) Color Matrix (2)

Figure 1. Dolby Vision™ Video Sample Description Extensions

 Copyright © 2019 Apple Inc. All rights reserved. Apple, the Apple logo and QuickTime are trademarks of Apple Inc., registered in the U.S. and other countries. Dolby, Dolby Vision, and the double-D symbol are trademarks of Dolby Laboratories. 5 HDR10

Constraints on Sample Description / Sample Entry • The codec type shall be ‘hvc1' or Apple ProRes. • For HEVC, HEVC shall be encoded at Main10 Profile. • For HEVC, HEVC Decoder Configuration Record ('hvcC') shall be present. • The Mastering Display [3] (‘mdcv’) and Content Light Level Information (‘clli’) atoms, stored in big-endian, shall be present for Apple ProRes and is recommended for HEVC. For HEVC, if the atoms are not present, the ‘mdcv' and ‘clli’ shall be stored in SEI messages, as specified in the ISO/IEC HEVC Specification section D.3.28 and D3.35 [1], in the HEVC Decoder Configuration Record (hvcC). • The color (‘colr’) atom shall be present. These values shall be present for HEVC and Apple ProRes. • Color Primaries shall be set to 9 (ITU-R BT.2020). • Color Transfer Function Index shall be set to 16 (PQ / SMPTE ST 2084). • Color Matrix Index shall be set to 9 (ITU-R BT.2020).

 Copyright © 2019 Apple Inc. All rights reserved. Apple, the Apple logo and QuickTime are trademarks of Apple Inc., registered in the U.S. and other countries. Dolby, Dolby Vision, and the double-D symbol are trademarks of Dolby Laboratories. 6 Movie atom HEVC Decoder Configuration Record (hvcC)

Track atom Common Video Parameter Set … Media atom

Video Media Information atom Mastering Display Color Volume (mdcv)

Sample Table atom uint16 display_primaries_GX uint16 display_primaries_GY Sample Description atom uint16 display_primaries_BX uint16 display_primaries_BY uint16 display_primaries_RX hvcC uint16 display_primaries_RY uint16 white_point_x uint16 white_point_y mdcv uint32 max_display_mastering_luminance uint32 min_display_mastering_luminance

clli Content Light Level Information (clli) uint16 max_content_light_level uint16 max_pic_average_light_level colr Color Paramter Information (colr) nclc Color Transfer Function Color Matrix

Figure 2. Video Sample Description Extensions for HEVC and HDR10 Static Metadata

 Copyright © 2019 Apple Inc. All rights reserved. Apple, the Apple logo and QuickTime are trademarks of Apple Inc., registered in the U.S. and other countries. Dolby, Dolby Vision, and the double-D symbol are trademarks of Dolby Laboratories. 7 Hybrid Log-Gamma (HLG)

Constraints on Sample Description / Sample Entry • The codec type shall be ‘hvc1' or Apple ProRes. • For HEVC the video shall be Main10 Profile. • For HEVC the HEVC Decoder Configuration Record ('hvcC') shall be present. • For HEVC the HEVC Decoder Configuration Record ('hvcC') may also contain an Alternative Transfer Characteristic (ATC) SEI message (147) as specified in the ISO/IEC HEVC Specifi- cation section D.3.28 [1]. The SEI message payload - preferred_transfer_characteristic is a single byte and must contain the value 18, representing the value for ITU-R BT.2100 Hybrid Log-Gamma (HLG). • For HEVC any ATC SEI messages not in the ‘hvcC’ atom will be ignored. • The color (‘colr’) atom shall be present. These values shall be present for HEVC and Apple ProRes. • Color Primaries shall be set to 9 (ITU-R BT.2020). • Color Transfer Function Index shall be set to 18 (ITU-R BT.2100 Hybrid Log-Gamma (HLG)). • Color Matrix Index shall be set to 9 (ITU-R BT.2020). Or with HEVC encoded video only, for backwards compatibility with an ATC SEI with val- ue 18 in the ‘hvcC’ atom. • Color Primaries shall be set to 9 (ITU-R BT.2020). • Color Transfer Function Index shall be set to 1 (ITU-R BT.709). • Color Matrix Index shall be set to 9 (ITU-R BT.2020).

 Copyright © 2019 Apple Inc. All rights reserved. Apple, the Apple logo and QuickTime are trademarks of Apple Inc., registered in the U.S. and other countries. Dolby, Dolby Vision, and the double-D symbol are trademarks of Dolby Laboratories. 8 References

[1] ISO/IEC: “Information technology -- High efficiency coding and media delivery in heterogeneous environments -- Part 2: High efficiency video coding, ” Doc. ISO/IEC 23008- 2 [2] Dolby Vision™ Bitstreams Within the ISO Base Media File Format v2.0 [3] ST 2086 - SMPTE Standard - Mastering Display Color Volume Metadata Supporting High Luminance and Wide Color Images [4] ITU-R BT.2020 : Parameter values for ultra-high definition television systems for production and international programme exchange [5] ITU-R BT.2100 : Image parameter values for high dynamic range television for use in pro- duction and international programme exchange

 Copyright © 2019 Apple Inc. All rights reserved. Apple, the Apple logo and QuickTime are trademarks of Apple Inc., registered in the U.S. and other countries. Dolby, Dolby Vision, and the double-D symbol are trademarks of Dolby Laboratories. 9 Document Revision History This table describes the changes to High Dynamic Range Metadata

Date Revision Notes 2019-05-31 0.9 Preliminary release for WWDC19

 Copyright © 2019 Apple Inc. All rights reserved. Apple, the Apple logo and QuickTime are trademarks of Apple Inc., registered in the U.S. and other countries. Dolby, Dolby Vision, and the double-D symbol are trademarks of Dolby Laboratories. 10