Provides access to a video decoder which will be used by both Anbox and the Android instance for hardware accelerated video decoding.
More...
#include <video_decoder.h>
Provides access to a video decoder which will be used by both Anbox and the Android instance for hardware accelerated video decoding.
Definition at line 29 of file video_decoder.h.
◆ VideoDecoder() [1/2]
anbox::VideoDecoder::VideoDecoder |
( |
| ) |
|
|
default |
◆ ~VideoDecoder()
virtual anbox::VideoDecoder::~VideoDecoder |
( |
| ) |
|
|
virtualdefault |
◆ VideoDecoder() [2/2]
◆ configure()
Configure the video decoder with the given spec.
- Parameters
-
config | configuration for the video decoder |
- Returns
- 0 on success, an error code otherwise
◆ decode_frame()
virtual uint64_t anbox::VideoDecoder::decode_frame |
( |
const AnboxVideoFrame * |
frame, |
|
|
int64_t |
pts |
|
) |
| |
|
pure virtual |
Decode the given frame with its presentation timestamp.
- Parameters
-
frame | the frame to decode |
pts | presentation timestamp of the frame in milliseconds |
- Returns
- Number of bytes submitted to the decoder
◆ flush()
virtual int anbox::VideoDecoder::flush |
( |
| ) |
|
|
pure virtual |
Flush all pending frames to the decoder for decoding.
- Returns
- 0 on success, an error code otherwise
◆ operator=()
◆ retrieve_image()
Retrieve the latest decoded image from the video decoder.
- Parameters
-
img | structure holding information about the returned image |
- Returns
- 0 on success, an error code otherwise
The documentation for this class was generated from the following file: