#include "avcodec.h"
#include "get_bits.h"
#include "golomb.h"
#include "mathops.h"
#include "dsputil.h"
#include "mjpeg.h"
#include "jpegls.h"
Go to the source code of this file.
Functions | |
static void | ls_encode_regular (JLSState *state, PutBitContext *pb, int Q, int err) |
Encode error from regular symbol. | |
static void | ls_encode_runterm (JLSState *state, PutBitContext *pb, int RItype, int err, int limit_add) |
Encode error from run termination. | |
static void | ls_encode_run (JLSState *state, PutBitContext *pb, int run, int comp, int trail) |
Encode run value as specified by JPEG-LS standard. | |
static void | ls_encode_line (JLSState *state, PutBitContext *pb, void *last, void *cur, int last2, int w, int stride, int comp, int bits) |
Encode one line of image. | |
static void | ls_store_lse (JLSState *state, PutBitContext *pb) |
static int | encode_picture_ls (AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data) |
static av_cold int | encode_init_ls (AVCodecContext *ctx) |
Variables | |
AVCodec | ff_jpegls_encoder |
Definition in file jpeglsenc.c.
static av_cold int encode_init_ls | ( | AVCodecContext * | ctx | ) | [static] |
Definition at line 372 of file jpeglsenc.c.
static int encode_picture_ls | ( | AVCodecContext * | avctx, | |
unsigned char * | buf, | |||
int | buf_size, | |||
void * | data | |||
) | [static] |
Definition at line 230 of file jpeglsenc.c.
static void ls_encode_line | ( | JLSState * | state, | |
PutBitContext * | pb, | |||
void * | last, | |||
void * | cur, | |||
int | last2, | |||
int | w, | |||
int | stride, | |||
int | comp, | |||
int | bits | |||
) | [inline, static] |
Encode one line of image.
Definition at line 115 of file jpeglsenc.c.
Referenced by encode_picture_ls().
static void ls_encode_regular | ( | JLSState * | state, | |
PutBitContext * | pb, | |||
int | Q, | |||
int | err | |||
) | [inline, static] |
Encode error from regular symbol.
Definition at line 40 of file jpeglsenc.c.
Referenced by ls_encode_line().
static void ls_encode_run | ( | JLSState * | state, | |
PutBitContext * | pb, | |||
int | run, | |||
int | comp, | |||
int | trail | |||
) | [inline, static] |
Encode run value as specified by JPEG-LS standard.
Definition at line 95 of file jpeglsenc.c.
Referenced by ls_encode_line().
static void ls_encode_runterm | ( | JLSState * | state, | |
PutBitContext * | pb, | |||
int | RItype, | |||
int | err, | |||
int | limit_add | |||
) | [inline, static] |
Encode error from run termination.
Definition at line 65 of file jpeglsenc.c.
Referenced by ls_encode_line().
static void ls_store_lse | ( | JLSState * | state, | |
PutBitContext * | pb | |||
) | [static] |
Initial value:
{ "jpegls", AVMEDIA_TYPE_VIDEO, CODEC_ID_JPEGLS, sizeof(JpeglsContext), encode_init_ls, encode_picture_ls, NULL, .pix_fmts= (const enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_RGB24, PIX_FMT_GRAY8, PIX_FMT_GRAY16, PIX_FMT_NONE}, .long_name= NULL_IF_CONFIG_SMALL("JPEG-LS"), }
Definition at line 385 of file jpeglsenc.c.