FFmpeg
Macros | Functions
libjxl.h File Reference
#include <jxl/decode.h>
#include <jxl/memory_manager.h>

Go to the source code of this file.

Macros

#define JPEGXL_COMPUTE_NUMERIC_VERSION(major, minor, patch)   ((major<<24) | (minor<<16) | (patch<<8) | 0)
 
#define JPEGXL_NUMERIC_VERSION   JPEGXL_COMPUTE_NUMERIC_VERSION(0, 7, 0)
 

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.

Macro Definition Documentation

◆ JPEGXL_COMPUTE_NUMERIC_VERSION

#define JPEGXL_COMPUTE_NUMERIC_VERSION (   major,
  minor,
  patch 
)    ((major<<24) | (minor<<16) | (patch<<8) | 0)

Definition at line 38 of file libjxl.h.

◆ JPEGXL_NUMERIC_VERSION

#define JPEGXL_NUMERIC_VERSION   JPEGXL_COMPUTE_NUMERIC_VERSION(0, 7, 0)

Definition at line 41 of 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().