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