Commit ef5d6041 authored by Wan-Teh Chang's avatar Wan-Teh Chang Committed by Commit Bot

Roll src/third_party/libavif/src/ 4eb2d0b58..93d5bf907 (14 commits)

https://chromium.googlesource.com/external/github.com/AOMediaCodec/libavif.git/+log/4eb2d0b58ecc..93d5bf907aec

$ git log 4eb2d0b58..93d5bf907 --date=short --no-merges --format='%ad %ae %s'
2020-11-17 jdrago avifDecoderNthImageMaxExtent(): Remove includeDependentFrameExtents argument, as it only added confusion, and the use-case with it set to false isn't useful
2020-11-17 wtc Replace firstExtent in avifDecoderItemMaxExtent
2020-11-17 wtc Fix bugs in MaxExtent and ExtentMerge
2020-11-17 wtc Miscellaneous cleanup in read.c
2020-11-17 wtc Clean up comments related to idat fox for an item
2020-11-17 wtc Use correct abbreviated function name in printf
2020-11-17 jdrago Reword comments for clarity
2020-11-17 jdrago avifGuessFileFormat() now guesses by header magic instead, if the file can be read
2020-11-13 jdrago Explicitly mark helper functions with a note about avifDecoderParse() returning OK first
2020-11-13 jdrago Expose avifDecoderItemExtent as avifExtent, and add avifDecoderNthImageMaxExtent() streaming helper function
2020-11-13 jdrago Reintroduce validity comment lost by the Ready revert
2020-11-13 jdrago Fix all offsets to be uint64_t and all sizes to be size_t in avifDecoderItemExtent and avifDecoderItem
2020-11-13 jdrago Revert "Add avifDecoderNthImageReady() avifIO helper function"
2020-11-05 jdrago Read/write one of each type of colr box, as allowed in HEIF 6.5.5.1 (Amemendment 3)

Created with:
  roll-dep src/third_party/libavif/src

In blink::AVIFImageDecoder::FrameIsReceivedAtIndex(), replace
avifDecoderNthImageReady() with avifDecoderNthImageMaxExtent().

R=dalecurtis@chromium.org,pkasting@chromium.org

Bug: 1136922
Change-Id: I17c60ddcd16bb4f8037c439552ba4260d85be8d0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2545583
Commit-Queue: Wan-Teh Chang <wtc@google.com>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Reviewed-by: default avatarDale Curtis <dalecurtis@chromium.org>
Reviewed-by: default avatarPeter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/master@{#828538}
parent fe559b55
......@@ -348,7 +348,7 @@ vars = {
# Three lines of non-changing comments so that
# the commit queue can handle CLs rolling libavif
# and whatever else without interference from each other.
'libavif_revision': '4eb2d0b58ecc4481b5074c470b99beb7f8e540e1',
'libavif_revision': '93d5bf907aec1dec842b4b1dc81c44972129c411',
# Three lines of non-changing comments so that
# the commit queue can handle CLs rolling nearby
# and whatever else without interference from each other.
......
......@@ -464,9 +464,17 @@ bool AVIFImageDecoder::FrameIsReceivedAtIndex(size_t index) const {
return false;
if (decoded_frame_count_ == 1)
return ImageDecoder::FrameIsReceivedAtIndex(index);
return index < frame_buffer_cache_.size() &&
(IsAllDataReceived() ||
avifDecoderNthImageReady(decoder_.get(), index) == AVIF_RESULT_OK);
if (index >= frame_buffer_cache_.size())
return false;
if (IsAllDataReceived())
return true;
avifExtent dataExtent;
if (avifDecoderNthImageMaxExtent(decoder_.get(), index, &dataExtent) !=
AVIF_RESULT_OK) {
return false;
}
return dataExtent.size == 0 ||
dataExtent.offset + dataExtent.size <= data_->size();
}
base::TimeDelta AVIFImageDecoder::FrameDurationAtIndex(size_t index) const {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment