|
ifw-odp
2.0.0-alpha
|
#include "clipm_image_display.h"#include "clipm_priv_checks.h"#include "clipm_compatibility_replacements.h"#include "clipm_priv_error.h"#include "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. More... | |
Variables | |
| const clipm_fill_mode | CLIPM_FILL_VALUE = ((unsigned) 1 << 1) |
| Fill with given value. More... | |
| const clipm_fill_mode | CLIPM_FILL_FOREGROUND = ((unsigned) 1 << 2) |
| Fill with foreground. More... | |
| const clipm_fill_mode | CLIPM_FILL_BACKGROUND = ((unsigned) 1 << 3) |
| Fill with background. More... | |
| const clipm_fill_mode | CLIPM_FILL_BWRASTER = ((unsigned) 1 << 4) |
| Fill with raster of foreground and background. More... | |
| const clipm_fill_mode | CLIPM_FILL_HSTRIPES = ((unsigned) 1 << 5) |
| Fill with horizontal stripes of foreground and background. More... | |
| const clipm_fill_mode | CLIPM_FILL_VSTRIPES = ((unsigned) 1 << 6) |
| Fill with vertical stripes of foreground and background. More... | |
| const clipm_fill_mode | CLIPM_FILL_DSTRIPES = ((unsigned) 1 << 7) |
| Fill with 45` diagonal stripes of foreground over background. More... | |
| const clipm_fill_mode | CLIPM_FILL_DSTRIPES2 = ((unsigned) 1 << 8) |
| Fill with 135` diagonal stripes of foreground over background. More... | |
| const clipm_fill_mode | CLIPM_FILL_CAROS = ((unsigned) 1 << 9) |
| Fill with caros. More... | |
| const clipm_fill_mode | CLIPM_FILL_DCAROS = ((unsigned) 1 << 10) |
| Fill with diagonal caros. More... | |
| #define _POSIX_C_SOURCE 200112L |
| #define BWRASTER | ( | x, | |
| y, | |||
| b, | |||
| f | |||
| ) | (((x + y) & 1) ? b : f) |
| #define CAROS | ( | x, | |
| y, | |||
| b, | |||
| f | |||
| ) | ((x % 10) && (y % 10) ? b : f) |
| #define clipm_image_display_FILL_GAPS | ( | TYPE, | |
| DATA, | |||
| VALUE | |||
| ) |
| #define clipm_image_display_insert_gaps_COPY_SEGMENTS | ( | TYPE, | |
| INDATA, | |||
| OUTDATA | |||
| ) |
| #define clipm_image_display_insert_gaps_FILL_GAPS_PATTERN | ( | TYPE, | |
| FILL_MODE, | |||
| BRIGHTNESS, | |||
| OUTDATA | |||
| ) |
| #define DCAROS | ( | x, | |
| y, | |||
| b, | |||
| f | |||
| ) | (((x - y) % 10) && ((x + y) % 10) ? 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 HSTRIPES | ( | y, | |
| b, | |||
| f | |||
| ) | ((y & 1) ? b : f) |
| #define VSTRIPES | ( | x, | |
| b, | |||
| f | |||
| ) | ((x & 1) ? b : f) |
1.8.5