os/mm/mmapitest/devvideohaitest/inc/T_DevVideoConstants.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/mm/mmapitest/devvideohaitest/inc/T_DevVideoConstants.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,91 @@
     1.4 +/*
     1.5 +* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description: 
    1.18 +*
    1.19 +*/
    1.20 +
    1.21 +
    1.22 +#ifndef T_DEVVIDEOCONSTANTS_H_
    1.23 +#define T_DEVVIDEOCONSTANTS_H_
    1.24 +
    1.25 +#include <devvideoplay.h>
    1.26 +#include <devvideobase.h> 
    1.27 +
    1.28 +//Constant
    1.29 +// size constant declarations
    1.30 +const TInt KScreenNumber = 0;//check documentation for more information about screen number 
    1.31 +/**
    1.32 + * Length in byte of start code/picture start code
    1.33 + */
    1.34 +const TInt KScLength =3;
    1.35 +const TInt KVc1HeaderLength = 36;
    1.36 +/**
    1.37 + * Min def. of Max byte size of a h263 coded picture in QCIF
    1.38 + */
    1.39 +const TInt KH263MaxCodedSizeQCIF = (8192); //1024 bytes( 1 kibibyte)
    1.40 +
    1.41 +const TInt KH263MaxCodedSizeCIF = (32768); //Min def. of Max byte size of a h263 coded picture in CIF
    1.42 +
    1.43 +/**
    1.44 + * from VBV buffering model
    1.45 + * The Video Buffer Verifier (VBV) is a model hypothetical decoder buffer that will not overflow or underflow 
    1.46 + * when fed a conforming MPEG bit stream.
    1.47 + * 
    1.48 + */
    1.49 +const TInt KMP4MaxCodedSizeQCIF = (10*16384/8);        
    1.50 +const TInt KMP4MaxCodedSizeCIF = (40*16384/8);     
    1.51 +const TInt KMP4MaxCodedSizeVGA = (80*16384/8);     // 2048 bytes / 8 bits
    1.52 +const TInt KMP4MaxCodedSizePAL = (112*16384/8);    
    1.53 +const TInt KMP4MaxCodedSize720P = (248*16384/8);   
    1.54 +const TInt KMaxCodedSize = KMP4MaxCodedSize720P;    // initialize value
    1.55 +
    1.56 +/**
    1.57 + * Buffer Options Const 
    1.58 + * Min Number of Input buffer, used by decoding SetBufferOptions
    1.59 + */
    1.60 +const TInt KNumOfInputBuffers = 2; 
    1.61 +
    1.62 +//For Syncronization 
    1.63 +/**
    1.64 + * Time interval for postproc sync test 15 fps
    1.65 + */
    1.66 +const TInt64 KFrameTimeInterval = (TInt64)(1000000/15) ;
    1.67 +/**
    1.68 + * Need to tune if playback timing does not match
    1.69 + */
    1.70 +const TInt64 KStartOffset = 0;
    1.71 +
    1.72 +const TInt KQVGAWidth = 240;
    1.73 +const TInt KQVGAHeight = 320;
    1.74 +
    1.75 +const TInt KBufferInputPictures = 1;
    1.76 +
    1.77 +enum TVideoCodec
    1.78 +	{
    1.79 +	ENoCodec,
    1.80 +	EH263,
    1.81 +	EMPEG4,
    1.82 +	EH264,
    1.83 +	EAVC,
    1.84 +    EVC1,
    1.85 +    EFLV,
    1.86 +    EVP6,
    1.87 +	ERV9	
    1.88 +	};
    1.89 +
    1.90 +const TInt KNumPictures = 4;
    1.91 +
    1.92 +const TReal32 KVEDSPH263TimerResolution = 30000 / (TReal32 )1001;
    1.93 +
    1.94 +#endif /*T_DEVVIDEOCONSTANTS_H_*/