avcodec: add decode_params callback to AVHWAccel struct
Signed-off-by: Aman Gupta <aman@tmm1.net>
This commit is contained in:
parent
dad42bc5a1
commit
76f169368d
@ -3460,6 +3460,20 @@ typedef struct AVHWAccel {
|
|||||||
*/
|
*/
|
||||||
int (*start_frame)(AVCodecContext *avctx, const uint8_t *buf, uint32_t buf_size);
|
int (*start_frame)(AVCodecContext *avctx, const uint8_t *buf, uint32_t buf_size);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Callback for parameter data (SPS/PPS/VPS etc).
|
||||||
|
*
|
||||||
|
* Useful for hardware decoders which keep persistent state about the
|
||||||
|
* video parameters, and need to receive any changes to update that state.
|
||||||
|
*
|
||||||
|
* @param avctx the codec context
|
||||||
|
* @param type the nal unit type
|
||||||
|
* @param buf the nal unit data buffer
|
||||||
|
* @param buf_size the size of the nal unit in bytes
|
||||||
|
* @return zero if successful, a negative value otherwise
|
||||||
|
*/
|
||||||
|
int (*decode_params)(AVCodecContext *avctx, int type, const uint8_t *buf, uint32_t buf_size);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Callback for each slice.
|
* Callback for each slice.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user