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

Function sws_alloc_context

libswscale/utils.c:1033–1045  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1031}
1032
1033SwsContext *sws_alloc_context(void)
1034{
1035 SwsInternal *c = av_mallocz(sizeof(*c) + SWSINTERNAL_ADDITIONAL_ASM_SIZE);
1036 if (!c)
1037 return NULL;
1038
1039 c->opts.av_class = &ff_sws_context_class;
1040 av_opt_set_defaults(c);
1041 atomic_init(&c->stride_unaligned_warned, 0);
1042 atomic_init(&c->data_unaligned_warned, 0);
1043
1044 return &c->opts;
1045}
1046
1047static uint16_t * alloc_gamma_tbl(double e)
1048{

Callers 15

LLVMFuzzerTestOneInputFunction · 0.85
alloc_set_optsFunction · 0.85
context_init_threadedFunction · 0.85
sws_getCachedContextFunction · 0.85
init_legacy_subpassFunction · 0.85
add_legacy_sws_passFunction · 0.85
scale_legacyFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
preinitFunction · 0.85
draw_qrcodeFunction · 0.85
output_single_frameFunction · 0.85

Calls 2

av_opt_set_defaultsFunction · 0.85
av_malloczFunction · 0.50

Tested by 3

scale_legacyFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68