Leptonica  1.54
Файл src/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 []

Функции

static l_uint16 * makeExpandTab2x ( void  ) [static]
static l_uint32 * makeExpandTab4x ( void  ) [static]
static l_uint32 * makeExpandTab8x ( void  ) [static]
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

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


Переменные

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