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 RGA_raw_image_typedef.h Source File

RGA_raw_image_typedef.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) 2012 - 2014 Renesas Electronics Corporation. All rights reserved.
00022 *******************************************************************************/
00023 /**
00024 * @file  RGA_raw_image_typedef.h
00025 * @brief   $Module: RGA_Image $ $PublicVersion: 0.91 $ (=RGA_IMAGE_VERSION)
00026 * $Rev: 38 $
00027 * $Date:: 2014-03-18 16:14:45 +0900#$
00028 */
00029 
00030 #ifndef  RGA_RAW_IMAGE_TYPEDEF_H
00031 #define  RGA_RAW_IMAGE_TYPEDEF_H
00032 
00033 /******************************************************************************
00034 Includes   <System Includes> , "Project Includes"
00035 ******************************************************************************/
00036 
00037 #ifdef __cplusplus
00038 extern "C" {
00039 #endif /* __cplusplus */
00040 
00041 
00042 /******************************************************************************
00043 Typedef definitions
00044 ******************************************************************************/
00045 
00046 /**
00047 * @struct  graphics_image_t
00048 * @brief  Raw image format of RGA and ImagePackager.
00049 */
00050 typedef struct st_graphics_image_t  graphics_image_t;
00051 struct st_graphics_image_t {
00052 
00053     /** flags */
00054     uint32_t    flags;
00055 
00056     /** offset_to_image */
00057     uint32_t    offset_to_image;
00058 
00059     /** offset_to_alpha */
00060     uint32_t    offset_to_alpha;
00061 
00062     /** width */
00063     uint16_t    width;
00064 
00065     /** height */
00066     uint16_t    height;
00067 
00068     /** type */
00069     uint8_t     type;
00070 
00071     /** type2 */
00072     uint8_t     type2;
00073 
00074     /** color */
00075     uint32_t    color;
00076 };
00077 
00078 enum { /* graphics_image_t::flags */
00079     F_T_IMAGE_INF_RAW_MASK    = 0x01,
00080     F_T_IMAGE_INF_RAW_ADDRESS = 0x00,  /* T_IMAGE_INF::image and Alpha are pointers */
00081     F_T_IMAGE_INF_RAW_OFFSET  = 0x01,  /* T_IMAGE_INF::image and Alpha are offsets */
00082 
00083     F_T_IMAGE_INF_PREMULTIPLIED_ALPHA  = 0x04,  /* Premultiplied alpha */
00084 
00085     F_T_IMAGE_INF_LINE_OFFSET = 0x08,  /* Color member variable is line offset */
00086 
00087     F_T_IMAGE_INF_USED_MASK = 0x0000000F
00088 };
00089 
00090 
00091 /******************************************************************************
00092 Macro definitions
00093 ******************************************************************************/
00094 
00095 /******************************************************************************
00096 Variable Externs
00097 ******************************************************************************/
00098 
00099 /******************************************************************************
00100 Functions Prototypes
00101 ******************************************************************************/
00102 /* In "RGA_raw_image.h" */
00103 
00104 
00105 #ifdef __cplusplus
00106 }  /* extern "C" */
00107 #endif /* __cplusplus */
00108 
00109 #endif