Scanner C++ API
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
scanner::internal::VideoEncoder Class Referenceabstract

VideoEncoder. More...

#include <video_encoder.h>

Inheritance diagram for scanner::internal::VideoEncoder:
scanner::internal::SoftwareVideoEncoder

Public Member Functions

virtual void configure (const FrameInfo &metadata, const EncodeOptions &opts)=0
 
virtual bool feed (const u8 *frame_buffer, size_t frame_size)=0
 
virtual bool flush ()=0
 
virtual bool get_packet (u8 *decoded_buffer, size_t decoded_size, size_t &actual_packet_size)=0
 
virtual int decoded_packets_buffered ()=0
 
virtual void wait_until_packets_copied ()=0
 
void set_profiler (Profiler *profiler)
 

Static Public Member Functions

static std::vector< VideoEncoderType > get_supported_encoder_types ()
 
static bool has_encoder_type (VideoEncoderType type)
 
static VideoEncodermake_from_config (DeviceHandle device_handle, i32 num_devices, VideoEncoderType type)
 

Protected Attributes

Profilerprofiler_ = nullptr
 

Detailed Description

VideoEncoder.


The documentation for this class was generated from the following files: