📄 codec.h
字号:
/*****************************************************************************
Copyright(c) 2005 Analog Devices, Inc. All Rights Reserved. This software is
proprietary and confidential to Analog Devices, Inc. and its licensors.
******************************************************************************
$RCSfile: codec.h,v $
$Revision: 1.2 $
$Date: 2005/10/28 02:49:13 $
Project: Developer Kit
Title: codec
Author(s): ku
Revised by:
Description:
Functions and definitions for generic codec use.
References:
None
******************************************************************************
Tab Setting: 4
Target Processor: ADSP-BF5xx
Target Tools Revision: ADSP VisualDSP++ v4.0
******************************************************************************
Modification History:
====================
$Log: codec.h,v $
Revision 1.2 2005/10/28 02:49:13 dwu
Added error checking code for JPEG/MJPEG routines, and added ADI
legal headers.
Revision 1.2 2005/10/27 07:48:20 dwu
Changed/added ADI headers
*****************************************************************************/
#ifndef CODEC__H
#define CODEC__H
// codec error codes for the framework
enum _CODEC_ERRORS
{
CODEC_SUCCESS, // everything went okay
CODEC_FILE_ERROR, // error in file handling
CODEC_ALGORITHM_ERROR, // codec error
CODEC_MEMORY_ALLOCATION_ERROR // out of memory in heap
};
extern FILE *fpin, *fpout, *fperr; // stdio file ptrs
extern void *mcu_ex; // JPEG/MJPEG mcu pointer
// codec prototypes
int do_MJPEG_decode(void);
int do_MJPEG_encode(void);
int do_JPEG_decode(void);
int do_JPEG_encode(void);
// Function to check JPEG error codes
int JPEG_ProcessErrorCode(int ReturnCode, char *FunctionName);
// Function to check MJPEG error codes
int MJPEG_ProcessErrorCode(int ReturnCode, char *FunctionName);
#endif // #ifndef CODEC__H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -