os/mm/mmapitest/devvideohaitest/inc/T_DevVideoConstants.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
/*
sl@0
     2
* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     3
* All rights reserved.
sl@0
     4
* This component and the accompanying materials are made available
sl@0
     5
* under the terms of "Eclipse Public License v1.0"
sl@0
     6
* which accompanies this distribution, and is available
sl@0
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     8
*
sl@0
     9
* Initial Contributors:
sl@0
    10
* Nokia Corporation - initial contribution.
sl@0
    11
*
sl@0
    12
* Contributors:
sl@0
    13
*
sl@0
    14
* Description: 
sl@0
    15
*
sl@0
    16
*/
sl@0
    17
sl@0
    18
sl@0
    19
#ifndef T_DEVVIDEOCONSTANTS_H_
sl@0
    20
#define T_DEVVIDEOCONSTANTS_H_
sl@0
    21
sl@0
    22
#include <devvideoplay.h>
sl@0
    23
#include <devvideobase.h> 
sl@0
    24
sl@0
    25
//Constant
sl@0
    26
// size constant declarations
sl@0
    27
const TInt KScreenNumber = 0;//check documentation for more information about screen number 
sl@0
    28
/**
sl@0
    29
 * Length in byte of start code/picture start code
sl@0
    30
 */
sl@0
    31
const TInt KScLength =3;
sl@0
    32
const TInt KVc1HeaderLength = 36;
sl@0
    33
/**
sl@0
    34
 * Min def. of Max byte size of a h263 coded picture in QCIF
sl@0
    35
 */
sl@0
    36
const TInt KH263MaxCodedSizeQCIF = (8192); //1024 bytes( 1 kibibyte)
sl@0
    37
sl@0
    38
const TInt KH263MaxCodedSizeCIF = (32768); //Min def. of Max byte size of a h263 coded picture in CIF
sl@0
    39
sl@0
    40
/**
sl@0
    41
 * from VBV buffering model
sl@0
    42
 * The Video Buffer Verifier (VBV) is a model hypothetical decoder buffer that will not overflow or underflow 
sl@0
    43
 * when fed a conforming MPEG bit stream.
sl@0
    44
 * 
sl@0
    45
 */
sl@0
    46
const TInt KMP4MaxCodedSizeQCIF = (10*16384/8);        
sl@0
    47
const TInt KMP4MaxCodedSizeCIF = (40*16384/8);     
sl@0
    48
const TInt KMP4MaxCodedSizeVGA = (80*16384/8);     // 2048 bytes / 8 bits
sl@0
    49
const TInt KMP4MaxCodedSizePAL = (112*16384/8);    
sl@0
    50
const TInt KMP4MaxCodedSize720P = (248*16384/8);   
sl@0
    51
const TInt KMaxCodedSize = KMP4MaxCodedSize720P;    // initialize value
sl@0
    52
sl@0
    53
/**
sl@0
    54
 * Buffer Options Const 
sl@0
    55
 * Min Number of Input buffer, used by decoding SetBufferOptions
sl@0
    56
 */
sl@0
    57
const TInt KNumOfInputBuffers = 2; 
sl@0
    58
sl@0
    59
//For Syncronization 
sl@0
    60
/**
sl@0
    61
 * Time interval for postproc sync test 15 fps
sl@0
    62
 */
sl@0
    63
const TInt64 KFrameTimeInterval = (TInt64)(1000000/15) ;
sl@0
    64
/**
sl@0
    65
 * Need to tune if playback timing does not match
sl@0
    66
 */
sl@0
    67
const TInt64 KStartOffset = 0;
sl@0
    68
sl@0
    69
const TInt KQVGAWidth = 240;
sl@0
    70
const TInt KQVGAHeight = 320;
sl@0
    71
sl@0
    72
const TInt KBufferInputPictures = 1;
sl@0
    73
sl@0
    74
enum TVideoCodec
sl@0
    75
	{
sl@0
    76
	ENoCodec,
sl@0
    77
	EH263,
sl@0
    78
	EMPEG4,
sl@0
    79
	EH264,
sl@0
    80
	EAVC,
sl@0
    81
    EVC1,
sl@0
    82
    EFLV,
sl@0
    83
    EVP6,
sl@0
    84
	ERV9	
sl@0
    85
	};
sl@0
    86
sl@0
    87
const TInt KNumPictures = 4;
sl@0
    88
sl@0
    89
const TReal32 KVEDSPH263TimerResolution = 30000 / (TReal32 )1001;
sl@0
    90
sl@0
    91
#endif /*T_DEVVIDEOCONSTANTS_H_*/