Graphics framework for GR-PEACH. When you use this program, we judge you have agreed to the following contents. https://developer.mbed.org/teams/Renesas/wiki/About-LICENSE

Dependents:   ImageZoomInout_Sample ImageRotaion_Sample ImageScroll_Sample GR-PEACH_LCD_4_3inch_Save_to_USB ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers converter_wrapper.h Source File

converter_wrapper.h

Go to the documentation of this file.
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) 2015 Renesas Electronics Corporation. All rights reserved.
00022 *******************************************************************************/
00023 /**************************************************************************//**
00024 * @file         converter_wrapper.h
00025 * @version      1.00
00026 * $Rev: 1 $
00027 * $Date:: 2015-08-06 16:33:52 +0900#$
00028 * @brief        Graphics driver wrapper function definitions in C
00029 ******************************************************************************/
00030 
00031 #ifndef CONVERTER_WRAPPER_H
00032 #define CONVERTER_WRAPPER_H
00033 
00034 /******************************************************************************
00035 Includes   <System Includes> , "Project Includes"
00036 ******************************************************************************/
00037 #include "r_ospl_typedef.h"
00038 #include "cmsis_os.h"
00039 
00040 #ifdef __cplusplus
00041 extern "C" {
00042 #endif /* __cplusplus */
00043 
00044 /*! @enum mbed_jcu_err_t
00045     @brief Error codes
00046  */
00047 typedef enum {
00048         MBED_JCU_E_OK               =  0,    /*!< Normal termination      */
00049         MBED_JCU_E_JCU_ERR          = -1,    /*!< JCU driver error        */
00050         MBED_JCU_E_FORMA_ERR        = -2,    /*!< Not support format      */
00051         MBED_JCU_E_PARAM_ERR        = -3,    /*!< Parameter error         */
00052         MBED_JCU_E_PARAM_RANGE_ERR  = -7,    /*!< Parameter range error   */
00053  } mbed_jcu_err_t;
00054 
00055 
00056 /** Callback function format
00057  */
00058 typedef void (mbed_CallbackFunc_t)(mbed_jcu_err_t err_code);
00059 
00060 
00061 /**************************************************************************//**
00062  * @brief       Set callback function address for decode
00063  * @param[in]   pSetCallbackAdr  Callback function address
00064  * @param[in]   p_async          ospl async data address
00065  * @param[in]   width            Decode data width
00066  * @param[in]   height           Decode data height
00067  * @retval      error code
00068 ******************************************************************************/
00069 errnum_t R_wrpper_set_decode_callback(mbed_CallbackFunc_t* pSetCallbackAdr, size_t width, size_t height);
00070 
00071 /**************************************************************************//**
00072  * @brief       Set callback function address for encode
00073  * @param[in]   InterruptSource  Interrput source data struct address
00074  * @param[in]   Caller           ospl caller data address
00075  * @retval      error code
00076 ******************************************************************************/
00077 errnum_t R_wrpper_LocalDecodeCallback(const r_ospl_interrupt_t *InterruptSource, const r_ospl_caller_t *Caller);
00078 
00079 /**************************************************************************//**
00080  * @brief       Set callback function address for encode
00081  * @param[in]   pSetCallbackAdr  Callback function address
00082  * @param[in]   p_async          ospl async data address
00083  * @param[in]   pSize            Encode size input address
00084  * @param[in]   count_max        Encode count max num
00085  * @retval      error code
00086 ******************************************************************************/
00087 errnum_t R_wrpper_set_encode_callback(mbed_CallbackFunc_t* pSetCallbackAdr, size_t* pSize, int32_t count_max);
00088 
00089 /**************************************************************************//**
00090  * @brief       Set callback function address for encode
00091  * @param[in]   InterruptSource  Interrput source data struct address
00092  * @param[in]   Caller           ospl caller data address
00093  * @retval      error code
00094 ******************************************************************************/
00095 errnum_t R_wrpper_LocalEncodeCallback(const r_ospl_interrupt_t *InterruptSource, const r_ospl_caller_t *Caller);
00096 
00097 #ifdef __cplusplus
00098 }  /* extern "C" */
00099 #endif /* __cplusplus */
00100 
00101 #endif  /* CONVERTER_WRAPPER_H */