jp2.cpp File Reference
#include "jp2.h"
#include <config.h>
#include <QImage>
#include <QVariant>
#include <QTextStream>
#include <jasper/jasper.h>
Go to the source code of this file.
|
Defines |
#define | DEFAULT_RATE 0.10 |
#define | MAXCMPTS 256 |
Functions |
static bool | convert_colorspace (gs_t &gs) |
static jas_image_t * | create_image (const QImage &qi) |
static jas_stream_t * | jas_stream_create () |
static void | jas_stream_initbuf (jas_stream_t *stream, int bufmode, char *buf, int bufsize) |
static jas_stream_t * | jas_stream_qiodevice (QIODevice *iodevice) |
static int | qiodevice_close (jas_stream_obj_t *) |
static int | qiodevice_read (jas_stream_obj_t *obj, char *buf, int cnt) |
static long | qiodevice_seek (jas_stream_obj_t *obj, long offset, int origin) |
static int | qiodevice_write (jas_stream_obj_t *obj, char *buf, int cnt) |
static jas_image_t * | read_image (QIODevice *io) |
static bool | render_view (gs_t &gs, QImage *outImage) |
static bool | write_components (jas_image_t *ji, const QImage &qi) |
static bool | write_image (const QImage &image, QIODevice *io, int quality) |
Variables |
static jas_stream_ops_t | jas_stream_qiodeviceops |
Define Documentation
#define DEFAULT_RATE 0.10 |
QImageIO Routines to read/write JPEG2000 images.
copyright (c) 2002 Michael Ritzert <michael@ritzert.de>
This library is distributed under the conditions of the GNU LGPL.
Definition at line 31 of file jp2.cpp.
Function Documentation
static bool convert_colorspace |
( |
gs_t & |
gs |
) |
[static] |
static jas_image_t* create_image |
( |
const QImage & |
qi |
) |
[static] |
static jas_stream_t* jas_stream_create |
( |
|
) |
[static] |
static void jas_stream_initbuf |
( |
jas_stream_t * |
stream, |
|
|
int |
bufmode, |
|
|
char * |
buf, |
|
|
int |
bufsize | |
|
) |
| | [static] |
static jas_stream_t* jas_stream_qiodevice |
( |
QIODevice * |
iodevice |
) |
[static] |
static int qiodevice_close |
( |
jas_stream_obj_t * |
|
) |
[static] |
static int qiodevice_read |
( |
jas_stream_obj_t * |
obj, |
|
|
char * |
buf, |
|
|
int |
cnt | |
|
) |
| | [static] |
static long qiodevice_seek |
( |
jas_stream_obj_t * |
obj, |
|
|
long |
offset, |
|
|
int |
origin | |
|
) |
| | [static] |
static int qiodevice_write |
( |
jas_stream_obj_t * |
obj, |
|
|
char * |
buf, |
|
|
int |
cnt | |
|
) |
| | [static] |
static jas_image_t* read_image |
( |
QIODevice * |
io |
) |
[static] |
static bool render_view |
( |
gs_t & |
gs, |
|
|
QImage * |
outImage | |
|
) |
| | [static] |
static bool write_components |
( |
jas_image_t * |
ji, |
|
|
const QImage & |
qi | |
|
) |
| | [static] |
static bool write_image |
( |
const QImage & |
image, |
|
|
QIODevice * |
io, |
|
|
int |
quality | |
|
) |
| | [static] |
Variable Documentation
Initial value:
Definition at line 150 of file jp2.cpp.