⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 s3c6400_camera.h

📁 Samsung公司S3C6400芯片的BSP源码包
💻 H
字号:
#ifndef _SMDK6400CAMERA_H
#define _SMDK6400CAMERA_H


#define	VIDEO_CAPTURE_BUFFER 0x1
#define	STILL_CAPTURE_BUFFER 0x2
#define	PREVIEW_CAPTURE_BUFFER 0x3

#define OUTPUT_CODEC_YCBCR422	0x1
#define OUTPUT_CODEC_YCBCR420	0x2
#define OUTPUT_CODEC_RGB16		0x3
#define OUTPUT_CODEC_RGB24		0x4

#define PREVIEW_PATH		0x1
#define CODEC_PATH			0x2

#define MAX_HW_FRAMES 	4

#define CAPTURE_BUFFER_SIZE		1966080		//  ( 1280*1024*3/2 )
#define PREVIEW_BUFFER_SIZE		614400		//  ( 320*240*2  )  * MAX_HW_FRAMES

typedef struct
{
        DWORD VirtAddr;         
        int   size;             // size of the buffer
        int   BufferID;         // a buffer ID used to identify this buffer to the driver
        union{
        	DWORD *pY;
        	DWORD *pRGB;
        };
        DWORD *pCb;
        DWORD *pCr;
//        DWORD *pBuf;            // Address of the DMA buffer returned from a call to malloc().
} CAMERA_DMA_BUFFER_INFO, *P_CAMERA_DMA_BUFFER_INFO;

typedef void (*PFNCAMHANDLEFRAME)( DWORD dwContext );

int 	CameraInit(void *pData);
void 	CameraDeinit();
int 	CameraPrepareBuffer(P_CAMERA_DMA_BUFFER_INFO pBufInfo, int BufferType);
int 	CameraSetFormat(UINT32 width, UINT32 height, int Format, int BufferType);
int 	CameraDeallocateBuffer(int BufferType);
int		CameraGetCurrentFrameNum(int BufferType);
int 	CameraCaptureControl(int Format, BOOL on); 
int 	CameraSetRegisters(int Format); 
void	CameraClockOn(BOOL bOnOff);	// Clock on/off
void	CameraSleep();
void	CameraResume();
int		CameraZoom(int value);
#endif

⌨️ 快捷键说明

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