Harlequin RIP SDK
antialias.c File Reference

A core module for antialiasing. More...

#include "std.h"
#include "antialias.h"
#include "gfiltrav.h"
#include "swhtm.h"
#include "hqmemcpy.h"

Macros

#define AA_LISTADD(p, head)
 Add an element to one of our lists.
 
#define AA_LISTREMOVE(p, head)
 Remove an element from one of our lists.
 

Functions

static int32 aa_get_next_band (void *pForCallback, aa_raster_unit **pBand, HqBool *pfMoreLines)
 
static int32 aa_get_next_band_mask (void *pForCallback, aa_raster_unit **pBand, aa_raster_unit **pMask, HqBool *pfMoreLines)
 
static HqBool aa_init (sw_htm_api *implementation, const sw_htm_init_params *params)
 Implementation of init . More...
 
static sw_htm_result aa_select (sw_htm_instance *instance, const sw_htm_select_info *info, sw_htm_instance **cached)
 Implementation of HalftoneSelect .
 
static void aa_release (sw_htm_instance *instance)
 Implementation of HalftoneRelease .
 
static HqBool aa_do_halftone (sw_htm_instance *instance, const sw_htm_dohalftone_request *request)
 Implementation of DoHalftone . More...
 
static void aa_abort (sw_htm_instance *instance, const sw_htm_dohalftone_request *request)
 Implementation of AbortHalftone .
 
sw_htm_apiaa_get_instance (void)
 Return an API instance with details of the antialiasing module. More...
 

Variables

static sw_htm_api aa_api
 
static aa_state * states = ((void*)0)
 
static sw_memory_instancemem_allocator
 

Detailed Description

A core module for antialiasing.

Copyright (c) 2023 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.

Function Documentation

◆ aa_do_halftone()

static HqBool aa_do_halftone ( sw_htm_instance instance,
const sw_htm_dohalftone_request request 
)
static

Implementation of DoHalftone .

This is where the antialiasing actually happens.

◆ aa_get_instance()

sw_htm_api* aa_get_instance ( void  )

Return an API instance with details of the antialiasing module.

Returns
A singleton instance of the antialiasing module API.
See also
SwRegisterHTM()

◆ aa_get_next_band()

static int32 aa_get_next_band ( void *  pForCallback,
aa_raster_unit **  pBand,
HqBool pfMoreLines 
)
static

Input callback for the filter.

◆ aa_get_next_band_mask()

static int32 aa_get_next_band_mask ( void *  pForCallback,
aa_raster_unit **  pBand,
aa_raster_unit **  pMask,
HqBool pfMoreLines 
)
static

Input callback for the filter.

◆ aa_init()

static HqBool aa_init ( sw_htm_api implementation,
const sw_htm_init_params params 
)
static

Implementation of init .

Captures the memory API.

Variable Documentation

◆ aa_api

sw_htm_api aa_api
static

The sw_htm_api used to register the antialiasing module with the RIP.

◆ mem_allocator

sw_memory_instance* mem_allocator
static

The memory allocator given to the module to use.

◆ states

aa_state* states = ((void*)0)
static

List of states (instances) currently in use.