RetroArch
Macros | Functions
Bcj2.c File Reference
#include <stdint.h>
#include "Bcj2.h"
Include dependency graph for Bcj2.c:

Macros

#define IsJcc(b0, b1)   ((b0) == 0x0F && ((b1) & 0xF0) == 0x80)
 
#define IsJ(b0, b1)   ((b1 & 0xFE) == 0xE8 || IsJcc(b0, b1))
 
#define kNumTopBits   24
 
#define kTopValue   ((uint32_t)1 << kNumTopBits)
 
#define kNumBitModelTotalBits   11
 
#define kBitModelTotal   (1 << kNumBitModelTotalBits)
 
#define kNumMoveBits   5
 
#define RC_READ_BYTE   (*buffer++)
 

Functions

int Bcj2_Decode (const uint8_t *buf0, size_t size0, const uint8_t *buf1, size_t size1, const uint8_t *buf2, size_t size2, const uint8_t *buf3, size_t size3, uint8_t *outBuf, size_t outSize)
 

Macro Definition Documentation

◆ IsJ

#define IsJ (   b0,
  b1 
)    ((b1 & 0xFE) == 0xE8 || IsJcc(b0, b1))

◆ IsJcc

#define IsJcc (   b0,
  b1 
)    ((b0) == 0x0F && ((b1) & 0xF0) == 0x80)

◆ kBitModelTotal

#define kBitModelTotal   (1 << kNumBitModelTotalBits)

◆ kNumBitModelTotalBits

#define kNumBitModelTotalBits   11

◆ kNumMoveBits

#define kNumMoveBits   5

◆ kNumTopBits

#define kNumTopBits   24

◆ kTopValue

#define kTopValue   ((uint32_t)1 << kNumTopBits)

◆ RC_READ_BYTE

#define RC_READ_BYTE   (*buffer++)

Function Documentation

◆ Bcj2_Decode()

int Bcj2_Decode ( const uint8_t buf0,
size_t  size0,
const uint8_t buf1,
size_t  size1,
const uint8_t buf2,
size_t  size2,
const uint8_t buf3,
size_t  size3,
uint8_t outBuf,
size_t  outSize 
)
Here is the caller graph for this function: