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