MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / GenericDecodeReader

Method GenericDecodeReader

examples/VulkanBenchmark.cpp:430–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

428class GenericDecodeReader {
429public:
430 GenericDecodeReader(const BenchmarkOptions& options, DecodeKind decode_kind)
431 : options_(options),
432 decode_kind_(decode_kind),
433 format_context_(nullptr),
434 codec_context_(nullptr),
435 codec_(nullptr),
436 stream_(nullptr),
437 hw_device_context_(nullptr),
438 packet_(),
439 draining_(false),
440 video_stream_index_(-1),
441 frame_counter_(0),
442 requested_hw_decode_(decode_kind == DecodeKind::Cuda || decode_kind == DecodeKind::Vaapi || decode_kind == DecodeKind::Vulkan),
443 decoded_hw_frames_(false) {}
444
445 ~GenericDecodeReader() { Close(); }
446

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected