| 28 | } |
| 29 | |
| 30 | int 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 | |
| 42 | void ff_icc_context_uninit(FFIccContext *s) |
| 43 | { |
no outgoing calls
no test coverage detected