FFmpeg
Functions
libjxl.h File Reference
#include <jxl/memory_manager.h>
#include <jxl/version.h>

Go to the source code of this file.

Functions

size_t ff_libjxl_get_threadcount (int threads)
 Transform threadcount in ffmpeg to one used by libjxl. More...
 
void ff_libjxl_init_memory_manager (JxlMemoryManager *manager)
 Initialize and populate a JxlMemoryManager with av_malloc() and av_free() so libjxl will use these functions. More...
 

Detailed Description

JPEG XL via libjxl common support header

Definition in file libjxl.h.

Function Documentation

◆ ff_libjxl_get_threadcount()

size_t ff_libjxl_get_threadcount ( int  threads)

Transform threadcount in ffmpeg to one used by libjxl.

Parameters
threadsffmpeg's threads AVOption
Returns
thread count for libjxl's parallel runner

Definition at line 33 of file libjxl.c.

Referenced by libjxl_decode_init(), and libjxl_encode_init().

◆ ff_libjxl_init_memory_manager()

void ff_libjxl_init_memory_manager ( JxlMemoryManager *  manager)

Initialize and populate a JxlMemoryManager with av_malloc() and av_free() so libjxl will use these functions.

Parameters
managera pointer to a JxlMemoryManager struct

Definition at line 65 of file libjxl.c.

Referenced by libjxl_decode_init(), and libjxl_encode_init().