Lines Matching refs:bufInfo
205 static void h264_check_0s (bufferInfo * bufInfo, int count);
206 static int32_t h264_se (bufferInfo * bufInfo);
212 static void scaling_list (uint32_t ix, uint32_t sizeOfScalingList, bufferInfo *bufInfo);
213 static void h264_parse_sequence_parameter_set (h264_decode * dec, bufferInfo *bufInfo);
214 static void h264_slice_header (h264_decode *dec, bufferInfo *bufInfo);
215 static uint8_t h264_parse_nal (h264_decode *dec, bufferInfo *bufInfo);
950 static int32_t h264_se (bufferInfo * bufInfo)
954 ret = bs_read_ue (bufInfo);
964 static void h264_check_0s (bufferInfo * bufInfo, int count)
968 val = bs_read_u (bufInfo, count);
1044 static void scaling_list (uint32_t ix, uint32_t sizeOfScalingList, bufferInfo * bufInfo)
1052 deltaScale = h264_se (bufInfo);
1063 static void h264_parse_sequence_parameter_set (h264_decode * dec, bufferInfo * bufInfo)
1067 dec->profile = bs_read_u (bufInfo, 8);
1068 bs_read_u (bufInfo, 1); /* constaint_set0_flag */
1069 bs_read_u (bufInfo, 1); /* constaint_set1_flag */
1070 bs_read_u (bufInfo, 1); /* constaint_set2_flag */
1071 bs_read_u (bufInfo, 1); /* constaint_set3_flag */
1072 bs_read_u (bufInfo, 1); /* constaint_set4_flag */
1073 bs_read_u (bufInfo, 1); /* constaint_set5_flag */
1076 h264_check_0s (bufInfo, 2);
1077 dec->level_idc = bs_read_u (bufInfo, 8);
1078 bs_read_ue (bufInfo); /* SPS id*/
1082 uint32_t chroma_format_idc = bs_read_ue (bufInfo);
1084 bs_read_u (bufInfo, 1); /* residual_colour_transform_flag */
1086 bs_read_ue (bufInfo); /* bit_depth_luma_minus8 */
1087 bs_read_ue (bufInfo); /* bit_depth_chroma_minus8 */
1088 bs_read_u (bufInfo, 1); /* qpprime_y_zero_transform_bypass_flag */
1089 uint32_t seq_scaling_matrix_present_flag = bs_read_u (bufInfo, 1);
1093 temp = bs_read_u (bufInfo, 1);
1095 scaling_list (ix, ix < 6 ? 16 : 64, bufInfo);
1101 bs_read_ue (bufInfo); /* log2_max_frame_num_minus4 */
1102 uint32_t pic_order_cnt_type = bs_read_ue (bufInfo);
1105 bs_read_ue (bufInfo); /* log2_max_pic_order_cnt_lsb_minus4 */
1107 bs_read_u (bufInfo, 1); /* delta_pic_order_always_zero_flag */
1108 h264_se (bufInfo); /* offset_for_non_ref_pic */
1109 h264_se (bufInfo); /* offset_for_top_to_bottom_field */
1110 temp = bs_read_ue (bufInfo);
1112 h264_se (bufInfo); /* offset_for_ref_frame[index] */
1115 bs_read_ue (bufInfo); /* num_ref_frames */
1116 bs_read_u (bufInfo, 1); /* gaps_in_frame_num_flag */
1117 uint32_t PicWidthInMbs = bs_read_ue (bufInfo) + 1;
1120 uint32_t PicHeightInMapUnits = bs_read_ue (bufInfo) + 1;
1123 uint32_t frame_mbs_only_flag = bs_read_u (bufInfo, 1);
1125 bs_read_u (bufInfo, 1); /* mb_adaptive_frame_field_flag */
1127 bs_read_u (bufInfo, 1); /* direct_8x8_inference_flag */
1128 temp = bs_read_u (bufInfo, 1);
1130 bs_read_ue (bufInfo); /* frame_crop_left_offset */
1131 bs_read_ue (bufInfo); /* frame_crop_right_offset */
1132 bs_read_ue (bufInfo); /* frame_crop_top_offset */
1133 bs_read_ue (bufInfo); /* frame_crop_bottom_offset */
1135 temp = bs_read_u (bufInfo, 1); /* VUI Parameters */
1138 static void h264_slice_header (h264_decode * dec, bufferInfo * bufInfo)
1142 bs_read_ue (bufInfo); /* first_mb_in_slice */
1143 temp = bs_read_ue (bufInfo);
1147 static uint8_t h264_parse_nal (h264_decode * dec, bufferInfo * bufInfo)
1151 h264_check_0s (bufInfo, 1);
1152 dec->nal_ref_idc = bs_read_u (bufInfo, 2);
1153 dec->nal_unit_type = type = bs_read_u (bufInfo, 5);
1158 h264_slice_header (dec, bufInfo);
1161 h264_parse_sequence_parameter_set (dec, bufInfo);