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

📄 fw-decoder-api.txt

📁 V4l driver for DVB HD
💻 TXT
字号:
Decoder firmware API description================================Note: this API is part of the decoder firmware, so it's cx23415 only.-------------------------------------------------------------------------------Name 	CX2341X_DEC_PING_FWEnum 	0/0x00Description	This API call does nothing. It may be used to check if the firmware	is responding.-------------------------------------------------------------------------------Name 	CX2341X_DEC_START_PLAYBACKEnum 	1/0x01Description	Begin or resume playback.Param[0]	0 based frame number in GOP to begin playback from.Param[1]	Specifies the number of muted audio frames to play before normal	audio resumes.-------------------------------------------------------------------------------Name 	CX2341X_DEC_STOP_PLAYBACKEnum 	2/0x02Description	Ends playback and clears all decoder buffers. If PTS is not zero,	playback stops at specified PTS.Param[0]	Display 0=last frame, 1=blackParam[1]	PTS lowParam[2]	PTS high-------------------------------------------------------------------------------Name 	CX2341X_DEC_SET_PLAYBACK_SPEEDEnum 	3/0x03Description	Playback stream at speed other than normal. There are two modes of	operation:	    Smooth: host transfers entire stream and firmware drops unused		    frames.	    Coarse: host drops frames based on indexing as required to achieve		    desired speed.Param[0]	Bitmap:	    0:7  0 normal		 1 fast only "1.5 times"		 n nX fast, 1/nX slow	    30   Framedrop:		     '0' during 1.5 times play, every other B frame is dropped		     '1' during 1.5 times play, stream is unchanged (bitrate			 must not exceed 8mbps)	    31   Speed:		     '0' slow		     '1' fastParam[1]	Direction: 0=forward, 1=reverseParam[2]	Picture mask:	    1=I frames	    3=I, P frames	    7=I, P, B framesParam[3]	B frames per GOP (for reverse play only)Param[4]	Mute audio: 0=disable, 1=enableParam[5]	Display 0=frame, 1=fieldParam[6]	Specifies the number of muted audio frames to play before normal audio	resumes.-------------------------------------------------------------------------------Name 	CX2341X_DEC_STEP_VIDEOEnum 	5/0x05Description	Each call to this API steps the playback to the next unit defined below	in the current playback direction.Param[0]	0=frame, 1=top field, 2=bottom field-------------------------------------------------------------------------------Name 	CX2341X_DEC_SET_DMA_BLOCK_SIZEEnum 	8/0x08Description	Set DMA transfer block size. Counterpart to API 0xC9Param[0]	DMA transfer block size in bytes. A different size may be specified	when issuing the DMA transfer command.-------------------------------------------------------------------------------Name 	CX2341X_DEC_GET_XFER_INFOEnum 	9/0x09Description	This API call may be used to detect an end of stream condtion.Result[0]	Stream typeResult[1]	Address offsetResult[2]	Maximum bytes to transferResult[3]	Buffer fullness-------------------------------------------------------------------------------Name 	CX2341X_DEC_GET_DMA_STATUSEnum 	10/0x0ADescription	Status of the last DMA transferResult[0]	Bit 1 set means transfer complete	Bit 2 set means DMA error	Bit 3 set means linked list errorResult[1]	DMA type: 0=MPEG, 1=OSD, 2=YUV-------------------------------------------------------------------------------Name 	CX2341X_DEC_SCHED_DMA_FROM_HOSTEnum 	11/0x0BDescription	Setup DMA from host operation. Counterpart to API 0xCCParam[0]	Memory address of link listParam[1]	Total # of bytes to transferParam[2]	DMA type (0=MPEG, 1=OSD, 2=YUV)-------------------------------------------------------------------------------Name 	CX2341X_DEC_PAUSE_PLAYBACKEnum 	13/0x0DDescription	Freeze playback immediately. In this mode, when internal buffers are	full, no more data will be accepted and data request IRQs will be	masked.Param[0]	Display: 0=last frame, 1=black-------------------------------------------------------------------------------Name 	CX2341X_DEC_HALT_FWEnum 	14/0x0EDescription	The firmware is halted and no further API calls are serviced until	the firmware is uploaded again.-------------------------------------------------------------------------------Name 	CX2341X_DEC_SET_STANDARDEnum 	16/0x10Description	Selects display standardParam[0]	0=NTSC, 1=PAL-------------------------------------------------------------------------------Name 	CX2341X_DEC_GET_VERSIONEnum 	17/0x11Description	Returns decoder firmware version informationResult[0]	Version bitmask:	    Bits  0:15 build	    Bits 16:23 minor	    Bits 24:31 major-------------------------------------------------------------------------------Name 	CX2341X_DEC_SET_STREAM_INPUTEnum 	20/0x14Description	Select decoder stream input portParam[0]	0=memory (default), 1=streaming-------------------------------------------------------------------------------Name 	CX2341X_DEC_GET_TIMING_INFOEnum 	21/0x15Description	Returns timing information from start of playbackResult[0]	Frame count by decode orderResult[1]	Video PTS bits 0:31 by display orderResult[2]	Video PTS bit 32 by display orderResult[3]	SCR bits 0:31 by display orderResult[4]	SCR bit 32 by display order-------------------------------------------------------------------------------Name 	CX2341X_DEC_SET_AUDIO_MODEEnum 	22/0x16Description	Select audio modeParam[0]	Dual mono mode actionParam[1]	Stereo mode action:	    0=Stereo, 1=Left, 2=Right, 3=Mono, 4=Swap, -1=Unchanged-------------------------------------------------------------------------------Name 	CX2341X_DEC_SET_EVENT_NOTIFICATIONEnum 	23/0x17Description	Setup firmware to notify the host about a particular event.	Counterpart to API 0xD5Param[0]	Event: 0=Audio mode change between stereo and dual channelParam[1]	Notification 0=disabled, 1=enabledParam[2]	Interrupt bitParam[3]	Mailbox slot, -1 if no mailbox required.-------------------------------------------------------------------------------Name 	CX2341X_DEC_SET_DISPLAY_BUFFERSEnum 	24/0x18Description	Number of display buffers. To decode all frames in reverse playback you	must use nine buffers.Param[0]	0=six buffers, 1=nine buffers-------------------------------------------------------------------------------Name 	CX2341X_DEC_EXTRACT_VBIEnum 	25/0x19Description	Extracts VBI dataParam[0]	0=extract from extension & user data, 1=extract from private packetsResult[0]	VBI table locationResult[1]	VBI table size-------------------------------------------------------------------------------Name 	CX2341X_DEC_SET_DECODER_SOURCEEnum 	26/0x1ADescription	Selects decoder source. Ensure that the parameters passed to this	API match the encoder settings.Param[0]	Mode: 0=MPEG from host, 1=YUV from encoder, 2=YUV from hostParam[1]	YUV picture widthParam[2]	YUV picture heightParam[3]	Bitmap: see Param[0] of API 0xBD-------------------------------------------------------------------------------Name 	CX2341X_DEC_SET_AUDIO_OUTPUTEnum 	27/0x1BDescription	Select audio output formatParam[0]	Bitmask:	     0:1  Data size:	    	      '00' 16 bit		      '01' 20 bit		      '10' 24 bit	     2:7  Unused	     8:9  Mode:		      '00' 2 channels		      '01' 4 channels		      '10' 6 channels		      '11' 6 channels with one line data mode			   (for left justified MSB first mode, 20 bit only)	    10:11 Unused	    12:13 Channel format:	    	      '00' right justified MSB first mode	    	      '01' left justified MSB first mode	    	      '10' I2S mode	    14:15 Unused	    16:21 Right justify bit count	    22:31 Unused-------------------------------------------------------------------------------Name 	CX2341X_DEC_SET_AV_DELAYEnum 	28/0x1CDescription	Set audio/video delay in 90Khz ticksParam[0]	0=A/V in sync, negative=audio lags, positive=video lags-------------------------------------------------------------------------------Name 	CX2341X_DEC_SET_PREBUFFERINGEnum 	30/0x1EDescription	Decoder prebuffering, when enabled up to 128KB are buffered for	streams <8mpbs or 640KB for streams >8mbpsParam[0]	0=off, 1=on

⌨️ 快捷键说明

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