MCPcopy Create free account
hub / github.com/AOMediaCodec/libavif / avifDecoderNearestKeyframe

Function avifDecoderNearestKeyframe

src/read.c:7173–7186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7171}
7172
7173uint32_t avifDecoderNearestKeyframe(const avifDecoder * decoder, uint32_t frameIndex)
7174{
7175 if (!decoder->data) {
7176 // Nothing has been parsed yet
7177 return 0;
7178 }
7179
7180 for (; frameIndex != 0; --frameIndex) {
7181 if (avifDecoderIsKeyframe(decoder, frameIndex)) {
7182 break;
7183 }
7184 }
7185 return frameIndex;
7186}
7187
7188// Returns the number of available rows in decoder->image given a color or alpha subimage.
7189static uint32_t avifGetDecodedRowCount(const avifDecoder * decoder, const avifTileInfo * info, const avifImage * image)

Callers 4

avifDecoderNthImageFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85

Calls 1

avifDecoderIsKeyframeFunction · 0.85

Tested by 2

TESTFunction · 0.68
TESTFunction · 0.68