FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
jpeg2000dec.c File Reference

JPEG 2000 image decoder. More...

#include <inttypes.h>
#include "libavutil/attributes.h"
#include "libavutil/avassert.h"
#include "libavutil/common.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"
#include "thread.h"
#include "jpeg2000.h"
#include "jpeg2000dsp.h"

Go to the source code of this file.

Data Structures

struct  Jpeg2000POCEntry
 
struct  Jpeg2000POC
 
struct  Jpeg2000TilePart
 
struct  Jpeg2000Tile
 
struct  Jpeg2000DecoderContext
 

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 MAX_POCS   32
 
#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 OFFSET(x)   offsetof(Jpeg2000DecoderContext, x)
 
#define VD   AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_DECODING_PARAM
 

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_cox (Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *c)
 
static int get_cod (Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *c, uint8_t *properties)
 
static int get_coc (Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *c, uint8_t *properties)
 
static int get_qcx (Jpeg2000DecoderContext *s, int n, Jpeg2000QuantStyle *q)
 
static int get_qcd (Jpeg2000DecoderContext *s, int n, Jpeg2000QuantStyle *q, 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 uint8_t get_tlm (Jpeg2000DecoderContext *s, int n)
 
static uint8_t get_plt (Jpeg2000DecoderContext *s, int n)
 
static int init_tile (Jpeg2000DecoderContext *s, int tileno)
 
static int getnpasses (Jpeg2000DecoderContext *s)
 
static int getlblockinc (Jpeg2000DecoderContext *s)
 
static int jpeg2000_decode_packet (Jpeg2000DecoderContext *s, Jpeg2000Tile *tile, int *tp_index, Jpeg2000CodingStyle *codsty, Jpeg2000ResLevel *rlevel, int precno, int layno, 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 (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 (Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *codsty, Jpeg2000T1Context *t1, Jpeg2000Cblk *cblk, int width, int height, int bandpos)
 
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 (Jpeg2000DecoderContext *s, Jpeg2000Tile *tile)
 
static int jpeg2000_decode_tile (Jpeg2000DecoderContext *s, Jpeg2000Tile *tile, AVFrame *picture)
 
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, void *data, int *got_frame, AVPacket *avpkt)
 
static av_cold void jpeg2000_init_static_data (AVCodec *codec)
 

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 AVProfile profiles []
 
static const AVClass jpeg2000_class
 
AVCodec ff_jpeg2000_decoder
 

Detailed Description

JPEG 2000 image decoder.

Definition in file jpeg2000dec.c.

Macro Definition Documentation

#define JP2_SIG_TYPE   0x6A502020

Definition at line 42 of file jpeg2000dec.c.

Referenced by jpeg2000_decode_frame().

#define JP2_SIG_VALUE   0x0D0A870A

Definition at line 43 of file jpeg2000dec.c.

Referenced by jpeg2000_decode_frame().

#define JP2_CODESTREAM   0x6A703263

Definition at line 44 of file jpeg2000dec.c.

Referenced by jp2_find_codestream().

#define JP2_HEADER   0x6A703268

Definition at line 45 of file jpeg2000dec.c.

Referenced by jp2_find_codestream().

#define HAD_COC   0x01

Definition at line 47 of file jpeg2000dec.c.

Referenced by get_coc(), and get_cod().

#define HAD_QCC   0x02

Definition at line 48 of file jpeg2000dec.c.

Referenced by get_qcc(), and get_qcd().

#define MAX_POCS   32

Definition at line 50 of file jpeg2000dec.c.

Referenced by get_poc().

Definition at line 227 of file jpeg2000dec.c.

Definition at line 228 of file jpeg2000dec.c.

#define YUV_PIXEL_FORMATS
Value:
#define AV_PIX_FMT_YUVA422P16
Definition: pixfmt.h:415
#define AV_PIX_FMT_YUVA422P9
Definition: pixfmt.h:409
#define AV_PIX_FMT_YUVA420P10
Definition: pixfmt.h:411
#define AV_PIX_FMT_YUV444P14
Definition: pixfmt.h:390
#define AV_PIX_FMT_YUVA422P10
Definition: pixfmt.h:412
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
Definition: pixfmt.h:68
#define AV_PIX_FMT_YUV420P12
Definition: pixfmt.h:384
planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples)
Definition: pixfmt.h:103
#define AV_PIX_FMT_YUVA420P9
Definition: pixfmt.h:408
#define AV_PIX_FMT_YUV444P16
Definition: pixfmt.h:393
#define AV_PIX_FMT_YUV422P12
Definition: pixfmt.h:385
#define AV_PIX_FMT_YUVA420P16
Definition: pixfmt.h:414
planar YUV 4:2:2 24bpp, (1 Cr & Cb sample per 2x1 Y & A samples)
Definition: pixfmt.h:281
#define AV_PIX_FMT_YUVA444P16
Definition: pixfmt.h:416
#define AV_PIX_FMT_YUV444P10
Definition: pixfmt.h:383
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
Definition: pixfmt.h:67
#define AV_PIX_FMT_YUV422P9
Definition: pixfmt.h:378
#define AV_PIX_FMT_YUVA444P10
Definition: pixfmt.h:413
#define AV_PIX_FMT_YUV444P9
Definition: pixfmt.h:379
#define AV_PIX_FMT_YUV420P16
Definition: pixfmt.h:391
#define AV_PIX_FMT_YUV420P14
Definition: pixfmt.h:388
planar YUV 4:4:4 32bpp, (1 Cr & Cb sample per 1x1 Y & A samples)
Definition: pixfmt.h:280
#define AV_PIX_FMT_YUV420P10
Definition: pixfmt.h:380
planar YUV 4:1:0, 9bpp, (1 Cr & Cb sample per 4x4 Y samples)
Definition: pixfmt.h:69
#define AV_PIX_FMT_YUV420P9
Definition: pixfmt.h:377
#define AV_PIX_FMT_YUV422P14
Definition: pixfmt.h:389
#define AV_PIX_FMT_YUV422P10
Definition: pixfmt.h:381
#define AV_PIX_FMT_YUV444P12
Definition: pixfmt.h:387
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
Definition: pixfmt.h:63
#define AV_PIX_FMT_YUVA444P9
Definition: pixfmt.h:410
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)
Definition: pixfmt.h:70
planar YUV 4:4:0 (1 Cr & Cb sample per 1x2 Y samples)
Definition: pixfmt.h:101
#define AV_PIX_FMT_YUV422P16
Definition: pixfmt.h:392

Definition at line 229 of file jpeg2000dec.c.

#define XYZ_PIXEL_FORMATS   AV_PIX_FMT_XYZ12

Definition at line 240 of file jpeg2000dec.c.

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

Definition at line 2134 of file jpeg2000dec.c.

Definition at line 2135 of file jpeg2000dec.c.

Function Documentation

static int get_bits ( Jpeg2000DecoderContext s,
int  n 
)
static

Definition at line 127 of file jpeg2000dec.c.

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

static void jpeg2000_flush ( Jpeg2000DecoderContext s)
static

Definition at line 142 of file jpeg2000dec.c.

Referenced by jpeg2000_decode_packet().

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

Definition at line 150 of file jpeg2000dec.c.

Referenced by jpeg2000_decode_packet().

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

Definition at line 190 of file jpeg2000dec.c.

Referenced by get_siz().

static int get_siz ( Jpeg2000DecoderContext s)
static

Definition at line 254 of file jpeg2000dec.c.

Referenced by jpeg2000_read_main_headers().

static int get_cox ( Jpeg2000DecoderContext s,
Jpeg2000CodingStyle c 
)
static

Definition at line 423 of file jpeg2000dec.c.

Referenced by get_coc(), and get_cod().

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

Definition at line 498 of file jpeg2000dec.c.

Referenced by jpeg2000_read_main_headers().

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

Definition at line 535 of file jpeg2000dec.c.

Referenced by jpeg2000_read_main_headers().

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

Definition at line 565 of file jpeg2000dec.c.

Referenced by get_qcc(), and get_qcd().

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

Definition at line 610 of file jpeg2000dec.c.

Referenced by jpeg2000_read_main_headers().

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

Definition at line 628 of file jpeg2000dec.c.

Referenced by jpeg2000_read_main_headers().

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

Definition at line 649 of file jpeg2000dec.c.

Referenced by jpeg2000_read_main_headers().

static int get_sot ( Jpeg2000DecoderContext s,
int  n 
)
static

Definition at line 711 of file jpeg2000dec.c.

Referenced by jpeg2000_read_main_headers().

static uint8_t get_tlm ( Jpeg2000DecoderContext s,
int  n 
)
static

Definition at line 769 of file jpeg2000dec.c.

Referenced by jpeg2000_read_main_headers().

static uint8_t get_plt ( Jpeg2000DecoderContext s,
int  n 
)
static

Definition at line 803 of file jpeg2000dec.c.

Referenced by jpeg2000_read_main_headers().

static int init_tile ( Jpeg2000DecoderContext s,
int  tileno 
)
static

Definition at line 819 of file jpeg2000dec.c.

Referenced by jpeg2000_read_bitstream_packets().

static int getnpasses ( Jpeg2000DecoderContext s)
static

Definition at line 865 of file jpeg2000dec.c.

Referenced by jpeg2000_decode_packet().

static int getlblockinc ( Jpeg2000DecoderContext s)
static

Definition at line 880 of file jpeg2000dec.c.

Referenced by jpeg2000_decode_packet().

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

Definition at line 891 of file jpeg2000dec.c.

Referenced by 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 1036 of file jpeg2000dec.c.

Referenced by jpeg2000_decode_packets().

static int jpeg2000_decode_packets ( Jpeg2000DecoderContext s,
Jpeg2000Tile tile 
)
static

Definition at line 1304 of file jpeg2000dec.c.

Referenced by jpeg2000_read_bitstream_packets().

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

Definition at line 1341 of file jpeg2000dec.c.

Referenced by decode_cblk().

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

Definition at line 1371 of file jpeg2000dec.c.

Referenced by decode_cblk().

static void decode_clnpass ( 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 1395 of file jpeg2000dec.c.

Referenced by decode_cblk().

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

Definition at line 1461 of file jpeg2000dec.c.

Referenced by jpeg2000_decode_tile().

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

Definition at line 1542 of file jpeg2000dec.c.

Referenced by jpeg2000_decode_tile().

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

Definition at line 1557 of file jpeg2000dec.c.

Referenced by jpeg2000_decode_tile().

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

Definition at line 1577 of file jpeg2000dec.c.

Referenced by jpeg2000_decode_tile().

static void mct_decode ( Jpeg2000DecoderContext s,
Jpeg2000Tile tile 
)
inlinestatic

Definition at line 1591 of file jpeg2000dec.c.

Referenced by jpeg2000_decode_tile().

static int jpeg2000_decode_tile ( Jpeg2000DecoderContext s,
Jpeg2000Tile tile,
AVFrame picture 
)
static

Definition at line 1619 of file jpeg2000dec.c.

Referenced by jpeg2000_decode_frame().

static void jpeg2000_dec_cleanup ( Jpeg2000DecoderContext s)
static

Definition at line 1795 of file jpeg2000dec.c.

Referenced by jpeg2000_decode_frame().

static int jpeg2000_read_main_headers ( Jpeg2000DecoderContext s)
static

Definition at line 1816 of file jpeg2000dec.c.

Referenced by jpeg2000_decode_frame().

static int jpeg2000_read_bitstream_packets ( Jpeg2000DecoderContext s)
static

Definition at line 1929 of file jpeg2000dec.c.

Referenced by jpeg2000_decode_frame().

static int jp2_find_codestream ( Jpeg2000DecoderContext s)
static

Definition at line 1948 of file jpeg2000dec.c.

Referenced by jpeg2000_decode_frame().

static av_cold int jpeg2000_decode_init ( AVCodecContext avctx)
static

Definition at line 2048 of file jpeg2000dec.c.

static int jpeg2000_decode_frame ( AVCodecContext avctx,
void data,
int *  got_frame,
AVPacket avpkt 
)
static

Definition at line 2057 of file jpeg2000dec.c.

static av_cold void jpeg2000_init_static_data ( AVCodec codec)
static

Definition at line 2128 of file jpeg2000dec.c.

Variable Documentation

enum AVPixelFormat rgb_pix_fmts[] = {RGB_PIXEL_FORMATS}
static

Definition at line 242 of file jpeg2000dec.c.

Referenced by geq_query_formats(), and get_siz().

enum AVPixelFormat gray_pix_fmts[] = {GRAY_PIXEL_FORMATS}
static

Definition at line 243 of file jpeg2000dec.c.

Referenced by get_siz().

enum AVPixelFormat yuv_pix_fmts[] = {YUV_PIXEL_FORMATS}
static

Definition at line 244 of file jpeg2000dec.c.

Referenced by geq_query_formats(), and get_siz().

enum AVPixelFormat xyz_pix_fmts[]
static
Initial value:
#define YUV_PIXEL_FORMATS
Definition: jpeg2000dec.c:229
#define XYZ_PIXEL_FORMATS
Definition: jpeg2000dec.c:240

Definition at line 245 of file jpeg2000dec.c.

Referenced by get_siz().

enum AVPixelFormat all_pix_fmts[]
static
Initial value:
#define RGB_PIXEL_FORMATS
Definition: jpeg2000dec.c:227
#define YUV_PIXEL_FORMATS
Definition: jpeg2000dec.c:229
#define XYZ_PIXEL_FORMATS
Definition: jpeg2000dec.c:240
#define GRAY_PIXEL_FORMATS
Definition: jpeg2000dec.c:228

Definition at line 247 of file jpeg2000dec.c.

Referenced by get_siz().

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 },
}
#define NULL
Definition: coverity.c:32
#define OFFSET(x)
Definition: jpeg2000dec.c:2134
#define JPEG2000_MAX_RESLEVELS
Definition: jpeg2000.h:71
#define VD
Definition: jpeg2000dec.c:2135

Definition at line 2137 of file jpeg2000dec.c.

const AVProfile profiles[]
static
Initial value:
= {
{ FF_PROFILE_JPEG2000_CSTREAM_RESTRICTION_0, "JPEG 2000 codestream restriction 0" },
{ FF_PROFILE_JPEG2000_CSTREAM_RESTRICTION_1, "JPEG 2000 codestream restriction 1" },
{ FF_PROFILE_JPEG2000_CSTREAM_NO_RESTRICTION, "JPEG 2000 no codestream restrictions" },
{ FF_PROFILE_JPEG2000_DCINEMA_2K, "JPEG 2000 digital cinema 2K" },
{ FF_PROFILE_JPEG2000_DCINEMA_4K, "JPEG 2000 digital cinema 4K" },
}
#define FF_PROFILE_JPEG2000_CSTREAM_NO_RESTRICTION
Definition: avcodec.h:3185
#define FF_PROFILE_JPEG2000_CSTREAM_RESTRICTION_1
Definition: avcodec.h:3184
#define FF_PROFILE_UNKNOWN
Definition: avcodec.h:3116
#define FF_PROFILE_JPEG2000_CSTREAM_RESTRICTION_0
Definition: avcodec.h:3183
#define FF_PROFILE_JPEG2000_DCINEMA_4K
Definition: avcodec.h:3187
#define FF_PROFILE_JPEG2000_DCINEMA_2K
Definition: avcodec.h:3186

Definition at line 2143 of file jpeg2000dec.c.

const AVClass jpeg2000_class
static
Initial value:
= {
.class_name = "jpeg2000",
.item_name = av_default_item_name,
.option = options,
}
#define LIBAVUTIL_VERSION_INT
Definition: version.h:62
av_default_item_name
static const AVOption options[]
Definition: jpeg2000dec.c:2137

Definition at line 2152 of file jpeg2000dec.c.

AVCodec ff_jpeg2000_decoder
Initial value:
= {
.name = "jpeg2000",
.long_name = NULL_IF_CONFIG_SMALL("JPEG 2000"),
.priv_data_size = sizeof(Jpeg2000DecoderContext),
.priv_class = &jpeg2000_class,
.max_lowres = 5,
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static av_cold int jpeg2000_decode_init(AVCodecContext *avctx)
Definition: jpeg2000dec.c:2048
static int jpeg2000_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: jpeg2000dec.c:2057
static av_cold void init_static_data(void)
Definition: dsddec.c:82
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:175
#define AV_CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
Definition: avcodec.h:920
static const AVClass jpeg2000_class
Definition: jpeg2000dec.c:2152
static av_cold void jpeg2000_init_static_data(AVCodec *codec)
Definition: jpeg2000dec.c:2128
static const AVProfile profiles[]
Definition: jpeg2000dec.c:2143
static int decode(AVCodecContext *avctx, void *data, int *got_sub, AVPacket *avpkt)
Definition: ccaption_dec.c:523
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:857

Definition at line 2159 of file jpeg2000dec.c.