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

📄 fw-encoder-api.txt

📁 linux 内核源代码
💻 TXT
📖 第 1 页 / 共 2 页
字号:
Enum 	195/0xC3Description	The firmware is halted and no further API calls are serviced until the	firmware is uploaded again.-------------------------------------------------------------------------------Name 	CX2341X_ENC_GET_VERSIONEnum 	196/0xC4Description	Returns the version of the encoder firmware.Result[0]	Version bitmask:	    Bits  0:15 build	    Bits 16:23 minor	    Bits 24:31 major-------------------------------------------------------------------------------Name 	CX2341X_ENC_SET_GOP_CLOSUREEnum 	197/0xC5Description	Assigns the GOP open/close property.Param[0]	0=Open	1=Closed-------------------------------------------------------------------------------Name 	CX2341X_ENC_GET_SEQ_ENDEnum 	198/0xC6Description	Obtains the sequence end code of the encoder's buffer. When a capture	is started a number of interrupts are still generated, the last of	which will have Result[0] set to 1 and Result[1] will contain the size	of the buffer.Result[0]	State of the transfer (1 if last buffer)Result[1]	If Result[0] is 1, this contains the size of the last buffer, undefined	otherwise.-------------------------------------------------------------------------------Name 	CX2341X_ENC_SET_PGM_INDEX_INFOEnum 	199/0xC7Description	Sets the Program Index Information.	The information is stored as follows:	struct info {		u32 length;		// Length of this frame		u32 offset_low;		// Offset in the file of the		u32 offset_high;	// start of this frame		u32 mask1;		// Bits 0-2 are the type mask:					// 1=I, 2=P, 4=B					// 0=End of Program Index, other fields					//   are invalid.		u32 pts;		// The PTS of the frame		u32 mask2;		// Bit 0 is bit 32 of the pts.	};	u32 table_ptr;	struct info index[400];	The table_ptr is the encoder memory address in the table were	*new* entries will be written. Note that this is a ringbuffer,	so the table_ptr will wraparound.Param[0]	Picture Mask:	    0=No index capture	    1=I frames	    3=I,P frames	    7=I,P,B frames	(Seems to be ignored, it always indexes I, P and B frames)Param[1]	Elements requested (up to 400)Result[0]	Offset in the encoder memory of the start of the table.Result[1]	Number of allocated elements up to a maximum of Param[1]-------------------------------------------------------------------------------Name 	CX2341X_ENC_SET_VBI_CONFIGEnum 	200/0xC8Description	Configure VBI settingsParam[0]	Bitmap:	    0    Mode '0' Sliced, '1' Raw	    1:3  Insertion:		     '000' insert in extension & user data		     '001' insert in private packets		     '010' separate stream and user data		     '111' separate stream and private data	    8:15 Stream ID (normally 0xBD)Param[1]	Frames per interrupt (max 8). Only valid in raw mode.Param[2]	Total raw VBI frames. Only valid in raw mode.Param[3]	Start codesParam[4]	Stop codesParam[5]	Lines per frameParam[6]	Byte per lineResult[0]	Observed frames per interrupt in raw mode only. Rage 1 to Param[1]Result[1]	Observed number of frames in raw mode. Range 1 to Param[2]Result[2]	Memory offset to start or raw VBI data-------------------------------------------------------------------------------Name 	CX2341X_ENC_SET_DMA_BLOCK_SIZEEnum 	201/0xC9Description	Set DMA transfer block sizeParam[0]	DMA transfer block size in bytes or frames. When unit is bytes,	supported block sizes are 2^7, 2^8 and 2^9 bytes.Param[1]	Unit: 0=bytes, 1=frames-------------------------------------------------------------------------------Name 	CX2341X_ENC_GET_PREV_DMA_INFO_MB_10Enum 	202/0xCADescription	Returns information on the previous DMA transfer in conjunction with	bit 27 of the interrupt mask. Uses mailbox 10.Result[0]	Type of streamResult[1]	Address OffsetResult[2]	Maximum size of transfer-------------------------------------------------------------------------------Name 	CX2341X_ENC_GET_PREV_DMA_INFO_MB_9Enum 	203/0xCBDescription	Returns information on the previous DMA transfer in conjunction with	bit 27 or 18 of the interrupt mask. Uses mailbox 9.Result[0]	Status bits:		0   read completed		1   write completed		2   DMA read error		3   DMA write error		4   Scatter-Gather array errorResult[1]	DMA typeResult[2]	Presentation Time Stamp bits 0..31Result[3]	Presentation Time Stamp bit 32-------------------------------------------------------------------------------Name 	CX2341X_ENC_SCHED_DMA_TO_HOSTEnum 	204/0xCCDescription	Setup DMA to host operationParam[0]	Memory address of link listParam[1]	Length of link list (wtf: what units ???)Param[2]	DMA type (0=MPEG)-------------------------------------------------------------------------------Name 	CX2341X_ENC_INITIALIZE_INPUTEnum 	205/0xCDDescription	Initializes the video input-------------------------------------------------------------------------------Name 	CX2341X_ENC_SET_FRAME_DROP_RATEEnum 	208/0xD0Description	For each frame captured, skip specified number of frames.Param[0]	Number of frames to skip-------------------------------------------------------------------------------Name 	CX2341X_ENC_PAUSE_ENCODEREnum 	210/0xD2Description	During a pause condition, all frames are dropped instead of being encoded.Param[0]	0=Pause encoding	1=Continue encoding-------------------------------------------------------------------------------Name 	CX2341X_ENC_REFRESH_INPUTEnum 	211/0xD3Description	Refreshes the video input-------------------------------------------------------------------------------Name 	CX2341X_ENC_SET_COPYRIGHTEnum 	212/0xD4Description	Sets stream copyright propertyParam[0]	0=Stream is not copyrighted	1=Stream is copyrighted-------------------------------------------------------------------------------Name 	CX2341X_ENC_SET_EVENT_NOTIFICATIONEnum 	213/0xD5Description	Setup firmware to notify the host about a particular event. Host must	unmask the interrupt bit.Param[0]	Event (0=refresh encoder input)Param[1]	Notification 0=disabled 1=enabledParam[2]	Interrupt bitParam[3]	Mailbox slot, -1 if no mailbox required.-------------------------------------------------------------------------------Name 	CX2341X_ENC_SET_NUM_VSYNC_LINESEnum 	214/0xD6Description	Depending on the analog video decoder used, this assigns the number	of lines for field 1 and 2.Param[0]	Field 1 number of lines:	    0x00EF for SAA7114	    0x00F0 for SAA7115	    0x0105 for MicronasParam[1]	Field 2 number of lines:	    0x00EF for SAA7114	    0x00F0 for SAA7115	    0x0106 for Micronas-------------------------------------------------------------------------------Name 	CX2341X_ENC_SET_PLACEHOLDEREnum 	215/0xD7Description	Provides a mechanism of inserting custom user data in the MPEG stream.Param[0]	0=extension & user data	1=private packet with stream ID 0xBDParam[1]	Rate at which to insert data, in units of frames (for private packet)	or GOPs (for ext. & user data)Param[2]	Number of data DWORDs (below) to insertParam[3]	Custom data 0Param[4]	Custom data 1Param[5]	Custom data 2Param[6]	Custom data 3Param[7]	Custom data 4Param[8]	Custom data 5Param[9]	Custom data 6Param[10]	Custom data 7Param[11]	Custom data 8-------------------------------------------------------------------------------Name 	CX2341X_ENC_MUTE_VIDEOEnum 	217/0xD9Description	Video mutingParam[0]	Bit usage:	 0    	'0'=video not muted		'1'=video muted, creates frames with the YUV color defined below	 1:7  	Unused	 8:15 	V chrominance information	16:23 	U chrominance information	24:31 	Y luminance information-------------------------------------------------------------------------------Name 	CX2341X_ENC_MUTE_AUDIOEnum 	218/0xDADescription	Audio mutingParam[0]	0=audio not muted	1=audio muted (produces silent mpeg audio stream)-------------------------------------------------------------------------------Name 	CX2341X_ENC_SET_VERT_CROP_LINEEnum 	219/0xDBDescription	Something to do with 'Vertical Crop Line'Param[0]	If saa7114 and raw VBI capture and 60 Hz, then set to 10001.	Else 0.-------------------------------------------------------------------------------Name 	CX2341X_ENC_MISCEnum 	220/0xDCDescription	Miscellaneous actions. Not known for 100% what it does. It's really a	sort of ioctl call. The first parameter is a command number, the second	the value.Param[0]	Command number:	 1=set initial SCR value when starting encoding (works).	 2=set quality mode (apparently some test setting).	 3=setup advanced VIM protection handling.	   Always 1 for the cx23416 and 0 for cx23415.	 4=generate DVD compatible PTS timestamps	 5=USB flush mode	 6=something to do with the quantization matrix	 7=set navigation pack insertion for DVD: adds 0xbf (private stream 2)	   packets to the MPEG. The size of these packets is 2048 bytes (including	   the header of 6 bytes: 0x000001bf + length). The payload is zeroed and	   it is up to the application to fill them in. These packets are apparently	   inserted every four frames.	 8=enable scene change detection (seems to be a failure)	 9=set history parameters of the video input module	10=set input field order of VIM	11=set quantization matrix	12=reset audio interface after channel change or input switch (has no argument).	   Needed for the cx2584x, not needed for the mspx4xx, but it doesn't seem to	   do any harm calling it regardless.	13=set audio volume delay	14=set audio delayParam[1]	Command value.

⌨️ 快捷键说明

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