| 428 | class GenericDecodeReader { |
| 429 | public: |
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected