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

kviewshell

DjVuToPS.cpp File Reference

#include "DjVuToPS.h"
#include "IFFByteStream.h"
#include "BSByteStream.h"
#include "DjVuImage.h"
#include "DjVuText.h"
#include "DataPool.h"
#include "IW44Image.h"
#include "JB2Image.h"
#include "GBitmap.h"
#include "GPixmap.h"
#include "debug.h"
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <math.h>

Include dependency graph for DjVuToPS.cpp:

Go to the source code of this file.


Defines

#define GRAY(r, g, b)   (((r)*20+(g)*32+(b)*12)/64)

Functions

static unsigned char * ASCII85_encode (unsigned char *dst, const unsigned char *src_start, const unsigned char *src_end)
static void booklet_order (GList< int > &pages, int smax)
static int compute_red (int w, int h, int rw, int rh)
static GP< ByteStream > get_anno (GP< DjVuFile > f)
static void get_anno_sub (IFFByteStream &iff, IFFByteStream &out)
static GP< GPixmap > get_bg_pixmap (GP< DjVuImage > dimg, const GRect &rect)
static int get_bg_red (GP< DjVuImage > dimg)
static GP< DjVuTXT > get_text (GP< DjVuFile > file)
static void print_ps_string (const char *data, int length, ByteStream &out)
static void print_txt (GP< DjVuTXT > txt, ByteStream &out)
static void print_txt_sub (DjVuTXT &txt, DjVuTXT::Zone &zone, ByteStream &out, int &lastx, int &lasty)
static unsigned char * RLE_encode (unsigned char *dst, const unsigned char *src_start, const unsigned char *src_end)
static void write (ByteStream &str, const char *format,...)

Variables

static char bin2hex [256][2]
static const size_t ps_string_size = 15000

Define Documentation

#define GRAY ( r,
g,
b   )     (((r)*20+(g)*32+(b)*12)/64)

Definition at line 658 of file DjVuToPS.cpp.


Function Documentation

static unsigned char* ASCII85_encode ( unsigned char *  dst,
const unsigned char *  src_start,
const unsigned char *  src_end 
) [static]

Definition at line 561 of file DjVuToPS.cpp.

static void booklet_order ( GList< int > &  pages,
int  smax 
) [static]

Definition at line 2452 of file DjVuToPS.cpp.

static int compute_red ( int  w,
int  h,
int  rw,
int  rh 
) [static]

Definition at line 823 of file DjVuToPS.cpp.

static GP<ByteStream> get_anno ( GP< DjVuFile >  f  )  [static]

Definition at line 1858 of file DjVuToPS.cpp.

static void get_anno_sub ( IFFByteStream &  iff,
IFFByteStream &  out 
) [static]

Definition at line 1839 of file DjVuToPS.cpp.

static GP<GPixmap> get_bg_pixmap ( GP< DjVuImage >  dimg,
const GRect &  rect 
) [static]

Definition at line 865 of file DjVuToPS.cpp.

static int get_bg_red ( GP< DjVuImage >  dimg  )  [static]

Definition at line 832 of file DjVuToPS.cpp.

static GP<DjVuTXT> get_text ( GP< DjVuFile >  file  )  [static]

Definition at line 1874 of file DjVuToPS.cpp.

static void print_ps_string ( const char *  data,
int  length,
ByteStream &  out 
) [static]

Definition at line 1899 of file DjVuToPS.cpp.

static void print_txt ( GP< DjVuTXT >  txt,
ByteStream &  out 
) [static]

Definition at line 1977 of file DjVuToPS.cpp.

static void print_txt_sub ( DjVuTXT &  txt,
DjVuTXT::Zone &  zone,
ByteStream &  out,
int &  lastx,
int &  lasty 
) [static]

Definition at line 1925 of file DjVuToPS.cpp.

static unsigned char* RLE_encode ( unsigned char *  dst,
const unsigned char *  src_start,
const unsigned char *  src_end 
) [static]

Definition at line 615 of file DjVuToPS.cpp.

static void write ( ByteStream &  str,
const char *  format,
  ... 
) [static]

Definition at line 294 of file DjVuToPS.cpp.


Variable Documentation

char bin2hex[256][2] [static]

Definition at line 262 of file DjVuToPS.cpp.

const size_t ps_string_size = 15000 [static]

Definition at line 95 of file DjVuToPS.cpp.

kviewshell

Skip menu "kviewshell"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • kviewshell
Generated for API Reference by doxygen 1.5.9
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