• Home
  • Raw
  • Download

Lines Matching refs:mb_num

147             return s->mb_num;  in mpeg4_is_resync()
150 int len, mb_num; in mpeg4_is_resync() local
151 int mb_num_bits = av_log2(s->mb_num - 1) + 1; in mpeg4_is_resync()
161 mb_num = get_bits(&s->gb, mb_num_bits); in mpeg4_is_resync()
162 if (!mb_num || mb_num > s->mb_num || get_bits_count(&s->gb)+6 > s->gb.size_in_bits) in mpeg4_is_resync()
163 mb_num= -1; in mpeg4_is_resync()
168 return mb_num; in mpeg4_is_resync()
451 int mb_num_bits = av_log2(s->mb_num - 1) + 1; in ff_mpeg4_decode_video_packet_header()
452 int header_extension = 0, mb_num, len; in ff_mpeg4_decode_video_packet_header() local
472 mb_num = get_bits(&s->gb, mb_num_bits); in ff_mpeg4_decode_video_packet_header()
473 if (mb_num >= s->mb_num || !mb_num) { in ff_mpeg4_decode_video_packet_header()
475 "illegal mb_num in video packet (%d %d) \n", mb_num, s->mb_num); in ff_mpeg4_decode_video_packet_header()
479 s->mb_x = mb_num % s->mb_width; in ff_mpeg4_decode_video_packet_header()
480 s->mb_y = mb_num / s->mb_width; in ff_mpeg4_decode_video_packet_header()
553 uint16_t mb_num; in ff_mpeg4_decode_studio_slice_header() local
557 mb_num = get_bits(gb, vlc_len); in ff_mpeg4_decode_studio_slice_header()
559 if (mb_num >= s->mb_num) in ff_mpeg4_decode_studio_slice_header()
562 s->mb_x = mb_num % s->mb_width; in ff_mpeg4_decode_studio_slice_header()
563 s->mb_y = mb_num / s->mb_width; in ff_mpeg4_decode_studio_slice_header()
693 int mb_num = 0; in mpeg4_decode_partition_a() local
705 mb_num++; in mpeg4_decode_partition_a()
715 return mb_num - 1; in mpeg4_decode_partition_a()
756 return mb_num - 1; in mpeg4_decode_partition_a()
877 return mb_num; in mpeg4_decode_partition_a()
886 int mb_num = 0; in mpeg4_decode_partition_b() local
891 for (s->mb_y = s->resync_mb_y; mb_num < mb_count; s->mb_y++) { in mpeg4_decode_partition_b()
893 for (; mb_num < mb_count && s->mb_x < s->mb_width; s->mb_x++) { in mpeg4_decode_partition_b()
896 mb_num++; in mpeg4_decode_partition_b()
966 if (mb_num >= mb_count) in mpeg4_decode_partition_b()
980 int mb_num; in ff_mpeg4_decode_partitions() local
985 mb_num = mpeg4_decode_partition_a(ctx); in ff_mpeg4_decode_partitions()
986 if (mb_num <= 0) { in ff_mpeg4_decode_partitions()
989 return mb_num ? mb_num : AVERROR_INVALIDDATA; in ff_mpeg4_decode_partitions()
992 if (s->resync_mb_x + s->resync_mb_y * s->mb_width + mb_num > s->mb_num) { in ff_mpeg4_decode_partitions()
999 s->mb_num_left = mb_num; in ff_mpeg4_decode_partitions()
1023 ret = mpeg4_decode_partition_b(s, mb_num); in ff_mpeg4_decode_partitions()