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

License

When you use this library, we judge you have agreed to the following contents.

https://developer.mbed.org/teams/Renesas/wiki/About-LICENSE

Note

If you import the GraphicsFramework library, please import GR-PEACH_video library and R_BSP library together.



JPEG Converter

The JPEG Converter driver implements encode and decode functionality which uses the JCU of the RZ/A Series.

Hello World!

Import programJCU_HelloWorld

Hello World for JCU(JPEG Codec Unit). JCU is JPEG codec unit of RZ/A1. When you use this program, we judge you have agreed to the following contents. https://developer.mbed.org/teams/Renesas/wiki/About-LICENSE

API

Import library

Data Structures

struct bitmap_buff_info_t
Bitmap data setting struct. More...
struct encode_options_t
Encode option setting. More...

Public Types

enum jpeg_conv_error_t {
JPEG_CONV_OK = 0, JPEG_CONV_JCU_ERR = -1, JPEG_CONV_FORMA_ERR = -2, JPEG_CONV_PARAM_ERR = -3,
JPEG_CONV_BUSY = -4, JPEG_CONV_PARAM_RANGE_ERR = -7
}

Error codes.

More...
enum wr_rd_swa_t {
WR_RD_WRSWA_NON = 0, WR_RD_WRSWA_8BIT = 1, WR_RD_WRSWA_16BIT = 2, WR_RD_WRSWA_16_8BIT = 3,
WR_RD_WRSWA_32BIT = 4, WR_RD_WRSWA_32_8BIT = 5, WR_RD_WRSWA_32_16BIT = 6, WR_RD_WRSWA_32_16_8BIT = 7
}

Write/Read image pixcel frame buffer swap setting.

More...
enum wr_rd_format_t { WR_RD_YCbCr422 = 0x00, WR_RD_ARGB8888 = 0x01, WR_RD_RGB565 = 0x02 }

Write/Read image pixcel format selects.

More...
enum sub_sampling_t { SUB_SAMPLING_1_1 = 0x00, SUB_SAMPLING_1_2 = 0x01, SUB_SAMPLING_1_4 = 0x02, SUB_SAMPLING_1_8 = 0x03 }

Thinning output image selects.

More...
enum cbcr_offset_t { CBCR_OFFSET_0 = 0x00, CBCR_OFFSET_128 = 0x01 }

Cb/Cr range selects for decode.

More...

Public Member Functions

JPEG_Converter ()
Constructor method of JPEG converter(encode/decode)
virtual ~JPEG_Converter ()
Destructor method of JPEG converter(encode/decode)
JPEG_Converter::jpeg_conv_error_t decode (void *pJpegBuff, bitmap_buff_info_t *psOutputBuff)
Decode JPEG to rinear data.
JPEG_Converter::jpeg_conv_error_t decode (void *pJpegBuff, bitmap_buff_info_t *psOutputBuff, decode_options_t *pOptions)
JPEG data decode to bitmap.
JPEG_Converter::jpeg_conv_error_t encode ( bitmap_buff_info_t *psInputBuff, void *pJpegBuff, size_t *pEncodeSize)
Encode rinear data to JPEG.
JPEG_Converter::jpeg_conv_error_t encode ( bitmap_buff_info_t *psInputBuff, void *pJpegBuff, size_t *pEncodeSize, encode_options_t *pOptions)
Bitmap data encode to JPEG.
JPEG_Converter::jpeg_conv_error_t SetQuality (const uint8_t qual)
Set encode quality.

Correspondence file

A correspondence file of JPEG Converter is as the following table.

JPEGCorrespondence
Width>0(greater than 0)
Height>0(greater than 0)
Color formatYCbCr444, YCbCr422, YCbCr420, YCbCr411
BitmapCorrespondence
Width>0(greater than 0)
Height>0(greater than 0)
Color formatYCbCr422

Notice

You run JPEG converter once destruction each time.

You set whether these JPEG files aren't input, or it check error setting decode(set in "flag" = true). The JPEG file which becomes correspondence outside will be the following condition.

  • File besides the above-mentioned correspondence file.
  • As information in the JPEG file, WIDTH or HEIGHT is larger than output buffer setting.

Buffer area is used encode/decode, set 8 bytes align and non-cash memory area. The output buffer when decoding, is made beyond the size decided in the size of the JPEG file, the format, setting of thinning out. You make output buffer for decode/encode to enough big size in order to stock this result. JPEG Converter, if you do not particularly perform specified, does not check size against the output data at the time of encoding and decoding. You set the output buffer so that there is no effect of corruption by the output data.

Color format

Color format in case to be converted from Bitmap to JPEG is either ARGB8888 or RGB555, YCbCr422. Color format of the If you want to convert from JPEG file to Bitmap file is YCbCr422. You correct "alpha(member of decode_options_t)" of setting and "output_cb_cr_offset(member of decode_options_t)" according to color format when decoding.

  • example
    decode to ARGB8888(WR_RD_ARGB8888 set in format member of bitmap_buff_info_t)
    alpha = 0x01-0xFF
    output_cb_cr_offset = CBCR_OFFSET_0

    decode to YCbCr422(WR_RD_YCbCr422 set in format member of bitmap_buff_info_t)
    alpha = 0
    output_cb_cr_offset = CBCR_OFFSET_0 or CBCR_OFFSET_128

    decode to RGB565(WR_RD_RGB565 set in format member of bitmap_buff_info_t)
    alpha = 0
    output_cb_cr_offset = CBCR_OFFSET_0

Decode/encode settings are optional

If omitted encode/decode settings, it will work with the following settings.
[Decode option setting (member of decode_options_t)]

  • Vertical sub sampling is thinning output image to 1/1.
  • Horizontal sub sampling is thinning output image to 1/1.
  • Output data of Cb/Cr range is -128 to 127.
  • Output data of swap in 8-bit units: 2-1-4-3-6-5-8-7.
  • Alpha value of 0.
  • JPEG format correspondence outside error check.
  • It decode in a synchronous function.

[Encode option setting (member of encode_options_t)]

  • DRI value is 0.
  • Encoding JPEG file start width offset is 0.
  • Encoding JPEG file start height offset is 0.
  • Input data of Cb/Cr range of input data is -128 to 127.
  • Input data swap in 8-bit units: 2-1-4-3-6-5-8-7.
  • It don't check encode size.
  • Quantization Y use default table(Quality75).
  • Quantization C use default table(Quality75).
  • Huffman Y DC use default table.
  • Huffman C DC use default table.
  • Huffman Y AC use default table.
  • Huffman C AC use default table.
  • It encode in a synchronous function.

Synchronous/asynchronous switching

Decoding and encoding setting to operate asynchronously by setting a callback function(decode_options_t and encode_options_t).

Quality

Quality changes are possible. If you want to change the Quality, please specify the table made of Quality you want to change the address of the setting. If you do not want to change the Quality, it will operate at Quality75.

RGA

The RGA library implements fast drawing functionality which uses the RGA of the RZ/A Series.
Supporting compiler is ARMCC, GCC ARM and IAR.

Hello World!

Import programRGA_HelloWorld

Hello World for RGA(Renesas Graphics Architecture). RGA is the Graphics Library of RZ/A1. When you use this program, we judge you have agreed to the following contents. https://developer.mbed.org/teams/Renesas/wiki/About-LICENSE

Committer:
dkato
Date:
Wed Aug 19 08:58:26 2015 +0000
Revision:
0:37e1e6a45ced
first comit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dkato 0:37e1e6a45ced 1 /*******************************************************************************
dkato 0:37e1e6a45ced 2 * DISCLAIMER
dkato 0:37e1e6a45ced 3 * This software is supplied by Renesas Electronics Corporation and is only
dkato 0:37e1e6a45ced 4 * intended for use with Renesas products. No other uses are authorized. This
dkato 0:37e1e6a45ced 5 * software is owned by Renesas Electronics Corporation and is protected under
dkato 0:37e1e6a45ced 6 * all applicable laws, including copyright laws.
dkato 0:37e1e6a45ced 7 * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
dkato 0:37e1e6a45ced 8 * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
dkato 0:37e1e6a45ced 9 * LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
dkato 0:37e1e6a45ced 10 * AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
dkato 0:37e1e6a45ced 11 * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
dkato 0:37e1e6a45ced 12 * ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
dkato 0:37e1e6a45ced 13 * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
dkato 0:37e1e6a45ced 14 * ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
dkato 0:37e1e6a45ced 15 * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
dkato 0:37e1e6a45ced 16 * Renesas reserves the right, without notice, to make changes to this software
dkato 0:37e1e6a45ced 17 * and to discontinue the availability of this software. By using this software,
dkato 0:37e1e6a45ced 18 * you agree to the additional terms and conditions found by accessing the
dkato 0:37e1e6a45ced 19 * following link:
dkato 0:37e1e6a45ced 20 * http://www.renesas.com/disclaimer
dkato 0:37e1e6a45ced 21 * Copyright (C) 2012 - 2014 Renesas Electronics Corporation. All rights reserved.
dkato 0:37e1e6a45ced 22 *******************************************************************************/
dkato 0:37e1e6a45ced 23 /******************************************************************************
dkato 0:37e1e6a45ced 24 * $FileName: jcu_local.h $
dkato 0:37e1e6a45ced 25 * $Module: JCU $ $PublicVersion: 1.00 $ (=JCU_VERSION)
dkato 0:37e1e6a45ced 26 * $Rev: 35 $
dkato 0:37e1e6a45ced 27 * $Date:: 2014-02-26 13:18:53 +0900#$
dkato 0:37e1e6a45ced 28 * Description : JCU driver local parameter
dkato 0:37e1e6a45ced 29 ******************************************************************************/
dkato 0:37e1e6a45ced 30
dkato 0:37e1e6a45ced 31 #ifndef JCU_LOCAL_H
dkato 0:37e1e6a45ced 32 #define JCU_LOCAL_H
dkato 0:37e1e6a45ced 33
dkato 0:37e1e6a45ced 34 /******************************************************************************
dkato 0:37e1e6a45ced 35 Includes <System Includes> , "Project Includes"
dkato 0:37e1e6a45ced 36 ******************************************************************************/
dkato 0:37e1e6a45ced 37 #include "r_jcu_api.h"
dkato 0:37e1e6a45ced 38 #include "r_jcu_user.h"
dkato 0:37e1e6a45ced 39
dkato 0:37e1e6a45ced 40 #ifdef __cplusplus
dkato 0:37e1e6a45ced 41 extern "C"
dkato 0:37e1e6a45ced 42 {
dkato 0:37e1e6a45ced 43 #endif /* __cplusplus */
dkato 0:37e1e6a45ced 44 /******************************************************************************
dkato 0:37e1e6a45ced 45 Typedef definitions
dkato 0:37e1e6a45ced 46 ******************************************************************************/
dkato 0:37e1e6a45ced 47
dkato 0:37e1e6a45ced 48 typedef struct st_jcu_i_lock_t jcu_i_lock_t; /*[jcu_i_lock_t]*/
dkato 0:37e1e6a45ced 49
dkato 0:37e1e6a45ced 50 /*! [jcu_internal_information_t] Internal Information for this driver */
dkato 0:37e1e6a45ced 51 typedef struct {
dkato 0:37e1e6a45ced 52 jcu_codec_status_t Codec;
dkato 0:37e1e6a45ced 53 bool_t IsCountMode;
dkato 0:37e1e6a45ced 54 jcu_int_detail_errors_t ErrorFilter; /* 1=Enable */
dkato 0:37e1e6a45ced 55
dkato 0:37e1e6a45ced 56 jcu_async_status_t AsyncStatus;
dkato 0:37e1e6a45ced 57 r_ospl_caller_t InterruptCallbackCaller;
dkato 0:37e1e6a45ced 58 jcu_i_lock_t *I_Lock;
dkato 0:37e1e6a45ced 59 const r_ospl_i_lock_vtable_t *I_LockVTable;
dkato 0:37e1e6a45ced 60 bool_t Is_I_LockMaster;
dkato 0:37e1e6a45ced 61 r_ospl_async_t *AsyncForFinalize;
dkato 0:37e1e6a45ced 62 } jcu_internal_information_t;
dkato 0:37e1e6a45ced 63
dkato 0:37e1e6a45ced 64 /*[jcu_i_lock_t]*/
dkato 0:37e1e6a45ced 65 struct st_jcu_i_lock_t {
dkato 0:37e1e6a45ced 66 bool_t IsLock;
dkato 0:37e1e6a45ced 67 bool_t IsRequestedFinalize;
dkato 0:37e1e6a45ced 68 };
dkato 0:37e1e6a45ced 69
dkato 0:37e1e6a45ced 70
dkato 0:37e1e6a45ced 71 /******************************************************************************
dkato 0:37e1e6a45ced 72 Macro definitions
dkato 0:37e1e6a45ced 73 ******************************************************************************/
dkato 0:37e1e6a45ced 74
dkato 0:37e1e6a45ced 75 /******************************************************************************
dkato 0:37e1e6a45ced 76 Variable Externs
dkato 0:37e1e6a45ced 77 ******************************************************************************/
dkato 0:37e1e6a45ced 78
dkato 0:37e1e6a45ced 79 /******************************************************************************
dkato 0:37e1e6a45ced 80 Functions Prototypes
dkato 0:37e1e6a45ced 81 ******************************************************************************/
dkato 0:37e1e6a45ced 82 jcu_internal_information_t *R_JCU_GetInternalInformation(void);
dkato 0:37e1e6a45ced 83 jcu_i_lock_t *R_JCU_GetILockObject(void);
dkato 0:37e1e6a45ced 84 void R_JCU_I_LOCK_Finalize(void);
dkato 0:37e1e6a45ced 85 jcu_errorcode_t R_JCU_TerminateStep2(void);
dkato 0:37e1e6a45ced 86
dkato 0:37e1e6a45ced 87 #ifdef JCU_PARAMETER_CHECK
dkato 0:37e1e6a45ced 88 jcu_errorcode_t JCU_ParaCheckStart(void);
dkato 0:37e1e6a45ced 89 jcu_errorcode_t JCU_ParaCheckSetCountMode(const jcu_count_mode_param_t *const buffer);
dkato 0:37e1e6a45ced 90 jcu_errorcode_t JCU_ParaCheckSelectCodec(const jcu_codec_t codec);
dkato 0:37e1e6a45ced 91 jcu_errorcode_t JCU_ParaCheckSetCallbackFunc(const uintptr_t type);
dkato 0:37e1e6a45ced 92 jcu_errorcode_t JCU_ParaCheckSetDecodeParam(const jcu_decode_param_t *const decode, const jcu_buffer_param_t *const buffer);
dkato 0:37e1e6a45ced 93 jcu_errorcode_t JCU_ParaCheckGetImageInfo(const jcu_image_info_t *const buffer);
dkato 0:37e1e6a45ced 94 jcu_errorcode_t JCU_ParaCheckGetErrorInfo(const jcu_detail_error_t *const errorCode);
dkato 0:37e1e6a45ced 95 jcu_errorcode_t JCU_ParaCheckSetQuantizationTbl(const jcu_table_no_t tableNo);
dkato 0:37e1e6a45ced 96 jcu_errorcode_t JCU_ParaCheckSetHuffmanTable(const jcu_table_no_t tableNo, const jcu_huff_t type);
dkato 0:37e1e6a45ced 97 jcu_errorcode_t JCU_ParaCheckEncodeParam(const jcu_encode_param_t *const encode, const jcu_buffer_param_t *const buffer);
dkato 0:37e1e6a45ced 98 jcu_errorcode_t JCU_CheckInterruptSource(const uint32_t interruptKind);
dkato 0:37e1e6a45ced 99 #endif /* JCU_PARAMETER_CHECK */
dkato 0:37e1e6a45ced 100
dkato 0:37e1e6a45ced 101 jcu_errorcode_t JCU_SetRegisterForInitialize(void);
dkato 0:37e1e6a45ced 102 void JCU_SetRegisterForCodec(const jcu_codec_t codec);
dkato 0:37e1e6a45ced 103 void JCU_SetRegisterForStart(const jcu_int_detail_error_t error_filter);
dkato 0:37e1e6a45ced 104 void JCU_SetRegisterForReset(void);
dkato 0:37e1e6a45ced 105 void JCU_SetRegisterForSetCountMode(const jcu_count_mode_param_t *const buffer);
dkato 0:37e1e6a45ced 106 void JCU_SetRegisterForContinue(const jcu_continue_type_t type);
dkato 0:37e1e6a45ced 107 void JCU_SetRegisterForSetDecodePrm(const jcu_decode_param_t *const decode, const jcu_buffer_param_t *const buffer);
dkato 0:37e1e6a45ced 108 void JCU_SetRegisterForSetQtTable(const jcu_table_no_t tableNo, const uint8_t *const table);
dkato 0:37e1e6a45ced 109 void JCU_SetRegisterForSetHuffTbl(const jcu_table_no_t tableNo, const jcu_huff_t type, const uint8_t *const table);
dkato 0:37e1e6a45ced 110 void JCU_SetRegisterForSetEncodePrm(const jcu_encode_param_t *const encode, const jcu_buffer_param_t *const buffer);
dkato 0:37e1e6a45ced 111 void JCU_SetRegisterForSetPause(const bool_t is_pause, const jcu_int_detail_errors_t filter);
dkato 0:37e1e6a45ced 112 void JCU_GetRegisterForGetImageInfo(jcu_image_info_t *const buffer);
dkato 0:37e1e6a45ced 113 void JCU_GetEncodedSize(size_t *const out_Size);
dkato 0:37e1e6a45ced 114 void JCU_ClearInterruptFlag(void);
dkato 0:37e1e6a45ced 115
dkato 0:37e1e6a45ced 116
dkato 0:37e1e6a45ced 117 /* ->SEC M1.2.2(QAC-1259) */
dkato 0:37e1e6a45ced 118 /* If "Value" is signed, this is depend on CPU bit width. */
dkato 0:37e1e6a45ced 119 /* But driver code is no problem. */
dkato 0:37e1e6a45ced 120 /* This expects 32bit CPU. */
dkato 0:37e1e6a45ced 121 /* ->SEC R3.6.2(QAC-3345) */
dkato 0:37e1e6a45ced 122 /* Volatile access at left of "=" and right of "=". */
dkato 0:37e1e6a45ced 123 /* But this is not depend on compiler spcifications. */
dkato 0:37e1e6a45ced 124 /* ->MISRA 19.12 ->MISRA 19.13 ->SEC M5.1.2 (1) */
dkato 0:37e1e6a45ced 125 #define R_SET_REG_BIT_FIELD( Register, BitName, Value ) \
dkato 0:37e1e6a45ced 126 ( (Register) = (BitName##_TYPE)( ( (uint32_t)(Register) & (uint32_t)(~(BitName##_MASK) ) ) |\
dkato 0:37e1e6a45ced 127 ( (uint32_t)( (uint32_t)(Value) << (BitName##_SHIFT) ) & (uint32_t)(BitName##_MASK) ) ) )
dkato 0:37e1e6a45ced 128 #define R_GET_REG_BIT_FIELD( Register, BitName ) \
dkato 0:37e1e6a45ced 129 ( (BitName##_TYPE)( ( ((uint32_t)(Register)) & (uint32_t)(BitName##_MASK) ) >> (BitName##_SHIFT) ) )
dkato 0:37e1e6a45ced 130 /* <-SEC M1.2.3(QAC-1259) */
dkato 0:37e1e6a45ced 131 /* <-SEC R3.6.2(QAC-3345) */
dkato 0:37e1e6a45ced 132 /* <-MISRA 19.12 <-MISRA 19.13 <-SEC M5.1.2 (1) */
dkato 0:37e1e6a45ced 133
dkato 0:37e1e6a45ced 134 /* Value of register */
dkato 0:37e1e6a45ced 135 /* 1bit(Flag) */
dkato 0:37e1e6a45ced 136 #define REG_F_CLR (0u)
dkato 0:37e1e6a45ced 137 #define REG_F_SET (1u)
dkato 0:37e1e6a45ced 138
dkato 0:37e1e6a45ced 139 /* Bit field name (Register name) */
dkato 0:37e1e6a45ced 140
dkato 0:37e1e6a45ced 141 /* SRST(CPG.SWRSTCR2) */
dkato 0:37e1e6a45ced 142 #define SRST_MASK (0x00000002u)
dkato 0:37e1e6a45ced 143 #define SRST_SHIFT (1u)
dkato 0:37e1e6a45ced 144 #define SRST_TYPE uint8_t
dkato 0:37e1e6a45ced 145
dkato 0:37e1e6a45ced 146
dkato 0:37e1e6a45ced 147 /*DSP(JCU.JCMOD) */
dkato 0:37e1e6a45ced 148 #define DSP_MASK (0x00000008u)
dkato 0:37e1e6a45ced 149 #define DSP_SHIFT (3u)
dkato 0:37e1e6a45ced 150 #define DSP_TYPE uint8_t
dkato 0:37e1e6a45ced 151
dkato 0:37e1e6a45ced 152 /*REDU(JCU.JCMOD) */
dkato 0:37e1e6a45ced 153 #define REDU_MASK (0x00000007u)
dkato 0:37e1e6a45ced 154 #define REDU_SHIFT (0u)
dkato 0:37e1e6a45ced 155 #define REDU_TYPE uint8_t
dkato 0:37e1e6a45ced 156
dkato 0:37e1e6a45ced 157
dkato 0:37e1e6a45ced 158 /*BRST(JCU.JCCMD) */
dkato 0:37e1e6a45ced 159 #define BRST_MASK (0x00000080u)
dkato 0:37e1e6a45ced 160 #define BRST_SHIFT (7u)
dkato 0:37e1e6a45ced 161 #define BRST_TYPE uint8_t
dkato 0:37e1e6a45ced 162
dkato 0:37e1e6a45ced 163 /*JEND(JCU.JCCMD) */
dkato 0:37e1e6a45ced 164 #define JEND_MASK (0x00000004u)
dkato 0:37e1e6a45ced 165 #define JEND_SHIFT (2u)
dkato 0:37e1e6a45ced 166 #define JEND_TYPE uint8_t
dkato 0:37e1e6a45ced 167
dkato 0:37e1e6a45ced 168 /*JRST(JCU.JCCMD) */
dkato 0:37e1e6a45ced 169 #define JRST_MASK (0x00000002u)
dkato 0:37e1e6a45ced 170 #define JRST_SHIFT (1u)
dkato 0:37e1e6a45ced 171 #define JRST_TYPE uint8_t
dkato 0:37e1e6a45ced 172
dkato 0:37e1e6a45ced 173 /*JSRT(JCU.JCCMD) */
dkato 0:37e1e6a45ced 174 #define JSRT_MASK (0x00000001u)
dkato 0:37e1e6a45ced 175 #define JSRT_SHIFT (0u)
dkato 0:37e1e6a45ced 176 #define JSRT_TYPE uint8_t
dkato 0:37e1e6a45ced 177
dkato 0:37e1e6a45ced 178
dkato 0:37e1e6a45ced 179 /*QT3(JCU.JCQTN) */
dkato 0:37e1e6a45ced 180 #define QT3_MASK (0x00000030u)
dkato 0:37e1e6a45ced 181 #define QT3_SHIFT (4u)
dkato 0:37e1e6a45ced 182 #define QT3_TYPE uint8_t
dkato 0:37e1e6a45ced 183
dkato 0:37e1e6a45ced 184 /*QT2(JCU.JCQTN) */
dkato 0:37e1e6a45ced 185 #define QT2_MASK (0x0000000Cu)
dkato 0:37e1e6a45ced 186 #define QT2_SHIFT (2u)
dkato 0:37e1e6a45ced 187 #define QT2_TYPE uint8_t
dkato 0:37e1e6a45ced 188
dkato 0:37e1e6a45ced 189 /*QT1(JCU.JCQTN) */
dkato 0:37e1e6a45ced 190 #define QT1_MASK (0x00000003u)
dkato 0:37e1e6a45ced 191 #define QT1_SHIFT (0u)
dkato 0:37e1e6a45ced 192 #define QT1_TYPE uint8_t
dkato 0:37e1e6a45ced 193
dkato 0:37e1e6a45ced 194
dkato 0:37e1e6a45ced 195 /*HTA3(JCU.JCHTN) */
dkato 0:37e1e6a45ced 196 #define HTA3_MASK (0x00000020u)
dkato 0:37e1e6a45ced 197 #define HTA3_SHIFT (5u)
dkato 0:37e1e6a45ced 198 #define HTA3_TYPE uint8_t
dkato 0:37e1e6a45ced 199
dkato 0:37e1e6a45ced 200 /*HTD3(JCU.JCHTN) */
dkato 0:37e1e6a45ced 201 #define HTD3_MASK (0x00000010u)
dkato 0:37e1e6a45ced 202 #define HTD3_SHIFT (4u)
dkato 0:37e1e6a45ced 203 #define HTD3_TYPE uint8_t
dkato 0:37e1e6a45ced 204
dkato 0:37e1e6a45ced 205 /*HTA2(JCU.JCHTN) */
dkato 0:37e1e6a45ced 206 #define HTA2_MASK (0x00000008u)
dkato 0:37e1e6a45ced 207 #define HTA2_SHIFT (3u)
dkato 0:37e1e6a45ced 208 #define HTA2_TYPE uint8_t
dkato 0:37e1e6a45ced 209
dkato 0:37e1e6a45ced 210 /*HTD2(JCU.JCHTN) */
dkato 0:37e1e6a45ced 211 #define HTD2_MASK (0x00000004u)
dkato 0:37e1e6a45ced 212 #define HTD2_SHIFT (2u)
dkato 0:37e1e6a45ced 213 #define HTD2_TYPE uint8_t
dkato 0:37e1e6a45ced 214
dkato 0:37e1e6a45ced 215 /*HTA1(JCU.JCHTN) */
dkato 0:37e1e6a45ced 216 #define HTA1_MASK (0x00000002u)
dkato 0:37e1e6a45ced 217 #define HTA1_SHIFT (1u)
dkato 0:37e1e6a45ced 218 #define HTA1_TYPE uint8_t
dkato 0:37e1e6a45ced 219
dkato 0:37e1e6a45ced 220 /*HTD1(JCU.JCHTN) */
dkato 0:37e1e6a45ced 221 #define HTD1_MASK (0x00000001u)
dkato 0:37e1e6a45ced 222 #define HTD1_SHIFT (0u)
dkato 0:37e1e6a45ced 223 #define HTD1_TYPE uint8_t
dkato 0:37e1e6a45ced 224
dkato 0:37e1e6a45ced 225
dkato 0:37e1e6a45ced 226 /*INT7(JCU.JINTE0) Error of restart interval data. JINTE0.INT7 -> JINTS0.INS5 */
dkato 0:37e1e6a45ced 227 #define INT7_MASK (0x00000080u)
dkato 0:37e1e6a45ced 228 #define INT7_SHIFT (7u)
dkato 0:37e1e6a45ced 229 #define INT7_TYPE uint8_t
dkato 0:37e1e6a45ced 230
dkato 0:37e1e6a45ced 231 /*INT6(JCU.JINTE0) Error of Segment total data. JINTE0.INT6 -> JINTS0.INS5 */
dkato 0:37e1e6a45ced 232 #define INT6_MASK (0x00000040u)
dkato 0:37e1e6a45ced 233 #define INT6_SHIFT (6u)
dkato 0:37e1e6a45ced 234 #define INT6_TYPE uint8_t
dkato 0:37e1e6a45ced 235
dkato 0:37e1e6a45ced 236 /*INT5(JCU.JINTE0) Error of MCU block data. JINTE0.INT5 -> JINTS0.INS5 */
dkato 0:37e1e6a45ced 237 #define INT5_MASK (0x00000020u)
dkato 0:37e1e6a45ced 238 #define INT5_SHIFT (5u)
dkato 0:37e1e6a45ced 239 #define INT5_TYPE uint8_t
dkato 0:37e1e6a45ced 240
dkato 0:37e1e6a45ced 241 /*INT3(JCU.JINTE0) */
dkato 0:37e1e6a45ced 242 #define INT3_MASK (0x00000008u)
dkato 0:37e1e6a45ced 243 #define INT3_SHIFT (3u)
dkato 0:37e1e6a45ced 244 #define INT3_TYPE uint8_t
dkato 0:37e1e6a45ced 245
dkato 0:37e1e6a45ced 246
dkato 0:37e1e6a45ced 247 /*INS6(JCU.JINTS0) End Core Only */
dkato 0:37e1e6a45ced 248 #define INS6_MASK (0x00000040u)
dkato 0:37e1e6a45ced 249 #define INS6_SHIFT (6u)
dkato 0:37e1e6a45ced 250 #define INS6_TYPE uint8_t
dkato 0:37e1e6a45ced 251
dkato 0:37e1e6a45ced 252 /*INS5(JCU.JINTS0) Decode Error */
dkato 0:37e1e6a45ced 253 #define INS5_MASK (0x00000020u)
dkato 0:37e1e6a45ced 254 #define INS5_SHIFT (5u)
dkato 0:37e1e6a45ced 255 #define INS5_TYPE uint8_t
dkato 0:37e1e6a45ced 256
dkato 0:37e1e6a45ced 257 /*INS3(JCU.JINTS0) Get Image Information */
dkato 0:37e1e6a45ced 258 #define INS3_MASK (0x00000008u)
dkato 0:37e1e6a45ced 259 #define INS3_SHIFT (3u)
dkato 0:37e1e6a45ced 260 #define INS3_TYPE uint8_t
dkato 0:37e1e6a45ced 261
dkato 0:37e1e6a45ced 262
dkato 0:37e1e6a45ced 263 /*ERR(JCU.JCDERR) */
dkato 0:37e1e6a45ced 264 #define ERR_MASK (0x0000000Fu)
dkato 0:37e1e6a45ced 265 #define ERR_SHIFT (0u)
dkato 0:37e1e6a45ced 266 #define ERR_TYPE uint8_t
dkato 0:37e1e6a45ced 267
dkato 0:37e1e6a45ced 268
dkato 0:37e1e6a45ced 269 /*JOUTRINI(JCU.JIFECNT) */
dkato 0:37e1e6a45ced 270 #define JOUTRINI_MASK (0x00004000u)
dkato 0:37e1e6a45ced 271 #define JOUTRINI_SHIFT (14u)
dkato 0:37e1e6a45ced 272 #define JOUTRINI_TYPE uint32_t
dkato 0:37e1e6a45ced 273
dkato 0:37e1e6a45ced 274 /*JOUTRCMD(JCU.JIFECNT) */
dkato 0:37e1e6a45ced 275 #define JOUTRCMD_MASK (0x00002000u)
dkato 0:37e1e6a45ced 276 #define JOUTRCMD_SHIFT (13u)
dkato 0:37e1e6a45ced 277 #define JOUTRCMD_TYPE uint32_t
dkato 0:37e1e6a45ced 278
dkato 0:37e1e6a45ced 279 /*JOUTC(JCU.JIFECNT) */
dkato 0:37e1e6a45ced 280 #define JOUTC_MASK (0x00001000u)
dkato 0:37e1e6a45ced 281 #define JOUTC_SHIFT (12u)
dkato 0:37e1e6a45ced 282 #define JOUTC_TYPE uint32_t
dkato 0:37e1e6a45ced 283
dkato 0:37e1e6a45ced 284 /*JOUTSWAP(JCU.JIFECNT) */
dkato 0:37e1e6a45ced 285 #define JOUTSWAP_MASK (0x00000700u)
dkato 0:37e1e6a45ced 286 #define JOUTSWAP_SHIFT (8u)
dkato 0:37e1e6a45ced 287 #define JOUTSWAP_TYPE uint32_t
dkato 0:37e1e6a45ced 288
dkato 0:37e1e6a45ced 289 /*DINRINI(JCU.JIFECNT) */
dkato 0:37e1e6a45ced 290 #define DINRINI_MASK (0x00000040u)
dkato 0:37e1e6a45ced 291 #define DINRINI_SHIFT (6u)
dkato 0:37e1e6a45ced 292 #define DINRINI_TYPE uint32_t
dkato 0:37e1e6a45ced 293
dkato 0:37e1e6a45ced 294 /*DINRCMD(JCU.JIFECNT) */
dkato 0:37e1e6a45ced 295 #define DINRCMD_MASK (0x00000020u)
dkato 0:37e1e6a45ced 296 #define DINRCMD_SHIFT (5u)
dkato 0:37e1e6a45ced 297 #define DINRCMD_TYPE uint32_t
dkato 0:37e1e6a45ced 298
dkato 0:37e1e6a45ced 299 /*DINLC(JCU.JIFECNT) */
dkato 0:37e1e6a45ced 300 #define DINLC_MASK (0x00000010u)
dkato 0:37e1e6a45ced 301 #define DINLC_SHIFT (4u)
dkato 0:37e1e6a45ced 302 #define DINLC_TYPE uint32_t
dkato 0:37e1e6a45ced 303
dkato 0:37e1e6a45ced 304 /*DINSWAP(JCU.JIFECNT) */
dkato 0:37e1e6a45ced 305 #define DINSWAP_MASK (0x00000007u)
dkato 0:37e1e6a45ced 306 #define DINSWAP_SHIFT (0u)
dkato 0:37e1e6a45ced 307 #define DINSWAP_TYPE uint32_t
dkato 0:37e1e6a45ced 308
dkato 0:37e1e6a45ced 309
dkato 0:37e1e6a45ced 310 /*ESMW(JCU.JIFESOFST) */
dkato 0:37e1e6a45ced 311 #define ESMW_MASK (0x00007FFFu)
dkato 0:37e1e6a45ced 312 #define ESMW_SHIFT (0u)
dkato 0:37e1e6a45ced 313 #define ESMW_TYPE uint32_t
dkato 0:37e1e6a45ced 314
dkato 0:37e1e6a45ced 315
dkato 0:37e1e6a45ced 316 /*LINES(JCU.JIFESLC, JCU.JIFDDLC) */
dkato 0:37e1e6a45ced 317 #define LINES_MASK (0x0000FFFFu)
dkato 0:37e1e6a45ced 318 #define LINES_SHIFT (0u)
dkato 0:37e1e6a45ced 319 #define LINES_TYPE uint32_t
dkato 0:37e1e6a45ced 320 #define LINES_CLEAR (0u)
dkato 0:37e1e6a45ced 321
dkato 0:37e1e6a45ced 322
dkato 0:37e1e6a45ced 323 /*JDATAS(JCU.JIFESLC, JCU.JIFDSDC, JCU.JIFEDDC) */
dkato 0:37e1e6a45ced 324 #define JDATAS_MASK (0x0000FFFFu)
dkato 0:37e1e6a45ced 325 #define JDATAS_SHIFT (0u)
dkato 0:37e1e6a45ced 326 #define JDATAS_TYPE uint32_t
dkato 0:37e1e6a45ced 327 #define JDATAS_CLEAR (0u)
dkato 0:37e1e6a45ced 328
dkato 0:37e1e6a45ced 329
dkato 0:37e1e6a45ced 330 /*VINTER(JCU.JIFDCNT) */
dkato 0:37e1e6a45ced 331 #define VINTER_MASK (0x3C000000u)
dkato 0:37e1e6a45ced 332 #define VINTER_SHIFT (28u)
dkato 0:37e1e6a45ced 333 #define VINTER_TYPE uint32_t
dkato 0:37e1e6a45ced 334
dkato 0:37e1e6a45ced 335 /*HINTER(JCU.JIFDCNT) */
dkato 0:37e1e6a45ced 336 #define HINTER_MASK (0x0C000000u)
dkato 0:37e1e6a45ced 337 #define HINTER_SHIFT (26u)
dkato 0:37e1e6a45ced 338 #define HINTER_TYPE uint32_t
dkato 0:37e1e6a45ced 339
dkato 0:37e1e6a45ced 340 /*OPF(JCU.JIFDCNT) */
dkato 0:37e1e6a45ced 341 #define OPF_MASK (0x03000000u)
dkato 0:37e1e6a45ced 342 #define OPF_SHIFT (24u)
dkato 0:37e1e6a45ced 343 #define OPF_TYPE uint32_t
dkato 0:37e1e6a45ced 344
dkato 0:37e1e6a45ced 345 /*JINRINI(JCU.JIFDCNT) */
dkato 0:37e1e6a45ced 346 #define JINRINI_MASK (0x00004000u)
dkato 0:37e1e6a45ced 347 #define JINRINI_SHIFT (14u)
dkato 0:37e1e6a45ced 348 #define JINRINI_TYPE uint32_t
dkato 0:37e1e6a45ced 349
dkato 0:37e1e6a45ced 350 /*JINRCMD(JCU.JIFDCNT) */
dkato 0:37e1e6a45ced 351 #define JINRCMD_MASK (0x00002000u)
dkato 0:37e1e6a45ced 352 #define JINRCMD_SHIFT (13u)
dkato 0:37e1e6a45ced 353 #define JINRCMD_TYPE uint32_t
dkato 0:37e1e6a45ced 354
dkato 0:37e1e6a45ced 355 /*JINC(JCU.JIFDCNT) */
dkato 0:37e1e6a45ced 356 #define JINC_MASK (0x00001000u)
dkato 0:37e1e6a45ced 357 #define JINC_SHIFT (12u)
dkato 0:37e1e6a45ced 358 #define JINC_TYPE uint32_t
dkato 0:37e1e6a45ced 359
dkato 0:37e1e6a45ced 360 /*JINSWAP(JCU.JIFDCNT) */
dkato 0:37e1e6a45ced 361 #define JINSWAP_MASK (0x00000700u)
dkato 0:37e1e6a45ced 362 #define JINSWAP_SHIFT (8u)
dkato 0:37e1e6a45ced 363 #define JINSWAP_TYPE uint32_t
dkato 0:37e1e6a45ced 364
dkato 0:37e1e6a45ced 365 /*DOUTRINI(JCU.JIFDCNT) */
dkato 0:37e1e6a45ced 366 #define DOUTRINI_MASK (0x00000040u)
dkato 0:37e1e6a45ced 367 #define DOUTRINI_SHIFT (6u)
dkato 0:37e1e6a45ced 368 #define DOUTRINI_TYPE uint32_t
dkato 0:37e1e6a45ced 369
dkato 0:37e1e6a45ced 370 /*DOUTRCMD(JCU.JIFDCNT) */
dkato 0:37e1e6a45ced 371 #define DOUTRCMD_MASK (0x00000020u)
dkato 0:37e1e6a45ced 372 #define DOUTRCMD_SHIFT (5u)
dkato 0:37e1e6a45ced 373 #define DOUTRCMD_TYPE uint32_t
dkato 0:37e1e6a45ced 374
dkato 0:37e1e6a45ced 375 /*DOUTLC(JCU.JIFDCNT) */
dkato 0:37e1e6a45ced 376 #define DOUTLC_MASK (0x00000010u)
dkato 0:37e1e6a45ced 377 #define DOUTLC_SHIFT (4u)
dkato 0:37e1e6a45ced 378 #define DOUTLC_TYPE uint32_t
dkato 0:37e1e6a45ced 379
dkato 0:37e1e6a45ced 380 /*DOUTSWAP(JCU.JIFDCNT) */
dkato 0:37e1e6a45ced 381 #define DOUTSWAP_MASK (0x00000007u)
dkato 0:37e1e6a45ced 382 #define DOUTSWAP_SHIFT (0u)
dkato 0:37e1e6a45ced 383 #define DOUTSWAP_TYPE uint32_t
dkato 0:37e1e6a45ced 384
dkato 0:37e1e6a45ced 385
dkato 0:37e1e6a45ced 386 /*DDMW(JCU.JIFDDOFST) */
dkato 0:37e1e6a45ced 387 #define DDMW_MASK (0x00007FFFu)
dkato 0:37e1e6a45ced 388 #define DDMW_SHIFT (0u)
dkato 0:37e1e6a45ced 389 #define DDMW_TYPE uint32_t
dkato 0:37e1e6a45ced 390
dkato 0:37e1e6a45ced 391
dkato 0:37e1e6a45ced 392 /*ALPHA(JCU.JIFDADT) */
dkato 0:37e1e6a45ced 393 #define ALPHA_MASK (0x000000FFu)
dkato 0:37e1e6a45ced 394 #define ALPHA_SHIFT (0u)
dkato 0:37e1e6a45ced 395 #define ALPHA_TYPE uint32_t
dkato 0:37e1e6a45ced 396
dkato 0:37e1e6a45ced 397
dkato 0:37e1e6a45ced 398 /*CBTEN(JCU.JINTE1) */
dkato 0:37e1e6a45ced 399 #define CBTEN_MASK (0x00000040u)
dkato 0:37e1e6a45ced 400 #define CBTEN_SHIFT (6u)
dkato 0:37e1e6a45ced 401 #define CBTEN_TYPE uint32_t
dkato 0:37e1e6a45ced 402
dkato 0:37e1e6a45ced 403 /*DINLEN(JCU.JINTE1) */
dkato 0:37e1e6a45ced 404 #define DINLEN_MASK (0x00000020u)
dkato 0:37e1e6a45ced 405 #define DINLEN_SHIFT (5u)
dkato 0:37e1e6a45ced 406 #define DINLEN_TYPE uint32_t
dkato 0:37e1e6a45ced 407
dkato 0:37e1e6a45ced 408 /*JOUTEN(JCU.JINTE1) */
dkato 0:37e1e6a45ced 409 #define JOUTEN_MASK (0x00000010u)
dkato 0:37e1e6a45ced 410 #define JOUTEN_SHIFT (4u)
dkato 0:37e1e6a45ced 411 #define JOUTEN_TYPE uint32_t
dkato 0:37e1e6a45ced 412
dkato 0:37e1e6a45ced 413 /*DBTEN(JCU.JINTE1) */
dkato 0:37e1e6a45ced 414 #define DBTEN_MASK (0x00000004u)
dkato 0:37e1e6a45ced 415 #define DBTEN_SHIFT (2u)
dkato 0:37e1e6a45ced 416 #define DBTEN_TYPE uint32_t
dkato 0:37e1e6a45ced 417
dkato 0:37e1e6a45ced 418 /*JINEN(JCU.JINTE1) */
dkato 0:37e1e6a45ced 419 #define JINEN_MASK (0x00000002u)
dkato 0:37e1e6a45ced 420 #define JINEN_SHIFT (1u)
dkato 0:37e1e6a45ced 421 #define JINEN_TYPE uint32_t
dkato 0:37e1e6a45ced 422
dkato 0:37e1e6a45ced 423 /*DOUTLEN(JCU.JINTE1) */
dkato 0:37e1e6a45ced 424 #define DOUTLEN_MASK (0x00000001u)
dkato 0:37e1e6a45ced 425 #define DOUTLEN_SHIFT (0u)
dkato 0:37e1e6a45ced 426 #define DOUTLEN_TYPE uint32_t
dkato 0:37e1e6a45ced 427
dkato 0:37e1e6a45ced 428
dkato 0:37e1e6a45ced 429 /*CBTF(JCU.JINTS1) JINTE1.CBTEN -> JINTS1.CBTF */
dkato 0:37e1e6a45ced 430 #define CBTF_MASK (0x00000040u)
dkato 0:37e1e6a45ced 431 #define CBTF_SHIFT (6u)
dkato 0:37e1e6a45ced 432 #define CBTF_TYPE uint32_t
dkato 0:37e1e6a45ced 433
dkato 0:37e1e6a45ced 434 /*DINLF(JCU.JINTS1) Input Data for Encoding */
dkato 0:37e1e6a45ced 435 #define DINLF_MASK (0x00000020u)
dkato 0:37e1e6a45ced 436 #define DINLF_SHIFT (5u)
dkato 0:37e1e6a45ced 437 #define DINLF_TYPE uint32_t
dkato 0:37e1e6a45ced 438
dkato 0:37e1e6a45ced 439 /*JOUTF(JCU.JINTS1) Output Data for Encoding */
dkato 0:37e1e6a45ced 440 #define JOUTF_MASK (0x00000010u)
dkato 0:37e1e6a45ced 441 #define JOUTF_SHIFT (4u)
dkato 0:37e1e6a45ced 442 #define JOUTF_TYPE uint32_t
dkato 0:37e1e6a45ced 443
dkato 0:37e1e6a45ced 444 /*DBTF(JCU.JINTS1) JINTE1.DBTEN -> JINTS1.DBTF */
dkato 0:37e1e6a45ced 445 #define DBTF_MASK (0x00000004u)
dkato 0:37e1e6a45ced 446 #define DBTF_SHIFT (2u)
dkato 0:37e1e6a45ced 447 #define DBTF_TYPE uint32_t
dkato 0:37e1e6a45ced 448
dkato 0:37e1e6a45ced 449 /*JINF(JCU.JINTS1) Input Data for Decoding */
dkato 0:37e1e6a45ced 450 #define JINF_MASK (0x00000002u)
dkato 0:37e1e6a45ced 451 #define JINF_SHIFT (1u)
dkato 0:37e1e6a45ced 452 #define JINF_TYPE uint32_t
dkato 0:37e1e6a45ced 453
dkato 0:37e1e6a45ced 454 /*DOUTLF(JCU.JINTS1) Output Data for Decoding */
dkato 0:37e1e6a45ced 455 #define DOUTLF_MASK (0x00000001u)
dkato 0:37e1e6a45ced 456 #define DOUTLF_SHIFT (0u)
dkato 0:37e1e6a45ced 457 #define DOUTLF_TYPE uint32_t
dkato 0:37e1e6a45ced 458
dkato 0:37e1e6a45ced 459
dkato 0:37e1e6a45ced 460 /*DINYCHG(JCU.JIFESVSZ) */
dkato 0:37e1e6a45ced 461 #define DINYCHG_MASK (0x00008000u)
dkato 0:37e1e6a45ced 462 #define DINYCHG_SHIFT (15u)
dkato 0:37e1e6a45ced 463 #define DINYCHG_TYPE uint32_t
dkato 0:37e1e6a45ced 464
dkato 0:37e1e6a45ced 465 /*DOUTYCHG(JCU.JIFESHSZ) */
dkato 0:37e1e6a45ced 466 #define DOUTYCHG_MASK (0x00008000u)
dkato 0:37e1e6a45ced 467 #define DOUTYCHG_SHIFT (15u)
dkato 0:37e1e6a45ced 468 #define DOUTYCHG_TYPE uint32_t
dkato 0:37e1e6a45ced 469
dkato 0:37e1e6a45ced 470 /* Others */
dkato 0:37e1e6a45ced 471 #define JCU_JINTS1_ALL ( CBTF_MASK | DINLF_MASK | JOUTF_MASK | DBTF_MASK | JINF_MASK | DOUTLF_MASK )
dkato 0:37e1e6a45ced 472 #define SHIFT_16BITS (16u) /* 16bit-SHIFT */
dkato 0:37e1e6a45ced 473 #define SHIFT_8BITS (8u) /* 8bit-SHIFT */
dkato 0:37e1e6a45ced 474 #define JCU_SHIFT_JINTS1 (8)
dkato 0:37e1e6a45ced 475
dkato 0:37e1e6a45ced 476 #ifdef __cplusplus
dkato 0:37e1e6a45ced 477 }
dkato 0:37e1e6a45ced 478 #endif /* __cplusplus */
dkato 0:37e1e6a45ced 479
dkato 0:37e1e6a45ced 480 #endif /* JCU_LOCAL_H */