/*****************************************************************************
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.1 $
$Date: 2008/03/17 14:56:38 $

Project:	Developer Kit
Title:		codec
Author(s):	
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.1  2008/03/17 14:56:38  gstephan
Updates for SDK 3.00

Revision 1.1  2007/05/22 18:24:37  gstephan
Creating VDSP 5.00 release folder.  Created from the head copy of
VDSP 4.50 release folder.

Revision 1.1  2006/11/10 05:00:09  randreol
Initial rev

Revision 1.1.1.1  2006/05/09 04:01:29  dwu
USB based audio demonstration

Revision 1.1.1.1  2005/11/18 01:49:01  dwu
BF-533/561 source tree merged

Revision 1.3  2005/10/28 02:05:31  dwu
Added error checking code for JPEG/MJPEG routines

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
};

enum _CODEC_ALGORITHMS
{
   	WMA9,					// WMA9
	MP3,					// MP3
	AAC,					//AAC
    NUM_ALGORITHMS
};

enum _CODING_ACTION			// coding direction
{
	ENCODE,					//
	DECODE					//
};

extern FILE *fpin, *fpout, *fperr;	// stdio file ptrs
extern void *mcu_ex;				// JPEG/MJPEG mcu pointer

// codec prototypes
// CRUNCH use generic decode function
int do_decode(void);

#endif // #ifndef CODEC__H

