[FFmpeg-devel,v5,07/12] swscale/internal: expose sws_init_single_context() internally
Checks
Context |
Check |
Description |
yinshiyou/make_loongarch64 |
fail
|
Make failed
|
andriy/make_x86 |
success
|
Make finished
|
andriy/make_fate_x86 |
success
|
Make fate finished
|
Commit Message
From: Niklas Haas <git@haasn.dev>
Used by the graph API swscale wrapper, for now.
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Niklas Haas <git@haasn.dev>
---
libswscale/swscale_internal.h | 3 +++
libswscale/utils.c | 4 ++--
2 files changed, 5 insertions(+), 2 deletions(-)
@@ -958,6 +958,9 @@ extern const int32_t ff_yuv2rgb_coeffs[11][4];
extern const AVClass ff_sws_context_class;
+int sws_init_single_context(SwsContext *sws, SwsFilter *srcFilter,
+ SwsFilter *dstFilter);
+
/**
* Set c->convert_unscaled to an unscaled converter if one exists for the
* specific source and destination formats, bit depths, flags, etc.
@@ -1312,8 +1312,8 @@ static enum AVPixelFormat alphaless_fmt(enum AVPixelFormat fmt)
}
}
-static av_cold int sws_init_single_context(SwsContext *sws, SwsFilter *srcFilter,
- SwsFilter *dstFilter)
+av_cold int sws_init_single_context(SwsContext *sws, SwsFilter *srcFilter,
+ SwsFilter *dstFilter)
{
int i;
int usesVFilter, usesHFilter;