Update contrib.
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef CONVERSIONCOEFFICIENT_H
17 #define CONVERSIONCOEFFICIENT_H
20 Specifies the possible YUV-RGB conversion coefficients to use.
22 The coefficients are determined by two factors:
23 The YUV signal range used, and the actual conversion multipliers.
30 The nominal Y range is [16…235] and the U and V ranges [16…240]. This corresponds to H.264 | MPEG-4 AVC video_range_flag=0.
32 EYuvRange0 = 0x01000000,
35 The nominal Y, U, and V ranges are [0…255]. This corresponds to H.264 | MPEG-4 AVC video_range_flag=1.
37 EYuvRange1 = 0x02000000,
40 The YUV-RGB conversion cofficients are those specified in ITU-R Recommendation BT.709.
41 This corresponds to H.264 | MPEG-4 AVC matrix_coefficients=1. BT.709 is the default YUV format used
42 for MPEG-4 Part 2 and H.264 | MPEG-4 AVC.
44 EYuvBt709 = 0x00000001,
47 YUV data with range 0 (Y [16…235]) and conversion coefficients according to BT.709.
48 This is the most typical configuration.
50 EYuvBt709Range0 = EYuvRange0 | EYuvBt709,
53 YUV data with range 1 (Y [0…255]) and conversion coefficients according to BT.709.
55 EYuvBt709Range1 = EYuvRange1 | EYuvBt709,
58 The YUV-RGB conversion cofficients are those specified in ITU-R Recommendation BT.601.5.
60 EYuvBt601 = 0x00000002,
63 YUV data with range 0 (Y [16…235]) and conversion coefficients according to BT.601.5.
64 This is the data format used in H.263.
66 EYuvBt601Range0 = EYuvRange0 | EYuvBt601,
69 YUV data with range 1 (Y [0…255]) and conversion coefficients according to BT.601.5.
71 EYuvBt601Range1 = EYuvRange1 | EYuvBt601,
74 A custom conversion matrix is used.
75 @see TYuvConversionMatrix.
77 ECustomYuvMatrix = 0x00800000
80 #endif // CONVERSIONCOEFFICIENT_H