📄 cameraimagic.h
字号:
//------------------------------------------------------------------------------
//
// Copyright (C) 2004, Motorola Inc. All Rights Reserved
//
//------------------------------------------------------------------------------
//
// Copyright (C) 2006, Freescale Semiconductor, Inc. All Rights Reserved.
// THIS SOURCE CODE, AND ITS USE AND DISTRIBUTION, IS SUBJECT TO THE TERMS
// AND CONDITIONS OF THE APPLICABLE LICENSE AGREEMENT
//
//------------------------------------------------------------------------------
//
// File: CameraImagic.h
//
// Definitions for Imagic Camera Sensor.
//
//------------------------------------------------------------------------------
#ifndef __CAMERAIMAGIC_H__
#define __CAMERAIMAGIC_H__
//------------------------------------------------------------------------------
// Defines
//------------------------------------------------------------------------------
// Types
typedef enum cameraImagicOutputFormatEnum {
cameraImagicOutputFormat_CCIR656,
cameraImagicOutputFormat_RGB565,
} cameraImagicOutputFormat;
//------------------------------------------------------------------------------
// Functions
void CameraImagicInit(void);
void CameraImagicDeinit(void);
void CameraImagicSetOutputResolution(csiSensorOutputResolution);
void CameraImagicSetOutputFormat(cameraImagicOutputFormat);
void CameraImagicSetDigitalZoom(BOOL);
//The following for TVin Card.
//------------------------------------------------------------------------------
// Defines
//The Interface to MX27 TVIN/SAA7113H driver.
//
// The SAA7113H_CFG data type is used to config SAA7113H processor.
// video type, width, height, format, fps are automatically detected and
// filled up by the SAA7113H driver. Video source is set by user input.
//
typedef struct
{
int video_type; /**< PAL or NTSC. Please refer to Define_Video_Type. */
int width; /**< The width of the output image. */
int f1height; /**< The height of the field 1 image. */
int f2height; /**< The height of the field 2 image. */
int color_format; /**< RGB or YUV. Please refer to Define_Color_Format. */
int fps; /**< The frame rate (should be constant). */
int video_source; /**< Composite or s-video. Please refer to Define_Video_Source. */
} SAA7113H_CFG;
// Define_Video_Source
// The video source input to SAA7113H processor. The values are used by SAA7113H.video_source.
// CVBS The video source is from composite port
// SVIDEO The video source is from s-video port
#define CVBS 0
#define SVIDEO 1
// Define_Video_Type
// The video type input to SAA7113H processor. The values are used by SAA7113H.video_type.
//
// VT_UNKNOWN Unknow video type: no video source detected
// PAL The video type is PAL
// NTSC The video type is NTSC
#define VT_UNKNOWN1 0
#define PAL 50
#define NTSC 60
//------------------------------------------------------------------------------
// Functions
void Saa7113hI2CTest(void);
void TvInInit(void);
void TvInDeinit(void);
#endif // __CAMERAIMAGIC_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -