8#ifndef META_OCEAN_MEDIA_AVF_VIDEO_DECODER_H
9#define META_OCEAN_MEDIA_AVF_VIDEO_DECODER_H
16#include <VideoToolbox/VideoToolbox.h>
41 if (session !=
nullptr)
43 VTDecompressionSessionInvalidate(session);
162 bool initialize(
const std::string& mime,
const unsigned int width,
const unsigned int height,
const void* codecConfigData =
nullptr,
const size_t codecConfigSize = 0);
188 bool pushSample(
const void* data,
const size_t size,
const uint64_t presentationTime);
249 static void decompressionOutputCallback(
void* decompressionOutputRefCon,
void* sourceFrameRefCon, OSStatus status, VTDecodeInfoFlags infoFlags, CVImageBufferRef imageBuffer, CMTime presentationTimeStamp, CMTime presentationDuration);
287 *
this = std::move(videoDecoder);
308 if (
this != &videoDecoder)
312 formatDescription_ = std::move(videoDecoder.formatDescription_);
313 decompressionSession_ = std::move(videoDecoder.decompressionSession_);
315 decodedFrames_ = std::move(videoDecoder.decodedFrames_);
317 width_ = videoDecoder.width_;
318 videoDecoder.width_ = 0u;
320 height_ = videoDecoder.height_;
321 videoDecoder.height_ = 0u;
323 isStarted_ = videoDecoder.isStarted_;
324 videoDecoder.isStarted_ =
false;
This class implements Ocean's image class.
Definition Frame.h:1879
This class implements a recursive lock object.
Definition Lock.h:31
This class implements a scoped lock object for recursive lock objects.
Definition Lock.h:147
bool isValid() const
Returns whether this scoped object holds a valid object.
Definition ScopedObject.h:460
The namespace covering the entire Ocean framework.
Definition Accessor.h:15