Lines Matching refs:AVIFINFO_CHECK
82 #define AVIFINFO_CHECK(check_condition, check_status) \ macro
89 AVIFINFO_CHECK(status_returned == (expected_status), status_returned); \
111 AVIFINFO_CHECK(*data != NULL, kTruncated); in AvifInfoInternalRead()
227 AVIFINFO_CHECK(f->has_primary_item, kNotFound); in AvifInfoInternalGetPrimaryItemFeatures()
229 AVIFINFO_CHECK(f->num_dim_props > 0 && f->num_chan_props, kNotFound); in AvifInfoInternalGetPrimaryItemFeatures()
258 AVIFINFO_CHECK(box_header_size <= num_remaining_bytes, kInvalid); in AvifInfoInternalParseBox()
266 AVIFINFO_CHECK(box_header_size <= num_remaining_bytes, kInvalid); in AvifInfoInternalParseBox()
269 AVIFINFO_CHECK(AvifInfoInternalReadBigEndian(data, sizeof(uint32_t)) == 0, in AvifInfoInternalParseBox()
276 AVIFINFO_CHECK(box->size >= box_header_size, kInvalid); in AvifInfoInternalParseBox()
277 AVIFINFO_CHECK(box->size <= num_remaining_bytes, kInvalid); in AvifInfoInternalParseBox()
285 AVIFINFO_CHECK(box->size >= box_header_size, kInvalid); in AvifInfoInternalParseBox()
289 AVIFINFO_CHECK(*num_parsed_boxes < 4096, kAborted); in AvifInfoInternalParseBox()
332 AVIFINFO_CHECK(box.content_size >= 8, kInvalid); in ParseIpco()
336 AVIFINFO_CHECK(width != 0 && height != 0, kInvalid); in ParseIpco()
350 AVIFINFO_CHECK(box.content_size >= 1, kInvalid); in ParseIpco()
353 AVIFINFO_CHECK(num_channels >= 1, kInvalid); in ParseIpco()
354 AVIFINFO_CHECK(box.content_size >= 1 + num_channels, kInvalid); in ParseIpco()
357 AVIFINFO_CHECK(bit_depth >= 1, kInvalid); in ParseIpco()
361 AVIFINFO_CHECK(AvifInfoInternalReadBigEndian(data, 1) == bit_depth, in ParseIpco()
363 AVIFINFO_CHECK(i <= 32, kAborted); // Be reasonable. in ParseIpco()
384 AVIFINFO_CHECK(box.content_size >= 3, kInvalid); in ParseIpco()
390 AVIFINFO_CHECK(high_bitdepth, kInvalid); in ParseIpco()
452 AVIFINFO_CHECK(box.content_size >= num_read_bytes, kInvalid); in ParseIprp()
466 AVIFINFO_CHECK(box.content_size >= num_read_bytes, kInvalid); in ParseIprp()
482 AVIFINFO_CHECK(box.content_size >= num_read_bytes, kInvalid); in ParseIprp()
536 AVIFINFO_CHECK(box.content_size >= num_read_bytes, kInvalid); in ParseIref()
550 AVIFINFO_CHECK(box.content_size >= num_read_bytes, kInvalid); in ParseIref()
594 AVIFINFO_CHECK(num_bytes_per_id <= num_remaining_bytes, kInvalid); in ParseMeta()
599 AVIFINFO_CHECK(primary_item_id <= AVIFINFO_MAX_VALUE, kAborted); in ParseMeta()
627 AVIFINFO_CHECK(!memcmp(box.type, "ftyp", 4), kInvalid); in ParseFtyp()
629 AVIFINFO_CHECK(box.content_size >= 8, kInvalid); // major_brand,minor_version in ParseFtyp()
639 AVIFINFO_CHECK(i <= 32 * 4, kAborted); // Be reasonable. in ParseFtyp()