"L. Spiro Engine"
Classes | Public Types | Static Public Member Functions | Static Protected Member Functions

lsi::CBio Class Reference

Implementation of an individual bit input-output (BIO). More...

#include <LSIBio.h>

List of all members.

Classes

struct  opj_bio_t

Public Types

typedef struct
lsi::CBio::opj_bio_t
LPopj_bio_t
typedef struct lsi::CBio::opj_bio_t LPCopj_bio_t

Static Public Member Functions

static opj_bio_t *LSE_CALL bio_create ()
static LSVOID LSE_CALL bio_destroy (opj_bio_t *_pbBio)
static LSINT32 LSE_CALL bio_numbytes (opj_bio_t *_pbBio)
static LSVOID LSE_CALL bio_init_enc (opj_bio_t *_pbBio, LSUINT8 *_pui8Bp, LSINT32 _i32Len)
static LSVOID LSE_CALL bio_init_dec (opj_bio_t *_pbBio, LSUINT8 *_pui8Bp, LSINT32 _i32Len)
static LSVOID LSE_CALL bio_write (opj_bio_t *_pbBio, LSINT32 _i32V, LSINT32 _i32N)
static LSINT32 LSE_CALL bio_read (opj_bio_t *_pbBio, LSINT32 _i32N)
static LSINT32 LSE_CALL bio_flush (opj_bio_t *_pbBio)
static LSINT32 LSE_CALL bio_inalign (opj_bio_t *_pbBio)

Static Protected Member Functions

static LSVOID LSE_CALL bio_putbit (opj_bio_t *_pbBio, LSINT32 _i32B)
static LSINT32 LSE_CALL bio_getbit (opj_bio_t *_pbBio)
static LSINT32 LSE_CALL bio_byteout (opj_bio_t *_pbBio)
static LSINT32 LSE_CALL bio_bytein (opj_bio_t *_pbBio)

Detailed Description

Implementation of an individual bit input-output (BIO).

Class CBio Description: Implementation of an individual bit input-output (BIO).


Member Typedef Documentation

Individual bit input-output stream (BIO).


Member Function Documentation

static LSINT32 LSE_CALL lsi::CBio::bio_bytein ( opj_bio_t _pbBio) [static, protected]

Read a byte.

Parameters:
_pbBioBIO handle.
Returns:
Returns 0 if successful, returns 1 otherwise.
static LSINT32 LSE_CALL lsi::CBio::bio_byteout ( opj_bio_t _pbBio) [static, protected]

Write a byte.

Parameters:
_pbBioBIO handle.
Returns:
Returns 0 if successful, returns 1 otherwise.
static opj_bio_t* LSE_CALL lsi::CBio::bio_create ( ) [static]

Create a new BIO handle.

Returns:
Returns a new BIO handle if successful, returns NULL otherwise.
static LSVOID LSE_CALL lsi::CBio::bio_destroy ( opj_bio_t _pbBio) [static]

Destroy a previously created BIO handle.

Parameters:
_pbBioBIO handle to destroy.
static LSINT32 LSE_CALL lsi::CBio::bio_flush ( opj_bio_t _pbBio) [static]

Flush bits.

Parameters:
_pbBioBIO handle.
Returns:
Returns 1 if successful, returns 0 otherwise.
static LSINT32 LSE_CALL lsi::CBio::bio_getbit ( opj_bio_t _pbBio) [static, protected]

Read a bit.

Parameters:
_pbBioBIO handle.
Returns:
Returns the read bit.
static LSINT32 LSE_CALL lsi::CBio::bio_inalign ( opj_bio_t _pbBio) [static]

Passes the ending bits (coming from flushing).

Parameters:
_pbBioBIO handle.
Returns:
Returns 1 if successful, returns 0 otherwise.
static LSVOID LSE_CALL lsi::CBio::bio_init_dec ( opj_bio_t _pbBio,
LSUINT8 *  _pui8Bp,
LSINT32  _i32Len 
) [static]

Init decoder.

Parameters:
_pbBioBIO handle.
_pui8BpInput buffer.
_i32LenInput buffer length.
static LSVOID LSE_CALL lsi::CBio::bio_init_enc ( opj_bio_t _pbBio,
LSUINT8 *  _pui8Bp,
LSINT32  _i32Len 
) [static]

Init encoder.

Parameters:
_pbBioBIO handle.
_pui8BpOutput buffer.
_i32LenOutput buffer length.
static LSINT32 LSE_CALL lsi::CBio::bio_numbytes ( opj_bio_t _pbBio) [static]

Number of bytes written.

Parameters:
_pbBioBIO handle.
Returns:
Returns the number of bytes written.
static LSVOID LSE_CALL lsi::CBio::bio_putbit ( opj_bio_t _pbBio,
LSINT32  _i32B 
) [static, protected]

Write a bit.

Parameters:
_pbBioBIO handle.
_i32BBit to write (0 or 1).
static LSINT32 LSE_CALL lsi::CBio::bio_read ( opj_bio_t _pbBio,
LSINT32  _i32N 
) [static]

Read bits.

Parameters:
_pbBioBIO handle.
_i32NNumber of bits to read.
Returns:
Returns the corresponding read number.
static LSVOID LSE_CALL lsi::CBio::bio_write ( opj_bio_t _pbBio,
LSINT32  _i32V,
LSINT32  _i32N 
) [static]

Write bits.

Parameters:
_pbBioBIO handle.
_i32VValue of bits.
_i32NNumber of bits to write.

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator