Skip to content

Commit

Permalink
video/sws_utils: remove unused mp_image_swscale
Browse files Browse the repository at this point in the history
This has been used before 2c43d2b. Now
that we have also zimg support, using swscale directly may not be wanted
depending on the user options.
  • Loading branch information
kasper93 authored and sfan5 committed Dec 25, 2024
1 parent d389c06 commit d9eb9ed
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
10 changes: 0 additions & 10 deletions video/sws_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,16 +424,6 @@ int mp_sws_scale(struct mp_sws_context *ctx, struct mp_image *dst,
return 0;
}

int mp_image_swscale(struct mp_image *dst, struct mp_image *src,
int my_sws_flags)
{
struct mp_sws_context *ctx = mp_sws_alloc(NULL);
ctx->flags = my_sws_flags;
int res = mp_sws_scale(ctx, dst, src);
talloc_free(ctx);
return res;
}

int mp_image_sw_blur_scale(struct mp_image *dst, struct mp_image *src,
float gblur)
{
Expand Down
3 changes: 0 additions & 3 deletions video/sws_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ extern const int mp_sws_fast_flags;

bool mp_sws_supported_format(int imgfmt);

int mp_image_swscale(struct mp_image *dst, struct mp_image *src,
int my_sws_flags);

int mp_image_sw_blur_scale(struct mp_image *dst, struct mp_image *src,
float gblur);

Expand Down

0 comments on commit d9eb9ed

Please sign in to comment.