kviewshell
BSEncodeByteStream.cpp File Reference
#include "BSByteStream.h"
#include "GString.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
Go to the source code of this file.
Defines | |
#define | ASSERT(expr) do{if(!(expr))G_THROW("assertion ("#expr") failed");}while(0) |
Functions | |
static void | blocksort (unsigned char *data, int size, int &markerpos) |
static void | encode_binary (ZPCodec &zp, BitContext *ctx, int bits, int x) |
static void | encode_raw (ZPCodec &zp, int bits, int x) |
static int | mini (int a, int b) |
static void | vswap (int i, int j, int n, unsigned int *x) |
Variables | |
static const int | FREQS0 = 100000 |
static const int | FREQS1 = 1000000 |
static const int | OVERFLOW = 32 |
static const int | PRESORT_DEPTH = 8 |
static const int | PRESORT_THRESH = 10 |
static const int | QUICKSORT_STACK = 512 |
static const int | RADIX_THRESH = 32768 |
static const int | RANKSORT_THRESH = 10 |
Define Documentation
#define ASSERT | ( | expr | ) | do{if(!(expr))G_THROW("assertion ("#expr") failed");}while(0) |
Definition at line 91 of file BSEncodeByteStream.cpp.
Function Documentation
static void blocksort | ( | unsigned char * | data, | |
int | size, | |||
int & | markerpos | |||
) | [static] |
Definition at line 153 of file BSEncodeByteStream.cpp.
static void encode_binary | ( | ZPCodec & | zp, | |
BitContext * | ctx, | |||
int | bits, | |||
int | x | |||
) | [inline, static] |
Definition at line 765 of file BSEncodeByteStream.cpp.
static void encode_raw | ( | ZPCodec & | zp, | |
int | bits, | |||
int | x | |||
) | [static] |
Definition at line 751 of file BSEncodeByteStream.cpp.
static int mini | ( | int | a, | |
int | b | |||
) | [inline, static] |
Definition at line 270 of file BSEncodeByteStream.cpp.
static void vswap | ( | int | i, | |
int | j, | |||
int | n, | |||
unsigned int * | x | |||
) | [inline, static] |
Definition at line 276 of file BSEncodeByteStream.cpp.
Variable Documentation
const int FREQS0 = 100000 [static] |
Definition at line 112 of file BSEncodeByteStream.cpp.
const int FREQS1 = 1000000 [static] |
Definition at line 113 of file BSEncodeByteStream.cpp.
const int OVERFLOW = 32 [static] |
Definition at line 103 of file BSEncodeByteStream.cpp.
const int PRESORT_DEPTH = 8 [static] |
Definition at line 109 of file BSEncodeByteStream.cpp.
const int PRESORT_THRESH = 10 [static] |
Definition at line 108 of file BSEncodeByteStream.cpp.
const int QUICKSORT_STACK = 512 [static] |
Definition at line 107 of file BSEncodeByteStream.cpp.
const int RADIX_THRESH = 32768 [static] |
Definition at line 110 of file BSEncodeByteStream.cpp.
const int RANKSORT_THRESH = 10 [static] |
Definition at line 106 of file BSEncodeByteStream.cpp.