• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* ------------------------------------------------------------------
2  * Copyright (C) 1998-2009 PacketVideo
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13  * express or implied.
14  * See the License for the specific language governing permissions
15  * and limitations under the License.
16  * -------------------------------------------------------------------
17  */
18 
19 #ifndef COLORCONV_CONFIG_H_INCLUDED
20 #define COLORCONV_CONFIG_H_INCLUDED
21 
22 /** For scaling support, define CCSCALING to 1, else set it to 0 */
23 #define CCSCALING 1
24 
25 /** For rotation support, define CCROTATE to 1, else set it to 0  */
26 #define CCROTATE 1
27 
28 /** To specify RGB format. define RGB_FORMAT to 1. For, BGR format, set it to 0 */
29 #define RGB_FORMAT  0
30 
31 /********************************************************************************************
32  For YUV422 to YUV420 conversion, the Input YUV422 data can be in three forms:-
33     ENDIAN_1 :
34         Cb1 Y1 Cr1 Y2 Cb2 Y3 Cr2 Y4 .....
35 
36     ENDIAN_2 :
37         Y2 Cr1 Y1 Cb1 Y4 Cr2 Y3 Cb2 ....
38 
39     ENDIAN_3 :
40         Y1 Cr1 Y2 Cb1 Y3 Cr2 Y4 Cb2 ....
41 
42 *********************************************************************************************/
43 /* Set one of the following to 1  depending on your requirement */
44 #ifdef SHOLES_PROPERTY_OVERRIDES
45 #define ENDIAN_1 1
46 #define ENDIAN_2 0
47 #else
48 #define ENDIAN_1 0
49 #define ENDIAN_2 1
50 #endif
51 #define ENDIAN_3 0
52 
53 #endif // COLORCONV_CONFIG_H_INCLUDED
54 
55 
56