FFmpeg
Macros | Enumerations | Functions | Variables
jpeg2000dec.c File Reference
#include <inttypes.h>
#include <math.h>
#include "libavutil/attributes.h"
#include "libavutil/avassert.h"
#include "libavutil/common.h"
#include "libavutil/imgutils.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "decode.h"
#include "thread.h"
#include "jpeg2000.h"
#include "jpeg2000dsp.h"
#include "profiles.h"
#include "jpeg2000dec.h"
#include "jpeg2000htdec.h"

Go to the source code of this file.

Macros

#define JP2_SIG_TYPE   0x6A502020
 
#define JP2_SIG_VALUE   0x0D0A870A
 
#define JP2_CODESTREAM   0x6A703263
 
#define JP2_HEADER   0x6A703268
 
#define HAD_COC   0x01
 
#define HAD_QCC   0x02
 
#define HT_MIXED   0x80
 
#define RGB_PIXEL_FORMATS   AV_PIX_FMT_PAL8,AV_PIX_FMT_RGB24,AV_PIX_FMT_RGBA,AV_PIX_FMT_RGB48,AV_PIX_FMT_RGBA64
 
#define GRAY_PIXEL_FORMATS   AV_PIX_FMT_GRAY8,AV_PIX_FMT_GRAY8A,AV_PIX_FMT_GRAY16,AV_PIX_FMT_YA16
 
#define YUV_PIXEL_FORMATS
 
#define XYZ_PIXEL_FORMATS   AV_PIX_FMT_XYZ12
 
#define WRITE_FRAME(D, PIXEL)
 
#define OFFSET(x)   offsetof(Jpeg2000DecoderContext, x)
 
#define VD   AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_DECODING_PARAM
 

Enumerations

enum  HT_PLHD_STATUS { HT_PLHD_OFF, HT_PLHD_ON }
 

Functions

static int get_bits (Jpeg2000DecoderContext *s, int n)
 
static void jpeg2000_flush (Jpeg2000DecoderContext *s)
 
static int tag_tree_decode (Jpeg2000DecoderContext *s, Jpeg2000TgtNode *node, int threshold)
 
static int pix_fmt_match (enum AVPixelFormat pix_fmt, int components, int bpc, uint32_t log2_chroma_wh, int pal8)
 
static int get_siz (Jpeg2000DecoderContext *s)
 
static int get_cap (Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *c)
 
static int get_cox (Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *c)
 
static int get_cod (Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *c, const uint8_t *properties)
 
static int get_coc (Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *c, uint8_t *properties)
 
static int get_rgn (Jpeg2000DecoderContext *s, int n)
 
static int get_qcx (Jpeg2000DecoderContext *s, int n, Jpeg2000QuantStyle *q)
 
static int get_qcd (Jpeg2000DecoderContext *s, int n, Jpeg2000QuantStyle *q, const uint8_t *properties)
 
static int get_qcc (Jpeg2000DecoderContext *s, int n, Jpeg2000QuantStyle *q, uint8_t *properties)
 
static int get_poc (Jpeg2000DecoderContext *s, int size, Jpeg2000POC *p)
 
static int get_sot (Jpeg2000DecoderContext *s, int n)
 
static int read_crg (Jpeg2000DecoderContext *s, int n)
 
static int read_cpf (Jpeg2000DecoderContext *s, int n)
 
static int get_tlm (Jpeg2000DecoderContext *s, int n)
 
static int get_plt (Jpeg2000DecoderContext *s, int n)
 
static int get_ppm (Jpeg2000DecoderContext *s, int n)
 
static int get_ppt (Jpeg2000DecoderContext *s, int n)
 
static int init_tile (Jpeg2000DecoderContext *s, int tileno)
 
static int getnpasses (Jpeg2000DecoderContext *s)
 
static int getlblockinc (Jpeg2000DecoderContext *s)
 
static void select_header (Jpeg2000DecoderContext *s, const Jpeg2000Tile *tile, int *tp_index)
 
static void select_stream (Jpeg2000DecoderContext *s, const Jpeg2000Tile *tile, int *tp_index, const Jpeg2000CodingStyle *codsty)
 
static int jpeg2000_decode_packet (Jpeg2000DecoderContext *s, Jpeg2000Tile *tile, int *tp_index, const Jpeg2000CodingStyle *codsty, Jpeg2000ResLevel *rlevel, int precno, int layno, const uint8_t *expn, int numgbits)
 
static int jpeg2000_decode_packets_po_iteration (Jpeg2000DecoderContext *s, Jpeg2000Tile *tile, int RSpoc, int CSpoc, int LYEpoc, int REpoc, int CEpoc, int Ppoc, int *tp_index)
 
static int jpeg2000_decode_packets (Jpeg2000DecoderContext *s, Jpeg2000Tile *tile)
 
static void decode_sigpass (Jpeg2000T1Context *t1, int width, int height, int bpno, int bandno, int vert_causal_ctx_csty_symbol)
 
static void decode_refpass (Jpeg2000T1Context *t1, int width, int height, int bpno, int vert_causal_ctx_csty_symbol)
 
static void decode_clnpass (const Jpeg2000DecoderContext *s, Jpeg2000T1Context *t1, int width, int height, int bpno, int bandno, int seg_symbols, int vert_causal_ctx_csty_symbol)
 
static int decode_cblk (const Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *codsty, Jpeg2000T1Context *t1, Jpeg2000Cblk *cblk, int width, int height, int bandpos, uint8_t roi_shift)
 
static int roi_shift_param (Jpeg2000Component *comp, int quan_parameter)
 
static void dequantization_float (int x, int y, Jpeg2000Cblk *cblk, Jpeg2000Component *comp, Jpeg2000T1Context *t1, Jpeg2000Band *band)
 
static void dequantization_int (int x, int y, Jpeg2000Cblk *cblk, Jpeg2000Component *comp, Jpeg2000T1Context *t1, Jpeg2000Band *band)
 
static void dequantization_int_97 (int x, int y, Jpeg2000Cblk *cblk, Jpeg2000Component *comp, Jpeg2000T1Context *t1, Jpeg2000Band *band)
 
static void mct_decode (const Jpeg2000DecoderContext *s, Jpeg2000Tile *tile)
 
static void roi_scale_cblk (Jpeg2000Cblk *cblk, Jpeg2000Component *comp, Jpeg2000T1Context *t1)
 
static int tile_codeblocks (const Jpeg2000DecoderContext *s, Jpeg2000Tile *tile)
 
static int jpeg2000_decode_tile (AVCodecContext *avctx, void *td, int jobnr, int threadnr)
 
static void jpeg2000_dec_cleanup (Jpeg2000DecoderContext *s)
 
static int jpeg2000_read_main_headers (Jpeg2000DecoderContext *s)
 
static int jpeg2000_read_bitstream_packets (Jpeg2000DecoderContext *s)
 
static int jp2_find_codestream (Jpeg2000DecoderContext *s)
 
static av_cold int jpeg2000_decode_init (AVCodecContext *avctx)
 
static int jpeg2000_decode_frame (AVCodecContext *avctx, AVFrame *picture, int *got_frame, AVPacket *avpkt)
 

Variables

static enum AVPixelFormat rgb_pix_fmts [] = {RGB_PIXEL_FORMATS}
 
static enum AVPixelFormat gray_pix_fmts [] = {GRAY_PIXEL_FORMATS}
 
static enum AVPixelFormat yuv_pix_fmts [] = {YUV_PIXEL_FORMATS}
 
static enum AVPixelFormat xyz_pix_fmts []
 
static enum AVPixelFormat all_pix_fmts []
 
static const AVOption options []
 
static const AVClass jpeg2000_class
 
const FFCodec ff_jpeg2000_decoder
 

Detailed Description

JPEG 2000 image decoder

Definition in file jpeg2000dec.c.

Macro Definition Documentation

◆ JP2_SIG_TYPE

#define JP2_SIG_TYPE   0x6A502020

Definition at line 49 of file jpeg2000dec.c.

◆ JP2_SIG_VALUE

#define JP2_SIG_VALUE   0x0D0A870A

Definition at line 50 of file jpeg2000dec.c.

◆ JP2_CODESTREAM

#define JP2_CODESTREAM   0x6A703263

Definition at line 51 of file jpeg2000dec.c.

◆ JP2_HEADER

#define JP2_HEADER   0x6A703268

Definition at line 52 of file jpeg2000dec.c.

◆ HAD_COC

#define HAD_COC   0x01

Definition at line 54 of file jpeg2000dec.c.

◆ HAD_QCC

#define HAD_QCC   0x02

Definition at line 55 of file jpeg2000dec.c.

◆ HT_MIXED

#define HT_MIXED   0x80

Definition at line 63 of file jpeg2000dec.c.

◆ RGB_PIXEL_FORMATS

Definition at line 170 of file jpeg2000dec.c.

◆ GRAY_PIXEL_FORMATS

Definition at line 171 of file jpeg2000dec.c.

◆ YUV_PIXEL_FORMATS

#define YUV_PIXEL_FORMATS

◆ XYZ_PIXEL_FORMATS

#define XYZ_PIXEL_FORMATS   AV_PIX_FMT_XYZ12

Definition at line 183 of file jpeg2000dec.c.

◆ WRITE_FRAME

#define WRITE_FRAME (   D,
  PIXEL 
)

Definition at line 2275 of file jpeg2000dec.c.

◆ OFFSET

#define OFFSET (   x)    offsetof(Jpeg2000DecoderContext, x)

Definition at line 2884 of file jpeg2000dec.c.

◆ VD

Definition at line 2885 of file jpeg2000dec.c.

Enumeration Type Documentation

◆ HT_PLHD_STATUS

Enumerator
HT_PLHD_OFF 
HT_PLHD_ON 

Definition at line 58 of file jpeg2000dec.c.

Function Documentation

◆ get_bits()

static int get_bits ( Jpeg2000DecoderContext s,
int  n 
)
static

Definition at line 70 of file jpeg2000dec.c.

Referenced by getlblockinc(), getnpasses(), jpeg2000_decode_packet(), and tag_tree_decode().

◆ jpeg2000_flush()

static void jpeg2000_flush ( Jpeg2000DecoderContext s)
static

Definition at line 85 of file jpeg2000dec.c.

Referenced by jpeg2000_decode_packet().

◆ tag_tree_decode()

static int tag_tree_decode ( Jpeg2000DecoderContext s,
Jpeg2000TgtNode node,
int  threshold 
)
static

Definition at line 93 of file jpeg2000dec.c.

Referenced by jpeg2000_decode_packet().

◆ pix_fmt_match()

static int pix_fmt_match ( enum AVPixelFormat  pix_fmt,
int  components,
int  bpc,
uint32_t  log2_chroma_wh,
int  pal8 
)
static

Definition at line 133 of file jpeg2000dec.c.

Referenced by get_siz().

◆ get_siz()

static int get_siz ( Jpeg2000DecoderContext s)
static

Definition at line 197 of file jpeg2000dec.c.

Referenced by jpeg2000_read_main_headers().

◆ get_cap()

static int get_cap ( Jpeg2000DecoderContext s,
Jpeg2000CodingStyle c 
)
static

Definition at line 424 of file jpeg2000dec.c.

Referenced by jpeg2000_read_main_headers().

◆ get_cox()

static int get_cox ( Jpeg2000DecoderContext s,
Jpeg2000CodingStyle c 
)
static

Definition at line 492 of file jpeg2000dec.c.

Referenced by get_coc(), and get_cod().

◆ get_cod()

static int get_cod ( Jpeg2000DecoderContext s,
Jpeg2000CodingStyle c,
const uint8_t *  properties 
)
static

Definition at line 571 of file jpeg2000dec.c.

Referenced by jpeg2000_read_main_headers().

◆ get_coc()

static int get_coc ( Jpeg2000DecoderContext s,
Jpeg2000CodingStyle c,
uint8_t *  properties 
)
static

Definition at line 608 of file jpeg2000dec.c.

Referenced by jpeg2000_read_main_headers().

◆ get_rgn()

static int get_rgn ( Jpeg2000DecoderContext s,
int  n 
)
static

Definition at line 643 of file jpeg2000dec.c.

Referenced by jpeg2000_read_main_headers().

◆ get_qcx()

static int get_qcx ( Jpeg2000DecoderContext s,
int  n,
Jpeg2000QuantStyle q 
)
static

Definition at line 676 of file jpeg2000dec.c.

Referenced by get_qcc(), and get_qcd().

◆ get_qcd()

static int get_qcd ( Jpeg2000DecoderContext s,
int  n,
Jpeg2000QuantStyle q,
const uint8_t *  properties 
)
static

Definition at line 721 of file jpeg2000dec.c.

Referenced by jpeg2000_read_main_headers().

◆ get_qcc()

static int get_qcc ( Jpeg2000DecoderContext s,
int  n,
Jpeg2000QuantStyle q,
uint8_t *  properties 
)
static

Definition at line 739 of file jpeg2000dec.c.

Referenced by jpeg2000_read_main_headers().

◆ get_poc()

static int get_poc ( Jpeg2000DecoderContext s,
int  size,
Jpeg2000POC p 
)
static

Definition at line 760 of file jpeg2000dec.c.

Referenced by jpeg2000_read_main_headers().

◆ get_sot()

static int get_sot ( Jpeg2000DecoderContext s,
int  n 
)
static

Definition at line 822 of file jpeg2000dec.c.

Referenced by jpeg2000_read_main_headers().

◆ read_crg()

static int read_crg ( Jpeg2000DecoderContext s,
int  n 
)
static

Definition at line 875 of file jpeg2000dec.c.

Referenced by jpeg2000_read_main_headers().

◆ read_cpf()

static int read_cpf ( Jpeg2000DecoderContext s,
int  n 
)
static

Definition at line 885 of file jpeg2000dec.c.

Referenced by jpeg2000_read_main_headers().

◆ get_tlm()

static int get_tlm ( Jpeg2000DecoderContext s,
int  n 
)
static

Definition at line 901 of file jpeg2000dec.c.

Referenced by jpeg2000_read_main_headers().

◆ get_plt()

static int get_plt ( Jpeg2000DecoderContext s,
int  n 
)
static

Definition at line 936 of file jpeg2000dec.c.

Referenced by jpeg2000_read_main_headers().

◆ get_ppm()

static int get_ppm ( Jpeg2000DecoderContext s,
int  n 
)
static

Definition at line 958 of file jpeg2000dec.c.

Referenced by jpeg2000_read_main_headers().

◆ get_ppt()

static int get_ppt ( Jpeg2000DecoderContext s,
int  n 
)
static

Definition at line 982 of file jpeg2000dec.c.

Referenced by jpeg2000_read_main_headers().

◆ init_tile()

static int init_tile ( Jpeg2000DecoderContext s,
int  tileno 
)
static

Definition at line 1016 of file jpeg2000dec.c.

Referenced by jpeg2000_read_bitstream_packets().

◆ getnpasses()

static int getnpasses ( Jpeg2000DecoderContext s)
static

Definition at line 1073 of file jpeg2000dec.c.

Referenced by jpeg2000_decode_packet().

◆ getlblockinc()

static int getlblockinc ( Jpeg2000DecoderContext s)
static

Definition at line 1088 of file jpeg2000dec.c.

Referenced by jpeg2000_decode_packet().

◆ select_header()

static void select_header ( Jpeg2000DecoderContext s,
const Jpeg2000Tile tile,
int *  tp_index 
)
inlinestatic

Definition at line 1099 of file jpeg2000dec.c.

Referenced by jpeg2000_decode_packet().

◆ select_stream()

static void select_stream ( Jpeg2000DecoderContext s,
const Jpeg2000Tile tile,
int *  tp_index,
const Jpeg2000CodingStyle codsty 
)
inlinestatic

Definition at line 1111 of file jpeg2000dec.c.

Referenced by jpeg2000_decode_packet().

◆ jpeg2000_decode_packet()

static int jpeg2000_decode_packet ( Jpeg2000DecoderContext s,
Jpeg2000Tile tile,
int *  tp_index,
const Jpeg2000CodingStyle codsty,
Jpeg2000ResLevel rlevel,
int  precno,
int  layno,
const uint8_t *  expn,
int  numgbits 
)
static

Definition at line 1136 of file jpeg2000dec.c.

Referenced by jpeg2000_decode_packets_po_iteration().

◆ jpeg2000_decode_packets_po_iteration()

static int jpeg2000_decode_packets_po_iteration ( Jpeg2000DecoderContext s,
Jpeg2000Tile tile,
int  RSpoc,
int  CSpoc,
int  LYEpoc,
int  REpoc,
int  CEpoc,
int  Ppoc,
int *  tp_index 
)
static

Definition at line 1544 of file jpeg2000dec.c.

Referenced by jpeg2000_decode_packets().

◆ jpeg2000_decode_packets()

static int jpeg2000_decode_packets ( Jpeg2000DecoderContext s,
Jpeg2000Tile tile 
)
static

Definition at line 1835 of file jpeg2000dec.c.

Referenced by jpeg2000_read_bitstream_packets().

◆ decode_sigpass()

static void decode_sigpass ( Jpeg2000T1Context t1,
int  width,
int  height,
int  bpno,
int  bandno,
int  vert_causal_ctx_csty_symbol 
)
static

Definition at line 1872 of file jpeg2000dec.c.

Referenced by decode_cblk().

◆ decode_refpass()

static void decode_refpass ( Jpeg2000T1Context t1,
int  width,
int  height,
int  bpno,
int  vert_causal_ctx_csty_symbol 
)
static

Definition at line 1902 of file jpeg2000dec.c.

Referenced by decode_cblk().

◆ decode_clnpass()

static void decode_clnpass ( const Jpeg2000DecoderContext s,
Jpeg2000T1Context t1,
int  width,
int  height,
int  bpno,
int  bandno,
int  seg_symbols,
int  vert_causal_ctx_csty_symbol 
)
static

Definition at line 1926 of file jpeg2000dec.c.

Referenced by decode_cblk().

◆ decode_cblk()

static int decode_cblk ( const Jpeg2000DecoderContext s,
Jpeg2000CodingStyle codsty,
Jpeg2000T1Context t1,
Jpeg2000Cblk cblk,
int  width,
int  height,
int  bandpos,
uint8_t  roi_shift 
)
static

Definition at line 1992 of file jpeg2000dec.c.

Referenced by tile_codeblocks().

◆ roi_shift_param()

static int roi_shift_param ( Jpeg2000Component comp,
int  quan_parameter 
)
inlinestatic

Definition at line 2074 of file jpeg2000dec.c.

Referenced by roi_scale_cblk().

◆ dequantization_float()

static void dequantization_float ( int  x,
int  y,
Jpeg2000Cblk cblk,
Jpeg2000Component comp,
Jpeg2000T1Context t1,
Jpeg2000Band band 
)
static

Definition at line 2094 of file jpeg2000dec.c.

Referenced by tile_codeblocks().

◆ dequantization_int()

static void dequantization_int ( int  x,
int  y,
Jpeg2000Cblk cblk,
Jpeg2000Component comp,
Jpeg2000T1Context t1,
Jpeg2000Band band 
)
static

Definition at line 2109 of file jpeg2000dec.c.

Referenced by tile_codeblocks().

◆ dequantization_int_97()

static void dequantization_int_97 ( int  x,
int  y,
Jpeg2000Cblk cblk,
Jpeg2000Component comp,
Jpeg2000T1Context t1,
Jpeg2000Band band 
)
static

Definition at line 2129 of file jpeg2000dec.c.

Referenced by tile_codeblocks().

◆ mct_decode()

static void mct_decode ( const Jpeg2000DecoderContext s,
Jpeg2000Tile tile 
)
inlinestatic

Definition at line 2143 of file jpeg2000dec.c.

Referenced by jpeg2000_decode_tile().

◆ roi_scale_cblk()

static void roi_scale_cblk ( Jpeg2000Cblk cblk,
Jpeg2000Component comp,
Jpeg2000T1Context t1 
)
inlinestatic

Definition at line 2171 of file jpeg2000dec.c.

Referenced by tile_codeblocks().

◆ tile_codeblocks()

static int tile_codeblocks ( const Jpeg2000DecoderContext s,
Jpeg2000Tile tile 
)
inlinestatic

Definition at line 2184 of file jpeg2000dec.c.

Referenced by jpeg2000_decode_tile().

◆ jpeg2000_decode_tile()

static int jpeg2000_decode_tile ( AVCodecContext avctx,
void *  td,
int  jobnr,
int  threadnr 
)
static

Definition at line 2342 of file jpeg2000dec.c.

Referenced by jpeg2000_decode_frame().

◆ jpeg2000_dec_cleanup()

static void jpeg2000_dec_cleanup ( Jpeg2000DecoderContext s)
static

Definition at line 2371 of file jpeg2000dec.c.

Referenced by jpeg2000_decode_frame().

◆ jpeg2000_read_main_headers()

static int jpeg2000_read_main_headers ( Jpeg2000DecoderContext s)
static

Definition at line 2399 of file jpeg2000dec.c.

Referenced by jpeg2000_decode_frame().

◆ jpeg2000_read_bitstream_packets()

static int jpeg2000_read_bitstream_packets ( Jpeg2000DecoderContext s)
static

Definition at line 2614 of file jpeg2000dec.c.

Referenced by jpeg2000_decode_frame().

◆ jp2_find_codestream()

static int jp2_find_codestream ( Jpeg2000DecoderContext s)
static

Definition at line 2632 of file jpeg2000dec.c.

Referenced by jpeg2000_decode_frame().

◆ jpeg2000_decode_init()

static av_cold int jpeg2000_decode_init ( AVCodecContext avctx)
static

Definition at line 2781 of file jpeg2000dec.c.

◆ jpeg2000_decode_frame()

static int jpeg2000_decode_frame ( AVCodecContext avctx,
AVFrame picture,
int *  got_frame,
AVPacket avpkt 
)
static

Definition at line 2799 of file jpeg2000dec.c.

Variable Documentation

◆ rgb_pix_fmts

enum AVPixelFormat rgb_pix_fmts[] = {RGB_PIXEL_FORMATS}
static

Definition at line 185 of file jpeg2000dec.c.

Referenced by geq_query_formats(), and get_siz().

◆ gray_pix_fmts

enum AVPixelFormat gray_pix_fmts[] = {GRAY_PIXEL_FORMATS}
static

Definition at line 186 of file jpeg2000dec.c.

Referenced by get_siz(), and query_formats().

◆ yuv_pix_fmts

enum AVPixelFormat yuv_pix_fmts[] = {YUV_PIXEL_FORMATS}
static

Definition at line 187 of file jpeg2000dec.c.

Referenced by geq_query_formats(), and get_siz().

◆ xyz_pix_fmts

enum AVPixelFormat xyz_pix_fmts[]
static
Initial value:

Definition at line 188 of file jpeg2000dec.c.

Referenced by get_siz().

◆ all_pix_fmts

enum AVPixelFormat all_pix_fmts[]
static
Initial value:

Definition at line 190 of file jpeg2000dec.c.

Referenced by get_siz(), and query_formats().

◆ options

const AVOption options[]
static
Initial value:
= {
{ "lowres", "Lower the decoding resolution by a power of two",
OFFSET(reduction_factor), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, JPEG2000_MAX_RESLEVELS - 1, VD },
{ NULL },
}

Definition at line 2887 of file jpeg2000dec.c.

◆ jpeg2000_class

const AVClass jpeg2000_class
static
Initial value:
= {
.class_name = "jpeg2000",
.item_name = av_default_item_name,
.option = options,
}

Definition at line 2893 of file jpeg2000dec.c.

◆ ff_jpeg2000_decoder

const FFCodec ff_jpeg2000_decoder
Initial value:
= {
.p.name = "jpeg2000",
CODEC_LONG_NAME("JPEG 2000"),
.p.type = AVMEDIA_TYPE_VIDEO,
.priv_data_size = sizeof(Jpeg2000DecoderContext),
.p.priv_class = &jpeg2000_class,
.p.max_lowres = 5,
}

Definition at line 2900 of file jpeg2000dec.c.

AV_PIX_FMT_YUVA422P16
#define AV_PIX_FMT_YUVA422P16
Definition: pixfmt.h:546
options
static const AVOption options[]
Definition: jpeg2000dec.c:2887
JPEG2000_MAX_RESLEVELS
#define JPEG2000_MAX_RESLEVELS
Definition: jpeg2000.h:79
AV_PIX_FMT_YUVA422P9
#define AV_PIX_FMT_YUVA422P9
Definition: pixfmt.h:538
YUV_PIXEL_FORMATS
#define YUV_PIXEL_FORMATS
Definition: jpeg2000dec.c:172
ff_jpeg2000_profiles
const AVProfile ff_jpeg2000_profiles[]
Definition: profiles.c:107
AV_PIX_FMT_YUVA422P10
#define AV_PIX_FMT_YUVA422P10
Definition: pixfmt.h:541
AV_PIX_FMT_YUVA444P16
#define AV_PIX_FMT_YUVA444P16
Definition: pixfmt.h:547
AV_PIX_FMT_YUV422P9
#define AV_PIX_FMT_YUV422P9
Definition: pixfmt.h:500
jpeg2000_class
static const AVClass jpeg2000_class
Definition: jpeg2000dec.c:2893
AV_PIX_FMT_YUV444P10
#define AV_PIX_FMT_YUV444P10
Definition: pixfmt.h:505
AV_PIX_FMT_YUV422P16
#define AV_PIX_FMT_YUV422P16
Definition: pixfmt.h:514
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:311
AV_PIX_FMT_YUVA420P
@ AV_PIX_FMT_YUVA420P
planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples)
Definition: pixfmt.h:108
AV_PIX_FMT_YUV444P16
#define AV_PIX_FMT_YUV444P16
Definition: pixfmt.h:515
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:296
AV_CODEC_CAP_FRAME_THREADS
#define AV_CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
Definition: codec.h:110
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
jpeg2000_decode_init
static av_cold int jpeg2000_decode_init(AVCodecContext *avctx)
Definition: jpeg2000dec.c:2781
NULL
#define NULL
Definition: coverity.c:32
av_default_item_name
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:237
AV_PIX_FMT_YUV422P10
#define AV_PIX_FMT_YUV422P10
Definition: pixfmt.h:503
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:368
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
OFFSET
#define OFFSET(x)
Definition: jpeg2000dec.c:2884
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:94
AV_PIX_FMT_YUV422P12
#define AV_PIX_FMT_YUV422P12
Definition: pixfmt.h:507
FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM
#define FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM
The decoder extracts and fills its parameters even if the frame is skipped due to the skip_frame sett...
Definition: codec_internal.h:55
AV_PIX_FMT_YUV444P12
#define AV_PIX_FMT_YUV444P12
Definition: pixfmt.h:509
jpeg2000_decode_frame
static int jpeg2000_decode_frame(AVCodecContext *avctx, AVFrame *picture, int *got_frame, AVPacket *avpkt)
Definition: jpeg2000dec.c:2799
AV_PIX_FMT_YUVA444P
@ AV_PIX_FMT_YUVA444P
planar YUV 4:4:4 32bpp, (1 Cr & Cb sample per 1x1 Y & A samples)
Definition: pixfmt.h:174
AV_CODEC_CAP_SLICE_THREADS
#define AV_CODEC_CAP_SLICE_THREADS
Codec supports slice-based (or partition-based) multithreading.
Definition: codec.h:114
AV_PIX_FMT_YUVA444P10
#define AV_PIX_FMT_YUVA444P10
Definition: pixfmt.h:542
VD
#define VD
Definition: jpeg2000dec.c:2885
AV_CODEC_ID_JPEG2000
@ AV_CODEC_ID_JPEG2000
Definition: codec_id.h:140
GRAY_PIXEL_FORMATS
#define GRAY_PIXEL_FORMATS
Definition: jpeg2000dec.c:171
AV_PIX_FMT_YUV444P9
#define AV_PIX_FMT_YUV444P9
Definition: pixfmt.h:501
AV_PIX_FMT_YUVA444P9
#define AV_PIX_FMT_YUVA444P9
Definition: pixfmt.h:539
AV_PIX_FMT_YUV422P14
#define AV_PIX_FMT_YUV422P14
Definition: pixfmt.h:511
RGB_PIXEL_FORMATS
#define RGB_PIXEL_FORMATS
Definition: jpeg2000dec.c:170
AV_OPT_TYPE_INT
@ AV_OPT_TYPE_INT
Underlying C type is int.
Definition: opt.h:259
AV_PIX_FMT_YUV444P
@ AV_PIX_FMT_YUV444P
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
Definition: pixfmt.h:78
XYZ_PIXEL_FORMATS
#define XYZ_PIXEL_FORMATS
Definition: jpeg2000dec.c:183
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
AV_PIX_FMT_YUV422P
@ AV_PIX_FMT_YUV422P
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
Definition: pixfmt.h:77
AV_PIX_FMT_YUV411P
@ AV_PIX_FMT_YUV411P
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)
Definition: pixfmt.h:80
AV_PIX_FMT_YUV410P
@ AV_PIX_FMT_YUV410P
planar YUV 4:1:0, 9bpp, (1 Cr & Cb sample per 4x4 Y samples)
Definition: pixfmt.h:79
AV_PIX_FMT_YUV444P14
#define AV_PIX_FMT_YUV444P14
Definition: pixfmt.h:512
Jpeg2000DecoderContext
Definition: jpeg2000dec.h:73
AV_PIX_FMT_YUVA422P
@ AV_PIX_FMT_YUVA422P
planar YUV 4:2:2 24bpp, (1 Cr & Cb sample per 2x1 Y & A samples)
Definition: pixfmt.h:173