Leptonica  1.82.0
Image processing and image analysis suite
PixMemoryStore Struct Reference

Data Fields

struct L_Ptraapaa
 
size_t minsize
 
size_t smallest
 
size_t largest
 
size_t nbytes
 
l_int32 nlevels
 
size_t * sizes
 
l_int32 * allocarray
 
l_uint32 * baseptr
 
l_uint32 * maxptr
 
l_uint32 ** firstptr
 
l_int32 * memused
 
l_int32 * meminuse
 
l_int32 * memmax
 
l_int32 * memempty
 
char * logfile
 

Detailed Description

Pix memory storage

Definition at line 117 of file pixalloc.c.

Field Documentation

◆ allocarray

l_int32* PixMemoryStore::allocarray

Number of mem alloc'd at each size

Definition at line 127 of file pixalloc.c.

◆ baseptr

l_uint32* PixMemoryStore::baseptr

ptr to allocated array

Definition at line 128 of file pixalloc.c.

Referenced by pmsCreate().

◆ firstptr

l_uint32** PixMemoryStore::firstptr

array of ptrs to first chunk in size

Definition at line 130 of file pixalloc.c.

Referenced by pmsCreate().

◆ largest

size_t PixMemoryStore::largest

Larest mem (in bytes) alloc'd

Definition at line 123 of file pixalloc.c.

◆ logfile

char* PixMemoryStore::logfile

log: set to null if no logging

Definition at line 136 of file pixalloc.c.

◆ maxptr

l_uint32* PixMemoryStore::maxptr

ptr just beyond allocated memory

Definition at line 129 of file pixalloc.c.

◆ memempty

l_int32* PixMemoryStore::memempty

log: # of pix alloc'd because the store was empty (by level)

Definition at line 134 of file pixalloc.c.

◆ meminuse

l_int32* PixMemoryStore::meminuse

log: # of pix in use (by level)

Definition at line 132 of file pixalloc.c.

◆ memmax

l_int32* PixMemoryStore::memmax

log: max # of pix in use (by level)

Definition at line 133 of file pixalloc.c.

◆ memused

l_int32* PixMemoryStore::memused

log: total # of pix used (by level)

Definition at line 131 of file pixalloc.c.

◆ minsize

size_t PixMemoryStore::minsize

Pix smaller than this (in bytes) are allocated dynamically

Definition at line 120 of file pixalloc.c.

◆ nbytes

size_t PixMemoryStore::nbytes

Size of allocated block w/ all chunks

Definition at line 124 of file pixalloc.c.

Referenced by freadHeaderPng(), pixacompConvertToPdf(), pixcompCreateFromFile(), pixConvert1To2(), pixConvert1To4(), pixConvert2To8(), and pmsCreate().

◆ nlevels

l_int32 PixMemoryStore::nlevels

Num of power-of-2 sizes pre-alloc'd

Definition at line 125 of file pixalloc.c.

Referenced by pmsCreate().

◆ paa

struct L_Ptraa* PixMemoryStore::paa

Holds ptrs to allocated memory

Definition at line 119 of file pixalloc.c.

Referenced by pmsCreate().

◆ sizes

size_t* PixMemoryStore::sizes

Mem sizes at each power-of-2 level

Definition at line 126 of file pixalloc.c.

Referenced by pmsCreate().

◆ smallest

size_t PixMemoryStore::smallest

Smallest mem (in bytes) alloc'd

Definition at line 122 of file pixalloc.c.


The documentation for this struct was generated from the following file: