os/mm/mmhais/videohai/devvideo/inc/sorensonspark.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/mm/mmhais/videohai/devvideo/inc/sorensonspark.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,113 @@
     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 "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.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 +// Constants and structs specific to Sorenson Spark.  See the DevVideo specs for more details.
    1.18 +// 
    1.19 +//
    1.20 +
    1.21 +#ifndef __DEVVIDEO_SORENSENSPARK_H__
    1.22 +#define __DEVVIDEO_SORENSENSPARK_H__
    1.23 +
    1.24 +#include <e32base.h>
    1.25 +
    1.26 +/**
    1.27 +Specifies the picture type.
    1.28 +@publishedAll
    1.29 +@released
    1.30 +*/
    1.31 +enum TSparkPictureType
    1.32 +    {
    1.33 +    /**
    1.34 +    Indicates a keyframe
    1.35 +    */
    1.36 +    ESparkPictureTypeKey   = 0x01,
    1.37 +    /**
    1.38 +    Indicates a predicted or inter frame
    1.39 +    */
    1.40 +    ESparkPictureTypeP     = 0x02,
    1.41 +    /**
    1.42 +    Indicates a predicted frame that is disposable
    1.43 +    */
    1.44 +    ESparkPictureTypeDisp  = 0x04
    1.45 +    };
    1.46 +
    1.47 +/**
    1.48 +Specifies action of deblocking filter
    1.49 +@publishedAll
    1.50 +@released
    1.51 +*/
    1.52 +enum TSparkDeblocking
    1.53 +	{
    1.54 +    /**
    1.55 +    Never deblock
    1.56 +    */
    1.57 +	EDeblockNever		= 0x1,
    1.58 +    /**
    1.59 +    Always deblock
    1.60 +    */
    1.61 +	EDeblockAlways		= 0x2,
    1.62 +    /**
    1.63 +    Apply deblocking as requested by video packet deblocking flag
    1.64 +    */
    1.65 +	EDeblockAsIndicated = 0x4
    1.66 +	};
    1.67 +
    1.68 +
    1.69 +/**
    1.70 +Settings to describe decompression
    1.71 +@publishedAll
    1.72 +@released
    1.73 +*/
    1.74 +class TSparkDecompressSettings
    1.75 +	{
    1.76 +public:
    1.77 +	/**
    1.78 +	If this member is set to EDeblockNever the decompressor will never deblock the image even 
    1.79 +	if the deblocking bit is set in the bitstream. If this member is set to EDeblockAlways the
    1.80 +	decompressor will deblock the image even if the deblocking bit not set in the bitstream.
    1.81 +	If this member is set to EDeblockAsIndicated then deblocking will only occur when the
    1.82 +	deblocking bit in the bitstream is set to 1.
    1.83 +	*/
    1.84 +    TSparkDeblocking iDeblockingMethod;
    1.85 +	};
    1.86 +
    1.87 +
    1.88 +/**
    1.89 +Sorenson Spark video packet header
    1.90 +@publishedAll
    1.91 +@released
    1.92 +*/
    1.93 +class TSparkPictureHeader
    1.94 +	{
    1.95 +public:
    1.96 +	/**
    1.97 +	Indicates the temporal reference, which is formed by incrementing the value in the previously transmitted
    1.98 +	picture header by one, plus the number of non-transmitted pictures since the previously transmitted one.
    1.99 +	*/
   1.100 +	TUint iTemporalReference;
   1.101 +	/**
   1.102 +	Indicates the picture coding type. iPictureType is set according to the picture header as one of
   1.103 +	the values defined in TSparkPictureType
   1.104 +	*/
   1.105 +	TSparkPictureType iPictureType;
   1.106 +	/**
   1.107 +	Requests use of deblocking filter
   1.108 +	*/
   1.109 +	TBool Deblocking;
   1.110 +	/**
   1.111 +	Indicates the initial value of the quantization parameter
   1.112 +	*/
   1.113 +	TUint iQuantizer;
   1.114 +	};
   1.115 +
   1.116 +#endif
   1.117 \ No newline at end of file