ifw-odp 5.0.0
Loading...
Searching...
No Matches
Macros | Functions | Variables
clipm_image_display.c File Reference
#include "ifw/odp/clipm/clipm_image_display.h"
#include "ifw/odp/clipm/clipm_priv_checks.h"
#include "ifw/odp/clipm/clipm_compatibility_replacements.h"
#include "ifw/odp/clipm/clipm_priv_error.h"
#include "ifw/odp/clipm/clipm_priv_image.h"
#include <math.h>
#include <string.h>

Macros

#define _POSIX_C_SOURCE   200112L
 
#define BWRASTER(x, y, b, f)    (((x + y) & 1) ? b : f)
 
#define HSTRIPES(y, b, f)    ((y & 1) ? b : f)
 
#define VSTRIPES(x, b, f)    ((x & 1) ? b : f)
 
#define DSTRIPES(x, y, b, f)    (((x - y) % 10) ? b : f)
 
#define DSTRIPES2(x, y, b, f)    (((x + y) % 10) ? b : f)
 
#define CAROS(x, y, b, f)    ((x % 10) && (y % 10) ? b : f)
 
#define DCAROS(x, y, b, f)    (((x - y) % 10) && ((x + y) % 10) ? b : f)
 
#define clipm_image_display_FILL_GAPS( TYPE, DATA, VALUE)
 
#define clipm_image_display_insert_gaps_FILL_GAPS_PATTERN(TYPE, FILL_MODE, BRIGHTNESS, OUTDATA)
 
#define clipm_image_display_insert_gaps_COPY_SEGMENTS(TYPE, INDATA, OUTDATA)
 

Functions

cpl_image * clipm_image_display_insert_gaps (const cpl_image *input, cpl_size x_input_position, cpl_size y_input_position, cpl_size x_segmentsize, cpl_size y_segmentsize, cpl_size x_gapwidth, cpl_size y_gapwidth, int flag_gaps_bad, clipm_fill_mode fill_pattern, double fill_brightness)
 Insert horizontal and vertical gaps into an image.
 

Variables

const clipm_fill_mode CLIPM_FILL_VALUE = ((unsigned) 1 << 1)
 Fill with given value.
 
const clipm_fill_mode CLIPM_FILL_FOREGROUND = ((unsigned) 1 << 2)
 Fill with foreground.
 
const clipm_fill_mode CLIPM_FILL_BACKGROUND = ((unsigned) 1 << 3)
 Fill with background.
 
const clipm_fill_mode CLIPM_FILL_BWRASTER = ((unsigned) 1 << 4)
 Fill with raster of foreground and background.
 
const clipm_fill_mode CLIPM_FILL_HSTRIPES = ((unsigned) 1 << 5)
 Fill with horizontal stripes of foreground and background.
 
const clipm_fill_mode CLIPM_FILL_VSTRIPES = ((unsigned) 1 << 6)
 Fill with vertical stripes of foreground and background.
 
const clipm_fill_mode CLIPM_FILL_DSTRIPES = ((unsigned) 1 << 7)
 Fill with 45` diagonal stripes of foreground over background.
 
const clipm_fill_mode CLIPM_FILL_DSTRIPES2 = ((unsigned) 1 << 8)
 Fill with 135` diagonal stripes of foreground over background.
 
const clipm_fill_mode CLIPM_FILL_CAROS = ((unsigned) 1 << 9)
 Fill with caros.
 
const clipm_fill_mode CLIPM_FILL_DCAROS = ((unsigned) 1 << 10)
 Fill with diagonal caros.
 

Macro Definition Documentation

◆ _POSIX_C_SOURCE

#define _POSIX_C_SOURCE   200112L

◆ BWRASTER

#define BWRASTER ( x,
y,
b,
f )    (((x + y) & 1) ? b : f)

◆ CAROS

#define CAROS ( x,
y,
b,
f )    ((x % 10) && (y % 10) ? b : f)

◆ clipm_image_display_FILL_GAPS

#define clipm_image_display_FILL_GAPS ( TYPE,
DATA,
VALUE )

◆ clipm_image_display_insert_gaps_COPY_SEGMENTS

#define clipm_image_display_insert_gaps_COPY_SEGMENTS ( TYPE,
INDATA,
OUTDATA )

◆ clipm_image_display_insert_gaps_FILL_GAPS_PATTERN

#define clipm_image_display_insert_gaps_FILL_GAPS_PATTERN ( TYPE,
FILL_MODE,
BRIGHTNESS,
OUTDATA )

◆ DCAROS

#define DCAROS ( x,
y,
b,
f )    (((x - y) % 10) && ((x + y) % 10) ? b : f)

◆ DSTRIPES

#define DSTRIPES ( x,
y,
b,
f )    (((x - y) % 10) ? b : f)

◆ DSTRIPES2

#define DSTRIPES2 ( x,
y,
b,
f )    (((x + y) % 10) ? b : f)

◆ HSTRIPES

#define HSTRIPES ( y,
b,
f )    ((y & 1) ? b : f)

◆ VSTRIPES

#define VSTRIPES ( x,
b,
f )    ((x & 1) ? b : f)