The averaging filter for anti-aliasing and reduced roam. More...
#include "std.h"
#include "gfiltrav.h"
#include "hqmemset.h"
#include "hqmemcpy.h"
#include "rowsum.h"
Data Structures | |
struct | averaging_info |
Macros | |
#define | ROUND(dividend, divisor) (((dividend) + (divisor)/2) / (divisor)) |
#define | CLIPPED_ADD8(sum, a, b) |
#define | CLIPPED_SUB8(diff, a, b) |
#define | NEXT_MASK_WORD() |
#define | STORE_COMP(comp) |
#define | STORE_COUNT() |
The averaging filter for anti-aliasing and reduced roam.
Copyright (c) 2017 Global Graphics Software Ltd. All Rights Reserved.
This example is provided on an "as is" basis and without warranty of any kind. Global Graphics Software Ltd. does not warrant or make any representations regarding the use or results of use of this example.
#define CLIPPED_ADD8 | ( | sum, | |
a, | |||
b | |||
) |
#define CLIPPED_SUB8 | ( | diff, | |
a, | |||
b | |||
) |
Subtract two unsigned 8-bit values, clipping to 8-bit range.
#define NEXT_MASK_WORD | ( | ) |
Step mask at a word boundary.
Helper for sum_partial_row_*.
#define ROUND | ( | dividend, | |
divisor | |||
) | (((dividend) + (divisor)/2) / (divisor)) |
Division with rounding.
#define STORE_COMP | ( | comp | ) |
Store accumulator component into output accumulator.
Helper for sum_partial_row_*.
#define STORE_COUNT | ( | ) |
Store accumulated count into output counter array.
Helper for sum_partial_row_*.