📄 camera_ms2_api.h.svn-base
字号:
/**************************************************************************
** INTEL CONFIDENTIAL
** Copyright 2000-2003 Intel Corporation. All Rights Reserved.
**
** The source code contained or described herein and all documents
** related to the source code (Material) are owned by Intel Corporation
** or its suppliers or licensors. Title to the Material remains with
** Intel Corporation or its suppliers and licensors. The Material contains
** trade secrets and proprietary and confidential information of Intel
** or its suppliers and licensors. The Material is protected by worldwide
** copyright and trade secret laws and treaty provisions. No part of the
** Material may be used, copied, reproduced, modified, published, uploaded,
** posted, transmitted, distributed, or disclosed in any way without Intel抯
** prior express written permission.
** No license under any patent, copyright, trade secret or other intellectual
** property right is granted to or conferred upon you by disclosure or
** delivery of the Materials, either expressly, by implication, inducement,
** estoppel or otherwise. Any license under such intellectual property rights
** must be express and approved by Intel in writing.
Module Name:
camera.h
**************************************************************************/
#ifndef __CAMERA_MAINSTONEII_API_H__
#define __CAMERA_MAINSTONEII_API_H__
#define MAX_FRAMES 3
// Use the following for configuring YUV overlay format - Temporary?
#define FORMAT_RGB 0x0
#define FORMAT_PACKED_444 0x1
#define FORMAT_PLANAR_444 0x2
#define FORMAT_PLANAR_422 0x3
#define FORMAT_PLANAR_420 0x4
#define O_BPP_16 0x4
typedef struct
{
unsigned long VideoWidth; // app fills this in
unsigned long VideoHeight; // app fills this in
unsigned long StillWidth; // app fills this in
unsigned long StillHeight; // app fills this in
unsigned long CaptureFormat; // app fills this in
unsigned long FrameRate; // app fills this in
void *ring_buffer_address[MAX_FRAMES]; // driver fills this in
BOOL bFrame_available; // driver maintains this
unsigned char subAddress;
unsigned char *bufP;
unsigned long exposure;
unsigned long clkrc;
unsigned long light;
unsigned long gain;
} CAMERA_APP_T, *P_CAMERA_APP_T;
// Intel proprietary camera API IOCTLs
#define ESCAPECODEBASE 100000
#define CAMERA_INITIALIZE (ESCAPECODEBASE + 12)
#define CAMERA_START_VIDEO_CAPTURE (ESCAPECODEBASE + 13)
#define CAMERA_STOP_VIDEO_CAPTURE (ESCAPECODEBASE + 14)
#define CAMERA_RESERVED (ESCAPECODEBASE + 15)
#define CAMERA_CAPTURE_STILL_IMAGE (ESCAPECODEBASE + 16)
#define CAMERA_WRITE_REGISTER (ESCAPECODEBASE + 17)
#define CAMERA_READ_REGISTER (ESCAPECODEBASE + 18)
#define CAMERA_SHUTDOWN (ESCAPECODEBASE + 19)
#define CAMERA_CHANGE_CAPTURE_FORMAT (ESCAPECODEBASE + 20)
#define CAMERA_PREPARE_BUFFER (ESCAPECODEBASE + 21)
#define CAMERA_UNPREPARE_BUFFER (ESCAPECODEBASE + 22)
#define CAMERA_SUBMIT_BUFFER (ESCAPECODEBASE + 23)
#define CAMERA_PREPARE_STILL_IMAGE_BUFFER (ESCAPECODEBASE + 24)
#define CAMERA_SUBMIT_STILL_IMAGE_BUFFER (ESCAPECODEBASE + 25)
#endif //__CAMERA_MAINSTONEII_API_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -