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

Function ff_icc_context_init

libavcodec/fflcms2.c:30–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30int ff_icc_context_init(FFIccContext *s, void *avctx)
31{
32 memset(s, 0, sizeof(*s));
33 s->avctx = avctx;
34 s->ctx = cmsCreateContext(NULL, s);
35 if (!s->ctx)
36 return AVERROR(ENOMEM);
37
38 cmsSetLogErrorHandlerTHR(s->ctx, log_cb);
39 return 0;
40}
41
42void ff_icc_context_uninit(FFIccContext *s)
43{

Callers 4

detect_colorspaceFunction · 0.85
iccdetect_initFunction · 0.85
iccgen_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected