mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
add getFrameCount()
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user