Go to the source code of this file.
|
static void | error_callback (const char *msg, void *data) |
|
static void | warning_callback (const char *msg, void *data) |
|
static void | info_callback (const char *msg, void *data) |
|
static OPJ_SIZE_T | stream_read (void *out_buffer, OPJ_SIZE_T nb_bytes, void *user_data) |
|
static OPJ_OFF_T | stream_skip (OPJ_OFF_T nb_bytes, void *user_data) |
|
static OPJ_BOOL | stream_seek (OPJ_OFF_T nb_bytes, void *user_data) |
|
static int | libopenjpeg_matches_pix_fmt (const opj_image_t *image, enum AVPixelFormat pix_fmt) |
|
static enum AVPixelFormat | libopenjpeg_guess_pix_fmt (const opj_image_t *image) |
|
static int | libopenjpeg_ispacked (enum AVPixelFormat pix_fmt) |
|
static void | libopenjpeg_copy_to_packed8 (AVFrame *picture, opj_image_t *image) |
|
static void | libopenjpeg_copy_to_packed16 (AVFrame *picture, opj_image_t *image) |
|
static void | libopenjpeg_copyto8 (AVFrame *picture, opj_image_t *image) |
|
static void | libopenjpeg_copyto16 (AVFrame *picture, opj_image_t *image) |
|
static av_cold int | libopenjpeg_decode_init (AVCodecContext *avctx) |
|
static int | libopenjpeg_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) |
|
JPEG 2000 decoder using libopenjpeg
Definition in file libopenjpegdec.c.
◆ JP2_SIG_TYPE
#define JP2_SIG_TYPE 0x6A502020 |
◆ JP2_SIG_VALUE
#define JP2_SIG_VALUE 0x0D0A870A |
◆ RGB_PIXEL_FORMATS
#define RGB_PIXEL_FORMATS |
◆ GRAY_PIXEL_FORMATS
#define GRAY_PIXEL_FORMATS |
◆ YUV_PIXEL_FORMATS
#define YUV_PIXEL_FORMATS |
◆ XYZ_PIXEL_FORMATS
◆ OFFSET
◆ VD
◆ error_callback()
static void error_callback |
( |
const char * |
msg, |
|
|
void * |
data |
|
) |
| |
|
static |
◆ warning_callback()
static void warning_callback |
( |
const char * |
msg, |
|
|
void * |
data |
|
) |
| |
|
static |
◆ info_callback()
static void info_callback |
( |
const char * |
msg, |
|
|
void * |
data |
|
) |
| |
|
static |
◆ stream_read()
static OPJ_SIZE_T stream_read |
( |
void * |
out_buffer, |
|
|
OPJ_SIZE_T |
nb_bytes, |
|
|
void * |
user_data |
|
) |
| |
|
static |
◆ stream_skip()
static OPJ_OFF_T stream_skip |
( |
OPJ_OFF_T |
nb_bytes, |
|
|
void * |
user_data |
|
) |
| |
|
static |
◆ stream_seek()
static OPJ_BOOL stream_seek |
( |
OPJ_OFF_T |
nb_bytes, |
|
|
void * |
user_data |
|
) |
| |
|
static |
◆ libopenjpeg_matches_pix_fmt()
static int libopenjpeg_matches_pix_fmt |
( |
const opj_image_t * |
image, |
|
|
enum AVPixelFormat |
pix_fmt |
|
) |
| |
|
inlinestatic |
◆ libopenjpeg_guess_pix_fmt()
static enum AVPixelFormat libopenjpeg_guess_pix_fmt |
( |
const opj_image_t * |
image | ) |
|
|
inlinestatic |
◆ libopenjpeg_ispacked()
◆ libopenjpeg_copy_to_packed8()
static void libopenjpeg_copy_to_packed8 |
( |
AVFrame * |
picture, |
|
|
opj_image_t * |
image |
|
) |
| |
|
inlinestatic |
◆ libopenjpeg_copy_to_packed16()
static void libopenjpeg_copy_to_packed16 |
( |
AVFrame * |
picture, |
|
|
opj_image_t * |
image |
|
) |
| |
|
inlinestatic |
◆ libopenjpeg_copyto8()
static void libopenjpeg_copyto8 |
( |
AVFrame * |
picture, |
|
|
opj_image_t * |
image |
|
) |
| |
|
inlinestatic |
◆ libopenjpeg_copyto16()
static void libopenjpeg_copyto16 |
( |
AVFrame * |
picture, |
|
|
opj_image_t * |
image |
|
) |
| |
|
inlinestatic |
◆ libopenjpeg_decode_init()
◆ libopenjpeg_decode_frame()
◆ libopenjpeg_rgb_pix_fmts
◆ libopenjpeg_gray_pix_fmts
◆ libopenjpeg_yuv_pix_fmts
◆ libopenjpeg_all_pix_fmts
◆ options
Initial value:= {
{ "lowqual", "Limit the number of layers used for decoding",
}
Definition at line 492 of file libopenjpegdec.c.
◆ openjpeg_class
Initial value:= {
.class_name = "libopenjpeg",
}
Definition at line 498 of file libopenjpegdec.c.
◆ ff_libopenjpeg_decoder
Initial value:= {
.name = "libopenjpeg",
.max_lowres = 31,
.wrapper_name = "libopenjpeg",
}
Definition at line 505 of file libopenjpegdec.c.
#define AV_PIX_FMT_YUVA422P16
static av_cold int init(AVCodecContext *avctx)
@ AV_PIX_FMT_YA8
8 bits gray, 8 bits alpha
#define AV_PIX_FMT_YUVA422P9
#define AV_PIX_FMT_YUVA422P10
#define XYZ_PIXEL_FORMATS
static av_cold int libopenjpeg_decode_init(AVCodecContext *avctx)
static const AVOption options[]
#define AV_PIX_FMT_YUVA444P16
#define AV_PIX_FMT_YUV422P9
#define AV_PIX_FMT_YUV444P10
#define AV_PIX_FMT_YUV422P16
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
@ AV_PIX_FMT_YUVA420P
planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples)
#define AV_PIX_FMT_YUV444P16
#define AV_PIX_FMT_GRAY14
#define GRAY_PIXEL_FORMATS
#define RGB_PIXEL_FORMATS
@ AV_PIX_FMT_RGBA
packed RGBA 8:8:8:8, 32bpp, RGBARGBA...
#define AV_CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
#define AV_PIX_FMT_RGBA64
#define LIBAVUTIL_VERSION_INT
const char * av_default_item_name(void *ptr)
Return the context name.
#define AV_PIX_FMT_YUV422P10
@ AV_PIX_FMT_GRAY8
Y , 8bpp.
@ AV_PIX_FMT_RGB24
packed RGB 8:8:8, 24bpp, RGBRGB...
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static const AVClass openjpeg_class
#define AV_PIX_FMT_YUV422P12
#define AV_PIX_FMT_YUV444P12
static int libopenjpeg_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
@ AV_PIX_FMT_YUVA444P
planar YUV 4:4:4 32bpp, (1 Cr & Cb sample per 1x1 Y & A samples)
#define AV_PIX_FMT_YUVA444P10
#define AV_PIX_FMT_YUV444P9
#define AV_PIX_FMT_YUVA444P9
#define AV_PIX_FMT_YUV422P14
@ AV_PIX_FMT_YUV444P
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
@ AV_PIX_FMT_YUV422P
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
@ AV_PIX_FMT_YUV411P
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)
@ AV_PIX_FMT_YUV410P
planar YUV 4:1:0, 9bpp, (1 Cr & Cb sample per 4x4 Y samples)
#define AV_PIX_FMT_YUV444P14
#define AV_PIX_FMT_GRAY12
#define YUV_PIXEL_FORMATS
@ AV_PIX_FMT_YUVA422P
planar YUV 4:2:2 24bpp, (1 Cr & Cb sample per 2x1 Y & A samples)