Gorgon Game Engine
Gorgon::Encoding Namespace Reference

Namespaces

 flac
 
 jpg
 
 png
 

Classes

class  FLAC
 Provides FLAC encoding support. More...
 
class  FlacStream
 
class  HTTPQuery
 Represents and HTTP query that might be send to page using POST or embedded in URI. More...
 
class  JPEG
 
class  LZMA
 This class allows encoding and decoding data using LZMA compression algorithm. More...
 
class  PNG
 Encodes or decodes PNG compression. More...
 
class  URI
 Represents an unfolded URI. More...
 
class  URIError
 This error is thrown while URI decoding and building. More...
 
class  URIPath
 Helps to manage URIPaths. More...
 

Functions

void decode_error (const FLAC__StreamDecoder *, FLAC__StreamDecoderErrorStatus, void *)
 
FLAC__StreamDecoderWriteStatus decode_write (const FLAC__StreamDecoder *, const FLAC__Frame *frame, const FLAC__int32 *const buffer[], void *client_data)
 
Graphics::ColorMode jpgtocolormode (const struct jpeg_decompress_struct &cinfo)
 
void my_error_exit (j_common_ptr cinfo)
 
void my_output_message (j_common_ptr cinfo)
 
std::ostream & operator<< (std::ostream &out, const HTTPQuery &query)
 
std::ostream & operator<< (std::ostream &out, const URI &uri)
 
std::ostream & operator<< (std::ostream &out, const URIPath &path)
 
std::string PCTEncode (const std::string &str, const std::set< char > &allowed, bool allowalpha=true, bool allownum=true)
 Customized percentage encoding. More...
 
FLAC__StreamDecoderReadStatus stream_decode_read (const FLAC__StreamDecoder *, FLAC__byte buffer[], size_t *bytes, void *client_data)
 
FLAC__StreamEncoderSeekStatus stream_encode_seek (const FLAC__StreamEncoder *, FLAC__uint64 absolute_byte_offset, void *client_data)
 
FLAC__StreamEncoderTellStatus stream_encode_tell (const FLAC__StreamEncoder *, FLAC__uint64 *absolute_byte_offset, void *client_data)
 
FLAC__StreamEncoderWriteStatus stream_encode_write (const FLAC__StreamEncoder *, const FLAC__byte buffer[], size_t bytes, unsigned, unsigned, void *client_data)
 
std::string URIDecode (const std::string &str)
 Decodes a given URI string according to RFC 3986. May throw URIError. More...
 
std::string URIEncode (const std::string &str)
 Encodes a given URI string according to RFC 3986. More...
 
FLAC__StreamDecoderReadStatus vector_decode_read (const FLAC__StreamDecoder *, FLAC__byte buffer[], size_t *bytes, void *client_data)
 
FLAC__StreamEncoderSeekStatus vector_encode_seek (const FLAC__StreamEncoder *, FLAC__uint64 absolute_byte_offset, void *client_data)
 
FLAC__StreamEncoderTellStatus vector_encode_tell (const FLAC__StreamEncoder *, FLAC__uint64 *absolute_byte_offset, void *client_data)
 
FLAC__StreamEncoderWriteStatus vector_encode_write (const FLAC__StreamEncoder *, const FLAC__byte buffer[], size_t bytes, unsigned, unsigned, void *client_data)
 

Variables

FLAC Flac
 
JPEG Jpg
 
LZMA Lzma
 A default constructed LZMA object. More...
 
PNG Png
 A ready to use PNG class. More...
 

Function Documentation

◆ decode_error()

void Gorgon::Encoding::decode_error ( const FLAC__StreamDecoder *  ,
FLAC__StreamDecoderErrorStatus  ,
void *   
)

◆ decode_write()

FLAC__StreamDecoderWriteStatus Gorgon::Encoding::decode_write ( const FLAC__StreamDecoder *  ,
const FLAC__Frame *  frame,
const FLAC__int32 *const  buffer[],
void *  client_data 
)

◆ jpgtocolormode()

Graphics::ColorMode Gorgon::Encoding::jpgtocolormode ( const struct jpeg_decompress_struct &  cinfo)

◆ my_error_exit()

void Gorgon::Encoding::my_error_exit ( j_common_ptr  cinfo)

◆ my_output_message()

void Gorgon::Encoding::my_output_message ( j_common_ptr  cinfo)

◆ operator<<() [1/3]

std::ostream & operator<< ( std::ostream &  out,
const HTTPQuery query 
)

References HTTPQuery::data.

◆ operator<<() [2/3]

std::ostream & operator<< ( std::ostream &  out,
const URI uri 
)

References URI::Convert().

◆ operator<<() [3/3]

std::ostream & operator<< ( std::ostream &  out,
const URIPath path 
)

References URIPath::Convert().

◆ PCTEncode()

std::string PCTEncode ( const std::string &  str,
const std::set< char > &  allowed,
bool  allowalpha = true,
bool  allownum = true 
)

Customized percentage encoding.

Some URI components have different characters that are allowed

◆ stream_decode_read()

FLAC__StreamDecoderReadStatus Gorgon::Encoding::stream_decode_read ( const FLAC__StreamDecoder *  ,
FLAC__byte  buffer[],
size_t *  bytes,
void *  client_data 
)

◆ stream_encode_seek()

FLAC__StreamEncoderSeekStatus Gorgon::Encoding::stream_encode_seek ( const FLAC__StreamEncoder *  ,
FLAC__uint64  absolute_byte_offset,
void *  client_data 
)

◆ stream_encode_tell()

FLAC__StreamEncoderTellStatus Gorgon::Encoding::stream_encode_tell ( const FLAC__StreamEncoder *  ,
FLAC__uint64 *  absolute_byte_offset,
void *  client_data 
)

◆ stream_encode_write()

FLAC__StreamEncoderWriteStatus Gorgon::Encoding::stream_encode_write ( const FLAC__StreamEncoder *  ,
const FLAC__byte  buffer[],
size_t  bytes,
unsigned  ,
unsigned  ,
void *  client_data 
)

◆ URIDecode()

std::string URIDecode ( const std::string &  str)

Decodes a given URI string according to RFC 3986. May throw URIError.

References Gorgon::String::Concat().

◆ URIEncode()

std::string URIEncode ( const std::string &  str)

Encodes a given URI string according to RFC 3986.

References PCTEncode().

◆ vector_decode_read()

FLAC__StreamDecoderReadStatus Gorgon::Encoding::vector_decode_read ( const FLAC__StreamDecoder *  ,
FLAC__byte  buffer[],
size_t *  bytes,
void *  client_data 
)

◆ vector_encode_seek()

FLAC__StreamEncoderSeekStatus Gorgon::Encoding::vector_encode_seek ( const FLAC__StreamEncoder *  ,
FLAC__uint64  absolute_byte_offset,
void *  client_data 
)

◆ vector_encode_tell()

FLAC__StreamEncoderTellStatus Gorgon::Encoding::vector_encode_tell ( const FLAC__StreamEncoder *  ,
FLAC__uint64 *  absolute_byte_offset,
void *  client_data 
)

◆ vector_encode_write()

FLAC__StreamEncoderWriteStatus Gorgon::Encoding::vector_encode_write ( const FLAC__StreamEncoder *  ,
const FLAC__byte  buffer[],
size_t  bytes,
unsigned  ,
unsigned  ,
void *  client_data 
)

Variable Documentation

◆ Flac

FLAC Flac

◆ Jpg

JPEG Jpg

◆ Lzma

LZMA Lzma

A default constructed LZMA object.

◆ Png

PNG Png

A ready to use PNG class.