1 //<MStar Software> 2 //****************************************************************************** 3 // MStar Software 4 // Copyright (c) 2010 - 2012 MStar Semiconductor, Inc. All rights reserved. 5 // All software, firmware and related documentation herein ("MStar Software") are 6 // intellectual property of MStar Semiconductor, Inc. ("MStar") and protected by 7 // law, including, but not limited to, copyright law and international treaties. 8 // Any use, modification, reproduction, retransmission, or republication of all 9 // or part of MStar Software is expressly prohibited, unless prior written 10 // permission has been granted by MStar. 11 // 12 // By accessing, browsing and/or using MStar Software, you acknowledge that you 13 // have read, understood, and agree, to be bound by below terms ("Terms") and to 14 // comply with all applicable laws and regulations: 15 // 16 // 1. MStar shall retain any and all right, ownership and interest to MStar 17 // Software and any modification/derivatives thereof. 18 // No right, ownership, or interest to MStar Software and any 19 // modification/derivatives thereof is transferred to you under Terms. 20 // 21 // 2. You understand that MStar Software might include, incorporate or be 22 // supplied together with third party`s software and the use of MStar 23 // Software may require additional licenses from third parties. 24 // Therefore, you hereby agree it is your sole responsibility to separately 25 // obtain any and all third party right and license necessary for your use of 26 // such third party`s software. 27 // 28 // 3. MStar Software and any modification/derivatives thereof shall be deemed as 29 // MStar`s confidential information and you agree to keep MStar`s 30 // confidential information in strictest confidence and not disclose to any 31 // third party. 32 // 33 // 4. MStar Software is provided on an "AS IS" basis without warranties of any 34 // kind. Any warranties are hereby expressly disclaimed by MStar, including 35 // without limitation, any warranties of merchantability, non-infringement of 36 // intellectual property rights, fitness for a particular purpose, error free 37 // and in conformity with any international standard. You agree to waive any 38 // claim against MStar for any loss, damage, cost or expense that you may 39 // incur related to your use of MStar Software. 40 // In no event shall MStar be liable for any direct, indirect, incidental or 41 // consequential damages, including without limitation, lost of profit or 42 // revenues, lost or damage of data, and unauthorized system use. 43 // You agree that this Section 4 shall still apply without being affected 44 // even if MStar Software has been modified by MStar in accordance with your 45 // request or instruction for your use, except otherwise agreed by both 46 // parties in writing. 47 // 48 // 5. If requested, MStar may from time to time provide technical supports or 49 // services in relation with MStar Software to you for your use of 50 // MStar Software in conjunction with your or your customer`s product 51 // ("Services"). 52 // You understand and agree that, except otherwise agreed by both parties in 53 // writing, Services are provided on an "AS IS" basis and the warranty 54 // disclaimer set forth in Section 4 above shall apply. 55 // 56 // 6. Nothing contained herein shall be construed as by implication, estoppels 57 // or otherwise: 58 // (a) conferring any license or right to use MStar name, trademark, service 59 // mark, symbol or any other identification; 60 // (b) obligating MStar or any of its affiliates to furnish any person, 61 // including without limitation, you and your customers, any assistance 62 // of any kind whatsoever, or any information; or 63 // (c) conferring any license or right under any intellectual property right. 64 // 65 // 7. These terms shall be governed by and construed in accordance with the laws 66 // of Taiwan, R.O.C., excluding its conflict of law rules. 67 // Any and all dispute arising out hereof or related hereto shall be finally 68 // settled by arbitration referred to the Chinese Arbitration Association, 69 // Taipei in accordance with the ROC Arbitration Law and the Arbitration 70 // Rules of the Association by three (3) arbitrators appointed in accordance 71 // with the said Rules. 72 // The place of arbitration shall be in Taipei, Taiwan and the language shall 73 // be English. 74 // The arbitration award shall be final and binding to both parties. 75 // 76 //****************************************************************************** 77 //<MStar Software> 78 //////////////////////////////////////////////////////////////////////////////// 79 // 80 // Copyright (c) 2008-2009 MStar Semiconductor, Inc. 81 // All rights reserved. 82 // 83 // Unless otherwise stipulated in writing, any and all information contained 84 // herein regardless in any format shall remain the sole proprietary of 85 // MStar Semiconductor Inc. and be kept in strict confidence 86 // ("MStar Confidential Information") by the recipient. 87 // Any unauthorized act including without limitation unauthorized disclosure, 88 // copying, use, reproduction, sale, distribution, modification, disassembling, 89 // reverse engineering and compiling of the contents of MStar Confidential 90 // Information is unlawful and strictly prohibited. MStar hereby reserves the 91 // rights to any and all damages, losses, costs and expenses resulting therefrom. 92 //////////////////////////////////////////////////////////////////////////////// 93 94 #ifndef _APIJPEG_PRIV_H_ 95 #define _APIJPEG_PRIV_H_ 96 97 //////////////////////////////////////////////////////////////////////////////// 98 /// @file apiJPEG.h 99 /// @author MStar Semiconductor Inc. 100 /// @brief JPEG control driver 101 //////////////////////////////////////////////////////////////////////////////// 102 103 //////////////////////////////////////////////////////////////////////////////// 104 // Header Files 105 //////////////////////////////////////////////////////////////////////////////// 106 #ifdef __cplusplus 107 extern "C" 108 { 109 #endif 110 111 #include "MsTypes.h" 112 #include "apiJPEG.h" 113 114 #define SUPPORT_JPD_NUM_MAX 1 115 116 typedef void (*IOCTL_JPEG_ENABLE_OJPD)(MS_BOOL); 117 typedef JPEG_Result (*IOCTL_JPEG_INIT_USING_OJPD)(JPEG_InitParam*); 118 typedef void (*IOCTL_JPEG_GET_APP0_INFO)(MS_U8*, MS_U16*, MS_U16*); 119 typedef JPEG_Result (*IOCTL_JPEG_INIT)(JPEG_InitParam*); 120 typedef JPEG_Result (*IOCTL_JPEG_DECODE_HDR)(void); 121 typedef JPEG_Result (*IOCTL_JPEG_DECODE)(void); 122 typedef void (*IOCTL_JPEG_EXIT)(void); 123 typedef JPEG_ErrCode (*IOCTL_JPEG_GET_ERROR_CODE)(void); 124 typedef JPEG_Event (*IOCTL_JPEG_GET_JPEG_EVENT_FLAG)(void); 125 typedef void (*IOCTL_JPEG_SET_JPEG_EVENT_FLAG)(JPEG_Event); 126 typedef void (*IOCTL_JPEG_RST)(void); 127 typedef void (*IOCTL_JPEG_POWER_ON)(void); 128 typedef void (*IOCTL_JPEG_POWER_OFF)(void); 129 typedef MS_U16 (*IOCTL_JPEG_GET_CUR_VIDX)(void); 130 typedef MS_BOOL (*IOCTL_JPEG_IS_PROGRESSIVE)(void); 131 typedef MS_BOOL (*IOCTL_JPEG_THUMBNAIL_FOUND)(void); 132 typedef MS_U16 (*IOCTL_JPEG_GET_WIDTH)(void); 133 typedef MS_U16 (*IOCTL_JPEG_GET_HEIGHT)(void); 134 typedef MS_U16 (*IOCTL_JPEG_GET_ORIGINAL_WIDTH)(void); 135 typedef MS_U16 (*IOCTL_JPEG_GET_ORIGINAL_HEIGHT)(void); 136 typedef MS_U16 (*IOCTL_JPEG_GET_NONALIGNMENT_WIDTH)(void); 137 typedef MS_U16 (*IOCTL_JPEG_GET_NONALIGNMENT_HEIGHT)(void); 138 typedef MS_U16 (*IOCTL_JPEG_GET_ALIGNED_PITCH)(void); 139 typedef MS_U16 (*IOCTL_JPEG_GET_ALIGNED_PITCH_H)(void); 140 typedef MS_U16 (*IOCTL_JPEG_GET_ALIGNED_WIDTH)(void); 141 typedef MS_U16 (*IOCTL_JPEG_GET_ALIGNED_HEIGHT)(void); 142 typedef MS_U8 (*IOCTL_JPEG_GET_SCALE_DOWN_FACTOR)(void); 143 typedef void (*IOCTL_JPEG_SET_MAX_DECODE_RESOLUTION)(MS_U16, MS_U16); 144 typedef void (*IOCTL_JPEG_SET_PRO_MAX_DECODE_RESOLUTION)(MS_U16, MS_U16); 145 typedef void (*IOCTL_JPEG_SET_MRBUFFER_VALID)(JPEG_BuffLoadType); 146 typedef void (*IOCTL_JPEG_UPDATE_READ_INFO)(MS_U32, MS_BOOL); 147 typedef void (*IOCTL_JPEG_PROCESS_EOF)(JPEG_BuffLoadType); 148 typedef void (*IOCTL_JPEG_SET_ERROR_CODE)(JPEG_ErrCode); 149 typedef void (*IOCTL_JPEG_SET_DBG_LEVEL)(MS_U8); 150 typedef MS_U8 (*IOCTL_JPEG_GET_DBG_LEVEL)(void); 151 typedef void (*IOCTL_JPEG_GET_INFO)(JPEG_Info*); 152 typedef void (*IOCTL_JPEG_GET_STATUS)(JPEG_Status*); 153 typedef JPEG_Result (*IOCTL_JPEG_GET_LIB_VER)(const MSIF_Version **); 154 typedef JPEG_Result (*IOCTL_JPEG_HDL_VIDX_CHK)(void); 155 typedef JPEG_Result (*IOCTL_JPEG_GET_BUFF_LOAD_TYPE)(JPEG_BuffLoadType *); 156 typedef JPEG_Result (*IOCTL_JPEG_ENABLE_ISR)(JPEG_IsrFuncCb); 157 typedef JPEG_Result (*IOCTL_JPEG_DISABLE_ISR)(void); 158 typedef JPEG_DecodeStatus (*IOCTL_JPEG_WAIT_DONE)(void); 159 typedef JPEG_Result (*IOCTL_JPEG_GET_EXIF_DATETIME)(JPEG_EXIF_DateTime*); 160 typedef JPEG_Result (*IOCTL_JPEG_GET_EXIF_ORIENTATION)(JPEG_EXIF_Orientation*); 161 typedef JPEG_Result (*IOCTL_JPEG_GET_EXIF_MANUFACTURER)(MS_U8*, MS_U8); 162 typedef JPEG_Result (*IOCTL_JPEG_GET_EXIF_MODEL)(MS_U8*, MS_U8); 163 typedef JPEG_Result (*IOCTL_JPEG_GET_EXIF_FLASH)(MS_U16*); 164 typedef JPEG_Result (*IOCTL_JPEG_GET_EXIF_ISO_SPEED_RATINGS)(MS_U32*); 165 typedef JPEG_Result (*IOCTL_JPEG_GET_EXIF_SHUTTER_SPEED_VALUE)(JPEG_RATIONAL*); 166 typedef JPEG_Result (*IOCTL_JPEG_GET_EXIF_APERTURE_VALUE)(JPEG_RATIONAL*); 167 typedef JPEG_Result (*IOCTL_JPEG_GET_EXIF_EXPOSURE_BIAS_VALUE)(JPEG_RATIONAL*); 168 typedef JPEG_Result (*IOCTL_JPEG_GET_EXIF_FOCAL_LENGTH)(JPEG_RATIONAL*); 169 typedef JPEG_Result (*IOCTL_JPEG_GET_EXIF_IMAGE_WIDTH)(MS_U32*); 170 typedef JPEG_Result (*IOCTL_JPEG_GET_EXIF_IMAGE_HEIGHT)(MS_U32*); 171 typedef JPEG_Result (*IOCTL_JPEG_GET_EXIF_EXPOSURE_TIME)(JPEG_RATIONAL*); 172 typedef JPEG_Result (*IOCTL_JPEG_GET_EXIF_FNUMBER)(JPEG_RATIONAL*); 173 typedef MS_PHYADDR (*IOCTL_JPEG_GET_FREE_MEMORY)(MS_U32); 174 typedef MS_U32 (*IOCTL_JPEG_GET_DATA_OFFSET)(void); 175 typedef MS_U32 (*IOCTL_JPEG_GET_SOF_OFFSET)(void); 176 typedef JPEG_Result (*IOCTL_JPEG_SUPPORT_CMYK)(MS_BOOL); 177 typedef JPEG_Result (*IOCTL_JPEG_SUPPORT_RGB)(MS_BOOL); 178 typedef void (*IOCTL_JPEG_SET_MHEG5)(MS_BOOL); 179 typedef MS_BOOL (*IOCTL_JPEG_IS_MPO_FORMAT)(void); 180 typedef MS_BOOL (*IOCTL_JPEG_GET_MPO_INDEX)(JPEG_MPO_INDEX_INFO **); 181 typedef MS_BOOL (*IOCTL_JPEG_GET_MPO_ATTR)(MS_U32, JPEG_MPO_ATTRIBUTE_INFO **); 182 typedef void (*IOCTL_JPEG_DUMP_MPO)(void); 183 typedef MS_BOOL (*IOCTL_JPEG_SET_MPO_BUFFER)(MS_U32, MS_U32); 184 typedef void (*IOCTL_JPEG_SET_MPO_MAX_DECODE_RESOLUTION)(MS_U16, MS_U16); 185 typedef void (*IOCTL_JPEG_SET_MPO_PRO_MAX_DECODE_RESOLUTION)(MS_U16, MS_U16); 186 typedef JPEG_Result (*IOCTL_JPEG_GET_CONTROL)(EN_JPEG_GET_CTRL_ID, MS_U32 *, MS_U32); 187 188 typedef struct _JPEG_RESOURCE_PRIVATE 189 { 190 MS_U8 u8DecoderInUse[SUPPORT_JPD_NUM_MAX]; 191 }JPEG_RESOURCE_PRIVATE; 192 193 typedef struct _JPEG_INSTANCE_PRIVATE 194 { 195 // instance variable 196 MS_U8 Index_of_decoder; 197 198 IOCTL_JPEG_ENABLE_OJPD fpJPEGEnableOJPD; 199 IOCTL_JPEG_INIT_USING_OJPD fpJPEGInit_UsingOJPD; 200 IOCTL_JPEG_GET_APP0_INFO fpJPEGget_APP0_info; 201 IOCTL_JPEG_INIT fpJPEGInit; 202 IOCTL_JPEG_DECODE_HDR fpJPEGDecodeHdr; 203 IOCTL_JPEG_DECODE fpJPEGDecode; 204 IOCTL_JPEG_EXIT fpJPEGExit; 205 IOCTL_JPEG_GET_ERROR_CODE fpJPEGGetErrorCode; 206 IOCTL_JPEG_GET_JPEG_EVENT_FLAG fpJPEGGetJPDEventFlag; 207 IOCTL_JPEG_SET_JPEG_EVENT_FLAG fpJPEGSetJPDEventFlag; 208 IOCTL_JPEG_RST fpJPEGRst; 209 IOCTL_JPEG_POWER_ON fpJPEGPowerOn; 210 IOCTL_JPEG_POWER_OFF fpJPEGPowerOff; 211 IOCTL_JPEG_GET_CUR_VIDX fpJPEGGetCurVidx; 212 IOCTL_JPEG_IS_PROGRESSIVE fpJPEGIsProgressive; 213 IOCTL_JPEG_THUMBNAIL_FOUND fpJPEGThumbnailFound; 214 IOCTL_JPEG_GET_WIDTH fpJPEGGetWidth; 215 IOCTL_JPEG_GET_HEIGHT fpJPEGGetHeight; 216 IOCTL_JPEG_GET_ORIGINAL_WIDTH fpJPEGGetOriginalWidth; 217 IOCTL_JPEG_GET_ORIGINAL_HEIGHT fpJPEGGetOriginalHeight; 218 IOCTL_JPEG_GET_NONALIGNMENT_WIDTH fpJPEGGetNonAlignmentWidth; 219 IOCTL_JPEG_GET_NONALIGNMENT_HEIGHT fpJPEGGetNonAlignmentHeight; 220 IOCTL_JPEG_GET_ALIGNED_PITCH fpJPEGGetAlignedPitch; 221 IOCTL_JPEG_GET_ALIGNED_PITCH_H fpJPEGGetAlignedPitch_H; 222 IOCTL_JPEG_GET_ALIGNED_WIDTH fpJPEGGetAlignedWidth; 223 IOCTL_JPEG_GET_ALIGNED_HEIGHT fpJPEGGetAlignedHeight; 224 IOCTL_JPEG_GET_SCALE_DOWN_FACTOR fpJPEGGetScaleDownFactor; 225 IOCTL_JPEG_SET_MAX_DECODE_RESOLUTION fpJPEGSetMaxDecodeResolution; 226 IOCTL_JPEG_SET_PRO_MAX_DECODE_RESOLUTION fpJPEGSetProMaxDecodeResolution; 227 IOCTL_JPEG_SET_MRBUFFER_VALID fpJPEGSetMRBufferValid; 228 IOCTL_JPEG_UPDATE_READ_INFO fpJPEGUpdateReadInfo; 229 IOCTL_JPEG_PROCESS_EOF fpJPEGProcessEOF; 230 IOCTL_JPEG_SET_ERROR_CODE fpJPEGSetErrCode; 231 IOCTL_JPEG_SET_DBG_LEVEL fpJPEGSetDbgLevel; 232 IOCTL_JPEG_GET_DBG_LEVEL fpJPEGGetDbgLevel; 233 IOCTL_JPEG_GET_INFO fpJPEGGetInfo; 234 IOCTL_JPEG_GET_STATUS fpJPEGGetStatus; 235 IOCTL_JPEG_GET_LIB_VER fpJPEGGetLibVer; 236 IOCTL_JPEG_HDL_VIDX_CHK fpJPEGHdlVidxChk; 237 IOCTL_JPEG_GET_BUFF_LOAD_TYPE fpJPEGGetBuffLoadType; 238 IOCTL_JPEG_ENABLE_ISR fpJPEGEnableISR; 239 IOCTL_JPEG_DISABLE_ISR fpJPEGDisableISR; 240 IOCTL_JPEG_WAIT_DONE fpJPEGWaitDone; 241 IOCTL_JPEG_GET_EXIF_DATETIME fpJPEGGetEXIFDateTime; 242 IOCTL_JPEG_GET_EXIF_ORIENTATION fpJPEGGetEXIFOrientation; 243 IOCTL_JPEG_GET_EXIF_MANUFACTURER fpJPEGGetEXIFManufacturer; 244 IOCTL_JPEG_GET_EXIF_MODEL fpJPEGGetEXIFModel; 245 IOCTL_JPEG_GET_EXIF_FLASH fpJPEGGetEXIFFlash; 246 IOCTL_JPEG_GET_EXIF_ISO_SPEED_RATINGS fpJPEGGetEXIFISOSpeedRatings; 247 IOCTL_JPEG_GET_EXIF_SHUTTER_SPEED_VALUE fpJPEGGetEXIFShutterSpeedValue; 248 IOCTL_JPEG_GET_EXIF_APERTURE_VALUE fpJPEGGetEXIFApertureValue; 249 IOCTL_JPEG_GET_EXIF_EXPOSURE_BIAS_VALUE fpJPEGGetEXIFExposureBiasValue; 250 IOCTL_JPEG_GET_EXIF_FOCAL_LENGTH fpJPEGGetEXIFFocalLength; 251 IOCTL_JPEG_GET_EXIF_IMAGE_WIDTH fpJPEGGetEXIFImageWidth; 252 IOCTL_JPEG_GET_EXIF_IMAGE_HEIGHT fpJPEGGetEXIFImageHeight; 253 IOCTL_JPEG_GET_EXIF_EXPOSURE_TIME fpJPEGGetEXIFExposureTime; 254 IOCTL_JPEG_GET_EXIF_FNUMBER fpJPEGGetEXIFFNumber; 255 IOCTL_JPEG_GET_FREE_MEMORY fpJPEGGetFreeMemory; 256 IOCTL_JPEG_GET_DATA_OFFSET fpJPEGGetDataOffset; 257 IOCTL_JPEG_GET_SOF_OFFSET fpJPEGGetSOFOffset; 258 IOCTL_JPEG_SUPPORT_CMYK fpJPEGSupportCMYK; 259 IOCTL_JPEG_SUPPORT_RGB fpJPEGSupportRGB; 260 IOCTL_JPEG_SET_MHEG5 fpJPEGSetMHEG5; 261 IOCTL_JPEG_IS_MPO_FORMAT fpJPEGIsMPOFormat; 262 IOCTL_JPEG_GET_MPO_INDEX fpJPEGGetMPOIndex; 263 IOCTL_JPEG_GET_MPO_ATTR fpJPEGGetMPOAttr; 264 IOCTL_JPEG_DUMP_MPO fpJPEGDumpMPO; 265 IOCTL_JPEG_SET_MPO_BUFFER fpJPEGSetMPOBuffer; 266 IOCTL_JPEG_SET_MPO_MAX_DECODE_RESOLUTION fpJPEGSetMPOMaxDecodeResolution; 267 IOCTL_JPEG_SET_MPO_PRO_MAX_DECODE_RESOLUTION fpJPEGSetMPOProMaxDecodeResolution; 268 IOCTL_JPEG_GET_CONTROL fpJPEGGetControl; 269 }JPEG_INSTANCE_PRIVATE; 270 271 void JPEGRegisterToUtopia(void); 272 MS_U32 JPEGOpen(void** ppInstance, MS_U32 u32ModuleVersion, void* pAttribute); 273 MS_U32 JPEGClose(void* pInstance); 274 MS_U32 JPEGIoctl(void* pInstance, MS_U32 u32Cmd, void* pArgs); 275 276 277 void _MApi_JPEG_EnableOJPD(MS_BOOL bOnOff); 278 JPEG_Result _MApi_JPEG_Init_UsingOJPD(JPEG_InitParam *pInitParam); 279 280 void _msAPI_JPEG_get_APP0_info( MS_U8 *unit,MS_U16 *x, MS_U16 *y ); 281 282 JPEG_Result _MApi_JPEG_Init(JPEG_InitParam *pInitParam); 283 JPEG_Result _MApi_JPEG_DecodeHdr(void); 284 JPEG_Result _MApi_JPEG_Decode(void); 285 void _MApi_JPEG_Exit(void); 286 JPEG_ErrCode _MApi_JPEG_GetErrorCode(void); 287 JPEG_Event _MApi_JPEG_GetJPDEventFlag(void); 288 void _MApi_JPEG_SetJPDEventFlag(JPEG_Event eEvtVal); 289 void _MApi_JPEG_Rst(void); 290 void _MApi_JPEG_PowerOn(void); 291 void _MApi_JPEG_PowerOff(void); 292 MS_U16 _MApi_JPEG_GetCurVidx(void); 293 MS_BOOL _MApi_JPEG_IsProgressive(void); 294 MS_BOOL _MApi_JPEG_ThumbnailFound(void); 295 MS_U16 _MApi_JPEG_GetWidth(void); 296 MS_U16 _MApi_JPEG_GetHeight(void); 297 MS_U16 _MApi_JPEG_GetOriginalWidth(void); 298 MS_U16 _MApi_JPEG_GetOriginalHeight(void); 299 MS_U16 _MApi_JPEG_GetNonAlignmentWidth(void); 300 MS_U16 _MApi_JPEG_GetNonAlignmentHeight(void); 301 MS_U16 _MApi_JPEG_GetAlignedPitch(void); 302 MS_U16 _MApi_JPEG_GetAlignedPitch_H(void); 303 MS_U16 _MApi_JPEG_GetAlignedWidth(void); 304 MS_U16 _MApi_JPEG_GetAlignedHeight(void); 305 MS_U8 _MApi_JPEG_GetScaleDownFactor(void); 306 void _MApi_JPEG_SetMaxDecodeResolution(MS_U16 u16Width, MS_U16 u16Height); 307 void _MApi_JPEG_SetProMaxDecodeResolution(MS_U16 u16ProWidth, MS_U16 u16ProHeight); 308 void _MApi_JPEG_SetMRBufferValid(JPEG_BuffLoadType u8MRBuffType); 309 void _MApi_JPEG_UpdateReadInfo(MS_U32 u32DataRead, MS_BOOL bEOFflag); 310 void _MApi_JPEG_ProcessEOF(JPEG_BuffLoadType u8MRBuffType); 311 void _MApi_JPEG_SetErrCode(JPEG_ErrCode ErrStatus); 312 void _MApi_JPEG_SetDbgLevel(MS_U8 u8DbgLevel); 313 MS_U8 _MApi_JPEG_GetDbgLevel(void); 314 void _MApi_JPEG_GetInfo(JPEG_Info *pJPEG_Info); 315 void _MApi_JPEG_GetStatus(JPEG_Status *pJPEG_Status); 316 JPEG_Result _MApi_JPEG_GetLibVer(const MSIF_Version **ppVersion); 317 JPEG_Result _MApi_JPEG_HdlVidxChk(void); 318 JPEG_Result _MApi_JPEG_GetBuffLoadType(JPEG_BuffLoadType *pBuffLoadType); 319 JPEG_Result _MApi_JPEG_EnableISR(JPEG_IsrFuncCb IsrCb); 320 JPEG_Result _MApi_JPEG_DisableISR(void); 321 JPEG_DecodeStatus _MApi_JPEG_WaitDone(void); 322 JPEG_Result _MApi_JPEG_GetEXIFDateTime(JPEG_EXIF_DateTime *DateTime); 323 JPEG_Result _MApi_JPEG_GetEXIFOrientation(JPEG_EXIF_Orientation *eOrientation); 324 #if SUPPORT_EXIF_EXTRA_INFO 325 JPEG_Result _MApi_JPEG_GetEXIFManufacturer(MS_U8 *pu8Manufacturer, MS_U8 u8size); 326 JPEG_Result _MApi_JPEG_GetEXIFModel(MS_U8 *pu8Model, MS_U8 u8size); 327 JPEG_Result _MApi_JPEG_GetEXIFFlash(MS_U16 *pu16Flash); 328 JPEG_Result _MApi_JPEG_GetEXIFISOSpeedRatings(MS_U32 *pu32ISOSpeedRatings); 329 JPEG_Result _MApi_JPEG_GetEXIFShutterSpeedValue(JPEG_RATIONAL *pShutterSpeedValue); 330 JPEG_Result _MApi_JPEG_GetEXIFApertureValue(JPEG_RATIONAL *pApertureValue); 331 JPEG_Result _MApi_JPEG_GetEXIFExposureBiasValue(JPEG_RATIONAL *pExposureBiasValue); 332 JPEG_Result _MApi_JPEG_GetEXIFFocalLength(JPEG_RATIONAL *pFocalLength); 333 JPEG_Result _MApi_JPEG_GetEXIFImageWidth(MS_U32 *pu32ImageWidth); 334 JPEG_Result _MApi_JPEG_GetEXIFImageHeight(MS_U32 *pu32ImageHeight); 335 JPEG_Result _MApi_JPEG_GetEXIFExposureTime(JPEG_RATIONAL *pExposureTime); 336 JPEG_Result _MApi_JPEG_GetEXIFFNumber(JPEG_RATIONAL *pFNumber); 337 #endif 338 MS_PHYADDR _MApi_JPEG_GetFreeMemory(MS_U32 size); 339 MS_U32 _MApi_JPEG_GetDataOffset(void); 340 MS_U32 _MApi_JPEG_GetSOFOffset(void); 341 void _MApi_JPEG_SetNJPDInstance(MS_U8 JPDNum); 342 JPEG_Result _MApi_JPEG_SupportCMYK(MS_BOOL bEnable); 343 JPEG_Result _MApi_JPEG_SupportRGB(MS_BOOL bEnable); 344 void _MApi_JPEG_SetMHEG5(MS_BOOL bEnable); 345 346 #if SUPPORT_MPO_FORMAT 347 //For MPO 348 MS_BOOL _MApi_JPEG_IsMPOFormat(void); 349 MS_BOOL _MApi_JPEG_GetMPOIndex(JPEG_MPO_INDEX_INFO **ppMPOIndex); 350 MS_BOOL _MApi_JPEG_GetMPOAttr(MS_U32 image_no, JPEG_MPO_ATTRIBUTE_INFO **ppMPOAttr); 351 void _MApi_JPEG_DumpMPO(void); 352 MS_BOOL _MApi_JPEG_SetMPOBuffer(MS_U32 read_offset, MS_U32 output_start); 353 void _MApi_JPEG_SetMPOMaxDecodeResolution(MS_U16 u16Width, MS_U16 u16Height); 354 void _MApi_JPEG_SetMPOProMaxDecodeResolution(MS_U16 u16ProWidth, MS_U16 u16ProHeight); 355 #endif 356 JPEG_Result _MApi_JPEG_GetControl(EN_JPEG_GET_CTRL_ID eGetID, MS_U32 *param, MS_U32 u32size); 357 358 #ifdef __cplusplus 359 } 360 #endif 361 #endif // _APIJPEG_PRIV_H_ 362 363 364 365 366 367