FFmpeg
|
JPEG 2000 decoder using libopenjpeg. More...
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/imgutils.h"
#include "libavutil/pixfmt.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "thread.h"
#include <openjpeg.h>
Go to the source code of this file.
Data Structures | |
struct | LibOpenJPEGContext |
Macros | |
#define | OPJ_STATIC |
#define | JP2_SIG_TYPE 0x6A502020 |
#define | JP2_SIG_VALUE 0x0D0A870A |
#define | RGB_PIXEL_FORMATS 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 |
#define | YUV_PIXEL_FORMATS |
#define | OFFSET(x) offsetof(LibOpenJPEGContext, x) |
#define | VD AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_DECODING_PARAM |
Functions | |
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 av_cold int | libopenjpeg_decode_init_thread_copy (AVCodecContext *avctx) |
static int | libopenjpeg_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) |
static av_cold int | libopenjpeg_decode_close (AVCodecContext *avctx) |
Variables | |
static enum AVPixelFormat | libopenjpeg_rgb_pix_fmts [] = {RGB_PIXEL_FORMATS} |
static enum AVPixelFormat | libopenjpeg_gray_pix_fmts [] = {GRAY_PIXEL_FORMATS} |
static enum AVPixelFormat | libopenjpeg_yuv_pix_fmts [] = {YUV_PIXEL_FORMATS} |
static enum AVPixelFormat | libopenjpeg_all_pix_fmts [] = {RGB_PIXEL_FORMATS,GRAY_PIXEL_FORMATS,YUV_PIXEL_FORMATS} |
static const AVOption | options [] |
class { | |
class_name = "libopenjpeg" | |
item_name = av_default_item_name | |
option = options | |
version = LIBAVUTIL_VERSION_INT | |
}; | |
AVCodec | ff_libopenjpeg_decoder |
JPEG 2000 decoder using libopenjpeg.
Definition in file libopenjpegdec.c.
#define OPJ_STATIC |
Definition at line 27 of file libopenjpegdec.c.
#define JP2_SIG_TYPE 0x6A502020 |
Definition at line 43 of file libopenjpegdec.c.
Referenced by libopenjpeg_decode_frame().
#define JP2_SIG_VALUE 0x0D0A870A |
Definition at line 44 of file libopenjpegdec.c.
Referenced by libopenjpeg_decode_frame().
#define RGB_PIXEL_FORMATS AV_PIX_FMT_RGB24,AV_PIX_FMT_RGBA,AV_PIX_FMT_RGB48,AV_PIX_FMT_RGBA64 |
Definition at line 48 of file libopenjpegdec.c.
#define GRAY_PIXEL_FORMATS AV_PIX_FMT_GRAY8,AV_PIX_FMT_GRAY8A,AV_PIX_FMT_GRAY16 |
Definition at line 49 of file libopenjpegdec.c.
#define YUV_PIXEL_FORMATS |
Definition at line 50 of file libopenjpegdec.c.
#define OFFSET | ( | x | ) | offsetof(LibOpenJPEGContext, x) |
Definition at line 407 of file libopenjpegdec.c.
#define VD AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_DECODING_PARAM |
Definition at line 408 of file libopenjpegdec.c.
|
inlinestatic |
Definition at line 74 of file libopenjpegdec.c.
Referenced by libopenjpeg_decode_frame(), and libopenjpeg_guess_pix_fmt().
|
inlinestatic |
Definition at line 103 of file libopenjpegdec.c.
Referenced by libopenjpeg_decode_frame().
|
inlinestatic |
Definition at line 136 of file libopenjpegdec.c.
Referenced by libopenjpeg_decode_frame().
Definition at line 152 of file libopenjpegdec.c.
Referenced by libopenjpeg_decode_frame().
Definition at line 166 of file libopenjpegdec.c.
Referenced by libopenjpeg_decode_frame().
Definition at line 184 of file libopenjpegdec.c.
Referenced by libopenjpeg_decode_frame().
Definition at line 202 of file libopenjpegdec.c.
Referenced by libopenjpeg_decode_frame().
|
static |
Definition at line 219 of file libopenjpegdec.c.
|
static |
Definition at line 229 of file libopenjpegdec.c.
|
static |
Definition at line 237 of file libopenjpegdec.c.
|
static |
Definition at line 398 of file libopenjpegdec.c.
|
static |
Definition at line 62 of file libopenjpegdec.c.
Referenced by libopenjpeg_guess_pix_fmt().
|
static |
Definition at line 63 of file libopenjpegdec.c.
Referenced by libopenjpeg_guess_pix_fmt().
|
static |
Definition at line 64 of file libopenjpegdec.c.
Referenced by libopenjpeg_guess_pix_fmt().
|
static |
Definition at line 65 of file libopenjpegdec.c.
Referenced by libopenjpeg_guess_pix_fmt().
|
static |
Definition at line 410 of file libopenjpegdec.c.
class_name = "libopenjpeg" |
Definition at line 416 of file libopenjpegdec.c.
item_name = av_default_item_name |
Definition at line 417 of file libopenjpegdec.c.
option = options |
Definition at line 418 of file libopenjpegdec.c.
version = LIBAVUTIL_VERSION_INT |
Definition at line 419 of file libopenjpegdec.c.
const { ... } |
AVCodec ff_libopenjpeg_decoder |
Definition at line 422 of file libopenjpegdec.c.