FFmpeg
|
JPEG 2000 encoder using libopenjpeg. More...
#include "libavutil/avassert.h"
#include "libavutil/common.h"
#include "libavutil/imgutils.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "internal.h"
#include <openjpeg.h>
Go to the source code of this file.
Data Structures | |
struct | LibOpenJPEGContext |
Macros | |
#define | OPENJPEG_MAJOR_VERSION 1 |
#define | OPJ(x) x |
#define | OFFSET(x) offsetof(LibOpenJPEGContext, x) |
#define | VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_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 void | cinema_parameters (opj_cparameters_t *p) |
static opj_image_t * | mj2_create_image (AVCodecContext *avctx, opj_cparameters_t *parameters) |
static av_cold int | libopenjpeg_encode_init (AVCodecContext *avctx) |
static int | libopenjpeg_copy_packed8 (AVCodecContext *avctx, const AVFrame *frame, opj_image_t *image) |
static int | libopenjpeg_copy_packed12 (AVCodecContext *avctx, const AVFrame *frame, opj_image_t *image) |
static int | libopenjpeg_copy_packed16 (AVCodecContext *avctx, const AVFrame *frame, opj_image_t *image) |
static int | libopenjpeg_copy_unpacked8 (AVCodecContext *avctx, const AVFrame *frame, opj_image_t *image) |
static int | libopenjpeg_copy_unpacked16 (AVCodecContext *avctx, const AVFrame *frame, opj_image_t *image) |
static int | libopenjpeg_encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet) |
static av_cold int | libopenjpeg_encode_close (AVCodecContext *avctx) |
Variables | |
static const AVOption | options [] |
static const AVClass | openjpeg_class |
AVCodec | ff_libopenjpeg_encoder |
JPEG 2000 encoder using libopenjpeg.
Definition in file libopenjpegenc.c.
#define OPENJPEG_MAJOR_VERSION 1 |
Definition at line 49 of file libopenjpegenc.c.
#define OPJ | ( | x | ) | x |
Definition at line 50 of file libopenjpegenc.c.
Referenced by cinema_parameters(), and mj2_create_image().
#define OFFSET | ( | x | ) | offsetof(LibOpenJPEGContext, x) |
Definition at line 820 of file libopenjpegenc.c.
#define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Definition at line 821 of file libopenjpegenc.c.
Definition at line 73 of file libopenjpegenc.c.
Referenced by libopenjpeg_encode_frame().
Definition at line 78 of file libopenjpegenc.c.
Referenced by libopenjpeg_encode_frame().
Definition at line 83 of file libopenjpegenc.c.
Referenced by libopenjpeg_encode_frame().
|
static |
Definition at line 160 of file libopenjpegenc.c.
Referenced by libopenjpeg_encode_init().
|
static |
Definition at line 197 of file libopenjpegenc.c.
Referenced by libopenjpeg_encode_frame(), and libopenjpeg_encode_init().
|
static |
Definition at line 302 of file libopenjpegenc.c.
|
static |
Definition at line 393 of file libopenjpegenc.c.
Referenced by libopenjpeg_encode_frame().
|
static |
Definition at line 433 of file libopenjpegenc.c.
Referenced by libopenjpeg_encode_frame().
|
static |
Definition at line 472 of file libopenjpegenc.c.
Referenced by libopenjpeg_encode_frame().
|
static |
Definition at line 512 of file libopenjpegenc.c.
Referenced by libopenjpeg_encode_frame().
|
static |
Definition at line 553 of file libopenjpegenc.c.
Referenced by libopenjpeg_encode_frame().
|
static |
Definition at line 596 of file libopenjpegenc.c.
|
static |
Definition at line 809 of file libopenjpegenc.c.
|
static |
Definition at line 822 of file libopenjpegenc.c.
|
static |
Definition at line 849 of file libopenjpegenc.c.
AVCodec ff_libopenjpeg_encoder |
Definition at line 856 of file libopenjpegenc.c.