FFmpeg
4.0
|
JPEG 2000 decoder using libopenjpeg. More...
#include "libavutil/common.h"
#include "libavutil/imgutils.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/opt.h"
#include "libavutil/pixfmt.h"
#include "avcodec.h"
#include "internal.h"
#include "thread.h"
#include <openjpeg.h>
Go to the source code of this file.
Data Structures | |
struct | LibOpenJPEGContext |
struct | BufferReader |
Macros | |
#define | JP2_SIG_TYPE 0x6A502020 |
#define | JP2_SIG_VALUE 0x0D0A870A |
#define | RGB_PIXEL_FORMATS |
#define | GRAY_PIXEL_FORMATS |
#define | YUV_PIXEL_FORMATS |
#define | XYZ_PIXEL_FORMATS AV_PIX_FMT_XYZ12 |
#define | OFFSET(x) offsetof(LibOpenJPEGContext, x) |
#define | VD AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_DECODING_PARAM |
Functions | |
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) |
Variables | |
static enum AVPixelFormat | libopenjpeg_rgb_pix_fmts [] |
static enum AVPixelFormat | libopenjpeg_gray_pix_fmts [] |
static enum AVPixelFormat | libopenjpeg_yuv_pix_fmts [] |
static enum AVPixelFormat | libopenjpeg_all_pix_fmts [] |
static const AVOption | options [] |
static const AVClass | openjpeg_class |
AVCodec | ff_libopenjpeg_decoder |
JPEG 2000 decoder using libopenjpeg.
Definition in file libopenjpegdec.c.
#define JP2_SIG_TYPE 0x6A502020 |
Definition at line 39 of file libopenjpegdec.c.
Referenced by libopenjpeg_decode_frame().
#define JP2_SIG_VALUE 0x0D0A870A |
Definition at line 40 of file libopenjpegdec.c.
Referenced by libopenjpeg_decode_frame().
#define RGB_PIXEL_FORMATS |
Definition at line 44 of file libopenjpegdec.c.
#define GRAY_PIXEL_FORMATS |
Definition at line 47 of file libopenjpegdec.c.
#define YUV_PIXEL_FORMATS |
Definition at line 50 of file libopenjpegdec.c.
#define XYZ_PIXEL_FORMATS AV_PIX_FMT_XYZ12 |
Definition at line 62 of file libopenjpegdec.c.
#define OFFSET | ( | x | ) | offsetof(LibOpenJPEGContext, x) |
Definition at line 488 of file libopenjpegdec.c.
#define VD AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_DECODING_PARAM |
Definition at line 489 of file libopenjpegdec.c.
Definition at line 83 of file libopenjpegdec.c.
Referenced by libopenjpeg_decode_frame().
Definition at line 88 of file libopenjpegdec.c.
Referenced by libopenjpeg_decode_frame().
Definition at line 93 of file libopenjpegdec.c.
Referenced by libopenjpeg_decode_frame().
Definition at line 104 of file libopenjpegdec.c.
Referenced by libopenjpeg_decode_frame().
|
static |
Definition at line 121 of file libopenjpegdec.c.
Referenced by libopenjpeg_decode_frame().
|
static |
Definition at line 146 of file libopenjpegdec.c.
Referenced by libopenjpeg_decode_frame().
|
inlinestatic |
Definition at line 156 of file libopenjpegdec.c.
Referenced by libopenjpeg_decode_frame(), and libopenjpeg_guess_pix_fmt().
|
inlinestatic |
Definition at line 193 of file libopenjpegdec.c.
Referenced by libopenjpeg_decode_frame().
|
inlinestatic |
Definition at line 225 of file libopenjpegdec.c.
Referenced by libopenjpeg_decode_frame().
Definition at line 240 of file libopenjpegdec.c.
Referenced by libopenjpeg_decode_frame().
Definition at line 252 of file libopenjpegdec.c.
Referenced by libopenjpeg_decode_frame().
Definition at line 270 of file libopenjpegdec.c.
Referenced by libopenjpeg_decode_frame().
Definition at line 288 of file libopenjpegdec.c.
Referenced by libopenjpeg_decode_frame().
|
static |
Definition at line 311 of file libopenjpegdec.c.
|
static |
Definition at line 319 of file libopenjpegdec.c.
|
static |
Definition at line 64 of file libopenjpegdec.c.
Referenced by libopenjpeg_guess_pix_fmt().
|
static |
Definition at line 67 of file libopenjpegdec.c.
Referenced by libopenjpeg_guess_pix_fmt().
|
static |
Definition at line 70 of file libopenjpegdec.c.
Referenced by libopenjpeg_guess_pix_fmt().
|
static |
Definition at line 73 of file libopenjpegdec.c.
Referenced by libopenjpeg_guess_pix_fmt().
|
static |
Definition at line 491 of file libopenjpegdec.c.
|
static |
Definition at line 497 of file libopenjpegdec.c.
AVCodec ff_libopenjpeg_decoder |
Definition at line 504 of file libopenjpegdec.c.