AVHWAccel.decode_slice

Callback for each slice.

Meaningful slice information (codec specific) is guaranteed to be parsed at this point. This function is mandatory. The only exception is XvMC, that works on MB level.

@param avctx the codec context @param buf the slice data buffer base @param buf_size the size of the slice in bytes @return zero if successful, a negative value otherwise

struct AVHWAccel
int function(AVCodecContext* avctx, const uint8_t* buf, uint32_t buf_size) decode_slice;

Meta