Home | History | Annotate | Download | only in mp4

Lines Matching refs:RCHECK

9 #include "media/mp4/rcheck.h"
19 RCHECK(reader->ReadFourCC(&major_brand) && reader->Read4(&minor_version));
31 RCHECK(reader->ReadFullBoxHeader() &&
47 RCHECK(reader->ReadFullBoxHeader());
49 RCHECK(reader->SkipBytes(8));
52 RCHECK(reader->Read4(&count) &&
58 RCHECK(reader->Read8(&offsets[i]));
60 RCHECK(reader->Read4Into8(&offsets[i]));
73 RCHECK(reader->ReadFullBoxHeader());
75 RCHECK(reader->SkipBytes(8));
77 RCHECK(reader->Read1(&default_sample_info_size) &&
97 RCHECK(reader->ReadFullBoxHeader() &&
111 RCHECK(reader->ReadFullBoxHeader() &&
118 RCHECK(default_iv_size == 8 || default_iv_size == 16);
120 RCHECK(default_iv_size == 0);
138 RCHECK(reader->ScanChildren() &&
142 RCHECK(reader->ReadChild(&info));
162 RCHECK(reader->ReadFullBoxHeader());
165 RCHECK(reader->Read8(&creation_time) &&
170 RCHECK(reader->Read4Into8(&creation_time) &&
176 RCHECK(reader->Read4s(&rate) &&
199 RCHECK(reader->ReadFullBoxHeader());
201 RCHECK(reader->Read8(&creation_time) &&
207 RCHECK(reader->Read4Into8(&creation_time) &&
214 RCHECK(reader->SkipBytes(8) && // reserved
233 RCHECK(reader->SkipBytes(4) &&
241 RCHECK(reader->ReadAllChildren(&video_entries));
243 RCHECK(reader->ReadAllChildren(&audio_entries));
263 RCHECK(reader->ReadFullBoxHeader() && reader->Read4(&count));
266 RCHECK(reader->HasBytes(count * 20));
268 RCHECK(reader->HasBytes(count * 12));
275 RCHECK(reader->Read8(&edit->segment_duration) &&
278 RCHECK(reader->Read4Into8(&edit->segment_duration) &&
281 RCHECK(reader->Read2s(&edit->media_rate_integer) &&
301 RCHECK(reader->SkipBytes(8) && reader->ReadFourCC(&hdlr_type));
324 RCHECK(reader->Read1(&version) && version == 1 &&
330 RCHECK(reader->Read1(&length_size_minus_one) &&
335 RCHECK(reader->Read1(&num_sps) && (num_sps & 0xe0) == 0xe0);
341 RCHECK(reader->Read2(&sps_length) &&
346 RCHECK(reader->Read1(&num_pps));
351 RCHECK(reader->Read2(&pps_length) &&
363 RCHECK(reader->Read4(&h_spacing) &&
383 RCHECK(reader->SkipBytes(6) &&
390 RCHECK(reader->ScanChildren() &&
403 RCHECK(reader->ReadChild(&avcc));
427 RCHECK(reader->ReadFullBoxHeader());
428 RCHECK(reader->ReadVec(&data, reader->size() - reader->pos()));
429 RCHECK(es_desc.Parse(data));
433 RCHECK(aac.Parse(es_desc.decoder_specific_info()));
455 RCHECK(reader->SkipBytes(6) &&
465 RCHECK(reader->ScanChildren());
476 RCHECK(reader->MaybeReadChild(&esds));
489 RCHECK(reader->ReadFullBoxHeader());
492 RCHECK(reader->Read8(&creation_time) &&
497 RCHECK(reader->Read4Into8(&creation_time) &&
520 RCHECK(reader->ScanChildren() &&
531 RCHECK(reader->ReadChild(&information));
540 RCHECK(reader->ScanChildren() &&
552 RCHECK(reader->ReadFullBoxHeader());
554 RCHECK(reader->Read8(&fragment_duration));
556 RCHECK(reader->Read4Into8(&fragment_duration));
571 RCHECK(reader->ReadFullBoxHeader() &&
609 RCHECK(reader->ReadFullBoxHeader());
636 RCHECK(reader->ReadFullBoxHeader() && reader->Read4(&track_id));
643 // RCHECK((flags & 0x020000) && !(flags & 0x1));
644 RCHECK(!(reader->flags() & 0x1));
647 RCHECK(reader->Read4(&sample_description_index));
653 RCHECK(reader->Read4(&default_sample_duration));
659 RCHECK(reader->Read4(&default_sample_size));
665 RCHECK(reader->Read4(&default_sample_flags));
680 RCHECK(reader->ReadFullBoxHeader() &&
692 RCHECK(reader->Read4(&data_offset));
699 RCHECK(reader->Read4(&first_sample_flags));
703 RCHECK(reader->HasBytes(fields * sample_count));
716 RCHECK(reader->Read4(&sample_durations[i]));
718 RCHECK(reader->Read4(&sample_sizes[i]));
720 RCHECK(reader->Read4(&sample_flags[i]));
722 RCHECK(reader->Read4s(&sample_composition_time_offsets[i]));
755 RCHECK(reader->ScanChildren() &&
767 RCHECK(reader->ReadFullBoxHeader());
768 RCHECK(reader->version() == 0);
769 RCHECK(reader->flags() == 0);
775 RCHECK(reader->Read1(&sample_info));
776 RCHECK((sample_info >> 6) == 0); // reserved.
781 RCHECK(sample_depends_on_[i] != kSampleDependsOnReserved);