MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / sws_getContext

Function sws_getContext

libswscale/utils.c:1932–1951  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1930}
1931
1932SwsContext *sws_getContext(int srcW, int srcH, enum AVPixelFormat srcFormat,
1933 int dstW, int dstH, enum AVPixelFormat dstFormat,
1934 int flags, SwsFilter *srcFilter,
1935 SwsFilter *dstFilter, const double *param)
1936{
1937 SwsContext *sws;
1938
1939 sws = alloc_set_opts(srcW, srcH, srcFormat,
1940 dstW, dstH, dstFormat,
1941 flags, param);
1942 if (!sws)
1943 return NULL;
1944
1945 if (sws_init_context(sws, srcFilter, dstFilter) < 0) {
1946 sws_freeContext(sws);
1947 return NULL;
1948 }
1949
1950 return sws;
1951}
1952
1953static int isnan_vec(SwsVector *a)
1954{

Callers 15

recon_frame_processFunction · 0.85
process_frameFunction · 0.85
mainFunction · 0.85
prepare_uv_scaleFunction · 0.85
open_filter_paramFunction · 0.85
config_outputFunction · 0.85
ff_scale_imageFunction · 0.85
ff_frame_to_dnn_classifyFunction · 0.85
ff_frame_to_dnn_detectFunction · 0.85

Calls 3

alloc_set_optsFunction · 0.85
sws_init_contextFunction · 0.85
sws_freeContextFunction · 0.85

Tested by 3

recon_frame_processFunction · 0.68
process_frameFunction · 0.68
mainFunction · 0.68