1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

add getFrameCount()

This commit is contained in:
Suleyman TURKMEN
2024-07-03 19:55:35 +03:00
parent 53f51275e4
commit cdd8395f68
7 changed files with 11 additions and 21 deletions
+1
View File
@@ -195,6 +195,7 @@ bool AvifDecoder::readHeader() {
m_width = decoder_->image->width;
m_height = decoder_->image->height;
m_frame_count = decoder_->imageCount;
channels_ = (decoder_->image->yuvFormat == AVIF_PIXEL_FORMAT_YUV400) ? 1 : 3;
if (decoder_->alphaPresent) ++channels_;
bit_depth_ = decoder_->image->depth;