4#ifndef ZIP7_INC_MT_DEC_H
5#define ZIP7_INC_MT_DEC_H
18 #define MTDEC_THREADS_MAX 32
20 #define MTDEC_THREADS_MAX 1
90 SRes (*PreCode)(
void *p,
unsigned coderIndex);
109 SRes (*Write)(
void *p,
unsigned coderIndex,
int BoolInt
Definition 7zTypes.h:259
int WRes
Definition 7zTypes.h:75
#define EXTERN_C_BEGIN
Definition 7zTypes.h:20
unsigned long long int UInt64
Definition 7zTypes.h:234
int SRes
Definition 7zTypes.h:45
#define EXTERN_C_END
Definition 7zTypes.h:21
SRes MtProgress_GetError(CMtProgress *p)
Definition MtDec.c:62
SRes MtProgress_ProgressAdd(CMtProgress *p, UInt64 inSize, UInt64 outSize)
Definition MtDec.c:45
Byte * MtDec_GetCrossBuff(CMtDec *p)
Definition MtDec.c:214
const Byte * MtDec_Read(CMtDec *p, size_t *inLim)
Definition MtDec.c:882
SRes MtDec_Code(CMtDec *p)
Definition MtDec.c:1017
EMtDecParseState
Definition MtDec.h:60
@ MTDEC_PARSE_END
Definition MtDec.h:64
@ MTDEC_PARSE_CONTINUE
Definition MtDec.h:61
@ MTDEC_PARSE_OVERFLOW
Definition MtDec.h:62
@ MTDEC_PARSE_NEW
Definition MtDec.h:63
SRes MtProgress_Progress_ST(CMtProgress *p)
Definition MtDec.c:36
void MtDec_Destruct(CMtDec *p)
Definition MtDec.c:1009
void MtDecThread_FreeInBufs(CMtDecThread *t)
Definition MtDec.c:129
void MtProgress_Init(CMtProgress *p, ICompressProgressPtr progress)
Definition MtDec.c:27
void MtProgress_SetError(CMtProgress *p, SRes res)
Definition MtDec.c:72
void MtDec_Construct(CMtDec *p)
Definition MtDec.c:946
int MtDec_PrepareRead(CMtDec *p)
Definition MtDec.c:859
EMtDecParseState
Definition MtDec.h:60
#define Code
Definition deflate.h:80
char int srcSize
Definition lz4.h:806
const char * src
Definition lz4.h:866
#define MTDEC_THREADS_MAX
Definition MtDec.h:18
BoolInt exitThread
Definition MtDec.h:144
WRes exitThreadWRes
Definition MtDec.h:145
UInt64 inProcessed
Definition MtDec.h:169
UInt64 interruptIndex
Definition MtDec.h:176
IMtDecCallback2 * mtCallback
Definition MtDec.h:136
size_t crossStart
Definition MtDec.h:165
size_t inBufSize
Definition MtDec.h:124
size_t allocatedBufsSize
Definition MtDec.h:142
BoolInt needInterrupt
Definition MtDec.h:175
UInt64 readProcessed
Definition MtDec.h:167
BoolInt needContinue
Definition MtDec.h:152
unsigned filledThreadStart
Definition MtDec.h:171
CMtDecThread threads[MTDEC_THREADS_MAX]
Definition MtDec.h:178
size_t crossEnd
Definition MtDec.h:166
CMtProgress mtProgress
Definition MtDec.h:177
unsigned numThreadsMax_2
Definition MtDec.h:127
BoolInt overflow
Definition MtDec.h:149
SRes codeRes
Definition MtDec.h:157
void * mtCallbackObject
Definition MtDec.h:137
SRes readRes
Definition MtDec.h:156
ICompressProgressPtr progress
Definition MtDec.h:133
BoolInt isAllocError
Definition MtDec.h:148
ISzAllocPtr alloc
Definition MtDec.h:134
Byte * crossBlock
Definition MtDec.h:164
unsigned numStartedThreads
Definition MtDec.h:162
UInt64 blockIndex
Definition MtDec.h:147
BoolInt readWasFinished
Definition MtDec.h:168
unsigned numFilledThreads
Definition MtDec.h:172
SRes threadingErrorSRes
Definition MtDec.h:150
unsigned numStartedThreads_Limit
Definition MtDec.h:161
unsigned numThreadsMax
Definition MtDec.h:125
ISeqInStreamPtr inStream
Definition MtDec.h:129
BoolInt wasInterrupted
Definition MtDec.h:159
size_t srcSize
Definition MtDec.h:72
UInt64 outPos
Definition MtDec.h:80
int srcFinished
Definition MtDec.h:75
BoolInt canCreateNewThread
Definition MtDec.h:79
EMtDecParseState state
Definition MtDec.h:78
int startCall
Definition MtDec.h:70
const Byte * src
Definition MtDec.h:71
void * allocaPtr
Definition MtDec.h:53
CAutoResetEvent canWrite
Definition MtDec.h:52
unsigned index
Definition MtDec.h:44
size_t inDataSize_Start
Definition MtDec.h:47
struct CMtDec_ * mtDec
Definition MtDec.h:43
CAutoResetEvent canRead
Definition MtDec.h:51
void * inBuf
Definition MtDec.h:45
CThread thread
Definition MtDec.h:50
UInt64 inDataSize
Definition MtDec.h:48
UInt64 totalInSize
Definition MtDec.h:28
ICompressProgressPtr progress
Definition MtDec.h:26
UInt64 totalOutSize
Definition MtDec.h:29
SRes res
Definition MtDec.h:27
CCriticalSection cs
Definition MtDec.h:30
unsigned char Byte
Definition zconf.h:391