FFmpeg
Functions
jpegls.c File Reference
#include <stddef.h>
#include "libavutil/internal.h"
#include "libavutil/intmath.h"
#include "jpegls.h"

Go to the source code of this file.

Functions

void ff_jpegls_init_state (JLSState *state)
 Calculate initial JPEG-LS parameters. More...
 
static int iso_clip (int v, int vmin, int vmax)
 Custom value clipping function used in T1, T2, T3 calculation. More...
 
void ff_jpegls_reset_coding_parameters (JLSState *s, int reset_all)
 Calculate JPEG-LS codec values. More...
 

Detailed Description

JPEG-LS common code.

Definition in file jpegls.c.

Function Documentation

◆ ff_jpegls_init_state()

void ff_jpegls_init_state ( JLSState state)

Calculate initial JPEG-LS parameters.

Definition at line 33 of file jpegls.c.

Referenced by encode_picture_ls(), and ff_jpegls_decode_picture().

◆ iso_clip()

static int iso_clip ( int  v,
int  vmin,
int  vmax 
)
inlinestatic

Custom value clipping function used in T1, T2, T3 calculation.

Definition at line 56 of file jpegls.c.

Referenced by ff_jpegls_reset_coding_parameters().

◆ ff_jpegls_reset_coding_parameters()

void ff_jpegls_reset_coding_parameters ( JLSState s,
int  reset_all 
)

Calculate JPEG-LS codec values.

Definition at line 64 of file jpegls.c.

Referenced by encode_picture_ls(), ff_jpegls_decode_picture(), and ls_store_lse().