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(ubyte)* buf, uint buf_size) decode_slice;

Meta