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

📄 saa7113.h

📁 NXP官方最新的SAA7113驱动源代码
💻 H
字号:
/*<copyright>Copyright (c) 2006-2007 NXP B.V.. All rights are reserved.         Reproduction in whole or in part is prohibited without the prior   written consent of the copyright owner.                                                                                               This software and any compilation or derivative thereof is and     shall remain the proprietary information of NXP B.V. and is        highly confidential in nature. Any and all use hereof is restrictedand is subject to the terms and conditions set forth in the        software license agreement concluded with NXP B.V..		                                                                          Under no circumstances is this software or any derivative thereof  to be combined with any Open Source Software, exposed to, or in anyway licensed under any Open License Terms without the express priorwritten  permission of NXP B.V..       			                                                                          For the purpose of the above, the term Open Source Software means  any software that is licensed under Open License Terms. Open       License Terms means terms in any license that require as a         condition of use, modification and/or distribution of a work                                                                                   1. the making available of source code or other materials             preferred for modification, or                                                                                                     2. the granting of permission for creating derivative                 works, or                                                                                                                          3. the reproduction of certain notices or license terms               in derivative works or accompanying documentation, or                                                                              4. the granting of a royalty-free license to any party                under Intellectual Property Rights                                                                                        regarding the work and/or any work that contains, is combined with,requires or otherwise is based on the work.                                                                                           This software is provided for ease of recompilation only.          Modification and reverse engineering of this software are strictly prohibited.                                                                                                                           $Source: /home/tmtester/TCSrep/tool/libdev/v5.0/targets/tm1/lib/boards/common/saa7113.h,v $$RCSfile: saa7113.h,v $ $Revision: 1.4 $$Name: v51_0042rc7 $                                                                   </copyright>*//* * Copyright (c) 1994-2003 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              : $RCSfile: saa7113.h,v $    $Revision: 1.4 $ * *  Last update              :  - $Date: 2007/10/09 09:03:11 $ * *  Description              :  * *  Initialize and control routines for saa7113 * * *  Revision                 : *		Built for the TCS 2.0 release *       *		 */#ifndef _SAA7113_H_#define _SAA7113_H_#include "tmAvFormats.h"#include <tmlib/tmtypes.h>#include "tmBoard.h"	/* for subaddInfo_t */#if defined(__cplusplus)extern "C" {#endif#define SAA7113_SUPPORTED_STANDARDS	(vasNone | vasNTSC | vasPAL)#define SAA7113_SUPPORTED_ADAPTERS	(vaaNone | vaaCVBS | vaaSvideo)#define SAA7113_CAPABILITIES_FLAGS      (vcapNone)#define SAA7113_OUTPUT_FORMATS          (vdfNone)/********************************************************************************************/extern tmLibdevErr_t saa7113Init (pboardVIParam_t param); extern tmLibdevErr_t saa7113Configure(UInt32 subaddr, UInt32 value);extern tmLibdevErr_t saa7113GetStandard(tmVideoAnalogStandard_t *standard);extern tmLibdevErr_t saa7113GetBrightness(UInt *val);extern tmLibdevErr_t saa7113SetBrightness(UInt val);extern tmLibdevErr_t saa7113GetContrast(UInt *val);extern tmLibdevErr_t saa7113SetContrast(UInt val);extern tmLibdevErr_t saa7113GetSaturation(UInt *val);extern tmLibdevErr_t saa7113SetSaturation(UInt val);extern tmLibdevErr_t saa7113GetHue(UInt *val);extern tmLibdevErr_t saa7113SetHue(UInt val);/********************************************************************************************/extern tmLibdevErr_t saa7113InitM(pboardVIDec_t pVD, pboardVIParam_t param);extern tmLibdevErr_t saa7113ConfigureM(pboardVIDec_t pVD, UInt32 subaddr, UInt32 value);extern tmLibdevErr_t saa7113GetStandardM(pboardVIDec_t pVD, tmVideoAnalogStandard_t *standard);extern tmLibdevErr_t saa7113GetBrightnessM(pboardVIDec_t pVD, UInt *val);extern tmLibdevErr_t saa7113SetBrightnessM(pboardVIDec_t pVD, UInt val);extern tmLibdevErr_t saa7113GetContrastM(pboardVIDec_t pVD, UInt *val);extern tmLibdevErr_t saa7113SetContrastM(pboardVIDec_t pVD, UInt val);extern tmLibdevErr_t saa7113GetSaturationM(pboardVIDec_t pVD, UInt *val);extern tmLibdevErr_t saa7113SetSaturationM(pboardVIDec_t pVD, UInt val);extern tmLibdevErr_t saa7113GetHueM(pboardVIDec_t pVD, UInt *val);extern tmLibdevErr_t saa7113SetHueM(pboardVIDec_t pVD, UInt val);/********************************************************************************************/extern tmLibdevErr_t saa7113GetVSyncFallingEdge(pboardVIDec_t pVD, UInt *lineNumber);extern tmLibdevErr_t saa7113GetSlicedData(pboardVIDec_t pVD, UInt8 *Y, UInt8 *U, UInt8 *V, tmVideoDataService_t service, UInt sizeY, UInt8 *data, UInt8 *dataSize);extern tmLibdevErr_t saa7113GetStatus(pboardVIDec_t pVD, tmVideoStatusType_t type, UInt *state);extern tmLibdevErr_t saa7113GetSupportedDataServices(tmVideoDataService_t fieldOne[], tmVideoDataService_t fieldTwo[], UInt8 tblSize);extern tmLibdevErr_t saa7113SetDataServices(pboardVIDec_t pVD, tmVideoDataService_t fieldOne[], tmVideoDataService_t fieldTwo[], UInt8 tblSize);extern tmLibdevErr_t saa7113GetSlicerLineFlags(pboardVIDec_t pVD, Bool fieldOne[], Bool fieldTwo[], UInt8 tblSize);extern tmLibdevErr_t saa7113EnableSlicing(pboardVIDec_t pVD, Bool enable);extern tmLibdevErr_t saa7113SetSlicerVideoStandard(pboardVIDec_t pVD, tmVideoAnalogStandard_t standard);extern tmLibdevErr_t saa7113GetSlicerVideoStandard(pboardVIDec_t pVD, tmVideoAnalogStandard_t *standard);extern tmLibdevErr_t saa7113ToggleFieldID(pboardVIDec_t pVD, Bool toggle);extern tmLibdevErr_t saa7113SetSlicerInput(pboardVIDec_t pVD, UInt num);extern tmLibdevErr_t saa7113GetSlicerInput(pboardVIDec_t pVD, UInt *num);extern tmLibdevErr_t saa7113SetVideoColor(pboardVIDec_t pVD, tmVideoColor_t color, UInt val);extern tmLibdevErr_t saa7113GetVideoColor(pboardVIDec_t pVD, tmVideoColor_t color, UInt *val);extern tmLibdevErr_t saa7113SetAnalogInput(pboardVIDec_t pVD, UInt num);extern tmLibdevErr_t saa7113GetAnalogInput(pboardVIDec_t pVD, UInt *num);extern tmLibdevErr_t saa7113SetStandard(pboardVIDec_t pVD, tmVideoAnalogStandard_t standard);extern tmLibdevErr_t saa7113SetSourceType(pboardVIDec_t pVD, tmVideoSourceType_t type);extern tmLibdevErr_t saa7113GetSourceType(pboardVIDec_t pVD, tmVideoSourceType_t *type);extern tmLibdevErr_t saa7113SetOutputFormat(pboardVIDec_t pVD, tmVideoRGBYUVFormat_t format);extern tmLibdevErr_t saa7113GetOutputFormat(pboardVIDec_t pVD, tmVideoRGBYUVFormat_t *format);extern tmLibdevErr_t saa7113SetAcquisitionWnd(pboardVIDec_t pVD, UInt beginX, UInt beginY, UInt endX, UInt endY);extern tmLibdevErr_t saa7113GetAcquisitionWnd(pboardVIDec_t pVD, UInt *beginX, UInt *beginY, UInt *endX, UInt *endY);extern tmLibdevErr_t saa7113GetDefaultAcquisitionWnd(pboardVIDec_t pVD, UInt *beginX, UInt *beginY, UInt *endX, UInt *endY);extern tmLibdevErr_t saa7113SetOutputSize(pboardVIDec_t pVD, UInt width, UInt height);extern tmLibdevErr_t saa7113SetInterlaceMode(pboardVIDec_t pVD, Bool interlace);extern tmLibdevErr_t saa7113DisableDecoder(pboardVIDec_t pVD, Bool disable);extern tmLibdevErr_t saa7113EnablePowerSaveMode(pboardVIDec_t pVD, Bool enable);extern tmLibdevErr_t saa7113GetGPIOCount(pboardVIDec_t pVD, UInt *num);extern tmLibdevErr_t saa7113SetGPIOState(pboardVIDec_t pVD, UInt pin, Bool state);extern tmLibdevErr_t saa7113GetGPIOState(pboardVIDec_t pVD, UInt pin, Bool *state);extern tmLibdevErr_t saa7113OpenVBI(pboardVIDec_t pVD, UInt sampleFreq, UInt startLine, UInt numLines);extern tmLibdevErr_t saa7113EnableVBI(pboardVIDec_t pVD, Bool enable);extern tmLibdevErr_t saa7113SetVBIMode(pboardVIDec_t pVD, tmVideoVBIMode_t mode);extern tmLibdevErr_t saa7113SetSlicerMode(pboardVIDec_t pVD, tmVideoSlicerMode_t mode);extern tmLibdevErr_t saa7113CloseVBI(pboardVIDec_t pVD);extern tmLibdevErr_t saa7113GetSlicerLineFlags(pboardVIDec_t pVD, Bool fieldOne[], Bool fieldTwo[], UInt8 tblSize);extern tmLibdevErr_t saa7113GetAdapterVideoStandard(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 + -