Lines Matching defs:decoder
24 * JPEG XL decoder using libjxl
47 JxlDecoder *decoder;
59 if (JxlDecoderSubscribeEvents(ctx->decoder, ctx->events) != JXL_DEC_SUCCESS) {
64 if (JxlDecoderSetParallelRunner(ctx->decoder, JxlThreadParallelRunner, ctx->runner) != JXL_DEC_SUCCESS) {
81 ctx->decoder = JxlDecoderCreate(&manager);
82 if (!ctx->decoder) {
191 jret = JxlDecoderGetICCProfileSize(ctx->decoder, &ctx->jxl_pixfmt, JXL_COLOR_PROFILE_TARGET_DATA, &icc_len);
197 jret = JxlDecoderGetColorAsICCProfile(ctx->decoder, &ctx->jxl_pixfmt, JXL_COLOR_PROFILE_TARGET_DATA,
234 jret = JxlDecoderGetColorAsEncodedProfile(ctx->decoder, NULL, JXL_COLOR_PROFILE_TARGET_ORIGINAL, &jxl_color);
237 jret = JxlDecoderSetPreferredColorProfile(ctx->decoder, &jxl_color);
239 jret = JxlDecoderGetColorAsEncodedProfile(ctx->decoder, &ctx->jxl_pixfmt, JXL_COLOR_PROFILE_TARGET_DATA, &jxl_color);
299 jret = JxlDecoderSetPreferredColorProfile(ctx->decoder, &jxl_color);
332 jret = JxlDecoderSetInput(ctx->decoder, buf, remaining);
340 jret = JxlDecoderProcessInput(ctx->decoder);
346 remaining = JxlDecoderReleaseInput(ctx->decoder);
362 if (JxlDecoderGetBasicInfo(ctx->decoder, &ctx->basic_info) != JXL_DEC_SUCCESS) {
365 * if it does it is likely a libjxl decoder bug
388 if (JxlDecoderSetImageOutBuffer(ctx->decoder, &ctx->jxl_pixfmt, frame->data[0], frame->buf[0]->size)
416 * This is why we reset the decoder and populate the packet data now, since
417 * this is the next packet and it has not been decoded yet. The decoder does
421 JxlDecoderReset(ctx->decoder);
440 if (ctx->decoder)
441 JxlDecoderDestroy(ctx->decoder);
442 ctx->decoder = NULL;