32 #include <libavcodec/avcodec.h> succesfull execution
Definition: hvd.h:143
int size
size of encoded data
Definition: hvd.h:133
void hvd_close(struct hvd *h)
Free library resources.
Definition: hvd.c:156
AVFrame * hvd_receive_frame(struct hvd *h, int *error)
Retrieve decoded frame data from hardware.
Definition: hvd.c:211
uint8_t * data
pointer to encoded data
Definition: hvd.h:132
const char * pixel_format
NULL / "" for default or format, e.g. "rgb0", "bgr0", "nv12", "yuv420p".
Definition: hvd.h:109
Decoder configuration.
Definition: hvd.h:104
hvd_retval_enum
Constants returned by most of library functions.
Definition: hvd.h:139
int profile
0 to leave as FF_PROFILE_UNKNOWN or profile e.g. FF_PROFILE_HEVC_MAIN, ...
Definition: hvd.h:112
int hvd_send_packet(struct hvd *h, struct hvd_packet *packet)
Send packet to hardware for decoding.
Definition: hvd.c:180
Encoded data packet.
Definition: hvd.h:130
const char * codec
codec name, e.g. "h264", "vp8"
Definition: hvd.h:107
int width
0 to not specify, needed by some codecs
Definition: hvd.h:110
int height
0 to not specify, needed by some codecs
Definition: hvd.h:111
Internal library data passed around by the user.
Definition: hvd.c:23
struct hvd * hvd_init(const struct hvd_config *config)
Initialize internal library data.
Definition: hvd.c:41
hvd_send_packet was not accepted (e.g. buffers full), use hvd_receive_frame before next call ...
Definition: hvd.h:141
error occured
Definition: hvd.h:142
const char * hardware
hardware type for decoding, e.g. "vaapi"
Definition: hvd.h:106
const char * device
NULL / "" or device, e.g. "/dev/dri/renderD128".
Definition: hvd.h:108