/* * Copyright (c) 2011 Intel Corporation. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sub license, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice (including the * next paragraph) shall be included in all copies or substantial portions * of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. * IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * Authors: * Shengquan Yuan * Binglin Chen * Jason Hu * Zeng Li */ #ifndef _PSB_OVERLAY_H_ #define _PSB_OVERLAY_H_ #include #define USE_OVERLAY 1 #define USE_DISPLAY_C_SPRITE 0 /* * NOTE: Destination keying when enabled forces the overlay surface * Z order to be below the primary display. Pixels that match the key * value become transparent and the overlay becomes visible at that * pixel. */ #define USE_DCLRK 1 /* * NOTE: This is only for media player output */ #define USE_CLIP_FUNC 0 #define USE_SCALE_FUNC 1 #define USE_ROTATION_FUNC 0 #define Success 0 /* FIXME this will be removed later after using pvr2d */ #if 1 #define RR_Rotate_0 1 #define RR_Rotate_90 2 #define RR_Rotate_180 4 #define RR_Rotate_270 8 #endif #define OV_HUE_DEFAULT_VALUE 0 #define OV_HUE_MIN -30 #define OV_HUE_MAX 30 #define OV_BRIGHTNESS_DEFAULT_VALUE 0 #define OV_BRIGHTNESS_MIN -50 #define OV_BRIGHTNESS_MAX 50 #define OV_CONTRAST_DEFAULT_VALUE 0 #define OV_CONTRAST_MIN -100 #define OV_CONTRAST_MAX 100 #define OV_SATURATION_DEFAULT_VALUE 100 #define OV_SATURATION_MIN 0 #define OV_SATURATION_MAX 200 #define CLAMP_ATTR(a,max,min) (a>max?max:(a