/*****************************************************************************
Copyright(c) 2005 Analog Devices, Inc.  All Rights Reserved. This software is 
proprietary and confidential to Analog Devices, Inc. and its licensors.
******************************************************************************

$RCSfile: jpeg_mjpeg_err.h,v $
$Revision: 1.1 $
$Date: 2008/03/17 14:56:38 $

Project:	BlackfinSDK
Title:		codec error return codes
Author(s):	ku
Revised by: bmk

Description:
			Generic codec error return codes

References:
			None

******************************************************************************
Tab Setting:			4

Target Processor:		ADSP-BF5xx
Target Tools Revision:	ADSP VisualDSP++ v4.5
******************************************************************************

Modification History:
====================
$Log: jpeg_mjpeg_err.h,v $
Revision 1.1  2008/03/17 14:56:38  gstephan
Updates for SDK 3.00

Revision 1.1  2007/05/22 18:24:41  gstephan
Creating VDSP 5.00 release folder.  Created from the head copy of
VDSP 4.50 release folder.

Revision 1.1  2006/07/21 08:02:56  bmk
JPEG common files


*****************************************************************************/

#ifndef __JPEG_MJPEG_ERR_H__
#define __JPEG_MJPEG_ERR_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 void *mcu_ex;				// JPEG/MJPEG mcu pointer

// 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 // __JPEG_MJPEG_ERR_H__

