mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 12:02:23 +02:00
vd_lavc: remove process_image callback
Now unused.
This commit is contained in:
parent
9345964bad
commit
643a1fc7de
@ -88,18 +88,15 @@ struct vd_lavc_hwdec {
|
|||||||
int image_format;
|
int image_format;
|
||||||
// Always returns a non-hwaccel image format.
|
// Always returns a non-hwaccel image format.
|
||||||
bool copying;
|
bool copying;
|
||||||
// Setting this will queue the given number of frames before calling
|
// Setting this will queue the given number of frames before returning them
|
||||||
// process_image() or returning them to the renderer. This can increase
|
// to the renderer. This can increase efficiency by not blocking on the
|
||||||
// efficiency by not blocking on the hardware pipeline by reading back
|
// hardware pipeline by reading back immediately after decoding.
|
||||||
// immediately after decoding.
|
|
||||||
int delay_queue;
|
int delay_queue;
|
||||||
int (*probe)(struct lavc_ctx *ctx, struct vd_lavc_hwdec *hwdec,
|
int (*probe)(struct lavc_ctx *ctx, struct vd_lavc_hwdec *hwdec,
|
||||||
const char *codec);
|
const char *codec);
|
||||||
int (*init)(struct lavc_ctx *ctx);
|
int (*init)(struct lavc_ctx *ctx);
|
||||||
int (*init_decoder)(struct lavc_ctx *ctx);
|
int (*init_decoder)(struct lavc_ctx *ctx);
|
||||||
void (*uninit)(struct lavc_ctx *ctx);
|
void (*uninit)(struct lavc_ctx *ctx);
|
||||||
// Process the image returned by the libavcodec decoder.
|
|
||||||
struct mp_image *(*process_image)(struct lavc_ctx *ctx, struct mp_image *img);
|
|
||||||
// For copy hwdecs. If probing is true, don't log errors if unavailable.
|
// For copy hwdecs. If probing is true, don't log errors if unavailable.
|
||||||
// The returned device will be freed with mp_hwdec_ctx->destroy.
|
// The returned device will be freed with mp_hwdec_ctx->destroy.
|
||||||
struct mp_hwdec_ctx *(*create_dev)(struct mpv_global *global,
|
struct mp_hwdec_ctx *(*create_dev)(struct mpv_global *global,
|
||||||
|
@ -1092,9 +1092,6 @@ static bool receive_frame(struct dec_video *vd, struct mp_image **out_image)
|
|||||||
struct mp_image *res = ctx->delay_queue[0];
|
struct mp_image *res = ctx->delay_queue[0];
|
||||||
MP_TARRAY_REMOVE_AT(ctx->delay_queue, ctx->num_delay_queue, 0);
|
MP_TARRAY_REMOVE_AT(ctx->delay_queue, ctx->num_delay_queue, 0);
|
||||||
|
|
||||||
if (ctx->hwdec && ctx->hwdec->process_image)
|
|
||||||
res = ctx->hwdec->process_image(ctx, res);
|
|
||||||
|
|
||||||
res = res ? mp_img_swap_to_native(res) : NULL;
|
res = res ? mp_img_swap_to_native(res) : NULL;
|
||||||
if (!res)
|
if (!res)
|
||||||
return progress;
|
return progress;
|
||||||
|
Loading…
Reference in New Issue
Block a user