codec.h

来自「快速开发基于Blackfin处理器的视频应用」· C头文件 代码 · 共 71 行

H
71
字号
/*****************************************************************************
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 + =
减小字号Ctrl + -
显示快捷键?