Video library for GR-PEACH
Dependents: Trace_Program2 GR-PEACH_Camera_in_barcode GR-PEACH_LCD_sample GR-PEACH_LCD_4_3inch_sample ... more
r_vdc5_user.h
00001 /******************************************************************************* 00002 * DISCLAIMER 00003 * This software is supplied by Renesas Electronics Corporation and is only 00004 * intended for use with Renesas products. No other uses are authorized. This 00005 * software is owned by Renesas Electronics Corporation and is protected under 00006 * all applicable laws, including copyright laws. 00007 * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING 00008 * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT 00009 * LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE 00010 * AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. 00011 * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS 00012 * ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE 00013 * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR 00014 * ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE 00015 * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 00016 * Renesas reserves the right, without notice, to make changes to this software 00017 * and to discontinue the availability of this software. By using this software, 00018 * you agree to the additional terms and conditions found by accessing the 00019 * following link: 00020 * http://www.renesas.com/disclaimer 00021 * Copyright (C) 2012 - 2015 Renesas Electronics Corporation. All rights reserved. 00022 *******************************************************************************/ 00023 /**************************************************************************//** 00024 * @file r_vdc5_user.h 00025 * @version 1.00 00026 * $Rev: 199 $ 00027 * $Date:: 2014-05-23 16:33:52 +0900#$ 00028 * @brief VDC5 driver user-defined header 00029 ******************************************************************************/ 00030 00031 #ifndef R_VDC5_USER_H 00032 #define R_VDC5_USER_H 00033 00034 /****************************************************************************** 00035 Includes <System Includes> , "Project Includes" 00036 ******************************************************************************/ 00037 #include "r_typedefs.h" 00038 #include "iodefine.h" 00039 00040 00041 /****************************************************************************** 00042 Macro definitions 00043 ******************************************************************************/ 00044 /*! Compilation switch to enable parameter check functions<br> 00045 If this definition is enabled, the parameter check in each API function will be performed. */ 00046 #define R_VDC5_CHECK_PARAMETERS 00047 00048 00049 /*! GBR to YCbCr conversion <br> 00050 * Matrix coefficient (typical value) for SMPTE 293M 00051 * - Y = 0.299 * R + 0.587 * G + 0.114 * B 00052 * - Cb = -0.169 * R - 0.331 * G + 0.500 * B 00053 * - Cr = 0.500 * R - 0.419 * G - 0.081 * B 00054 * @note 00055 * Coefficient values are represented in 11-bit two's complement integer 00056 * - DEFINITION = int(COEF * 256 + 0.5) 00057 */ 00058 typedef enum { 00059 VDC5_COLORCONV_Y_R = (77u), 00060 VDC5_COLORCONV_Y_G = (150u), 00061 VDC5_COLORCONV_Y_B = (29u), 00062 VDC5_COLORCONV_CB_R = (2005u), 00063 VDC5_COLORCONV_CB_G = (1963u), 00064 VDC5_COLORCONV_CB_B = (128u), 00065 VDC5_COLORCONV_CR_R = (128u), 00066 VDC5_COLORCONV_CR_G = (1941u), 00067 VDC5_COLORCONV_CR_B = (2027u) 00068 } vdc5_colcnv_rgb_ycbcr_t ; 00069 00070 /*! YCbCr to GBR conversion <br> 00071 * Matrix coefficient (typical value) for SMPTE 293M 00072 * - G = 1.0 * Y - 0.344 * Cb - 0.714 * Cr 00073 * - B = 1.0 * Y + 1.772 * Cb + 0.0 * Cr 00074 * - R = 1.0 * Y + 0.0 * Cb + 1.402 * Cr 00075 * @note 00076 * Coefficient values are represented in 11-bit two's complement integer 00077 * - DEFINITION = int(COEF * 256 + 0.5) 00078 */ 00079 typedef enum { 00080 VDC5_COLORCONV_G_Y = (256u), 00081 VDC5_COLORCONV_G_CB = (1960u), 00082 VDC5_COLORCONV_G_CR = (1865u), 00083 VDC5_COLORCONV_B_Y = (256u), 00084 VDC5_COLORCONV_B_CB = (454u), 00085 VDC5_COLORCONV_B_CR = (0u), 00086 VDC5_COLORCONV_R_Y = (256u), 00087 VDC5_COLORCONV_R_CB = (0u), 00088 VDC5_COLORCONV_R_CR = (359u) 00089 } vdc5_colcnv_ycbcr_rgb_t ; 00090 00091 /*! Color matrix DC offset typical value */ 00092 #define VDC5_COLORCONV_DC_OFFSET (128u) 00093 /*! Color matrix coefficient value that represents one times */ 00094 #define VDC5_COLORCONV_1TIMES_GAIN (256u) 00095 00096 /*! 1usec wait cycle for LVDS PLL */ 00097 #define VDC5_LVDS_PLL_WAIT_CYCLE (38u) 00098 /*! 200usec wait counter for LVDS PLL */ 00099 #define VDC5_LVDS_PLL_WAIT_200USEC (13400u) 00100 00101 00102 #endif /* R_VDC5_USER_H */ 00103
Generated on Tue Jul 12 2022 15:08:46 by 1.7.2