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

📄 adm01_uvprotocol.h

📁 SAMSUNG 5009的源代码
💻 H
字号:
#ifndef _ADM_uvPROTOCOL_H_
#define _ADM_uvPROTOCOL_H_

/*
	1 byte for ADM send message type
	ADM Message definition of SendMessage
*/

#define ADM_CMD_INIT		0x31
#define ADM_CMD_PARSE		0x32
#define ADM_CMD_DECODE	0x33
#define ADM_CMD_SET		0x34

#define ADM_CMD_GETNEWS0	0x35

#define	JPEG_DEC_SUCCESS			0x0
#define	JPEG_DEC_ERROR			0x11
#define	JPEG_DEC_IMAGE_DECODED	0x12
#define	JPEG_DEC_STOP				0x13
#define	JPEG_DEC_IMMEDIATE_STOP				0x14

#define	OBJ_JPEG_IMG_INFO		111
#define	DECODE_THUMBNAIL		10

/*

1)	uProtocol definition

	- Protocol used when ARM make Interrupt to ADM.
	- Protocol used for "BYTE2 	gADMSendMessage[8];"
	- Total size = 16 bytes (B00 ~ B15)

	if (B0 == AM_SM_INIT)
		B0		=	AM_SM_INIT
		B1		=	codec_id				: current uploaded Main codec ID
		
		B2~B3	=	size_of_s0			: Max 64 KB because i assigned 2 bytes at this time
		B4~B15	=	Main codec information	: for example, 	copy gADM_Ac3Para here

		
	if (B0 == AM_SM_PARSE)
		B0		=	AM_SM_PARSE
		B1		=	codec_id				: current uploaded Main codec ID
		
		B2~B15	=	Reserved				: not defined yet

	if (B0 == AM_SM_DECODE)
		B0		=	AM_SM_PARSE
		B1		=	codec_id				: current uploaded Main codec ID
		
		B2		=	Main_decoding_type	: information for major decoding type ( Not yet fixed ) 
			< Main_decoding_type>
				bit0	: TRUE or FALSE for PCM out 
				bit1	: TRUE or FALSE for SPDIF out (secondary output) ?
				bit2	: PCM or STREAM for secondary out (Effective only If TRUE at "bit1" ) ? 
				bit3	: 
				bit4	:
				bit5	:
				bit6	:
				bit7  :
		
		B3		=	Post_decoding_type	: information for each Post effector ( Not yet fixed ) 
			<extra_decoding_type>
				bit0	: Apply Equalizer ?
				bit1	: Apply PSCON ?
				bit2	: Apply VBX ?
				bit3	: Apply Virtual-LFE ?
				bit4	: Apply N-2-2 ?
				bit5	: Apply Fade-in/out ?
				bit6	: Apply mute ?
				bit7 	:
	
		B4~B5	=	output_offset_of_PCM
		B6~B7	=	output_offset_of_SPDIF
		B8~B9	=	output_offset_of_temporal_usage : 
						This is for temporal usage area for ADM. ( For example, this can used for PSCON .)
						Host(ARM) will reserve some region which can be used for temporal usage.

		B10~B15	=	Reserved				: not defined yet		
		
	if (B0 == AM_SM_SET)	
		B0		=	AM_SM_SET
		B1		=	codec_id				: codec ID whose setting will be changed this time
		B2~B15	=	codec information		: for example, gADM_Ac3Para
*/


/*

2)	uProtocol definition

	- Protocol used when ADM make Interrupt to ARM.
	- Protocol used for "BYTE2 	gADMReceiveMessage[8];"
	- Total size = 16 bytes (B00 ~ B15)

	if (B0 == AM_SM_INIT),  it means that this is the response from previous AM_SM_INIT Interrupt
		B0		=	AM_SM_INIT
		B1		=	error_code			: if there is an error at ADM side, error_code will be here
		B2~B3	=	extended_info			: This contains more detailed information about ADM's action
		
		B4~B15	=	Main codec information	: for example, 	copy gADM_Ac3Para here

		
	if (B0 == AM_SM_PARSE)
		B0		=	AM_SM_PARSE
		B1		=	error_code			: if there is an error at ADM side, error_code will be here
		B2~B3	=	extended_info			: This contains more detailed information about ADM's action		

		B4~B7	=	sampling_rate
		B8~B11	=	bit_rate
		B12~B13	=	num_of_sample
		B14~B15	=	frame_size

	if (B0 == AM_SM_DECODE)
		B0		=	AM_SM_PARSE
		B1		=	error_code			: if there is an error at ADM side, error_code will be here
		B2~B3	=	extended_info			: This contains more detailed information about ADM's action		

		B4~B5	=	next_dec_offset		: main stream offset of S0. i assigned 2 bytes so Max is 64 KB
		B6~B7	=	next_dec_ext_offset	: extension stream offset of S0. Max is 64 KB
		B8~B9	=	sample_count			: This will can be changed for every frame if we use PSCON
		B10~B11	=	frame_size			: SPDIF stream buffer size 
		B12~B13	=	extra_decoding_result	: not defined yet
		B14~B15	=	Reserved				: not defined yet
		
	if (B0 == AM_SM_SET)	
		B0		=	AM_SM_SET
		B1		=	error_code			: if there is an error at ADM side, error_code will be here
		B2~B15	=	Reserved				: not defined yet
*/

#endif

⌨️ 快捷键说明

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