mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
vd_lavc: move entrypoint for hwframes_refine
The idea is to get rid of vd_lavc_hwdec, so special functionality like this has to go somewhere else. At this point, hwframes_refine is only needed for d3d11, and it doesn't do much, so for now the new callback has no context. In can be made more fancy if really needed.
This commit is contained in:
@@ -122,6 +122,8 @@ struct hwcontext_fns {
|
||||
// AVFrame, with all other fields already set. img.hwctx will be set, and
|
||||
// use the correct AV_HWDEVICE_TYPE_.
|
||||
void (*complete_image_params)(struct mp_image *img);
|
||||
// Fill in special format-specific requirements.
|
||||
void (*refine_hwframes)(struct AVBufferRef *hw_frames_ctx);
|
||||
};
|
||||
|
||||
// The parameter is of type enum AVHWDeviceType (as in int to avoid extensive
|
||||
|
||||
Reference in New Issue
Block a user