epoc32/include/mm/conversioncoefficient.h
branchSymbian2
changeset 2 2fe1408b6811
child 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/mm/conversioncoefficient.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +1,80 @@
     1.4 +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +#ifndef CONVERSIONCOEFFICIENT_H
    1.20 +#define CONVERSIONCOEFFICIENT_H
    1.21 +
    1.22 +/**
    1.23 +Specifies the possible YUV-RGB conversion coefficients to use. 
    1.24 +
    1.25 +The coefficients are determined by two factors: 
    1.26 +The YUV signal range used, and the actual conversion multipliers.
    1.27 +@publishedAll
    1.28 +@released
    1.29 +*/
    1.30 +enum TYuvCoefficients
    1.31 +	{
    1.32 +	/**
    1.33 +	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.
    1.34 +	*/
    1.35 +	EYuvRange0	   = 0x01000000,
    1.36 +
    1.37 +	/**
    1.38 +	The nominal Y, U, and V ranges are [0…255]. This corresponds to H.264 | MPEG-4 AVC video_range_flag=1.
    1.39 +	*/
    1.40 +	EYuvRange1	   = 0x02000000,
    1.41 +
    1.42 +	/**
    1.43 +	The YUV-RGB conversion cofficients are those specified in ITU-R Recommendation BT.709. 
    1.44 +	This corresponds to H.264 | MPEG-4 AVC matrix_coefficients=1. BT.709 is the default YUV format used 
    1.45 +	for MPEG-4 Part 2 and H.264 | MPEG-4 AVC.
    1.46 +	*/
    1.47 +	EYuvBt709		= 0x00000001,
    1.48 +
    1.49 +	/**
    1.50 +	YUV data with range 0 (Y [16…235]) and conversion coefficients according to BT.709. 
    1.51 +	This is the most typical configuration.
    1.52 +	*/
    1.53 +	EYuvBt709Range0  = EYuvRange0 | EYuvBt709,
    1.54 +
    1.55 +	/**
    1.56 +	YUV data with range 1 (Y [0…255]) and conversion coefficients according to BT.709.
    1.57 +	*/
    1.58 +	EYuvBt709Range1  = EYuvRange1 | EYuvBt709,
    1.59 +
    1.60 +	/**
    1.61 +	The YUV-RGB conversion cofficients are those specified in ITU-R Recommendation BT.601.5.
    1.62 +	*/
    1.63 +	EYuvBt601		= 0x00000002,
    1.64 +
    1.65 +	/**
    1.66 +	YUV data with range 0 (Y [16…235]) and conversion coefficients according to BT.601.5. 
    1.67 +	This is the data format used in H.263.
    1.68 +	*/
    1.69 +	EYuvBt601Range0  = EYuvRange0 | EYuvBt601,
    1.70 +
    1.71 +	/**
    1.72 +	YUV data with range 1 (Y [0…255]) and conversion coefficients according to BT.601.5.
    1.73 +	*/
    1.74 +	EYuvBt601Range1  = EYuvRange1 | EYuvBt601,
    1.75 +
    1.76 +	/**
    1.77 +	A custom conversion matrix is used. 
    1.78 +	@see TYuvConversionMatrix.
    1.79 +	*/
    1.80 +	ECustomYuvMatrix = 0x00800000
    1.81 +	};
    1.82 +
    1.83 +#endif // CONVERSIONCOEFFICIENT_H