cx23418.h

来自「trident tm5600的linux驱动」· C头文件 代码 · 共 464 行 · 第 1/2 页

H
464
字号
/* *  cx18 header containing common defines. * *  Copyright (C) 2007  Hans Verkuil <hverkuil@xs4all.nl> * *  This program is free software; you can redistribute it and/or modify *  it under the terms of the GNU General Public License as published by *  the Free Software Foundation; either version 2 of the License, or *  (at your option) any later version. * *  This program is distributed in the hope that it will be useful, *  but WITHOUT ANY WARRANTY; without even the implied warranty of *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the *  GNU General Public License for more details. * *  You should have received a copy of the GNU General Public License *  along with this program; if not, write to the Free Software *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA *  02111-1307  USA */#ifndef CX23418_H#define CX23418_H#include <media/cx2341x.h>#define MGR_CMD_MASK            		0x40000000/* The MSB of the command code indicates that this is the completion of a   command */#define MGR_CMD_MASK_ACK        		(MGR_CMD_MASK | 0x80000000)/* Description: This command creates a new instance of a certain task   IN[0]  - Task ID. This is one of the XPU_CMD_MASK_YYY where XPU is	    the processor on which the task YYY will be created   OUT[0] - Task handle. This handle is passed along with commands to	    dispatch to the right instance of the task   ReturnCode - One of the ERR_SYS_... */#define CX18_CREATE_TASK      			(MGR_CMD_MASK | 0x0001)/* Description: This command destroys an instance of a task   IN[0] - Task handle. Hanlde of the task to destroy   ReturnCode - One of the ERR_SYS_... */#define CX18_DESTROY_TASK     			(MGR_CMD_MASK | 0x0002)/* All commands for CPU have the following mask set */#define CPU_CMD_MASK                        	0x20000000#define CPU_CMD_MASK_ACK                    	(CPU_CMD_MASK | 0x80000000)#define CPU_CMD_MASK_CAPTURE                	(CPU_CMD_MASK | 0x00020000)#define CPU_CMD_MASK_TS                     	(CPU_CMD_MASK | 0x00040000)#define EPU_CMD_MASK                        	0x02000000#define EPU_CMD_MASK_DEBUG       		(EPU_CMD_MASK | 0x000000)#define EPU_CMD_MASK_DE                     	(EPU_CMD_MASK | 0x040000)#define APU_CMD_MASK 				0x10000000#define APU_CMD_MASK_ACK 			(APU_CMD_MASK | 0x80000000)#define CX18_APU_RESETAI 			(APU_CMD_MASK | 0x05)/* Description: This command indicates that a Memory Descriptor List has been   filled with the requested channel type   IN[0] - Task handle. Handle of the task   IN[1] - Offset of the MDL_ACK from the beginning of the local DDR.   IN[2] - Number of CNXT_MDL_ACK structures in the array pointed to by IN[1]   ReturnCode - One of the ERR_DE_... */#define CX18_EPU_DMA_DONE              		(EPU_CMD_MASK_DE | 0x0001)/* Something interesting happened   IN[0] - A value to log   IN[1] - An offset of a string in the MiniMe memory;	   0/zero/NULL means "I have nothing to say" */#define CX18_EPU_DEBUG 				(EPU_CMD_MASK_DEBUG | 0x0003)/* Description: This command starts streaming with the set channel type   IN[0] - Task handle. Handle of the task to start   ReturnCode - One of the ERR_CAPTURE_... */#define CX18_CPU_CAPTURE_START               	(CPU_CMD_MASK_CAPTURE | 0x0002)/* Description: This command stops streaming with the set channel type   IN[0] - Task handle. Handle of the task to stop   IN[1] - 0 = stop at end of GOP, 1 = stop at end of frame (MPEG only)   ReturnCode - One of the ERR_CAPTURE_... */#define CX18_CPU_CAPTURE_STOP                	(CPU_CMD_MASK_CAPTURE | 0x0003)/* Description: This command pauses streaming with the set channel type   IN[0] - Task handle. Handle of the task to pause   ReturnCode - One of the ERR_CAPTURE_... */#define CX18_CPU_CAPTURE_PAUSE               	(CPU_CMD_MASK_CAPTURE | 0x0007)/* Description: This command resumes streaming with the set channel type   IN[0] - Task handle. Handle of the task to resume   ReturnCode - One of the ERR_CAPTURE_... */#define CX18_CPU_CAPTURE_RESUME              	(CPU_CMD_MASK_CAPTURE | 0x0008)#define CAPTURE_CHANNEL_TYPE_NONE  		0#define CAPTURE_CHANNEL_TYPE_MPEG  		1#define CAPTURE_CHANNEL_TYPE_INDEX 		2#define CAPTURE_CHANNEL_TYPE_YUV   		3#define CAPTURE_CHANNEL_TYPE_PCM   		4#define CAPTURE_CHANNEL_TYPE_VBI   		5#define CAPTURE_CHANNEL_TYPE_SLICED_VBI		6#define CAPTURE_CHANNEL_TYPE_TS			7#define CAPTURE_CHANNEL_TYPE_MAX   		15/* Description: This command sets the channel type. This can only be done   when stopped.   IN[0] - Task handle. Handle of the task to start   IN[1] - Channel Type. See Below.   ReturnCode - One of the ERR_CAPTURE_... */#define CX18_CPU_SET_CHANNEL_TYPE      		(CPU_CMD_MASK_CAPTURE + 1)/* Description: Set stream output type   IN[0] - task handle. Handle of the task to start   IN[1] - type   ReturnCode - One of the ERR_CAPTURE_... */#define CX18_CPU_SET_STREAM_OUTPUT_TYPE		(CPU_CMD_MASK_CAPTURE | 0x0012)/* Description: Set video input resolution and frame rate   IN[0] - task handle   IN[1] - reserved   IN[2] - reserved   IN[3] - reserved   IN[4] - reserved   IN[5] - frame rate, 0 - 29.97f/s, 1 - 25f/s   ReturnCode - One of the ERR_CAPTURE_... */#define CX18_CPU_SET_VIDEO_IN                	(CPU_CMD_MASK_CAPTURE | 0x0004)/* Description: Set video frame rate   IN[0] - task handle. Handle of the task to start   IN[1] - video bit rate mode   IN[2] - video average rate   IN[3] - video peak rate   IN[4] - system mux rate   ReturnCode - One of the ERR_CAPTURE_... */#define CX18_CPU_SET_VIDEO_RATE              	(CPU_CMD_MASK_CAPTURE | 0x0005)/* Description: Set video output resolution   IN[0] - task handle   IN[1] - horizontal size   IN[2] - vertical size   ReturnCode - One of the ERR_CAPTURE_... */#define CX18_CPU_SET_VIDEO_RESOLUTION		(CPU_CMD_MASK_CAPTURE | 0x0006)/* Description: This command set filter parameters   IN[0] - Task handle. Handle of the task   IN[1] - type, 0 - temporal, 1 - spatial, 2 - median   IN[2] - mode,  temporal/spatial: 0 - disable, 1 - static, 2 - dynamic			median:	0 = disable, 1 = horizontal, 2 = vertical,				3 = horizontal/vertical, 4 = diagonal   IN[3] - strength, temporal 0 - 31, spatial 0 - 15   ReturnCode - One of the ERR_CAPTURE_... */#define CX18_CPU_SET_FILTER_PARAM            	(CPU_CMD_MASK_CAPTURE | 0x0009)/* Description: This command set spatial filter type   IN[0] - Task handle.   IN[1] - luma type: 0 = disable, 1 = 1D horizontal only, 2 = 1D vertical only,		      3 = 2D H/V separable, 4 = 2D symmetric non-separable   IN[2] - chroma type: 0 - diable, 1 = 1D horizontal   ReturnCode - One of the ERR_CAPTURE_... */#define CX18_CPU_SET_SPATIAL_FILTER_TYPE     	(CPU_CMD_MASK_CAPTURE | 0x000C)/* Description: This command set coring levels for median filter   IN[0] - Task handle.   IN[1] - luma_high   IN[2] - luma_low   IN[3] - chroma_high   IN[4] - chroma_low   ReturnCode - One of the ERR_CAPTURE_... */#define CX18_CPU_SET_MEDIAN_CORING           	(CPU_CMD_MASK_CAPTURE | 0x000E)/* Description: This command set the picture type mask for index file   IN[0] - 	0 = disable index file output			1 = output I picture			2 = P picture			4 = B picture			other = illegal */#define CX18_CPU_SET_INDEXTABLE         	(CPU_CMD_MASK_CAPTURE | 0x0010)/* Description: Set audio parameters   IN[0] - task handle. Handle of the task to start   IN[1] - audio parameter   ReturnCode - One of the ERR_CAPTURE_... */#define CX18_CPU_SET_AUDIO_PARAMETERS		(CPU_CMD_MASK_CAPTURE | 0x0011)/* Description: Set video mute   IN[0] - task handle. Handle of the task to start   IN[1] - bit31-24: muteYvalue	   bit23-16: muteUvalue	   bit15-8:  muteVvalue	   bit0:     1:mute, 0: unmute   ReturnCode - One of the ERR_CAPTURE_... */#define CX18_CPU_SET_VIDEO_MUTE			(CPU_CMD_MASK_CAPTURE | 0x0013)/* Description: Set audio mute   IN[0] - task handle. Handle of the task to start   IN[1] - mute/unmute   ReturnCode - One of the ERR_CAPTURE_... */#define CX18_CPU_SET_AUDIO_MUTE			(CPU_CMD_MASK_CAPTURE | 0x0014)/* Description: Set stream output type   IN[0] - task handle. Handle of the task to start   IN[1] - subType	    SET_INITIAL_SCR      		1	    SET_QUALITY_MODE            2	    SET_VIM_PROTECT_MODE        3	    SET_PTS_CORRECTION          4	    SET_USB_FLUSH_MODE          5	    SET_MERAQPAR_ENABLE         6	    SET_NAV_PACK_INSERTION      7	    SET_SCENE_CHANGE_ENABLE     8   IN[2] - parameter 1   IN[3] - parameter 2   ReturnCode - One of the ERR_CAPTURE_... */#define CX18_CPU_SET_MISC_PARAMETERS		(CPU_CMD_MASK_CAPTURE | 0x0015)/* Description: Set raw VBI parameters   IN[0] - Task handle   IN[1] - No. of input lines per field:				bit[15:0]: field 1,				bit[31:16]: field 2   IN[2] - No. of input bytes per line   IN[3] - No. of output frames per transfer   IN[4] - start code   IN[5] - stop code   ReturnCode */#define CX18_CPU_SET_RAW_VBI_PARAM		(CPU_CMD_MASK_CAPTURE | 0x0016)/* Description: Set capture line No.   IN[0] - task handle. Handle of the task to start   IN[1] - height1   IN[2] - height2   ReturnCode - One of the ERR_CAPTURE_... */

⌨️ 快捷键说明

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