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

jcu_api.c File Reference

jcu_api.c File Reference

JCU (JPEG hardware) driver API. More...

Go to the source code of this file.

Functions

static void R_JCU_I_LOCK_Reset (jcu_i_lock_t *const self)
 Reset the I-Lock object.
static bool_t R_JCU_I_LOCK_Lock (void *const self_)
 Lock the I-Lock object.
static void R_JCU_I_LOCK_Unlock (void *const self_)
 Unlock the I-Lock object.
static void R_JCU_I_LOCK_RequestFinalize (void *const self_)
 Request to finalize the I-Lock object.
static int_fast32_t R_JCU_I_LOCK_GetRootChannelNum (const void *const self_)
 Get root channel number of I-Lock object.
jcu_errorcode_t R_JCU_Initialize (void *const NullConfig)
 Initialize the driver.
jcu_errorcode_t R_JCU_Terminate (void)
 Terminate the driver function.
jcu_errorcode_t R_JCU_TerminateAsync (r_ospl_async_t *const async)
 Terminate the driver function.
jcu_errorcode_t R_JCU_TerminateStep2 (void)
 Terminate the driver function.
jcu_errorcode_t R_JCU_SelectCodec (const jcu_codec_t codec)
 Select Codec Type.
jcu_errorcode_t R_JCU_Start (void)
 Start decoding or encoding.
jcu_errorcode_t R_JCU_StartAsync (r_ospl_async_t *const async)
 Start decoding or encoding.
jcu_errorcode_t R_JCU_SetCountMode (const jcu_count_mode_param_t *const buffer)
 Set the count mode (separate operating) parameter.
jcu_errorcode_t R_JCU_Continue (const jcu_continue_type_t type)
 Restart the processing caused by count mode.
jcu_errorcode_t R_JCU_ContinueAsync (const jcu_continue_type_t type, r_ospl_async_t *const async)
 Restart the processing caused by count mode.
void R_JCU_GetAsyncStatus (const jcu_async_status_t **const out_Status)
 R_JCU_GetAsyncStatus.
jcu_errorcode_t R_JCU_SetDecodeParam (const jcu_decode_param_t *const decode, const jcu_buffer_param_t *const buffer)
 Set parameter for decode.
jcu_errorcode_t R_JCU_SetPauseForImageInfo (const bool_t is_pause)
 Whether stop or not stop for R_JCU_GetImageInfo()
jcu_errorcode_t R_JCU_GetImageInfo (jcu_image_info_t *const buffer)
 GetImageInfo.
jcu_errorcode_t R_JCU_SetErrorFilter (jcu_int_detail_errors_t filter)
 SetErrorFilter.
jcu_errorcode_t R_JCU_SetQuantizationTable (const jcu_table_no_t tableNo, const uint8_t *const table)
 SetQuantizationTable.
jcu_errorcode_t R_JCU_SetHuffmanTable (const jcu_table_no_t tableNo, const jcu_huff_t type, const uint8_t *const table)
 Set the Huffman table.
jcu_errorcode_t R_JCU_SetEncodeParam (const jcu_encode_param_t *const encode, const jcu_buffer_param_t *const buffer)
 Set the parameter fo encoding.
jcu_errorcode_t R_JCU_GetEncodedSize (size_t *const out_Size)
 GetEncodedSize.
jcu_errorcode_t R_JCU_Set2ndCacheAttribute (r_ospl_axi_cache_attribute_t const read_cache_attribute, r_ospl_axi_cache_attribute_t const write_cache_attribute)
 Set AXI bus A*CACHE bits for 2nd cache to JCU.
void R_JCU_EnableInterrupt (void)
 EnableInterrupt.
bool_t R_JCU_DisableInterrupt (void)
 DisableInterrupt.
jcu_internal_information_tR_JCU_GetInternalInformation (void)
 R_JCU_GetInternalInformation.
jcu_i_lock_t * R_JCU_GetILockObject (void)
 R_JCU_GetILockObject.
bool_t R_JCU_I_LOCK_Replace (void *const I_Lock, const r_ospl_i_lock_vtable_t *const I_LockVTable)
 Replace associated I-Lock object.
void R_JCU_I_LOCK_Finalize (void)
 Finalize the I-Lock object.

Variables

static jcu_internal_information_t gs_jcu_internal_information
 gs_jcu_internal_information
static jcu_i_lock_t gs_jcu_i_lock
 gs_jcu_i_lock

Detailed Description

JCU (JPEG hardware) driver API.

Main Code.

Module:
JCU
PublicVersion:
1.00

(=JCU_VERSION)

Rev:
38
Date:
2014-03-18 16:14:45 +0900#

Definition in file jcu_api.c.


Function Documentation

jcu_errorcode_t R_JCU_Continue ( const jcu_continue_type_t  type )

Restart the processing caused by count mode.

Synchronized.

Parameters:
typeThe target to continue
Returns:
<jcu_errorcode_t> type.

Definition at line 532 of file jcu_api.c.

jcu_errorcode_t R_JCU_ContinueAsync ( const jcu_continue_type_t  type,
r_ospl_async_t *const   async 
)

Restart the processing caused by count mode.

Asynchronized.

Parameters:
typeThe target to continue
Returns:
<jcu_errorcode_t> type.

Definition at line 573 of file jcu_api.c.

bool_t R_JCU_DisableInterrupt ( void   )

DisableInterrupt.

Parameters
None
Returns:
Was interrupt enabled

Definition at line 1128 of file jcu_api.c.

void R_JCU_EnableInterrupt ( void   )

EnableInterrupt.

Parameters
None
Returns:
None

Definition at line 1112 of file jcu_api.c.

void R_JCU_GetAsyncStatus ( const jcu_async_status_t **const   out_Status )

R_JCU_GetAsyncStatus.

Parameters
None
Returns:
None

Definition at line 680 of file jcu_api.c.

jcu_errorcode_t R_JCU_GetEncodedSize ( size_t *const   out_Size )

GetEncodedSize.

Parameters:
out_SizeEncodedSize
Returns:
<jcu_errorcode_t> type.

Definition at line 1051 of file jcu_api.c.

jcu_i_lock_t* R_JCU_GetILockObject ( void   )

R_JCU_GetILockObject.

Parameters
None
Returns:
<jcu_i_lock_t> type.

Definition at line 1162 of file jcu_api.c.

jcu_errorcode_t R_JCU_GetImageInfo ( jcu_image_info_t *const   buffer )

GetImageInfo.

Parameters:
bufferImage information. <jcu_image_info_t>
Returns:
<jcu_errorcode_t> type.

Definition at line 799 of file jcu_api.c.

jcu_internal_information_t* R_JCU_GetInternalInformation ( void   )

R_JCU_GetInternalInformation.

Parameters
None
Returns:
<jcu_internal_information_t> type.

Definition at line 1149 of file jcu_api.c.

void R_JCU_I_LOCK_Finalize ( void   )

Finalize the I-Lock object.

Parameters
None
Returns:
None

Definition at line 1204 of file jcu_api.c.

static int_fast32_t R_JCU_I_LOCK_GetRootChannelNum ( const void *const   self_ ) [static]

Get root channel number of I-Lock object.

Parameters:
self_I-Lock object
Returns:
A channel number

Definition at line 1332 of file jcu_api.c.

static bool_t R_JCU_I_LOCK_Lock ( void *const   self_ ) [static]

Lock the I-Lock object.

Parameters:
self_I-Lock object
Returns:
Was interrupt enabled

Definition at line 1246 of file jcu_api.c.

bool_t R_JCU_I_LOCK_Replace ( void *const   I_Lock,
const r_ospl_i_lock_vtable_t *const   I_LockVTable 
)

Replace associated I-Lock object.

Parameters:
I_LockI-Lock object
I_LockVTableV-Table
Returns:
Whether success to replace

Definition at line 1175 of file jcu_api.c.

static void R_JCU_I_LOCK_RequestFinalize ( void *const   self_ ) [static]

Request to finalize the I-Lock object.

Parameters:
self_I-Lock object
Returns:
None

Definition at line 1311 of file jcu_api.c.

static void R_JCU_I_LOCK_Reset ( jcu_i_lock_t *const   self ) [static]

Reset the I-Lock object.

Parameters:
selfI-Lock object
Returns:
None

Definition at line 1224 of file jcu_api.c.

static void R_JCU_I_LOCK_Unlock ( void *const   self_ ) [static]

Unlock the I-Lock object.

Parameters:
self_I-Lock object
Returns:
None

Definition at line 1282 of file jcu_api.c.

jcu_errorcode_t R_JCU_Initialize ( void *const   NullConfig )

Initialize the driver.

Parameters:
NullConfig(in) NULL
Returns:
<jcu_errorcode_t> type.

Definition at line 97 of file jcu_api.c.

jcu_errorcode_t R_JCU_SelectCodec ( const jcu_codec_t  codec )

Select Codec Type.

Parameters:
codec<jcu_codec_t>
Returns:
<jcu_errorcode_t> type.

Definition at line 301 of file jcu_api.c.

jcu_errorcode_t R_JCU_Set2ndCacheAttribute ( r_ospl_axi_cache_attribute_t const   read_cache_attribute,
r_ospl_axi_cache_attribute_t const   write_cache_attribute 
)

Set AXI bus A*CACHE bits for 2nd cache to JCU.

Parameters:
read_cache_attribute<r_ospl_axi_cache_attribute_t>
write_cache_attribute<r_ospl_axi_cache_attribute_t>
Returns:
<jcu_errorcode_t> type.

Definition at line 1067 of file jcu_api.c.

jcu_errorcode_t R_JCU_SetCountMode ( const jcu_count_mode_param_t *const   buffer )

Set the count mode (separate operating) parameter.

Parameters:
buffer<jcu_count_mode_param_t>
Returns:
<jcu_errorcode_t> type.

Definition at line 478 of file jcu_api.c.

jcu_errorcode_t R_JCU_SetDecodeParam ( const jcu_decode_param_t *const   decode,
const jcu_buffer_param_t *const   buffer 
)

Set parameter for decode.

Parameters:
decodeSelect the encode parameter for decoding. <jcu_decode_param_t>
bufferBuffer settings for decode. <jcu_buffer_param_t>
Returns:
<jcu_errorcode_t> type.

Definition at line 703 of file jcu_api.c.

jcu_errorcode_t R_JCU_SetEncodeParam ( const jcu_encode_param_t *const   encode,
const jcu_buffer_param_t *const   buffer 
)

Set the parameter fo encoding.

Parameters:
encodeSelect the encode parameter for encoding. <jcu_encode_param_t>
bufferSelect the buffer settings for encoding. <jcu_buffer_param_t>
Returns:
<jcu_errorcode_t> type.

Definition at line 995 of file jcu_api.c.

jcu_errorcode_t R_JCU_SetErrorFilter ( jcu_int_detail_errors_t  filter )

SetErrorFilter.

Parameters:
filterenable bit of error. <jcu_int_detail_errors_t>
Returns:
<jcu_errorcode_t> type.

Definition at line 849 of file jcu_api.c.

jcu_errorcode_t R_JCU_SetHuffmanTable ( const jcu_table_no_t  tableNo,
const jcu_huff_t  type,
const uint8_t *const   table 
)

Set the Huffman table.

Parameters:
tableNoThe table number to set the value. <jcu_table_no_t>
typeThe type of Huffman table type (AC or DC). <jcu_huff_t>
tableThe body of the table to set
Returns:
<jcu_errorcode_t> type.

Definition at line 940 of file jcu_api.c.

jcu_errorcode_t R_JCU_SetPauseForImageInfo ( const bool_t  is_pause )

Whether stop or not stop for R_JCU_GetImageInfo()

Parameters:
is_pauseWhether stop or not stop
Returns:
<jcu_errorcode_t> type.

Definition at line 759 of file jcu_api.c.

jcu_errorcode_t R_JCU_SetQuantizationTable ( const jcu_table_no_t  tableNo,
const uint8_t *const   table 
)

SetQuantizationTable.

Parameters:
tableNoThe table number to set the value. <jcu_table_no_t>
tableThe body of the table to set.
Returns:
<jcu_errorcode_t> type.

Definition at line 885 of file jcu_api.c.

jcu_errorcode_t R_JCU_Start ( void   )

Start decoding or encoding.

Synchronized.

Parameters
None
Returns:
<jcu_errorcode_t> type.

Definition at line 365 of file jcu_api.c.

jcu_errorcode_t R_JCU_StartAsync ( r_ospl_async_t *const   async )

Start decoding or encoding.

Asynchronized.

Parameters
None
Returns:
<jcu_errorcode_t> type.

Definition at line 407 of file jcu_api.c.

jcu_errorcode_t R_JCU_Terminate ( void   )

Terminate the driver function.

Parameters
None
Returns:
<jcu_errorcode_t> type.

Definition at line 173 of file jcu_api.c.

jcu_errorcode_t R_JCU_TerminateAsync ( r_ospl_async_t *const   async )

Terminate the driver function.

Parameters:
async<r_ospl_async_t>
Returns:
<jcu_errorcode_t> type.

Definition at line 213 of file jcu_api.c.

jcu_errorcode_t R_JCU_TerminateStep2 ( void   )

Terminate the driver function.

Parameters
None
Returns:
<jcu_errorcode_t> type.

Definition at line 269 of file jcu_api.c.


Variable Documentation

jcu_i_lock_t gs_jcu_i_lock [static]

gs_jcu_i_lock

Definition at line 72 of file jcu_api.c.

gs_jcu_internal_information

Definition at line 68 of file jcu_api.c.