Lines Matching full:sps

36 	/* Find SPS header */  in coda_sps_parse_profile()
239 * coda_h264_sps_fixup - fixes frame cropping values in h.264 SPS
243 * @buf: buffer containing h.264 SPS RBSP, starting with NAL header
247 * Rewrites the frame cropping values in an h.264 SPS RBSP correctly for the
259 struct rbsp sps; in coda_h264_sps_fixup() local
266 sps.buf = buf + 5; /* Skip NAL header */ in coda_h264_sps_fixup()
267 sps.size = *size - 5; in coda_h264_sps_fixup()
269 profile_idc = sps.buf[0]; in coda_h264_sps_fixup()
272 sps.pos = 24; in coda_h264_sps_fixup()
275 ret = rbsp_read_uev(&sps, NULL); in coda_h264_sps_fixup()
291 ret = rbsp_read_uev(&sps, NULL); in coda_h264_sps_fixup()
295 ret = rbsp_read_uev(&sps, &pic_order_cnt_type); in coda_h264_sps_fixup()
301 ret = rbsp_read_uev(&sps, NULL); in coda_h264_sps_fixup()
308 ret = rbsp_read_bit(&sps); in coda_h264_sps_fixup()
312 ret = rbsp_read_sev(&sps, NULL); in coda_h264_sps_fixup()
316 ret = rbsp_read_sev(&sps, NULL); in coda_h264_sps_fixup()
320 ret = rbsp_read_uev(&sps, in coda_h264_sps_fixup()
326 ret = rbsp_read_sev(&sps, NULL); in coda_h264_sps_fixup()
333 ret = rbsp_read_uev(&sps, NULL); in coda_h264_sps_fixup()
338 ret = rbsp_read_bit(&sps); in coda_h264_sps_fixup()
341 ret = rbsp_read_uev(&sps, &pic_width_in_mbs_minus1); in coda_h264_sps_fixup()
344 ret = rbsp_read_uev(&sps, &pic_height_in_map_units_minus1); in coda_h264_sps_fixup()
347 frame_mbs_only_flag = ret = rbsp_read_bit(&sps); in coda_h264_sps_fixup()
352 ret = rbsp_read_bit(&sps); in coda_h264_sps_fixup()
357 ret = rbsp_read_bit(&sps); in coda_h264_sps_fixup()
362 pos = sps.pos; in coda_h264_sps_fixup()
363 frame_cropping_flag = ret = rbsp_read_bit(&sps); in coda_h264_sps_fixup()
369 ret = rbsp_read_uev(&sps, &crop_left); in coda_h264_sps_fixup()
372 ret = rbsp_read_uev(&sps, &crop_right); in coda_h264_sps_fixup()
375 ret = rbsp_read_uev(&sps, &crop_top); in coda_h264_sps_fixup()
378 ret = rbsp_read_uev(&sps, &crop_bottom); in coda_h264_sps_fixup()
382 vui_parameters_present_flag = ret = rbsp_read_bit(&sps); in coda_h264_sps_fixup()
401 sps.size = max_size - 5; in coda_h264_sps_fixup()
402 sps.pos = pos; in coda_h264_sps_fixup()
404 ret = rbsp_write_bit(&sps, frame_cropping_flag); in coda_h264_sps_fixup()
407 ret = rbsp_write_uev(&sps, 0); /* crop_left */ in coda_h264_sps_fixup()
410 ret = rbsp_write_uev(&sps, crop_right); in coda_h264_sps_fixup()
413 ret = rbsp_write_uev(&sps, 0); /* crop_top */ in coda_h264_sps_fixup()
416 ret = rbsp_write_uev(&sps, crop_bottom); in coda_h264_sps_fixup()
419 ret = rbsp_write_bit(&sps, 0); /* vui_parameters_present_flag */ in coda_h264_sps_fixup()
422 ret = rbsp_write_bit(&sps, 1); in coda_h264_sps_fixup()
426 *size = 5 + DIV_ROUND_UP(sps.pos, 8); in coda_h264_sps_fixup()