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

KImgIO

  • sources
  • kde-4.14
  • kdelibs
  • kimgio
Macros | Functions | Variables
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.

Macros

#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
 

Macro Definition Documentation

#define DEFAULT_RATE   0.10

QImageIO Routines to read/write JPEG2000 images.

copyright (c) 2002 Michael Ritzert micha.nosp@m.el@r.nosp@m.itzer.nosp@m.t.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 298 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 328 of file jp2.cpp.

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

Definition at line 361 of file jp2.cpp.

Variable Documentation

jas_stream_ops_t jas_stream_qiodeviceops
static
Initial value:
= {
qiodevice_read,
qiodevice_write,
qiodevice_seek,
qiodevice_close
}
qiodevice_close
static int qiodevice_close(jas_stream_obj_t *)
Definition: jp2.cpp:145
qiodevice_write
static int qiodevice_write(jas_stream_obj_t *obj, char *buf, int cnt)
Definition: jp2.cpp:112
qiodevice_read
static int qiodevice_read(jas_stream_obj_t *obj, char *buf, int cnt)
Definition: jp2.cpp:106
qiodevice_seek
static long qiodevice_seek(jas_stream_obj_t *obj, long offset, int origin)
Definition: jp2.cpp:118

Definition at line 150 of file jp2.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:49 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KImgIO

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal