still.h

来自「dm270 source code」· C头文件 代码 · 共 154 行

H
154
字号
/*
    DM270 ARM Evaluation Software

    (c)Texas Instruments 2003
*/

#ifndef __STILL_H__
#define __STILL_H__

#include <system/armsys270.h>


#define CAPTURE_IMAGE	0x0200
#define JPEG_ENCODE		0x0280
#define JPEG_DECODE		0x0300

typedef struct {
	Uint16 RawAddrHigh;
	Uint16 RawAddrLow;
	Uint16 JpegAddrHigh;
	Uint16 JpegAddrLow;
	Uint16 MaxFileSizeHigh;
	Uint16 MaxFileSizeLow;
	Uint16 ImgWidth;
	Uint16 ImgHeight;
	Uint16 EffWidth;
	Uint16 EffHeight;
	Uint16 ColorFormat;
	Uint16 Interval;
	Uint16 YQtbladdr;
	Uint16 UVQtbladdr;
	Uint16 BGain;
	Uint16 RGain;
	Uint16 ContrMin;
	Uint16 ContrSlope;
	Uint16 CompQuality;
	Uint16 Csat_u;
	Uint16 Csat_v;
	Uint16 EdgeThres;
	Uint16 EdgeGain;
	Uint16 EdgeColorGain;
	Uint16 GGain;
	Uint16 BlackLevelRed;
	Uint16 BlackLevelGreen;
	Uint16 BlackLevelBlue;
	Uint16 Contrast;
	Uint16 Bright;
} CAPTURE_IMAGE_CMD;

typedef struct {
	Uint16 FileSizeHigh;
	Uint16 FileSizeLow;
} CAPTURE_IMAGE_REPLY;

typedef struct {
	Uint16 JpegAddrHigh;
	Uint16 JpegAddrLow;
	Uint16 RingBuffSizeHigh;
	Uint16 RingBuffSizeLow;
	Uint16 ImageAddrHigh;
	Uint16 ImageAddrLow;
	Uint16 ImageWidth;
	Uint16 ImageHeight;
	Uint16 ImageFormat;
	Uint16 EncFormat;
	Uint16 RestartMakerInterval;
	Uint16 QFactor;
} JPEG_ENCODE_CMD;

typedef struct {
	Uint16 BitstreamSizeHigh;
	Uint16 BitstreamSizeLow;
	Uint16 DecMcuHigh;
	Uint16 DecMcuLow;
	Uint16 UsedCommandBuffer;
	Uint16 UsedCoeffBuffer;
	Int16 ErrorCode;
} JPEG_ENCODE_REPLY;


typedef struct {
	Uint16 JpegAddrHigh;
	Uint16 JpegAddrLow;
	Uint16 RingBuffSizeHigh;
	Uint16 RingBuffSizeLow;
	Uint16 MaxJpegSizeHigh;
	Uint16 MaxJpegSizeLow;
	Uint16 VideoAddrHigh;
	Uint16 VideoAddrLow;
	Uint16 DecMcuHigh;
	Uint16 DecMcuLow;
	Uint16 ScaleFactor;
	Uint16 HeaderAnalysisFlag;
	Uint16 DisplayWidth;
	Uint16 DisplayHeight;
	Uint16 StartX;
	Uint16 StartY;
} JPEG_DECODE_CMD;

typedef struct {
	Uint16 Resereved0;
	Uint16 Resereved1;
	Uint16 BitstreamSizeHigh;
	Uint16 BitstreamSizeLow;
	Uint16 VideoDataSizeHigh;
	Uint16 VideoDataSizeLow;
	Uint16 HeaderSizeHigh;
	Uint16 HeaderSizeLow;
	Uint16 DecMcuHigh;
	Uint16 DecMcuLow;
	Uint16 TotalDecMcuHigh;
	Uint16 TotalDecMcuLow;
	Uint16 ImageWidth;
	Uint16 ImageHeight;
	Uint16 DecImageWidth;
	Uint16 DecImageHeight;
	Uint16 ColorFormat;		// Color Subsampling Format(2:444 3:422 4:420 5:411)  
	Uint16 ImxCmdAddr;
	Uint16 ImxCoeffAddr;
	Uint16 ErrorCode;
} JPEG_DECODE_REPLY;

typedef struct STILL_CTRL {
	int    FileIndex;
	Uint32 SlideShowTmrID;
	Uint32 SlideShowDelay;
	BOOL   SlideShowWait;
	BOOL   SlideShowPause;
	BOOL   SlideShowForward;
} STILL_CTRL;



STATUS STILL_init() ;
void STILL_MENU_run() ;
void STILL_PLAYBACK_SLIDESHOW_run() ;
void STILL_SLIDESHOW_TIMER_init() ;
void STILL_SLIDESHOW_TIMER_stop() ;
void STILL_SLIDESHOW_TIMER_isr() ;
void STILL_SLIDESHOW_TIMER_start() ;
void STILL_PLAYBACK_MENU_run() ;
void STILL_CAPTURE_run(BOOL enableAF, BOOL enableAE, BOOL enableAWB ) ;
void STILL_PLAYBACK_run() ;
STATUS STILL_writeFile( char *fname, Uint32 jpeg_addr, Uint32 size ) ;
STATUS STILL_readFile( char *fname, Uint32 jpeg_addr, Uint32 *size ) ;
STATUS STILL_nextFile() ;
STATUS STILL_prevFile() ;
STATUS STILL_firstFile() ;
STATUS STILL_lastFile() ;

#endif	/*	__STILL_H__	*/


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?