Logo Search packages:      
Sourcecode: sam2p version File versions

JPEGSOF0Encode Class Reference

Inheritance diagram for JPEGSOF0Encode:

Encoder GenBuffer::Writable

List of all members.


Detailed Description

by pts@fazekas.hu at Tue Jun 11 16:56:53 CEST 2002 Reads a JPEG Baseline (SOF0) stream on input, and drops everything before the first SOF0 marker. Then writes an SOI marker, the SOF0 marker, and everything after the SOI marker. The last two bytes read must be an EOI marker (//). The first thing to be read must be a SOI marker (/+/). The getJPEGTables() method can be used to retrieve the data read before the SOF0 marker. An SOS marker must be read after SOF0. Also retains some information (hvsamples[0]) from the SOF0 marker. Suitable for reading the output of cjpeg and Ghostscript /FlateEncode. This encoder would be much harder if we were not allowed to read the JPEG stream into memory.

Definition at line 1339 of file appliers.cpp.


Public Member Functions

Writable & format (char const *fmt,...)
Writable & format (slen_t n, char const *fmt,...)
unsigned char getColorSpace () const
unsigned char getHVS () const
SimBuffer::Flat const & getJPEGTables () const
 JPEGSOF0Encode (GenBuffer::Writable &out_)
Writable & operator<< (bool b)
Writable & operator<< (unsigned long n)
Writable & operator<< (unsigned int n)
Writable & operator<< (unsigned short n)
Writable & operator<< (signed long n)
Writable & operator<< (signed int n)
Writable & operator<< (signed short n)
Writable & operator<< (void const *)
Writable & operator<< (char const *)
Writable & operator<< (char c)
Writable & operator<< (GenBuffer const &b)
virtual Writable & vformat (char const *fmt, va_list ap)
virtual Writable & vformat (slen_t n, char const *fmt, va_list ap)
virtual void vi_putcc (char c)
virtual void vi_write (char const *buf, slen_t len)
void write_num (unsigned long n, unsigned zdigits)
void write_num (unsigned long n)
void write_num (signed long n)

Static Public Member Functions

static PSEncoder * newASCII85Encode (GenBuffer::Writable &out_, unsigned maxcpl_)
static PSEncoder * newASCIIHexEncode (GenBuffer::Writable &out_, unsigned maxcpl_)
static PSEncoder * newCCITTFaxEncode (GenBuffer::Writable &out_, slendiff_t K, slen_t Columns, bool EndOfLine=false, bool BlackIs1=false)
static PSEncoder * newDCTEncode (GenBuffer::Writable &out_, slen_t Columns, slen_t Rows, unsigned char Colors, unsigned char quality=75, unsigned char const *HSamples=(unsigned char *) NULLP, unsigned char const *VSamples=(unsigned char *) NULLP, unsigned char(*QuantTables)[64]=0, double QFactor=1.0, unsigned numHuffTables=0, unsigned char **HuffTables=(unsigned char **) NULLP, unsigned char ColorTransform=2)
static PSEncoder * newDCTEncode (GenBuffer::Writable &out_, slen_t Columns, slen_t Rows, unsigned char Colors, unsigned char ColorTransform, SimBuffer::Flat const &other_parameters)
static PSEncoder * newDCTIJGEncode (GenBuffer::Writable &out_, slen_t Columns, slen_t Rows, unsigned char Colors, unsigned char quality)
static PSEncoder * newFlateEncode (GenBuffer::Writable &out_, signed Effort=-1)
static PSEncoder * newLZWEncode (GenBuffer::Writable &out_)
static EncodernewPredictor (GenBuffer::Writable &out_, unsigned char type, unsigned char bpc_, slen_t columns_, unsigned char cpp_)
static PSEncoder * newRunLengthEncode (GenBuffer::Writable &out_, slen_t RecordSize=0)
static void writeFrom (GenBuffer::Writable &out, GenBuffer::Readable &in)
static void writeFrom (GenBuffer::Writable &out, FILE *f)

Static Protected Member Functions

static void iter_write_sub (char const *beg, slen_t len, void *data)

Protected Attributes

SimBuffer::B buf
struct jai_gfxinfo gi
GenBuffer::Writableout

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index