• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KImgIO

jp2.cpp File Reference

#include "jp2.h"
#include <config.h>
#include <QImage>
#include <QVariant>
#include <QTextStream>
#include <jasper/jasper.h>

Include dependency graph for jp2.cpp:

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.

#define MAXCMPTS   256

Definition at line 32 of file jp2.cpp.


Function Documentation

static bool convert_colorspace ( gs_t &  gs  )  [static]

Definition at line 207 of file jp2.cpp.

static jas_image_t* create_image ( const QImage &  qi  )  [static]

Definition at line 271 of file jp2.cpp.

static jas_stream_t* jas_stream_create (  )  [static]

Definition at line 38 of file jp2.cpp.

static void jas_stream_initbuf ( jas_stream_t *  stream,
int  bufmode,
char *  buf,
int  bufsize 
) [static]

Definition at line 62 of file jp2.cpp.

static jas_stream_t* jas_stream_qiodevice ( QIODevice *  iodevice  )  [static]

Definition at line 157 of file jp2.cpp.

static int qiodevice_close ( jas_stream_obj_t *   )  [static]

Definition at line 145 of file jp2.cpp.

static int qiodevice_read ( jas_stream_obj_t *  obj,
char *  buf,
int  cnt 
) [static]

Definition at line 106 of file jp2.cpp.

static long qiodevice_seek ( jas_stream_obj_t *  obj,
long  offset,
int  origin 
) [static]

Definition at line 118 of file jp2.cpp.

static int qiodevice_write ( jas_stream_obj_t *  obj,
char *  buf,
int  cnt 
) [static]

Definition at line 112 of file jp2.cpp.

static jas_image_t* read_image ( QIODevice *  io  )  [static]

Definition at line 191 of file jp2.cpp.

static bool render_view ( gs_t &  gs,
QImage *  outImage 
) [static]

Definition at line 220 of file jp2.cpp.

static bool write_components ( jas_image_t *  ji,
const QImage &  qi 
) [static]

Definition at line 301 of file jp2.cpp.

static bool write_image ( const QImage &  image,
QIODevice *  io,
int  quality 
) [static]

Definition at line 334 of file jp2.cpp.


Variable Documentation

jas_stream_ops_t jas_stream_qiodeviceops [static]

Initial value:

 {
        qiodevice_read,
        qiodevice_write,
        qiodevice_seek,
        qiodevice_close
}

Definition at line 150 of file jp2.cpp.

KImgIO

Skip menu "KImgIO"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal