DRAFT AMENDMENT ISO/IEC 29199-2:2012 DAM 2

ISO/IEC JTC 1/SC 29 Secretariat: JISC Voting begins on: Voting terminates on: 2018-10-09 2019-01-01

Information technology — JPEG XR image coding system — Part 2: Image coding specification

Technologies de l'information — Système de codage d'image JPEG XR — Partie 2:AMENDMENT 2: Spécification de codage Additional d'image color signal type identifiers AMENDEMENT 2: .

ICS: 35.040.30 iTeh STANDARD PREVIEW (standards.iteh.ai)

ISO/IEC 29199-2:2012/DAmd 2 https://standards.iteh.ai/catalog/standards/sist/af9ef1e1-fc82-463d-951d- eb632994e70a/iso-iec-29199-2-2012-damd-2

THIS DOCUMENT IS A DRAFT CIRCULATED FOR COMMENT AND APPROVAL. IT IS THEREFORE SUBJECT TO CHANGE AND MAY NOT BE REFERRED TO AS AN INTERNATIONAL STANDARD UNTIL PUBLISHED AS SUCH. IN ADDITION TO THEIR EVALUATION AS BEING ACCEPTABLE FOR INDUSTRIAL, This document is circulated as received from the committee secretariat. TECHNOLOGICAL, COMMERCIAL AND USER PURPOSES, DRAFT INTERNATIONAL STANDARDS MAY ON OCCASION HAVE TO BE CONSIDERED IN THE LIGHT OF THEIR POTENTIAL TO BECOME STANDARDS TO WHICH REFERENCE MAY BE MADE IN Reference number NATIONAL REGULATIONS. ISO/IEC 29199-2:2012/DAM 2:2018(E) RECIPIENTS OF THIS DRAFT ARE INVITED TO SUBMIT, WITH THEIR COMMENTS, NOTIFICATION OF ANY RELEVANT PATENT RIGHTS OF WHICH THEY ARE AWARE AND TO PROVIDE SUPPORTING DOCUMENTATION. © ISO/IEC 2018 ISO/IEC 29199-2:2012/DAM 2:2018(E) 

iTeh STANDARD PREVIEW (standards.iteh.ai)

ISO/IEC 29199-2:2012/DAmd 2 https://standards.iteh.ai/catalog/standards/sist/af9ef1e1-fc82-463d-951d- eb632994e70a/iso-iec-29199-2-2012-damd-2

COPYRIGHT PROTECTED DOCUMENT

© ISO/IEC 2018

be reproduced or utilized otherwise in any form or by any means, electronic or mechanical, including photocopying, or posting All rights reserved. Unless otherwise specified, or required in the context of its implementation, no part of this publication may

on the internet or an intranet, without prior written permission. Permission can be requested from either ISO at the address belowCP 401or ISO’s • Ch. member de Blandonnet body in 8 the country of the requester. ISOCH-1214 copyright Vernier, office Geneva Phone: +41 22 749 01 11

Email: [email protected] Fax:Website: +41 22www.iso.org 749 09 47 Published in Switzerland ii  © ISO/IEC 2018 – All rights reserved ISO/IEC 29199-2:2012/DAM 2:2018(E)

Information technology — JPEG XR image coding system — Part 2: Image coding specification

In 5.2.8, add the following to the list of function definitions: AMENDMENT 2: Additional color signal type identifiers logarithm base constant 2.718 281 828...) Ln(x) the natural logarithm of x (the base-e logarithm, where e is the natural Replace A.7.21.1 to A.7.21.5 with the following: A.7.21.1 COLOR_PRIMARIES COLOR_PRIMARIES (when present) indicates the chromaticity coordinates of the colour primaries

ISO 11664-1. for the image as specifiediTe inh Table A.8, STAN inD termsAR ofD the P CIE 1931REVI definitionEW of x and y as specified by Table A.8 — – Interpretation(standar dofs COLOR_PRIMARIES.iteh.ai) syntax element Value Primaries Informative remark 0 Reserved ISO/IEC 29199-2:2012/DAmFord 2 future use by ITU-T | ISO/IEC 1 https://standards.iteh.ai/catalog/standards/sist/af9eRec.f1e1 -ITU-Rfc82-4 6BT.709-63d-951d- eb632994e70a/iso-iec-29199-2-2012-damd-2 green 0.300 0.600 Rec. ITU-R BT.1361-0 (historical) conventional colour primary x y blue 0.150 0.060 IEC 61966-2-1 (sRGB or sYCC) red 0.640 0.330 system and extended colour gamut system white D65 0.3127 0.3290 IEC 61966-2-4 (xvYCC) 2 Image characteristics are unknown or are deter- minedAnnex B by of the SMPTE application. RP 177 3 UnspecifiedReserved For future use by ITU-T | ISO/IEC 4 Rec. ITU-R BT.470-6 System M (historical) green 0.21 0.71 NTSC 1953 primary x y blue 0.14 0.08 FCC (2003), Title 47 red 0.67 0.33 white C 0.310 0.316 5 Rec. ITU-R BT.470-6 System B, G (historical) green 0.29 0.60 Rec. ITU-R BT.601-7 625 primary x y blue 0.15 0.06 Rec. ITU-R BT.1358-0 625 (historical) red 0.64 0.33 Rec. ITU-R BT.1700-0 625 PAL and 625 SECAM white D65 0.3127 0.3290

ISO/IEC 2018 – All rights reserved  1 © ISO/IEC 29199-2:2012/DAM 2:2018(E) 

Table A.8 (continued) Value Primaries Informative remark 6 Rec. ITU-R BT.601-7 525 green 0.310 0.595 Rec. ITU-R BT.1358-1 525 or 625 primary x y blue 0.155 0.070 Rec. ITU-R BT.1700-0 NTSC red 0.630 0.340 SMPTE ST 170 (2004) white D65 0.3127 0.3290 (functionally the same as the value 7) 7 SMPTE ST 240 (1999) (historical) green 0.310 0.595 (functionally the same as the value 6) primary x y blue 0.155 0.070 red 0.630 0.340 white D65 0.3127 0.3290 8 Reserved For future use by ITU-T | ISO/IEC 9 Rec. ITU-R BT.2020-2 green 0.170 0.797 Rec. ITU-R BT.2100-1 primary x y blue 0.131 0.046 red 0.708 0.292 white D65 0.3127 0.3290 10-255 Reserved iTeh STANDARForD futurePR useEV byI ITU-TEW | ISO/IEC

A.7.21.2 TRANSFER_CHARACTERISTICS(standards.iteh.ai) ISO/IEC 29199-2:2012/DAmd 2 electronic transfer characteristichttps://st afunctionndards.iteh of.ai /thecata loimageg/stand acolourrds/sist/ acomponentsf9ef1e1-fc82-4 6as3d a-9 function51d- of a real-valued TRANSFER_CHARACTERISTICSlinear optical intensity source input (when evLcb6 present),3 2in99 the4e70 rangea /iasso- specifiediec of-2 901 9to9- 2 1in- 2or 0Table A.9,1 2indicates-damd-2 indicates the inverse the ofreference the reference opto- electro-optical transfer characteristic function as a function of an output linear optical intensity vLo

with a nominal real-valued range of 0 to 1. For interpretation of entries in Table A.9 that are expressed in terms of multiple curve segments parameterized by the variable α over a region bounded by the variable β or by the variables β and γ, the values of α and β are defined to be the positive constants necessary for the curve segments that meet at the value β to have continuity of value and continuity of slope at the value β, and the value of γ, when applicable, is defined to be the positive constant necessary for510 the 807.... associated curve segments to meet at the value γ. For example, for transfer_characteristics equal to 1, 6, or 11, α has the value 1 + 5.5 * β = 1.099 296 826 809 442... and β has the value 0.018 053 968 mapping from a real-valued source signal intensity to a real-valued output value as might occur in an analog NOTEimage captureAlthough system, the it istransfer intended characteristics to be interpreted equations as guidance found toin aidTable in the A.9 rendering are provided of the in decoded the form image of a (by providing a model of a hypothetical capturing system) rather than as a description of the actual image scene signal capturing process.

ISO/IEC 2018 – All rights reserved ©  2 ISO/IEC 29199-2:2012/DAM 2:2018(E) 

Table A.9 — – Interpretation of TRANSFER_CHARACTERISTICS syntax element

Value Transfer characteristics Informative remark 0 Reserved For future use by ITU-T | ISO/IEC 1 0.45 Rec. ITU-R BT.709-6 Rec. ITU-R BT.1361-0 (historical) vV = α * vLc − (α − 1) for 1 >= vLc >= β conventional colour gamut system vV = 4.500 * vLc for β > vLc >= 0 Rec. ITU-R BT.2020-2 (functionally the same as the value 6) 2 Image characteristics are unknown or are determined by the application. 3 UnspecifiedReserved For future use by ITU-T | ISO/IEC 4 Assumed display gamma 2.2 Rec. ITU-R BT.470-6 System M (his- torical) NTSC1953 FCC (2003), Title 47 5 Assumed display gamma 2.8 Rec. ITU-R BT.470-6 System B, G (historical) 6 0.45 Rec. ITU-R BT.601-7 525 or 625 Rec. ITU-R BT.1358-1 525 or 625 vV = α * vLc − (α − 1) for 1 >= vLc >= β Rec. ITU-R BT.1700-0 NTSC vV = 4.500 * vLciT fore βh > vLcST >=A 0 NDARD PREVIEW Rec. ITU-R BT.1700-0 625 PAL and (standards.iteh.ai) 625 SECAM SMPTE ST 170 (2004) ISO/IEC 29199-2:2012/DAmd 2 https://standards.iteh.ai/catalog/standards/sist/af9ef1e1-fc82-463d(functionally-951d- the same as the value 1) 7 0.45 eb632994e70a/iso-iec-29199-2-2012-damd-2 SMPTE ST 240 (1999) (historical)

vV = α * vLc − (α − 1) for 1 >= vLc >= β 8 Linear transfer characteristics vV = 4.0 * vLc for β > vLc >= 0 9 Reserved For future use by ITU-T | ISO/IEC vV = vLc for 1 > vLc >= 0 10 Reserved For future use by ITU-T | ISO/IEC 11 0.45

vV = α * vLc − (α − 1) for vLc >= β IEC 61966-2-4 (xvYCC) 0.45 vV = 4.500 * vLc for β > vLc > −β 12 0.45 Rec. ITU-R BT.1361-0 (historical) vV = − α * (−vLc) + (α − 1) for −β >= vLc vV = α * vLc − (α − 1) for 1.33 > vLc >= β 0.45 extended colour gamut system vV = 4.500 * vLc for β > vLc >= −γ 13 (1/2.4) IEC 61966-2-1 (sRGB or sYCC) vV = −(α * (−4 * vLc) − (α − 1)) ÷ 4 for −γ > vLc >= −0.25 vV = α * vLc − (α − 1) for 1 > vLc >= β 14-15 Reserved For future use by ITU-T | ISO/IEC vV = 12.92 * vLc for β > vLc >= 0

ISO/IEC 2018 – All rights reserved  3 © ISO/IEC 29199-2:2012/DAM 2:2018(E) 

Table A.9 (continued) Value Transfer characteristics Informative remark 16 n n))m for all values of vLo SMPTE ST 2084 (2014) for 10, 12, 14, and 16-bit systems vV = ((c1 + c2 * vLo ) ÷ (1 + c3 * vLo Rec. ITU-R BT.2100-1 perceptual c1 = c3 − c2 + 1 = 3424 ÷ 4096 = 0.835 937 5 c2 = 32 * 2413 ÷ 4096 = 18.851 562 5 quantization (PQ) system c3 = 32 * 2392 ÷ 4096 = 18.687 5 m = 128 * 2523 ÷ 4096 = 78.843 75 n = 0.25 * 2610 ÷ 4096 = 0.159 301 757 812 5 correspond to a reference output luminance level of 10 000 candelas for which vLo equal to 1 for peak white is ordinarily intended to 17 Reserved For future use by ITU-T | ISO/IEC per square metre 18 Association of Radio Industries and 0.5 Businesses (ARIB) STD-B67 vV = a * Ln(12 * vLc − b) + c for 1 >= vLc > 1 ÷ 12 Rec. ITU-R BT.2100-1 hybrid log- vV = Sqrt(3) * vLc for 1 ÷ 12 >= vLc >= 0 gamma (HLG) system 19-255 aReserved = 0.178 832 77, b = 0.284 668 92, c = 0.559 910 73 For future use by ITU-T | ISO/IEC A.7.21.3 MATRIX_COEFFICIENTS iTeh STANDARD PREVIEW MATRIX_COEFFICIENTS (when present) indicates the matrix coefficients associated with derivation of luma and chroma signals from the green,(s bluetan andda redrd primaries,s.iteh. asa ispecified) using Table A.10 and the value of FULL_RANGE_FLAG as specified in the following. Table A.10 — – InterpretationISO of/IE CMATRIX_COEFFICIENTS 29199-2:2012/DAmd 2 syntax element Value Matrix https://standaInformativerds.iteh.ai/catal oremarkg/standards/sist/af9ef1e1-fc82-463d-951d- eb632994e70a/iso-iec-29199-2-2012-damd-2 0 RGB, GBR IEC 61966-2-1 (sRGB) No matrix transformation. See A.7.21.5. 1 Rec. ITU-R BT.709-6 Rec. ITU-R BT.1361-0 (historical) conventional colour gamut system and vKr = 0.2126; vKb = 0.0722

IEC 61966-2-1 (sYCC) extended colour gamut system 709

IEC 61966-2-4 xvYCC 2 Image characteristics are unknown or are determined by the application. Annex B of SMPTE RP 177 3 Reserved For future use by ITU-T | ISO/IEC Unspecified 4 FCC (2003) Title 47 5 Rec. ITU-R BT.470-6 System B, G (historical) vKr = 0.30; vKb = 0.11 Rec. ITU-R BT.601-7 625 vKr = 0.299; vKb = 0.114 Rec. ITU-R BT.1358-0 625 (historical) Rec. ITU-R BT.1700-0 625 PAL and 625 SECAM

601 (functionally the same as the value 6) IEC 61966-2-4 xvYCC

ISO/IEC 2018 – All rights reserved ©  4 ISO/IEC 29199-2:2012/DAM 2:2018(E) 

Table A.10 (continued) Value Matrix Informative remark 6 Rec. ITU-R BT.601-7 525 Rec. ITU-R BT.1358-1 525 or 625 vKr = 0.299; vKb = 0.114 Rec. ITU-R BT.1700-0 NTSC SMPTE ST 170 (2004) (functionally the same as the value 5) 7 SMPTE ST 240 (1999) (historical) 8 YCgCo See A.7.21.5. vKr = 0.212; vKb = 0.087 9 Rec. ITU-R BT.2020-2 non-constant luminance system

vKr = 0.2627; vKb = 0.0593 See A.7.21.5. Rec. ITU-R BT.2100-1 Y′CbCr 10 Rec. ITU-R BT.2020-2 constant luminance system See A.7.21.5. vKr = 0.2627; vKb = 0.0593 11-13 Reserved For future use by ITU-T | ISO/IEC

14 ICTCP Rec. ITU-R BT.2100-1 ICTCP See A.7.21.5. 15-255 Reserved For future use by ITU-T | ISO/IEC

A.7.21.4 RESERVED_KiTeh STANDARD PREVIEW (standards.iteh.ai)

RESERVED_K (when present) is aI S7-bitO/IE Csyntax 29199- 2element:2012/DAm thatd 2 shall be equal to 0 in all codestreams conforming to this versionhttps://sta nofda rthisds.ite Specification.h.ai/catalog/standa Allrds/ sotherist/af9e fvalues1e1-fc8 2are-46 3reserved.d-951d- Decoders conforming to this version of this Specificationeb6 3shall2994 eignore70a/iso- itheec-2 9value199-2 -of20 RESERVED_K.12-damd-2 NOTE The purpose of the specification for decoders to ignore the value of RESERVED_K is to enable the futureA.7.21.5 definition FULL_RANGE_FLAG of a backward-compatible usage of different values of this syntax element. FULL_RANGE_FLAG (when present) is used together with TRANSFER_CHARACTERISTICS and MATRIX_COEFFICIENTS to provide an indication of the preferred interpretation of the image colour components.

R G B to integer output values iR, iG, and iB or Y, Cb, and Cr, they are intended to be interpreted NOTE 1as guidance Although to aid in the the equations rendering found of the in decoded the following image are (by provided providing in a the model form of of a ahypothetical mapping from capturing source signalssystem) E′ rather, E′ thanand E′ as a description of the actual image scene signal capturing process.

These– The syntax value elements of valueBitDepthWhite are interpreted is as calculated follows: as follows.

— If OUTPUT_BITDEPTH is equal to BD8, the value of valueBitDepthWhite is set equal to 8. — Otherwise, if OUTPUT_BITDEPTH is equal to BD10, the value of valueBitDepthWhite is set equal to 10. — Otherwise, if OUTPUT_BITDEPTH is equal to BD16S, the value of valueBitDepthWhite is set equal to 13. — Otherwise, if OUTPUT_BITDEPTH is equal to BD16, the value of valueBitDepthWhite is set equal to 16. – The value of valueWhite is set equal to the result of (1 << valueBitDepthWhite) taken as real-value. ISO/IEC 2018 – All rights reserved  5 © ISO/IEC 29199-2:2012/DAM 2:2018(E) 

– The value of chromaOffset is calculated as follows:

valueWhite / 2. — If OUTPUT_BITDEPTH is equal to BD8, BD10 or BD16, the value of chromaOffset is set equal to

– —ER , EOtherwise,G, and EB if OUTPUT_BITDEPTH is equal to BD16S, the value of chromaOffset is set equal to 0. primaries before application of the transfer characteristics function. are defined as "linear-domain" real-valued signals based on the indicated colour – Nominal black is considered to have the property ER G B

– Nominal white is considered to have the property ER = 0, E G = 0 and E B = 0. = 1, E = 1 and E = 1. – The application of the transfer characteristics function is denotedR byG (x)′ for anB areargument determined x. by application of the transfer characteristics function as follows: – If MATRIX_COEFFICIENTS is not equal to 14, the signals E′ , E′ , and E′ R R

E′ = (E )′ G G

E′ = (E )′ B B E′ = (E )′ iTeh STANDARD PREVIEW R G B (standards.iteh.ai) In this case, the range of E′ , E′ , and E′ is specified as follows: R G B are real numbers with values in the range of 0 to 1, inclusive. — If TRANSFER_CHARACTERISTICS is notISO equal/IEC 29 to19 911-2: 2or01 212,/DA E′md ,2 E′ , and E′ https://standards.iteh.ai/catalog/standards/sist/af9ef1e1-fc82R-463Gd-951d- B are real numbers eb632994e70a/iso-iec-29199-2-2012-damd-2 — Otherwise (TRANSFER_CHARACTERISTICS is equal to 11 or 12), E′ , E′ and E′ with a larger range not specified in this Specification. L, EM, and ES are determined as follows: – Otherwise (MATRIX_COEFFICIENTS is equal to 14), the "linear-domain" real-valued signals E EL R G B

= (1688 * E + 2146 * E + 262 * E ) ÷ 4096 EM R G B

= (683 * E + 2951 * E + 462 * E ) ÷ 4096 ES R G B

= (99 * E + 309 * E + 3688 * E ) ÷ 4096 L M S are determined by application of the transfer characteristics function as follows: In this case, the signals E′ , E′ , and E′ L L

E′ = (E )′ M M

E′ = (E )′ S S

E′ = (E )′

– If MATRIX_COEFFICIENTS is equal to 0 or 8, the following applies. — RIfS FULL_RANGE_FLAG is equal toR FALSE, + 16) the following equations apply. = valueWhite ÷ 256 * (219 * E′ ISO/IEC 2018 – All rights reserved ©  6 ISO/IEC 29199-2:2012/DAM 2:2018(E) 

GS G + 16)

= valueWhite ÷ 256 * (219 * E′ BS B + 16)

= valueWhite ÷ 256 * (219 * E′

— ROtherwiseS (FULL_RANGE_FLAGR is equal to TRUE), the following equations apply. = (valueWhite − 1) * E′ GS G

= (valueWhite − 1) * E′ BS B

= (valueWhite − 1) * E′

— If MATRIX_COEFFICIENTSS) is equal to 0, the following equations apply. iR = Round(R S)

iG = Round(G S) iB = Round(B iTeh STANDARD PREVIEW — Otherwise (MATRIX_COEFFICIENTSS (sS +t aBSn))d isa equalrds to.i 8),te theh. followingai) equations apply. Y = Round(0.5 * G + 0.25 * (R S SIS +O B/IES))C 2+9 1chromaOffset99-2:2012/DAmd 2 https://standards.iteh.ai/catalog/standards/sist/af9ef1e1-fc82-463d-951d- Cb = Round(0.5 * G − 0.25e b*6 (R32994e70a/iso-iec-29199-2-2012-damd-2 S S)) + chromaOffset

Cr = Round(0.5 * (R − B

NOTE 2 For purposes of the YCgCo nomenclature used in Table A.10, Cb and Cr of the foregoing equations may be referred to as Cg and Co, respectively. If OUTPUT_BITDEPTH is equal to BD8, BD10 or BD16, the inverse conversion for the above three equations should be computed as

t = Y − (Cb − chromaOffset)

iG = t + 2 * (Cb − chromaOffset)

iB = t − (Cr − chromaOffset)

iR = iB + 2 * (Cr − chromaOffset)

Otherwise, if OUTPUT_BITDEPTH is equal to BD16S, the inverse conversion for the above three equations should be computed as. t = Y − (Cb >> 1)

iG = t + Cb

iB = t − (Cr >> 1)

iR = iB + Cr ISO/IEC 2018 – All rights reserved  7 ©