mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-02-04 14:30:55 +08:00
avcodec: add AVHWAccel.free_frame_priv callback
This commit is contained in:
@@ -2259,6 +2259,14 @@ typedef struct AVHWAccel {
|
||||
* For thread-safe hwaccels only.
|
||||
*/
|
||||
int (*update_thread_context)(AVCodecContext *dst, const AVCodecContext *src);
|
||||
|
||||
/**
|
||||
* Callback to free the hwaccel-specific frame data.
|
||||
*
|
||||
* @param hwctx a pointer to an AVHWDeviceContext.
|
||||
* @param data the per-frame hardware accelerator private data to be freed.
|
||||
*/
|
||||
void (*free_frame_priv)(void *hwctx, uint8_t *data);
|
||||
} AVHWAccel;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user