/*******************************************************************************
* DISCLAIMER
* This software is supplied by Renesas Electronics Corporation and is only
* intended for use with Renesas products. No other uses are authorized. This
* software is owned by Renesas Electronics Corporation and is protected under
* all applicable laws, including copyright laws.
* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
* AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
* Renesas reserves the right, without notice, to make changes to this software
* and to discontinue the availability of this software. By using this software,
* you agree to the additional terms and conditions found by accessing the
* following link:
* http://www.renesas.com/disclaimer *
* Copyright (C) 2014 Renesas Electronics Corporation
* and Renesas Solutions Corp. All rights reserved.
*******************************************************************************/
/*******************************************************************************
* File Name    : r_jpeg_enc_apl.h
* Version      : 1.00
* Device(s)    : Renesas
* Tool-Chain   : Renesas
* OS           : None
* H/W Platform : Independent
* Description  : This is the jpeg encoder application header file.
******************************************************************************/
/*****************************************************************************
* History : DD.MM.YYYY Version Description
*         : 01.09.2014 1.00    First Release
******************************************************************************/
#ifndef _R_JPEG_ENC_APL_H_
#define _R_JPEF_ENC_APL_H_

#ifndef JPEG_CMP_INITIAL
#define JPEG_ENC_EXTERN extern
#else
#define JPEG_ENC_EXTERN
#endif

/*******************************************************************************
Includes   <System Includes> , "Project Includes"
*******************************************************************************/

/******************************************************************************
Macro definitions
******************************************************************************/
#define JPEG_AREA_MULTI

#define JPEG_QUALITY       32
#define JPEG_OUTPUT_FMT    JPEGE_OUT_YCC422

#define JPEG_OUTPUT_AREA_SIZE  (100*1024) // 100KByte


/*******************************************************************************
Typedef definitions
*******************************************************************************/

/******************************************************************************
Exported global variables
******************************************************************************/

/******************************************************************************
Exported global functions (to be accessed by other files)
******************************************************************************/
JPEG_ENC_EXTERN void R_jpeg_compress_init( void );
#ifdef JPEG_AREA_MULTI
JPEG_ENC_EXTERN uint8_t *R_get_jpeg_output_adr( uint8_t area_num );
JPEG_ENC_EXTERN uint8_t R_get_jpeg_output_area_num( void );
#endif // JPEG_AREA_MULTI
JPEG_ENC_EXTERN int32_t R_get_jpeg_output_size( void );

#endif // _R_JPEG_ENC_APL_H_
/******************************************************************************
End  Of File
******************************************************************************/
