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

📄 saa7111.h

📁 用于TM1300/PNX1300系列DSP(主要用于视频处理)的设备库的源码
💻 H
字号:
/*
 * Copyright (c) 1995,1999 by TriMedia Technologies. 
 *
 * +------------------------------------------------------------------+
 * | This software is furnished under a license and may only be used  |
 * | and copied in accordance with the terms and conditions of  such  |
 * | a license and with the inclusion of this copyright notice. This  |
 * | software or any other copies of this software may not be provided|
 * | or otherwise made available to any other person.  The ownership  |
 * | and title of this software is not transferred.                   |
 * |                                                                  |
 * | The information in this software is subject  to change without   |
 * | any  prior notice and should not be construed as a commitment by |
 * | TriMedia Technologies.                                           |
 * |                                                                  |
 * | this code and information is provided "as is" without any        |
 * | warranty of any kind, either expressed or implied, including but |
 * | not limited to the implied warranties of merchantability and/or  |
 * | fitness for any particular purpose.                              |
 * +------------------------------------------------------------------+
 *
 *  Module name              : saa7111.h    1.25
 *
 *  Last update              : 18:43:43 - 00/11/09
 *
 *  Description              : 
 *
 *  Initialize and control routines for saa7111 and 7111a.
 *
 *
 *  Revision                 :
 *		Built for the TCS 2.0 release
 *      
 *		
 */

#ifndef _SAA7111_H_
#define _SAA7111_H_

#include <tm1/tmAvFormats.h>
#include <tmlib/tmtypes.h>
#include <tm1/tmBoard.h>	/* for subaddInfo_t */

#if defined(__cplusplus)
extern "C" {
#endif

#define SAA7111_SUPPORTED_STANDARDS	(vasNone | vasNTSC | vasPAL)
#define SAA7111_SUPPORTED_ADAPTERS	(vaaNone | vaaCVBS | vaaSvideo)
#define SAA7111_CAPABILITIES_FLAGS  (vcapNone)
#define SAA7111_OUTPUT_FORMATS      (vdfNone)

/********************************************************************************************/
extern tmLibdevErr_t saa7111Init (pboardVIParam_t param);
extern tmLibdevErr_t saa7111AInit(pboardVIParam_t param);

extern tmLibdevErr_t saa7111Configure(UInt32 subaddr, UInt32 value);

extern tmLibdevErr_t saa7111AGetStandard(tmVideoAnalogStandard_t *standard);
extern tmLibdevErr_t saa7111GetBrightness(UInt *val);
extern tmLibdevErr_t saa7111SetBrightness(UInt val);
extern tmLibdevErr_t saa7111GetContrast(UInt *val);
extern tmLibdevErr_t saa7111SetContrast(UInt val);
extern tmLibdevErr_t saa7111GetSaturation(UInt *val);
extern tmLibdevErr_t saa7111SetSaturation(UInt val);
extern tmLibdevErr_t saa7111GetHue(UInt *val);
extern tmLibdevErr_t saa7111SetHue(UInt val);

/********************************************************************************************/
extern tmLibdevErr_t saa7111InitM(pboardVIDec_t pVD, pboardVIParam_t param);
extern tmLibdevErr_t saa7111AInitM(pboardVIDec_t pVD, pboardVIParam_t param);

extern tmLibdevErr_t saa7111ConfigureM(pboardVIDec_t pVD, UInt32 subaddr, UInt32 value);

extern tmLibdevErr_t saa7111AGetStandardM(pboardVIDec_t pVD, tmVideoAnalogStandard_t *standard);
extern tmLibdevErr_t saa7111GetBrightnessM(pboardVIDec_t pVD, UInt *val);
extern tmLibdevErr_t saa7111SetBrightnessM(pboardVIDec_t pVD, UInt val);
extern tmLibdevErr_t saa7111GetContrastM(pboardVIDec_t pVD, UInt *val);
extern tmLibdevErr_t saa7111SetContrastM(pboardVIDec_t pVD, UInt val);
extern tmLibdevErr_t saa7111GetSaturationM(pboardVIDec_t pVD, UInt *val);
extern tmLibdevErr_t saa7111SetSaturationM(pboardVIDec_t pVD, UInt val);
extern tmLibdevErr_t saa7111GetHueM(pboardVIDec_t pVD, UInt *val);
extern tmLibdevErr_t saa7111SetHueM(pboardVIDec_t pVD, UInt val);

/********************************************************************************************/
extern tmLibdevErr_t saa7111GetVSyncFallingEdge(pboardVIDec_t pVD, UInt *lineNumber);
extern tmLibdevErr_t saa7111GetSlicedData(pboardVIDec_t pVD, UInt8 *Y, UInt8 *U, UInt8 *V, tmVideoDataService_t service, UInt sizeY, UInt8 *data, UInt8 *dataSize);
extern tmLibdevErr_t saa7111GetStatus(pboardVIDec_t pVD, tmVideoStatusType_t type, UInt *state);
extern tmLibdevErr_t saa7111GetSupportedDataServices(tmVideoDataService_t fieldOne[], tmVideoDataService_t fieldTwo[], UInt8 tblSize);
extern tmLibdevErr_t saa7111SetDataServices(pboardVIDec_t pVD, tmVideoDataService_t fieldOne[], tmVideoDataService_t fieldTwo[], UInt8 tblSize);
extern tmLibdevErr_t saa7111GetSlicerLineFlags(pboardVIDec_t pVD, Bool fieldOne[], Bool fieldTwo[], UInt8 tblSize);
extern tmLibdevErr_t saa7111EnableSlicing(pboardVIDec_t pVD, Bool enable);
extern tmLibdevErr_t saa7111SetSlicerInput(pboardVIDec_t pVD, UInt num);
extern tmLibdevErr_t saa7111GetSlicerInput(pboardVIDec_t pVD, UInt *num);
extern tmLibdevErr_t saa7111SetVideoColor(pboardVIDec_t pVD, tmVideoColor_t color, UInt val);
extern tmLibdevErr_t saa7111GetVideoColor(pboardVIDec_t pVD, tmVideoColor_t color, UInt *val);
extern tmLibdevErr_t saa7111SetAnalogInput(pboardVIDec_t pVD, UInt num);
extern tmLibdevErr_t saa7111GetAnalogInput(pboardVIDec_t pVD, UInt *num);
extern tmLibdevErr_t saa7111SetStandard(pboardVIDec_t pVD, tmVideoAnalogStandard_t standard);
extern tmLibdevErr_t saa7111SetSourceType(pboardVIDec_t pVD, tmVideoSourceType_t type);
extern tmLibdevErr_t saa7111GetSourceType(pboardVIDec_t pVD, tmVideoSourceType_t *type);
extern tmLibdevErr_t saa7111SetOutputFormat(pboardVIDec_t pVD, tmVideoRGBYUVFormat_t format);
extern tmLibdevErr_t saa7111GetOutputFormat(pboardVIDec_t pVD, tmVideoRGBYUVFormat_t *format);
extern tmLibdevErr_t saa7111GetDefaultAcquisitionWnd(pboardVIDec_t pVD, UInt *beginX, UInt *beginY, UInt *endX, UInt *endY);
extern tmLibdevErr_t saa7111DisableDecoder(pboardVIDec_t pVD, Bool disable);
extern tmLibdevErr_t saa7111EnablePowerSaveMode(pboardVIDec_t pVD, Bool enable);
extern tmLibdevErr_t saa7111GetGPIOCount(pboardVIDec_t pVD, UInt *num);
extern tmLibdevErr_t saa7111SetGPIOState(pboardVIDec_t pVD, UInt pin, Bool state);
extern tmLibdevErr_t saa7111GetGPIOState(pboardVIDec_t pVD, UInt pin, Bool *state);
extern tmLibdevErr_t saa7111GetAdapterVideoStandard(pboardVIDec_t pVD, tmVideoAnalogAdapter_t adapter, UInt adapterNum, tmVideoAnalogStandard_t *std);

#if defined(__cplusplus)
}
#endif

#endif

⌨️ 快捷键说明

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