blob: 9318f59131fb6a093fd1d8c06c90185ef5608099 [file] [log] [blame]
/* ------------------------------------------------------------------
* Copyright (C) 1998-2009 PacketVideo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied.
* See the License for the specific language governing permissions
* and limitations under the License.
* -------------------------------------------------------------------
*/
#ifndef COLORCONV_CONFIG_H_INCLUDED
#define COLORCONV_CONFIG_H_INCLUDED
/** For scaling support, define CCSCALING to 1, else set it to 0 */
#define CCSCALING 1
/** For rotation support, define CCROTATE to 1, else set it to 0 */
#define CCROTATE 1
/** To specify RGB format. define RGB_FORMAT to 1. For, BGR format, set it to 0 */
#define RGB_FORMAT 0
/********************************************************************************************
For YUV422 to YUV420 conversion, the Input YUV422 data can be in three forms:-
ENDIAN_1 :
Cb1 Y1 Cr1 Y2 Cb2 Y3 Cr2 Y4 .....
ENDIAN_2 :
Y2 Cr1 Y1 Cb1 Y4 Cr2 Y3 Cb2 ....
ENDIAN_3 :
Y1 Cr1 Y2 Cb1 Y3 Cr2 Y4 Cb2 ....
*********************************************************************************************/
/* Set one of the following to 1 depending on your requirement */
#ifdef SHOLES_PROPERTY_OVERRIDES
#define ENDIAN_1 1
#define ENDIAN_2 0
#else
#define ENDIAN_1 0
#define ENDIAN_2 1
#endif
#define ENDIAN_3 0
#endif // COLORCONV_CONFIG_H_INCLUDED