sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 2008 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 |
#ifndef INCLUDE_COMMON
|
sl@0
|
19 |
#define INCLUDE_COMMON
|
sl@0
|
20 |
|
sl@0
|
21 |
|
sl@0
|
22 |
typedef signed char int8;
|
sl@0
|
23 |
typedef unsigned char uint8;
|
sl@0
|
24 |
typedef short int int16;
|
sl@0
|
25 |
typedef unsigned short int uint16;
|
sl@0
|
26 |
typedef int int32;
|
sl@0
|
27 |
typedef unsigned int uint32;
|
sl@0
|
28 |
|
sl@0
|
29 |
typedef float flt32;
|
sl@0
|
30 |
typedef double flt64;
|
sl@0
|
31 |
|
sl@0
|
32 |
typedef unsigned char tBool;
|
sl@0
|
33 |
typedef signed int tError;
|
sl@0
|
34 |
|
sl@0
|
35 |
|
sl@0
|
36 |
#define E_TRUE 1
|
sl@0
|
37 |
#define E_FALSE 0
|
sl@0
|
38 |
|
sl@0
|
39 |
#define E_ON 1
|
sl@0
|
40 |
#define E_OFF 0
|
sl@0
|
41 |
|
sl@0
|
42 |
#define E_DEBUG 1
|
sl@0
|
43 |
#define E_RELEASE 0
|
sl@0
|
44 |
|
sl@0
|
45 |
#define E_SUCCESS 0
|
sl@0
|
46 |
#define E_FAILURE (-1)
|
sl@0
|
47 |
#define E_OUT_OF_MEMORY (-2)
|
sl@0
|
48 |
#define E_OUT_OF_RANGE (-3)
|
sl@0
|
49 |
#define E_FILE_CREATE_FAIL (-4)
|
sl@0
|
50 |
#define E_UNDEFINED_FLAG (-5)
|
sl@0
|
51 |
#define E_ERROR_ARGUMENT (-16)
|
sl@0
|
52 |
|
sl@0
|
53 |
#define E_USER_ERROR_BASE (-1000)
|
sl@0
|
54 |
|
sl@0
|
55 |
#define mIsSuccess(code) ((code)>=0)
|
sl@0
|
56 |
#define mIsFailure(code) ((code)<0)
|
sl@0
|
57 |
|
sl@0
|
58 |
/* These define the srcImageFormats */
|
sl@0
|
59 |
#define EYuv420Chroma1_Planar 0x01
|
sl@0
|
60 |
#define EYuv420Chroma2_Planar 0x02
|
sl@0
|
61 |
#define EYuv420Chroma3_Planar 0x03
|
sl@0
|
62 |
#define EYuv422Chroma1_LE 0x04
|
sl@0
|
63 |
#define EYuv422Chroma2_LE 0x05
|
sl@0
|
64 |
#define EYuv422Chroma1_BE 0x06
|
sl@0
|
65 |
#define EYuv422Chroma2_BE 0x07
|
sl@0
|
66 |
|
sl@0
|
67 |
/* These define the dstImageFormats */
|
sl@0
|
68 |
#define EBitmapColor4k_DitherOrdered 0x01
|
sl@0
|
69 |
#define EBitmapColor4k_DitherErrDiff 0x02
|
sl@0
|
70 |
#define EBitmapColor64k_DitherOrdered 0x03
|
sl@0
|
71 |
#define EBitmapColor64k_DitherErrDiff 0x04
|
sl@0
|
72 |
#define EBitmapColor16M 0x05
|
sl@0
|
73 |
#define EBitmapColor16MU 0x06
|
sl@0
|
74 |
|
sl@0
|
75 |
/* These define the various color conversion schemes */
|
sl@0
|
76 |
#define EITU601_5_FULLRANGE 0X01
|
sl@0
|
77 |
#define EITU601_5_REDUCEDRANGE 0X02
|
sl@0
|
78 |
#define EB709_FULLRANGE 0X03
|
sl@0
|
79 |
#define EB709_REDUCEDRANGE 0X04
|
sl@0
|
80 |
|
sl@0
|
81 |
#define COLOR_CONV_PRECISION 14
|
sl@0
|
82 |
#define COLOR_CONV_ROUND 8192
|
sl@0
|
83 |
/* This is the data structure for the output video frame buffer */
|
sl@0
|
84 |
typedef struct BaseVideoFrame
|
sl@0
|
85 |
{
|
sl@0
|
86 |
uint8 *lum; /* Luminance pointer */
|
sl@0
|
87 |
uint8 *cb; /* Cb pointer */
|
sl@0
|
88 |
uint8 *cr; /* Cr pointer */
|
sl@0
|
89 |
uint16 width; /* Width of the frame */
|
sl@0
|
90 |
uint16 height; /* Height of the frame */
|
sl@0
|
91 |
uint32 timeStamp; /* Playback Timestamp */
|
sl@0
|
92 |
|
sl@0
|
93 |
} tBaseVideoFrame;
|
sl@0
|
94 |
|
sl@0
|
95 |
typedef enum {YUV422INT_LE, YUV422INT_BE} EBufferLayout422;
|
sl@0
|
96 |
|
sl@0
|
97 |
/* Crop window structure */
|
sl@0
|
98 |
typedef struct WndParam
|
sl@0
|
99 |
{
|
sl@0
|
100 |
uint16 xOffset;
|
sl@0
|
101 |
uint16 yOffset;
|
sl@0
|
102 |
uint32 wndWidth;
|
sl@0
|
103 |
uint32 wndHeight;
|
sl@0
|
104 |
}tWndParam;
|
sl@0
|
105 |
|
sl@0
|
106 |
#endif /* INCLUDE_COMMON */
|