#include "libavutil/imgutils.h"
#include "libavutil/pixfmt.h"
#include "avcodec.h"
#include "libavutil/intreadwrite.h"
#include "thread.h"
#include <openjpeg.h>
Go to the source code of this file.
Data Structures | |
| struct | LibOpenJPEGContext |
Defines | |
| #define | OPJ_STATIC |
| #define | JP2_SIG_TYPE 0x6A502020 |
| #define | JP2_SIG_VALUE 0x0D0A870A |
Functions | |
| static enum PixelFormat | check_image_attributes (AVCodecContext *avctx, opj_image_t *image) |
| static int | is_yuva420 (opj_image_t *image) |
| static int | libopenjpeg_ispacked (enum PixelFormat 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 *data_size, AVPacket *avpkt) |
| static av_cold int | libopenjpeg_decode_close (AVCodecContext *avctx) |
Variables | |
| AVCodec | ff_libopenjpeg_decoder |
Definition in file libopenjpegdec.c.
| #define JP2_SIG_TYPE 0x6A502020 |
Definition at line 35 of file libopenjpegdec.c.
| #define JP2_SIG_VALUE 0x0D0A870A |
Definition at line 36 of file libopenjpegdec.c.
| #define OPJ_STATIC |
Definition at line 32 of file libopenjpegdec.c.
| static enum PixelFormat check_image_attributes | ( | AVCodecContext * | avctx, | |
| opj_image_t * | image | |||
| ) | [static] |
| static int is_yuva420 | ( | opj_image_t * | image | ) | [static] |
| static void libopenjpeg_copy_to_packed16 | ( | AVFrame * | picture, | |
| opj_image_t * | image | |||
| ) | [inline, static] |
| static void libopenjpeg_copy_to_packed8 | ( | AVFrame * | picture, | |
| opj_image_t * | image | |||
| ) | [inline, static] |
| static void libopenjpeg_copyto16 | ( | AVFrame * | picture, | |
| opj_image_t * | image | |||
| ) | [inline, static] |
| static void libopenjpeg_copyto8 | ( | AVFrame * | picture, | |
| opj_image_t * | image | |||
| ) | [inline, static] |
| static av_cold int libopenjpeg_decode_close | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 334 of file libopenjpegdec.c.
| static int libopenjpeg_decode_frame | ( | AVCodecContext * | avctx, | |
| void * | data, | |||
| int * | data_size, | |||
| AVPacket * | avpkt | |||
| ) | [static] |
Definition at line 198 of file libopenjpegdec.c.
| static av_cold int libopenjpeg_decode_init | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 180 of file libopenjpegdec.c.
| static av_cold int libopenjpeg_decode_init_thread_copy | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 190 of file libopenjpegdec.c.
| static int libopenjpeg_ispacked | ( | enum PixelFormat | pix_fmt | ) | [inline, static] |
Initial value:
{
.name = "libopenjpeg",
.type = AVMEDIA_TYPE_VIDEO,
.id = CODEC_ID_JPEG2000,
.priv_data_size = sizeof(LibOpenJPEGContext),
.init = libopenjpeg_decode_init,
.close = libopenjpeg_decode_close,
.decode = libopenjpeg_decode_frame,
.capabilities = CODEC_CAP_DR1 | CODEC_CAP_FRAME_THREADS,
.max_lowres = 5,
.long_name = NULL_IF_CONFIG_SMALL("OpenJPEG based JPEG 2000 decoder"),
.init_thread_copy = ONLY_IF_THREADS_ENABLED(libopenjpeg_decode_init_thread_copy)
}
Definition at line 344 of file libopenjpegdec.c.
1.5.8