RetroArch
Macros | Functions
7zDec.c File Reference
#include <stdint.h>
#include <string.h>
#include <boolean.h>
#include "7z.h"
#include "Bcj2.h"
#include "Bra.h"
#include "CpuArch.h"
#include "LzmaDec.h"
#include "Lzma2Dec.h"
Include dependency graph for 7zDec.c:

Macros

#define k_Copy   0
 
#define k_LZMA2   0x21
 
#define k_LZMA   0x30101
 
#define k_BCJ   0x03030103
 
#define k_PPC   0x03030205
 
#define k_ARM   0x03030501
 
#define k_ARMT   0x03030701
 
#define k_SPARC   0x03030805
 
#define k_BCJ2   0x0303011B
 
#define IS_BCJ2(c)   ((c)->MethodID == k_BCJ2 && (c)->NumInStreams == 4 && (c)->NumOutStreams == 1)
 
#define CASE_BRA_CONV(isa)   case k_ ## isa: isa ## _Convert(outBuffer, outSize, 0, 0); break;
 

Functions

static SRes SzDecodeLzma (CSzCoderInfo *coder, uint64_t inSize, ILookInStream *inStream, uint8_t *outBuffer, size_t outSize, ISzAlloc *allocMain)
 
static SRes SzDecodeLzma2 (CSzCoderInfo *coder, uint64_t inSize, ILookInStream *inStream, uint8_t *outBuffer, size_t outSize, ISzAlloc *allocMain)
 
static SRes SzDecodeCopy (uint64_t inSize, ILookInStream *inStream, uint8_t *outBuffer)
 
static bool IS_MAIN_METHOD (uint32_t m)
 
static bool IS_SUPPORTED_CODER (const CSzCoderInfo *c)
 
static SRes CheckSupportedFolder (const CSzFolder *f)
 
static uint64_t GetSum (const uint64_t *values, uint32_t idx)
 
static SRes SzFolder_Decode2 (const CSzFolder *folder, const uint64_t *packSizes, ILookInStream *inStream, uint64_t startPos, uint8_t *outBuffer, size_t outSize, ISzAlloc *allocMain, uint8_t *tempBuf[])
 
SRes SzFolder_Decode (const CSzFolder *folder, const uint64_t *packSizes, ILookInStream *inStream, uint64_t startPos, uint8_t *outBuffer, size_t outSize, ISzAlloc *allocMain)
 

Macro Definition Documentation

◆ CASE_BRA_CONV

#define CASE_BRA_CONV (   isa)    case k_ ## isa: isa ## _Convert(outBuffer, outSize, 0, 0); break;

◆ IS_BCJ2

#define IS_BCJ2 (   c)    ((c)->MethodID == k_BCJ2 && (c)->NumInStreams == 4 && (c)->NumOutStreams == 1)

◆ k_ARM

#define k_ARM   0x03030501

◆ k_ARMT

#define k_ARMT   0x03030701

◆ k_BCJ

#define k_BCJ   0x03030103

◆ k_BCJ2

#define k_BCJ2   0x0303011B

◆ k_Copy

#define k_Copy   0

◆ k_LZMA

#define k_LZMA   0x30101

◆ k_LZMA2

#define k_LZMA2   0x21

◆ k_PPC

#define k_PPC   0x03030205

◆ k_SPARC

#define k_SPARC   0x03030805

Function Documentation

◆ CheckSupportedFolder()

static SRes CheckSupportedFolder ( const CSzFolder f)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetSum()

static uint64_t GetSum ( const uint64_t values,
uint32_t  idx 
)
static
Here is the caller graph for this function:

◆ IS_MAIN_METHOD()

static bool IS_MAIN_METHOD ( uint32_t  m)
static
Here is the caller graph for this function:

◆ IS_SUPPORTED_CODER()

static bool IS_SUPPORTED_CODER ( const CSzCoderInfo c)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SzDecodeCopy()

static SRes SzDecodeCopy ( uint64_t  inSize,
ILookInStream inStream,
uint8_t outBuffer 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SzDecodeLzma()

static SRes SzDecodeLzma ( CSzCoderInfo coder,
uint64_t  inSize,
ILookInStream inStream,
uint8_t outBuffer,
size_t  outSize,
ISzAlloc allocMain 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SzDecodeLzma2()

static SRes SzDecodeLzma2 ( CSzCoderInfo coder,
uint64_t  inSize,
ILookInStream inStream,
uint8_t outBuffer,
size_t  outSize,
ISzAlloc allocMain 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SzFolder_Decode()

SRes SzFolder_Decode ( const CSzFolder folder,
const uint64_t packSizes,
ILookInStream inStream,
uint64_t  startPos,
uint8_t outBuffer,
size_t  outSize,
ISzAlloc allocMain 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SzFolder_Decode2()

static SRes SzFolder_Decode2 ( const CSzFolder folder,
const uint64_t packSizes,
ILookInStream inStream,
uint64_t  startPos,
uint8_t outBuffer,
size_t  outSize,
ISzAlloc allocMain,
uint8_t tempBuf[] 
)
static
Here is the call graph for this function:
Here is the caller graph for this function: