FFmpeg
|
libopenjpegdec.c
Go to the documentation of this file.
78 static inline int libopenjpeg_matches_pix_fmt(const opj_image_t *image, enum AVPixelFormat pix_fmt)
391 { "lowqual", "Limit the number of layers used for decoding", OFFSET(lowqual), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX, VD },
static void libopenjpeg_copy_to_packed16(AVFrame *picture, opj_image_t *image)
Definition: libopenjpegdec.c:170
static int libopenjpeg_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: libopenjpegdec.c:231
static int libopenjpeg_ispacked(enum AVPixelFormat pix_fmt)
Definition: libopenjpegdec.c:140
const AVPixFmtDescriptor * av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
Definition: pixdesc.c:1778
Definition: pixfmt.h:67
misc image utilities
Definition: opt.h:222
void avcodec_set_dimensions(AVCodecContext *s, int width, int height)
Definition: libavcodec/utils.c:177
int bits_per_raw_sample
Bits per sample/pixel of internal libavcodec pixel/sample format.
Definition: libavcodec/avcodec.h:2553
static enum AVPixelFormat libopenjpeg_gray_pix_fmts[]
Definition: libopenjpegdec.c:65
uint8_t log2_chroma_w
Amount to shift the luma width right to find the chroma width.
Definition: pixdesc.h:66
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
Definition: log.h:55
AVComponentDescriptor comp[4]
Parameters that describe how pixels are packed.
Definition: pixdesc.h:86
AVOptions.
static av_cold int libopenjpeg_decode_init(AVCodecContext *avctx)
Definition: libopenjpegdec.c:223
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: libavcodec/avcodec.h:743
static void libopenjpeg_copyto8(AVFrame *picture, opj_image_t *image)
Definition: libopenjpegdec.c:188
static void libopenjpeg_copyto16(AVFrame *picture, opj_image_t *image)
Definition: libopenjpegdec.c:206
uint8_t log2_chroma_h
Amount to shift the luma height right to find the chroma height.
Definition: pixdesc.h:75
Multithreading support functions.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: libavutil/internal.h:123
static enum AVPixelFormat libopenjpeg_all_pix_fmts[]
Definition: libopenjpegdec.c:67
external API header
static void libopenjpeg_copy_to_packed8(AVFrame *picture, opj_image_t *image)
Definition: libopenjpegdec.c:156
int av_image_check_size(unsigned int w, unsigned int h, int log_offset, void *log_ctx)
Check if the given dimension of an image is valid, meaning that all bytes of the image can be address...
Definition: imgutils.c:231
static enum AVPixelFormat libopenjpeg_yuv_pix_fmts[]
Definition: libopenjpegdec.c:66
Definition: thread.h:35
Definition: libopenjpegdec.c:72
int linesize[AV_NUM_DATA_POINTERS]
For video, size in bytes of each picture line.
Definition: frame.h:101
Descriptor that unambiguously describes how the bits of a pixel are stored in the up to 4 data planes...
Definition: pixdesc.h:55
static enum AVPixelFormat libopenjpeg_guess_pix_fmt(const opj_image_t *image)
Definition: libopenjpegdec.c:107
static enum AVPixelFormat libopenjpeg_rgb_pix_fmts[]
Definition: libopenjpegdec.c:64
uint16_t step_minus1
Number of elements between 2 horizontally consecutive pixels minus 1.
Definition: pixdesc.h:35
int ff_thread_get_buffer(AVCodecContext *avctx, ThreadFrame *f, int flags)
Wrapper around get_buffer() for frame-multithreaded codecs.
Definition: pthread.c:1066
Definition: libavcodec/avcodec.h:191
common internal and external API header
#define CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
Definition: libavcodec/avcodec.h:810
static int libopenjpeg_matches_pix_fmt(const opj_image_t *image, enum AVPixelFormat pix_fmt)
Definition: libopenjpegdec.c:78
pixel format definitions
Definition: avutil.h:143
static int decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: crystalhd.c:868
Generated on Mon Nov 18 2024 06:51:56 for FFmpeg by 1.8.11