Leptonica 1.68
C Image Processing Library

binexpandlow.c File Reference

Low-level implementation of integer upscaling. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "allheaders.h"

Go to the source code of this file.

Functions

l_int32 expandBinaryPower2Low (l_uint32 *datad, l_int32 wd, l_int32 hd, l_int32 wpld, l_uint32 *datas, l_int32 ws, l_int32 hs, l_int32 wpls, l_int32 factor)
l_uint16makeExpandTab2x (void)
l_uint32makeExpandTab4x (void)
l_uint32makeExpandTab8x (void)

Variables

static l_uint32 expandtab16 []

Detailed Description

Low-level implementation of integer upscaling.

    Low level power-of-2 binary expansion
            l_int32      expandBinaryPower2Low()

    Expansion tables
            l_uint16    *makeExpandTab2x()
            l_uint32    *makeExpandTab4x()
            l_uint32    *makeExpandTab8x()

Definition in file binexpandlow.c.


Function Documentation

l_int32 expandBinaryPower2Low ( l_uint32 datad,
l_int32  wd,
l_int32  hd,
l_int32  wpld,
l_uint32 datas,
l_int32  ws,
l_int32  hs,
l_int32  wpls,
l_int32  factor 
)
l_uint16* makeExpandTab2x ( void  )

Definition at line 141 of file binexpandlow.c.

References CALLOC, ERROR_PTR, NULL, and PROCNAME.

Referenced by expandBinaryPower2Low().

l_uint32* makeExpandTab4x ( void  )

Definition at line 175 of file binexpandlow.c.

References CALLOC, ERROR_PTR, NULL, and PROCNAME.

Referenced by expandBinaryPower2Low().

l_uint32* makeExpandTab8x ( void  )

Definition at line 209 of file binexpandlow.c.

References CALLOC, ERROR_PTR, NULL, and PROCNAME.

Referenced by expandBinaryPower2Low().


Variable Documentation

l_uint32 expandtab16[] [static]
Initial value:
 {
            0x00000000, 0x0000ffff, 0xffff0000, 0xffffffff}

Definition at line 35 of file binexpandlow.c.

Referenced by expandBinaryPower2Low().

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines