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

📄 h264_define_error.h

📁 自己在wince的环境下做的一移动数字电视驱动
💻 H
字号:
#ifndef __H264DEC_DEFINE_ERROR__
#define __H264DEC_DEFINE_ERROR__

/* error */
#define SOP											 2// Start Of Picture
#define SOS											 3// Start Of Slice

#define H264_EOR									-1//ERROR Of bistream.
#define H264_EOS									-9// End Of Sequence

#define H264_ERROR_IPCM_IS_NOT_SUPPORTED			-10
#define H264_ERROR_SEI_IS_NOT_SUPPORTED				-11

#define H264_ERROR_CONTROL_PPS_WITHOUT_SPS			-12
#define H264_ERROR_CONTROL_SLICE_WITHOUT_PPS		-13
#define H264_ERROR_CONTROL_PSLICE_WITHOUT_ISLICE	-14

#define H264_ERROR_GAPS_FRAMENUM_PSLICE				-15

#define H264_ERROR_ISLICE_TYPE						-16
#define H264_ERROR_PSLICE_TYPE						-17
#define H264_ERROR_SUB_MB_TYPE						-18//when sub_mb_type(in the range of 0 to 3) is unspecified
#define H264_ERROR_INTERFACE_MB_TYPE_FAIL			-19

#define H264_ERROR_UVLC0							-20//error in U_V
#define H264_ERROR_UVLC_ME							-21//error in me_v

#define H264_ERROR_READ_BIO_0						-22//C version only
#define H264_ERROR_READ_BIO_1						-23//C version only
#define H264_ERROR_READ_BIO_2						-24//get_vlc2_1() and get_vlc2_2() only
#define H264_ERROR_READ_BIO_END						-25//h264_Check_MbEndBsError()

#define H264_ERROR_IO_RBSP_BDMA_END0				-26//h264_Check_FrameEndBsError() : can't read more bits of SODB(string of data bits)
#define H264_ERROR_IO_RBSP_BDMA_END1				-27//h264_Check_FrameEndBsError() : remained the unused SODB(3 bytes) after decoding a frame

#define H264_ERROR_NALU_BS0							-30//find 1st sync.(0x000001) : can't read more bits of RBSP(raw byte sequence payload)
#define H264_ERROR_NALU_BS1							-31//find 1st sync.(0x000001) : leading_zero_8bits syntax error
#define H264_ERROR_NALU_BS2							-32//NAL header parsing : can't read more bits of RBSP
#define H264_ERROR_NALU_BS3							-33//find 2nd sync.(0x000001) (for next frame) : can't read more bits of RBSP
#define H264_ERROR_NALU_BS4							-34//find 1st and 2nd sync.(0x000001) : read bytes of RBSP > H264_INPUT_BUFFER_SIZE
#define H264_ERROR_NALU_BS5							-35//the bytes size of RBSP <= 2

#define H264_ERROR_NALU_SYNTAX0						-36//error in check_limits_of_NALU_for_DMB()
#define H264_ERROR_NALU_SYNTAX2						-37//unspecified or reserved NAL unit type	

//constraints of baseline profile
#define H264_ERROR_NALU_SYNTAX_SPS_PROFILE				-39//profile_idc
#define H264_ERROR_NALU_SYNTAX_SPS_SIZE					-40//constraint of the size of image
#define H264_ERROR_NALU_SYNTAX_PPS_NUM_SLICE_GROUPS		-41//num_slice_groups_minus1 is not 0
#define H264_ERROR_NALU_SYNTAX_PPS_ENTROPYCODING		-42//entropy_coding_mode_flag
#define H264_ERROR_NALU_SYNTAX_PPS_WEIGHT				-43//weighted_pred_flag or weighted_bipred_idc is not 0
#define H264_ERROR_NALU_SYNTAX_PPS_REDUNDANT_PIC_CNT	-44//redundant_pic_cnt_present_flag is not 0
#define H264_ERROR_NALU_SYNTAX_SPS_FRAMECODIG			-45//frame_mbs_only_flag is not 1 or frame_cropping_flag is not 0

#define H264_ERROR_NALU_SYNTAX_SPS_POC2					-46//pic_order_cnt_type
#define H264_ERROR_NALU_SYNTAX_SPS_TDMB_KOR				-47//constraint of korean T-DMB
#define H264_ERROR_NALU_SYNTAX_SPS6						-48//check current SPS vs. previous SPS error
#define H264_ERROR_NALU_SYNTAX_PPS4						-49//check the current PPS against the previous PPS

#define H264_ERROR_NALU_SLICEHEADER0				-50//Trying to use an invalid (uninitialized) Picture Parameter Set with ID
#define H264_ERROR_NALU_SLICEHEADER1				-51//PicParset references an invalid (uninitialized) Sequence Parameter Set with ID
#define H264_ERROR_NALU_SLICEHEADER2				-52//check the limits of DMB
#define H264_ERROR_NALU_SLICEHEADER3				-53//Invalid remapping_of_pic_nums_idc command

#define H264_ERROR_SYNTAX_SPS_POC1_CNT_CYCLE		-54 //num_ref_frames_in_pic_order_cnt_cycle is overflow in SPS

#define H264_ERROR_NALU_SLICE_TYPE_UNKNOWN			-55//support only I or P slice in baselin profile 

#define H264_ERROR_SPS_WIDTH_OVERFLOW				-56 //added by soo 20070522
#define H264_ERROR_SPS_HEIGHT_OVERFLOW				-57 //added by soo 20070522

#define H264_ERROR_SPS_VUI_CPB_CNT_MINUS1_OVERFLOW	-58 //added by soo 20070731

#define H264_ERROR_CAVLC_DC_LEVEL_PREFIX			-60//added by soo 20060317
#define H264_ERROR_CAVLC_DC_ZEROS_LEFT				-61//added by soo 20060317
#define H264_ERROR_CAVLC_AC_LEVEL_PREFIX			-63
#define H264_ERROR_CAVLC_AC_ZEROS_LEFT				-64

#define H264_ERROR_CAVLC_LUMA_DC_LEVEL_PREFIX		-60
#define H264_ERROR_CAVLC_LUMA_DC_ZEROS_LEFT			-61
#define H264_ERROR_CAVLC_LUMA_AC_LEVEL_PREFIX		-62
#define H264_ERROR_CAVLC_LUMA_AC_ZEROS_LEFT			-63
#define H264_ERROR_CAVLC_CROMA_DC_CB_LEVEL_PREFIX	-64
#define H264_ERROR_CAVLC_CROMA_DC_CB_ZEROS_LEFT		-65
#define H264_ERROR_CAVLC_CROMA_DC_CR_LEVEL_PREFIX	-66
#define H264_ERROR_CAVLC_CROMA_DC_CR_ZEROS_LEFT		-67
#define H264_ERROR_CAVLC_CROMA_AC_LEVEL_PREFIX		-68
#define H264_ERROR_CAVLC_CROMA_AC_ZEROS_LEFT		-69

#define H264_ERROR_CAVLC_TOTAL_COEFF				-70	
#define H264_ERROR_CAVLC_TOTAL_COEFF_LUMA_DC		-70	
#define H264_ERROR_CAVLC_TOTAL_COEFF_LUMA_AC		-71
#define H264_ERROR_CAVLC_TOTAL_COEFF_CB_DC			-72
#define H264_ERROR_CAVLC_TOTAL_COEFF_CR_DC			-73
#define H264_ERROR_CAVLC_TOTAL_COEFF_CROMA_AC		-74

#define H264_ERROR_READ_FROM_SL_LAYER				-75

#define H264_ERROR_PSLICE_WITHOUT_REF				-80 //added by soo 20060411
#define H264_ERROR_PSLICE_NULL_REF					-81 //added by soo 20060411
#define H264_ERROR_NUMBEROFREFERENCEFRAMES			-82 //added by soo 20060626

#define H264_ERROR_CONTROL_PSLICE_WITHOUT_ISLICE1	-91
#define H264_ERROR_CONTROL_PSLICE_WITHOUT_ISLICE2	-92
#define H264_ERROR_CONTROL_PSLICE_WITHOUT_ISLICE3	-93

#define H264_ERROR_SEI_IO_RBSP_BMDA_END0			-100
#define H264_ERROR_SEI_IO_RBSP_BMDA_END1			-101

#define H264_ERROR_STREAM_NEED_MORE_DATA				-111
#define H264_ERROR_STREAM_OVERFLOW_OUTBUF				-112
#define H264_ERROR_STREAM_OVERFLOW_OUTBUFMAX			-113
#define H264_ERROR_STREAM_UNKNOWNTYPE					-114

#define H264_ERROR_STREAM_RTP_NEED_MORE_INPUTDATA		-115
#define H264_ERROR_STREAM_RTP_1STOCTET					-116
#define H264_ERROR_STREAM_RTP_1STOCTET_USER_DEF			-117
#define H264_ERROR_STREAM_RTP_OVERFLOW_PACKETLENGTH		-118
#define H264_ERROR_STREAM_RTP_UNDERFLOW_PACKETLENGTH	-119

#define H264_ERROR_MULTI_NAL_UNIT_FRAME_NUM				-120
#define H264_ERROR_MULTI_NAL_UNIT_SLICE_TYPE			-121
#define H264_ERROR_MULTI_NAL_UNIT_MB_NUM				-122
#define H264_ERROR_MULTI_NAL_UNIT_PIC_ADDR				-123
#define H264_ERROR_MULTI_NAL_UNIT_PPS_ID				-124
#define H264_ERROR_MULTI_NAL_UNIT_NEED_NEXT_SLICE		-126

#define H264_ERROR_REF_IDX_OVERFLOW						-127

#define H264_ERROR_INTRA_PRED_MODE_16X16				-130
#define H264_ERROR_INTRA_PRED_MODE_16X16_PLANE			-131
#define H264_ERROR_INTRA_PRED_MODE_16X16_HOR			-132
#define H264_ERROR_INTRA_PRED_MODE_16X16_VER			-133

#define H264_ERROR_INTRA_PRED_MODE_4X4					-134
#define H264_ERROR_INTRA_PRED_MODE_4X4_HOR_DOWN			-135
#define H264_ERROR_INTRA_PRED_MODE_4X4_HOR_UP			-136
#define H264_ERROR_INTRA_PRED_MODE_4X4_VERT_LEFT		-137
#define H264_ERROR_INTRA_PRED_MODE_4X4_VERT_RIGHT		-138
#define H264_ERROR_INTRA_PRED_MODE_4X4_DIAG_DOWN_LEFT	-139
#define H264_ERROR_INTRA_PRED_MODE_4X4_DIAG_DOWN_RIGHT	-140
#define H264_ERROR_INTRA_PRED_MODE_4X4_HOR				-141
#define H264_ERROR_INTRA_PRED_MODE_4X4_VERT				-142

#define H264_ERROR_INTRA_PRED_MODE_CROMA_HOR			-143
#define H264_ERROR_INTRA_PRED_MODE_CROMA_VER			-144
#define H264_ERROR_INTRA_PRED_MODE_CROMA_PLANE			-145
#define H264_ERROR_INTRA_PRED_MODE_CROMA				-146

#define H264_ERROR_POC_TYPE_FAIL						-147
#define H264_ERROR_IDRPIC_FRAME_NUM_NONZERO				-148

#define H264_ERROR_SPS_NEED_MORE_DATA					-150
#define H264_ERROR_PPS_NEED_MORE_DATA					-151

#define H264_ERROR_VUI_ASPECT_RATIO_IDC					-152	//added by soo 20070522
#define H264_ERROR_VUI_VIDEO_FORMAT						-153
#define H264_ERROR_VUI_COLOUR_PRIMARIES					-154
#define H264_ERROR_VUI_TRANSFER_CHARACTERISTIC			-155
#define H264_ERROR_VUI_MATRIX_COEFFICIENTS				-156

#define H264_ERROR_SEI_PICTIM_NO_ACTIVE_SPS				-160
#define H264_ERROR_SEI_PICTIM_VUI_PARAM					-161
#define H264_ERROR_SEI_PICTIM_PIC_STRUCTURE				-162
#define H264_ERROR_SEI_PICTIM_CT_TYPE					-163
#define H264_ERROR_SEI_PICTIM_COUNTING_TYPE				-164

#define H264_ERROR_NALU_TYPE_AUD						-165
#define H264_ERROR_NALU_TYPE_EOSEQ						-166
#define H264_ERROR_NALU_TYPE_FILL						-167


// added by stlim
#define MB_ERROR_INVALID_MB_TYPE						-200
#define MB_ERROR_UNSUPPORTED_SLICE_TYPE					-201
#define MB_ERROR_INVALID_CBP							-202
#define	MB_ERROR_RANGE_MB_DEQUANT						-203


#endif //__H264DEC_DEFINE_ERROR__

⌨️ 快捷键说明

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