Leptonica  1.54
Файл binexpand.c
#include <string.h>
#include "allheaders.h"

Функции

static l_uint16makeExpandTab2x (void)
 
static l_uint32makeExpandTab4x (void)
 
static l_uint32makeExpandTab8x (void)
 
PIXpixExpandBinaryReplicate (PIX *pixs, l_int32 factor)
 
PIXpixExpandBinaryPower2 (PIX *pixs, l_int32 factor)
 

Переменные

static l_uint32 expandtab16 []
 

Функции

◆ makeExpandTab2x()

static l_uint16 * makeExpandTab2x ( void  )
static

◆ makeExpandTab4x()

static l_uint32 * makeExpandTab4x ( void  )
static

◆ makeExpandTab8x()

static l_uint32 * makeExpandTab8x ( void  )
static

◆ pixExpandBinaryPower2()

PIX* pixExpandBinaryPower2 ( PIX pixs,
l_int32  factor 
)

pixExpandBinaryPower2()

Input:  pixs (1 bpp)
        factor (expansion factor: 1, 2, 4, 8, 16)
Return: pixd (expanded 1 bpp by replication), or null on error

◆ pixExpandBinaryReplicate()

PIX* pixExpandBinaryReplicate ( PIX pixs,
l_int32  factor 
)

pixExpandBinaryReplicate()

Input:  pixs (1 bpp)
        factor (integer scale factor for replicative expansion)
Return: pixd (scaled up), or null on error

Переменные

◆ expandtab16

l_uint32 expandtab16[]
static
Инициализатор
= {
0x00000000, 0x0000ffff, 0xffff0000, 0xffffffff}