Lines Matching refs:stream
100 void* stream; // User-defined data. member
109 AvifInfoInternalStream* stream, uint32_t num_bytes, const uint8_t** data) { in AvifInfoInternalRead() argument
110 *data = stream->read(stream->stream, num_bytes); in AvifInfoInternalRead()
117 AvifInfoInternalStream* stream, uint32_t num_bytes) { in AvifInfoInternalSkip() argument
120 if (stream->skip == NULL) { in AvifInfoInternalSkip()
124 AvifInfoInternalRead(stream, AVIFINFO_MAX_NUM_READ_BYTES, &unused)); in AvifInfoInternalSkip()
127 return AvifInfoInternalRead(stream, num_bytes, &unused); in AvifInfoInternalSkip()
129 stream->skip(stream->stream, num_bytes); in AvifInfoInternalSkip()
253 AvifInfoInternalStream* stream, uint32_t num_remaining_bytes, in AvifInfoInternalParseBox() argument
259 AVIFINFO_CHECK_FOUND(AvifInfoInternalRead(stream, 8, &data)); in AvifInfoInternalParseBox()
267 AVIFINFO_CHECK_FOUND(AvifInfoInternalRead(stream, 8, &data)); in AvifInfoInternalParseBox()
294 AVIFINFO_CHECK_FOUND(AvifInfoInternalRead(stream, 4, &data)); in AvifInfoInternalParseBox()
319 static AvifInfoInternalStatus ParseIpco(AvifInfoInternalStream* stream, in ParseIpco() argument
326 AVIFINFO_CHECK_FOUND(AvifInfoInternalParseBox(stream, num_remaining_bytes, in ParseIpco()
333 AVIFINFO_CHECK_FOUND(AvifInfoInternalRead(stream, 8, &data)); in ParseIpco()
346 AVIFINFO_CHECK_FOUND(AvifInfoInternalSkip(stream, box.content_size - 8)); in ParseIpco()
351 AVIFINFO_CHECK_FOUND(AvifInfoInternalRead(stream, 1, &data)); in ParseIpco()
355 AVIFINFO_CHECK_FOUND(AvifInfoInternalRead(stream, 1, &data)); in ParseIpco()
359 AVIFINFO_CHECK_FOUND(AvifInfoInternalRead(stream, 1, &data)); in ParseIpco()
378 AvifInfoInternalSkip(stream, box.content_size - (1 + num_channels))); in ParseIpco()
385 AVIFINFO_CHECK_FOUND(AvifInfoInternalRead(stream, 3, &data)); in ParseIpco()
404 AVIFINFO_CHECK_FOUND(AvifInfoInternalSkip(stream, box.content_size - 3)); in ParseIpco()
413 AvifInfoInternalRead(stream, kAlphaStrLength, &data)); in ParseIpco()
421 AvifInfoInternalSkip(stream, box.content_size - kAlphaStrLength)); in ParseIpco()
423 AVIFINFO_CHECK_FOUND(AvifInfoInternalSkip(stream, box.content_size)); in ParseIpco()
426 AVIFINFO_CHECK_FOUND(AvifInfoInternalSkip(stream, box.content_size)); in ParseIpco()
436 static AvifInfoInternalStatus ParseIprp(AvifInfoInternalStream* stream, in ParseIprp() argument
442 AVIFINFO_CHECK_FOUND(AvifInfoInternalParseBox(stream, num_remaining_bytes, in ParseIprp()
447 ParseIpco(stream, box.content_size, num_parsed_boxes, features)); in ParseIprp()
453 AVIFINFO_CHECK_FOUND(AvifInfoInternalRead(stream, 4, &data)); in ParseIprp()
468 AvifInfoInternalRead(stream, id_num_bytes + 1, &data)); in ParseIprp()
484 AvifInfoInternalRead(stream, index_num_bytes, &data)); in ParseIprp()
507 AvifInfoInternalSkip(stream, box.content_size - num_read_bytes)); in ParseIprp()
509 AVIFINFO_CHECK_FOUND(AvifInfoInternalSkip(stream, box.content_size)); in ParseIprp()
522 static AvifInfoInternalStatus ParseIref(AvifInfoInternalStream* stream, in ParseIref() argument
528 AVIFINFO_CHECK_FOUND(AvifInfoInternalParseBox(stream, num_remaining_bytes, in ParseIref()
538 AvifInfoInternalRead(stream, num_bytes_per_id + 2, &data)); in ParseIref()
552 AvifInfoInternalRead(stream, num_bytes_per_id, &data)); in ParseIref()
570 AVIFINFO_CHECK_FOUND(AvifInfoInternalSkip(stream, box.content_size)); in ParseIref()
581 static AvifInfoInternalStatus ParseMeta(AvifInfoInternalStream* stream, in ParseMeta() argument
587 AVIFINFO_CHECK_FOUND(AvifInfoInternalParseBox(stream, num_remaining_bytes, in ParseMeta()
596 AvifInfoInternalRead(stream, num_bytes_per_id, &data)); in ParseMeta()
603 AvifInfoInternalSkip(stream, box.content_size - num_bytes_per_id)); in ParseMeta()
606 ParseIprp(stream, box.content_size, num_parsed_boxes, features)); in ParseMeta()
609 ParseIref(stream, box.content_size, num_parsed_boxes, features)); in ParseMeta()
611 AVIFINFO_CHECK_FOUND(AvifInfoInternalSkip(stream, box.content_size)); in ParseMeta()
622 static AvifInfoInternalStatus ParseFtyp(AvifInfoInternalStream* stream) { in ParseFtyp() argument
625 AVIFINFO_CHECK_FOUND(AvifInfoInternalParseBox(stream, AVIFINFO_MAX_SIZE, in ParseFtyp()
632 AVIFINFO_CHECK_FOUND(AvifInfoInternalRead(stream, 4, &data)); in ParseFtyp()
636 AvifInfoInternalSkip(stream, box.content_size - (i + 4))); in ParseFtyp()
645 static AvifInfoInternalStatus ParseFile(AvifInfoInternalStream* stream, in ParseFile() argument
650 AVIFINFO_CHECK_FOUND(AvifInfoInternalParseBox(stream, AVIFINFO_MAX_SIZE, in ParseFile()
653 return ParseMeta(stream, box.content_size, num_parsed_boxes, features); in ParseFile()
655 AVIFINFO_CHECK_FOUND(AvifInfoInternalSkip(stream, box.content_size)); in ParseFile()
669 static const uint8_t* AvifInfoInternalForwardRead(void* stream, in AvifInfoInternalForwardRead() argument
671 AvifInfoInternalForward* forward = (AvifInfoInternalForward*)stream; in AvifInfoInternalForwardRead()
679 static void AvifInfoInternalForwardSkip(void* stream, size_t num_bytes) { in AvifInfoInternalForwardSkip() argument
680 AvifInfoInternalForward* forward = (AvifInfoInternalForward*)stream; in AvifInfoInternalForwardSkip()
690 AvifInfoInternalForward stream; in AvifInfoIdentify() local
691 stream.data = data; in AvifInfoIdentify()
692 stream.data_size = data_size; in AvifInfoIdentify()
695 (void*)&stream, (data == NULL) ? NULL : AvifInfoInternalForwardRead, in AvifInfoIdentify()
701 AvifInfoInternalForward stream; in AvifInfoGetFeatures() local
702 stream.data = data; in AvifInfoGetFeatures()
703 stream.data_size = data_size; in AvifInfoGetFeatures()
705 (void*)&stream, (data == NULL) ? NULL : AvifInfoInternalForwardRead, in AvifInfoGetFeatures()
712 AvifInfoStatus AvifInfoIdentifyStream(void* stream, read_stream_t read, in AvifInfoIdentifyStream() argument
717 internal_stream.stream = stream; in AvifInfoIdentifyStream()
723 AvifInfoStatus AvifInfoGetFeaturesStream(void* stream, read_stream_t read, in AvifInfoGetFeaturesStream() argument
730 internal_stream.stream = stream; in AvifInfoGetFeaturesStream()