Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
compress.c File Reference
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <errno.h>
#include <fcntl.h>
#include <ctype.h>
#include <math.h>
#include <wctype.h>
#include <wchar.h>
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <locale.h>
#include <signal.h>
#include <limits.h>
#include <float.h>
#include <iso646.h>
#include <assert.h>
#include <stdbool.h>
#include <lzma.h>

Macros

#define uint   unsigned int
 

Functions

void dprintf (char *format,...)
 
int __fastcall progress_pos_m (uint64_t *in_pos, uint64_t *compressed_pos, uint64_t *uncompressed_pos)
 
void pedro_dprintf (int amanda_level, char *format,...)
 
WCHAR * utf8_2_wide_dl (char *pUTF8)
 
void pedro_dprintf2 (int amanda_level, char *format,...)
 pedro_dprintf2 is my variant of my debug function because too much calls to pedro_dprintf these days, I am lazy, sorry....
 
int xz_compress (char *inputfile, char *outputfile, int level)
 

Variables

int porcentagem
 
int64_t bytes_processados_m
 
int64_t final_fix_p
 
int threads_z_9 = 1
 
int intpause_9
 
int intcancel_9
 
__int64 tamanho = 0
 

Macro Definition Documentation

◆ uint

#define uint   unsigned int

Function Documentation

◆ dprintf()

void dprintf ( char * format,
... )

◆ pedro_dprintf()

void pedro_dprintf ( int amanda_level,
char * format,
... )

◆ pedro_dprintf2()

void pedro_dprintf2 ( int amanda_level,
char * format,
... )

pedro_dprintf2 is my variant of my debug function because too much calls to pedro_dprintf these days, I am lazy, sorry....

em brotli or brotli2

Parameters
amanda_levelif equal or above 0 print the string
formatprintf based format
...

◆ progress_pos_m()

int __fastcall progress_pos_m ( uint64_t * in_pos,
uint64_t * compressed_pos,
uint64_t * uncompressed_pos )

◆ utf8_2_wide_dl()

WCHAR * utf8_2_wide_dl ( char * pUTF8)

◆ xz_compress()

int xz_compress ( char * inputfile,
char * outputfile,
int level )

function to compress files in the standard .xz format the level range from 0 to 9, 9 to best compression

xz files can be decompressed with Winrar

if threads is used the compression level is the default or controled internally, level don't matter (26/sep/2021, 02:45)

Variable Documentation

◆ bytes_processados_m

int64_t bytes_processados_m
extern

◆ final_fix_p

int64_t final_fix_p
extern

◆ intcancel_9

int intcancel_9
extern

◆ intpause_9

int intpause_9
extern

◆ porcentagem

int porcentagem
extern

◆ tamanho

__int64 tamanho = 0

◆ threads_z_9

int threads_z_9 = 1