libavcodec/libopenjpeg.c File Reference

JPEG 2000 decoder using libopenjpeg. More...

#include "avcodec.h"
#include "libavutil/intreadwrite.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 int check_image_attributes (opj_image_t *image)
static av_cold int libopenjpeg_decode_init (AVCodecContext *avctx)
static int libopenjpeg_decode_frame (AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size)
static av_cold int libopenjpeg_decode_close (AVCodecContext *avctx)

Variables

AVCodec libopenjpeg_decoder


Detailed Description

JPEG 2000 decoder using libopenjpeg.

Definition in file libopenjpeg.c.


Define Documentation

#define JP2_SIG_TYPE   0x6A502020

Definition at line 32 of file libopenjpeg.c.

Referenced by libopenjpeg_decode_frame().

#define JP2_SIG_VALUE   0x0D0A870A

Definition at line 33 of file libopenjpeg.c.

Referenced by libopenjpeg_decode_frame().

#define OPJ_STATIC

Definition at line 29 of file libopenjpeg.c.


Function Documentation

static int check_image_attributes ( opj_image_t *  image  )  [static]

Definition at line 40 of file libopenjpeg.c.

Referenced by libopenjpeg_decode_frame().

static av_cold int libopenjpeg_decode_close ( AVCodecContext avctx  )  [static]

Definition at line 169 of file libopenjpeg.c.

static int libopenjpeg_decode_frame ( AVCodecContext avctx,
void *  data,
int *  data_size,
const uint8_t *  buf,
int  buf_size 
) [static]

Definition at line 59 of file libopenjpeg.c.

static av_cold int libopenjpeg_decode_init ( AVCodecContext avctx  )  [static]

Definition at line 50 of file libopenjpeg.c.


Variable Documentation

Initial value:

 {
    "libopenjpeg",
    CODEC_TYPE_VIDEO,
    CODEC_ID_JPEG2000,
    sizeof(LibOpenJPEGContext),
    libopenjpeg_decode_init,
    NULL,
    libopenjpeg_decode_close,
    libopenjpeg_decode_frame,
    NULL,
    .long_name = NULL_IF_CONFIG_SMALL("OpenJPEG based JPEG 2000 decoder"),
}

Definition at line 179 of file libopenjpeg.c.


Generated on Fri Oct 26 02:35:43 2012 for FFmpeg by  doxygen 1.5.8