Video library for GR-PEACH
Dependents: Trace_Program2 GR-PEACH_Camera_in_barcode GR-PEACH_LCD_sample GR-PEACH_LCD_4_3inch_sample ... more
Video library for GR-PEACH.
Hello World!
Import programGR-PEACH_Camera_in
Camera in sample for GR-PEACH. This sample works on GR-LYCHEE besides GR-PEACH.
API
Import library
Interface
See the Pinout page for more details
inc/video_decoder.h@4:aeefe5171463, 2016-06-30 (annotated)
- Committer:
- dkato
- Date:
- Thu Jun 30 11:00:37 2016 +0000
- Revision:
- 4:aeefe5171463
- Parent:
- 0:853f5b7408a7
Add ARGB4444 to graphics layer read format.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dkato | 0:853f5b7408a7 | 1 | /******************************************************************************* |
dkato | 0:853f5b7408a7 | 2 | * DISCLAIMER |
dkato | 0:853f5b7408a7 | 3 | * This software is supplied by Renesas Electronics Corporation and is only |
dkato | 0:853f5b7408a7 | 4 | * intended for use with Renesas products. No other uses are authorized. This |
dkato | 0:853f5b7408a7 | 5 | * software is owned by Renesas Electronics Corporation and is protected under |
dkato | 0:853f5b7408a7 | 6 | * all applicable laws, including copyright laws. |
dkato | 0:853f5b7408a7 | 7 | * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING |
dkato | 0:853f5b7408a7 | 8 | * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT |
dkato | 0:853f5b7408a7 | 9 | * LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE |
dkato | 0:853f5b7408a7 | 10 | * AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. |
dkato | 0:853f5b7408a7 | 11 | * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS |
dkato | 0:853f5b7408a7 | 12 | * ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE |
dkato | 0:853f5b7408a7 | 13 | * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR |
dkato | 0:853f5b7408a7 | 14 | * ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE |
dkato | 0:853f5b7408a7 | 15 | * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. |
dkato | 0:853f5b7408a7 | 16 | * Renesas reserves the right, without notice, to make changes to this software |
dkato | 0:853f5b7408a7 | 17 | * and to discontinue the availability of this software. By using this software, |
dkato | 0:853f5b7408a7 | 18 | * you agree to the additional terms and conditions found by accessing the |
dkato | 0:853f5b7408a7 | 19 | * following link: |
dkato | 0:853f5b7408a7 | 20 | * http://www.renesas.com/disclaimer |
dkato | 0:853f5b7408a7 | 21 | * Copyright (C) 2012 - 2015 Renesas Electronics Corporation. All rights reserved. |
dkato | 0:853f5b7408a7 | 22 | *******************************************************************************/ |
dkato | 0:853f5b7408a7 | 23 | /**************************************************************************//** |
dkato | 0:853f5b7408a7 | 24 | * @file video_decoder.h |
dkato | 0:853f5b7408a7 | 25 | * @version 1.00 |
dkato | 0:853f5b7408a7 | 26 | * $Rev: 199 $ |
dkato | 0:853f5b7408a7 | 27 | * $Date:: 2014-05-23 16:33:52 +0900#$ |
dkato | 0:853f5b7408a7 | 28 | * @brief Video decoder function header |
dkato | 0:853f5b7408a7 | 29 | ******************************************************************************/ |
dkato | 0:853f5b7408a7 | 30 | |
dkato | 0:853f5b7408a7 | 31 | #ifndef VIDEO_DECODER_H |
dkato | 0:853f5b7408a7 | 32 | #define VIDEO_DECODER_H |
dkato | 0:853f5b7408a7 | 33 | |
dkato | 0:853f5b7408a7 | 34 | /****************************************************************************** |
dkato | 0:853f5b7408a7 | 35 | Includes <System Includes> , "Project Includes" |
dkato | 0:853f5b7408a7 | 36 | ******************************************************************************/ |
dkato | 0:853f5b7408a7 | 37 | #include <stdlib.h> |
dkato | 0:853f5b7408a7 | 38 | #include <string.h> |
dkato | 0:853f5b7408a7 | 39 | |
dkato | 0:853f5b7408a7 | 40 | #include "r_vdec.h" |
dkato | 0:853f5b7408a7 | 41 | #include "r_vdec_user.h" |
dkato | 0:853f5b7408a7 | 42 | |
dkato | 0:853f5b7408a7 | 43 | |
dkato | 0:853f5b7408a7 | 44 | /****************************************************************************** |
dkato | 0:853f5b7408a7 | 45 | Macro definitions |
dkato | 0:853f5b7408a7 | 46 | ******************************************************************************/ |
dkato | 0:853f5b7408a7 | 47 | |
dkato | 0:853f5b7408a7 | 48 | /****************************************************************************** |
dkato | 0:853f5b7408a7 | 49 | Typedef definitions |
dkato | 0:853f5b7408a7 | 50 | ******************************************************************************/ |
dkato | 0:853f5b7408a7 | 51 | /*! Video color system */ |
dkato | 0:853f5b7408a7 | 52 | typedef enum { |
dkato | 0:853f5b7408a7 | 53 | GRPH_COL_SYS_UNKNOWN = -1, /*!< Unknown */ |
dkato | 0:853f5b7408a7 | 54 | GRPH_COL_SYS_NTSC_358 = 0, /*!< NTSC-3.58 */ |
dkato | 0:853f5b7408a7 | 55 | GRPH_COL_SYS_NTSC_443 = 1, /*!< NTSC-4.43 */ |
dkato | 0:853f5b7408a7 | 56 | GRPH_COL_SYS_PAL_443 = 2, /*!< PAL-4.43 */ |
dkato | 0:853f5b7408a7 | 57 | GRPH_COL_SYS_PAL_M = 3, /*!< PAL-M */ |
dkato | 0:853f5b7408a7 | 58 | GRPH_COL_SYS_PAL_N = 4, /*!< PAL-N */ |
dkato | 0:853f5b7408a7 | 59 | GRPH_COL_SYS_SECAM = 5, /*!< SECAM */ |
dkato | 0:853f5b7408a7 | 60 | GRPH_COL_SYS_NTSC_443_60 = 6, /*!< NTSC-4.43 (60Hz) */ |
dkato | 0:853f5b7408a7 | 61 | GRPH_COL_SYS_PAL_60 = 7, /*!< PAL-60 */ |
dkato | 0:853f5b7408a7 | 62 | GRPH_COL_SYS_NUM = 8 |
dkato | 0:853f5b7408a7 | 63 | } graphics_col_sys_t; |
dkato | 0:853f5b7408a7 | 64 | |
dkato | 0:853f5b7408a7 | 65 | |
dkato | 0:853f5b7408a7 | 66 | /****************************************************************************** |
dkato | 0:853f5b7408a7 | 67 | Exported global functions (to be accessed by other files) |
dkato | 0:853f5b7408a7 | 68 | ******************************************************************************/ |
dkato | 0:853f5b7408a7 | 69 | vdec_error_t GRAPHICS_VideoDecoderInit (const vdec_adc_vinsel_t adc_vinsel, const vdec_channel_t channel, graphics_col_sys_t col_sys); |
dkato | 0:853f5b7408a7 | 70 | |
dkato | 0:853f5b7408a7 | 71 | |
dkato | 0:853f5b7408a7 | 72 | #endif /* VIDEO_DECODER_H */ |