19 #ifndef ANBOX_SDK_VIDEO_DECODER_H_
20 #define ANBOX_SDK_VIDEO_DECODER_H_
Provides access to a video decoder which will be used by both Anbox and the Android instance for hard...
virtual uint64_t decode_frame(const AnboxVideoFrame *frame, int64_t pts)=0
Decode the given frame with its presentation timestamp.
virtual int configure(const AnboxVideoDecoderConfig &config)=0
Configure the video decoder with the given spec.
VideoDecoder & operator=(const VideoDecoder &)=delete
virtual int retrieve_image(AnboxVideoImage *img)=0
Retrieve the latest decoded image from the video decoder.
VideoDecoder(const VideoDecoder &)=delete
virtual int flush()=0
Flush all pending frames to the decoder for decoding.
virtual ~VideoDecoder()=default
AnboxVideoDecoderConfig describes the configuration of a video decoder.
AnboxVideoFrame represents a single complete video frame.
AnboxVideoImage describes a decoded image returned by the video decoder.