Lines Matching refs:ret
148 int i, ret; in rbsp_read_bits() local
155 ret = rbsp_read_bit(rbsp); in rbsp_read_bits()
156 if (ret < 0) in rbsp_read_bits()
157 return ret; in rbsp_read_bits()
158 tmp |= ret << (num - i - 1); in rbsp_read_bits()
169 int ret; in rbsp_write_bits() local
172 ret = rbsp_write_bit(rbsp, (value >> num) & 1); in rbsp_write_bits()
173 if (ret) in rbsp_write_bits()
174 return ret; in rbsp_write_bits()
184 int ret; in rbsp_read_uev() local
186 while ((ret = rbsp_read_bit(rbsp)) == 0) in rbsp_read_uev()
188 if (ret < 0) in rbsp_read_uev()
189 return ret; in rbsp_read_uev()
192 ret = rbsp_read_bits(rbsp, leading_zero_bits, &tmp); in rbsp_read_uev()
193 if (ret) in rbsp_read_uev()
194 return ret; in rbsp_read_uev()
206 int ret; in rbsp_write_uev() local
211 ret = rbsp_write_bit(rbsp, 0); in rbsp_write_uev()
212 if (ret) in rbsp_write_uev()
213 return ret; in rbsp_write_uev()
222 int ret; in rbsp_read_sev() local
224 ret = rbsp_read_uev(rbsp, &tmp); in rbsp_read_sev()
225 if (ret) in rbsp_read_sev()
226 return ret; in rbsp_read_sev()
261 int ret; in coda_h264_sps_fixup() local
275 ret = rbsp_read_uev(&sps, NULL); in coda_h264_sps_fixup()
276 if (ret) in coda_h264_sps_fixup()
277 return ret; in coda_h264_sps_fixup()
291 ret = rbsp_read_uev(&sps, NULL); in coda_h264_sps_fixup()
292 if (ret) in coda_h264_sps_fixup()
293 return ret; in coda_h264_sps_fixup()
295 ret = rbsp_read_uev(&sps, &pic_order_cnt_type); in coda_h264_sps_fixup()
296 if (ret) in coda_h264_sps_fixup()
297 return ret; in coda_h264_sps_fixup()
301 ret = rbsp_read_uev(&sps, NULL); in coda_h264_sps_fixup()
302 if (ret) in coda_h264_sps_fixup()
303 return ret; in coda_h264_sps_fixup()
308 ret = rbsp_read_bit(&sps); in coda_h264_sps_fixup()
309 if (ret < 0) in coda_h264_sps_fixup()
310 return ret; in coda_h264_sps_fixup()
312 ret = rbsp_read_sev(&sps, NULL); in coda_h264_sps_fixup()
313 if (ret) in coda_h264_sps_fixup()
314 return ret; in coda_h264_sps_fixup()
316 ret = rbsp_read_sev(&sps, NULL); in coda_h264_sps_fixup()
317 if (ret) in coda_h264_sps_fixup()
318 return ret; in coda_h264_sps_fixup()
320 ret = rbsp_read_uev(&sps, in coda_h264_sps_fixup()
322 if (ret) in coda_h264_sps_fixup()
323 return ret; in coda_h264_sps_fixup()
326 ret = rbsp_read_sev(&sps, NULL); in coda_h264_sps_fixup()
327 if (ret) in coda_h264_sps_fixup()
328 return ret; in coda_h264_sps_fixup()
333 ret = rbsp_read_uev(&sps, NULL); in coda_h264_sps_fixup()
334 if (ret) in coda_h264_sps_fixup()
335 return ret; in coda_h264_sps_fixup()
338 ret = rbsp_read_bit(&sps); in coda_h264_sps_fixup()
339 if (ret < 0) in coda_h264_sps_fixup()
340 return ret; in coda_h264_sps_fixup()
341 ret = rbsp_read_uev(&sps, &pic_width_in_mbs_minus1); in coda_h264_sps_fixup()
342 if (ret) in coda_h264_sps_fixup()
343 return ret; in coda_h264_sps_fixup()
344 ret = rbsp_read_uev(&sps, &pic_height_in_map_units_minus1); in coda_h264_sps_fixup()
345 if (ret) in coda_h264_sps_fixup()
346 return ret; in coda_h264_sps_fixup()
347 frame_mbs_only_flag = ret = rbsp_read_bit(&sps); in coda_h264_sps_fixup()
348 if (ret < 0) in coda_h264_sps_fixup()
349 return ret; in coda_h264_sps_fixup()
352 ret = rbsp_read_bit(&sps); in coda_h264_sps_fixup()
353 if (ret < 0) in coda_h264_sps_fixup()
354 return ret; in coda_h264_sps_fixup()
357 ret = rbsp_read_bit(&sps); in coda_h264_sps_fixup()
358 if (ret < 0) in coda_h264_sps_fixup()
359 return ret; in coda_h264_sps_fixup()
363 frame_cropping_flag = ret = rbsp_read_bit(&sps); in coda_h264_sps_fixup()
364 if (ret < 0) in coda_h264_sps_fixup()
365 return ret; in coda_h264_sps_fixup()
369 ret = rbsp_read_uev(&sps, &crop_left); in coda_h264_sps_fixup()
370 if (ret) in coda_h264_sps_fixup()
371 return ret; in coda_h264_sps_fixup()
372 ret = rbsp_read_uev(&sps, &crop_right); in coda_h264_sps_fixup()
373 if (ret) in coda_h264_sps_fixup()
374 return ret; in coda_h264_sps_fixup()
375 ret = rbsp_read_uev(&sps, &crop_top); in coda_h264_sps_fixup()
376 if (ret) in coda_h264_sps_fixup()
377 return ret; in coda_h264_sps_fixup()
378 ret = rbsp_read_uev(&sps, &crop_bottom); in coda_h264_sps_fixup()
379 if (ret) in coda_h264_sps_fixup()
380 return ret; in coda_h264_sps_fixup()
382 vui_parameters_present_flag = ret = rbsp_read_bit(&sps); in coda_h264_sps_fixup()
383 if (ret < 0) in coda_h264_sps_fixup()
384 return ret; in coda_h264_sps_fixup()
404 ret = rbsp_write_bit(&sps, frame_cropping_flag); in coda_h264_sps_fixup()
405 if (ret) in coda_h264_sps_fixup()
406 return ret; in coda_h264_sps_fixup()
407 ret = rbsp_write_uev(&sps, 0); /* crop_left */ in coda_h264_sps_fixup()
408 if (ret) in coda_h264_sps_fixup()
409 return ret; in coda_h264_sps_fixup()
410 ret = rbsp_write_uev(&sps, crop_right); in coda_h264_sps_fixup()
411 if (ret) in coda_h264_sps_fixup()
412 return ret; in coda_h264_sps_fixup()
413 ret = rbsp_write_uev(&sps, 0); /* crop_top */ in coda_h264_sps_fixup()
414 if (ret) in coda_h264_sps_fixup()
415 return ret; in coda_h264_sps_fixup()
416 ret = rbsp_write_uev(&sps, crop_bottom); in coda_h264_sps_fixup()
417 if (ret) in coda_h264_sps_fixup()
418 return ret; in coda_h264_sps_fixup()
419 ret = rbsp_write_bit(&sps, 0); /* vui_parameters_present_flag */ in coda_h264_sps_fixup()
420 if (ret) in coda_h264_sps_fixup()
421 return ret; in coda_h264_sps_fixup()
422 ret = rbsp_write_bit(&sps, 1); in coda_h264_sps_fixup()
423 if (ret) in coda_h264_sps_fixup()
424 return ret; in coda_h264_sps_fixup()