os/mm/mmhais/videohai/devvideo/inc/sorensonspark.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
// Constants and structs specific to Sorenson Spark.  See the DevVideo specs for more details.
sl@0
    15
// 
sl@0
    16
//
sl@0
    17
sl@0
    18
#ifndef __DEVVIDEO_SORENSENSPARK_H__
sl@0
    19
#define __DEVVIDEO_SORENSENSPARK_H__
sl@0
    20
sl@0
    21
#include <e32base.h>
sl@0
    22
sl@0
    23
/**
sl@0
    24
Specifies the picture type.
sl@0
    25
@publishedAll
sl@0
    26
@released
sl@0
    27
*/
sl@0
    28
enum TSparkPictureType
sl@0
    29
    {
sl@0
    30
    /**
sl@0
    31
    Indicates a keyframe
sl@0
    32
    */
sl@0
    33
    ESparkPictureTypeKey   = 0x01,
sl@0
    34
    /**
sl@0
    35
    Indicates a predicted or inter frame
sl@0
    36
    */
sl@0
    37
    ESparkPictureTypeP     = 0x02,
sl@0
    38
    /**
sl@0
    39
    Indicates a predicted frame that is disposable
sl@0
    40
    */
sl@0
    41
    ESparkPictureTypeDisp  = 0x04
sl@0
    42
    };
sl@0
    43
sl@0
    44
/**
sl@0
    45
Specifies action of deblocking filter
sl@0
    46
@publishedAll
sl@0
    47
@released
sl@0
    48
*/
sl@0
    49
enum TSparkDeblocking
sl@0
    50
	{
sl@0
    51
    /**
sl@0
    52
    Never deblock
sl@0
    53
    */
sl@0
    54
	EDeblockNever		= 0x1,
sl@0
    55
    /**
sl@0
    56
    Always deblock
sl@0
    57
    */
sl@0
    58
	EDeblockAlways		= 0x2,
sl@0
    59
    /**
sl@0
    60
    Apply deblocking as requested by video packet deblocking flag
sl@0
    61
    */
sl@0
    62
	EDeblockAsIndicated = 0x4
sl@0
    63
	};
sl@0
    64
sl@0
    65
sl@0
    66
/**
sl@0
    67
Settings to describe decompression
sl@0
    68
@publishedAll
sl@0
    69
@released
sl@0
    70
*/
sl@0
    71
class TSparkDecompressSettings
sl@0
    72
	{
sl@0
    73
public:
sl@0
    74
	/**
sl@0
    75
	If this member is set to EDeblockNever the decompressor will never deblock the image even 
sl@0
    76
	if the deblocking bit is set in the bitstream. If this member is set to EDeblockAlways the
sl@0
    77
	decompressor will deblock the image even if the deblocking bit not set in the bitstream.
sl@0
    78
	If this member is set to EDeblockAsIndicated then deblocking will only occur when the
sl@0
    79
	deblocking bit in the bitstream is set to 1.
sl@0
    80
	*/
sl@0
    81
    TSparkDeblocking iDeblockingMethod;
sl@0
    82
	};
sl@0
    83
sl@0
    84
sl@0
    85
/**
sl@0
    86
Sorenson Spark video packet header
sl@0
    87
@publishedAll
sl@0
    88
@released
sl@0
    89
*/
sl@0
    90
class TSparkPictureHeader
sl@0
    91
	{
sl@0
    92
public:
sl@0
    93
	/**
sl@0
    94
	Indicates the temporal reference, which is formed by incrementing the value in the previously transmitted
sl@0
    95
	picture header by one, plus the number of non-transmitted pictures since the previously transmitted one.
sl@0
    96
	*/
sl@0
    97
	TUint iTemporalReference;
sl@0
    98
	/**
sl@0
    99
	Indicates the picture coding type. iPictureType is set according to the picture header as one of
sl@0
   100
	the values defined in TSparkPictureType
sl@0
   101
	*/
sl@0
   102
	TSparkPictureType iPictureType;
sl@0
   103
	/**
sl@0
   104
	Requests use of deblocking filter
sl@0
   105
	*/
sl@0
   106
	TBool Deblocking;
sl@0
   107
	/**
sl@0
   108
	Indicates the initial value of the quantization parameter
sl@0
   109
	*/
sl@0
   110
	TUint iQuantizer;
sl@0
   111
	};
sl@0
   112
sl@0
   113
#endif