31#ifndef __ARM_2D_FILL_COLOUR_WITH_MASK_AND_MIRRORING_H__
32#define __ARM_2D_FILL_COLOUR_WITH_MASK_AND_MIRRORING_H__
36#include "arm_2d_types.h"
43# pragma clang diagnostic push
44# pragma clang diagnostic ignored "-Wunknown-warning-option"
45# pragma clang diagnostic ignored "-Wreserved-identifier"
46# pragma clang diagnostic ignored "-Wmissing-declarations"
47# pragma clang diagnostic ignored "-Wpadded"
48# pragma clang diagnostic ignored "-Wc11-extensions"
59#define arm_2d_gray8_fill_colour_with_mask_and_x_mirror( \
64 arm_2dp_gray8_fill_colour_with_mask_and_x_mirror( \
71#define arm_2d_gray8_fill_colour_with_mask_x_mirror_and_opacity( \
77 arm_2dp_gray8_fill_colour_with_mask_x_mirror_and_opacity( \
85#define arm_2d_gray8_fill_colour_with_mask_and_y_mirror( \
90 arm_2dp_gray8_fill_colour_with_mask_and_y_mirror( \
97#define arm_2d_gray8_fill_colour_with_mask_y_mirror_and_opacity( \
103 arm_2dp_gray8_fill_colour_with_mask_y_mirror_and_opacity( \
111#define arm_2d_gray8_fill_colour_with_mask_and_xy_mirror( \
116 arm_2dp_gray8_fill_colour_with_mask_and_xy_mirror( \
123#define arm_2d_gray8_fill_colour_with_mask_xy_mirror_and_opacity( \
129 arm_2dp_gray8_fill_colour_with_mask_xy_mirror_and_opacity( \
137#define arm_2d_gray8_fill_colour_with_mask_only( \
142 arm_2dp_gray8_fill_colour_with_mask_only( \
149#define arm_2d_gray8_fill_colour_with_mask_and_opacity_only( \
155 arm_2dp_gray8_fill_colour_with_mask_and_opacity_only( \
163#define arm_2d_gray8_fill_colour_with_mask( \
170 arm_fsm_rt_t tResult = (arm_fsm_rt_t)ARM_2D_ERR_UNKNOWN; \
171 switch ( (ARM_2D_CP_MODE_NO_MIRROR, ##__VA_ARGS__) \
172 & ARM_2D_CP_MODE_XY_MIRROR) { \
173 case ARM_2D_CP_MODE_NO_MIRROR: \
174 tResult = arm_2d_gray8_fill_colour_with_mask_only( \
180 case ARM_2D_CP_MODE_X_MIRROR: \
181 tResult = arm_2d_gray8_fill_colour_with_mask_and_x_mirror( \
187 case ARM_2D_CP_MODE_Y_MIRROR: \
188 tResult = arm_2d_gray8_fill_colour_with_mask_and_y_mirror( \
194 case ARM_2D_CP_MODE_XY_MIRROR: \
195 tResult = arm_2d_gray8_fill_colour_with_mask_and_xy_mirror( \
205#define arm_2d_gray8_fill_colour_with_mask_and_opacity( \
213 arm_fsm_rt_t tResult = (arm_fsm_rt_t)ARM_2D_ERR_UNKNOWN; \
214 switch ( (ARM_2D_CP_MODE_NO_MIRROR, ##__VA_ARGS__) \
215 & ARM_2D_CP_MODE_XY_MIRROR) { \
216 case ARM_2D_CP_MODE_NO_MIRROR: \
217 tResult = arm_2d_gray8_fill_colour_with_mask_and_opacity_only( \
224 case ARM_2D_CP_MODE_X_MIRROR: \
226 arm_2d_gray8_fill_colour_with_mask_x_mirror_and_opacity( \
233 case ARM_2D_CP_MODE_Y_MIRROR: \
235 arm_2d_gray8_fill_colour_with_mask_y_mirror_and_opacity( \
242 case ARM_2D_CP_MODE_XY_MIRROR: \
244 arm_2d_gray8_fill_colour_with_mask_xy_mirror_and_opacity( \
255#define arm_2d_rgb565_fill_colour_with_mask_and_x_mirror( \
260 arm_2dp_rgb565_fill_colour_with_mask_and_x_mirror( \
267#define arm_2d_rgb565_fill_colour_with_mask_x_mirror_and_opacity( \
273 arm_2dp_rgb565_fill_colour_with_mask_x_mirror_and_opacity( \
281#define arm_2d_rgb565_fill_colour_with_mask_and_y_mirror( \
286 arm_2dp_rgb565_fill_colour_with_mask_and_y_mirror( \
293#define arm_2d_rgb565_fill_colour_with_mask_y_mirror_and_opacity( \
299 arm_2dp_rgb565_fill_colour_with_mask_y_mirror_and_opacity( \
307#define arm_2d_rgb565_fill_colour_with_mask_and_xy_mirror( \
312 arm_2dp_rgb565_fill_colour_with_mask_and_xy_mirror( \
319#define arm_2d_rgb565_fill_colour_with_mask_xy_mirror_and_opacity( \
325 arm_2dp_rgb565_fill_colour_with_mask_xy_mirror_and_opacity( \
333#define arm_2d_rgb565_fill_colour_with_mask_only( \
338 arm_2dp_rgb565_fill_colour_with_mask_only( \
345#define arm_2d_rgb565_fill_colour_with_mask_and_opacity_only( \
351 arm_2dp_rgb565_fill_colour_with_mask_and_opacity_only( \
359#define arm_2d_rgb565_fill_colour_with_mask( \
366 arm_fsm_rt_t tResult = (arm_fsm_rt_t)ARM_2D_ERR_UNKNOWN; \
367 switch ( (ARM_2D_CP_MODE_NO_MIRROR, ##__VA_ARGS__) \
368 & ARM_2D_CP_MODE_XY_MIRROR) { \
369 case ARM_2D_CP_MODE_NO_MIRROR: \
370 tResult = arm_2d_rgb565_fill_colour_with_mask_only( \
376 case ARM_2D_CP_MODE_X_MIRROR: \
377 tResult = arm_2d_rgb565_fill_colour_with_mask_and_x_mirror( \
383 case ARM_2D_CP_MODE_Y_MIRROR: \
384 tResult = arm_2d_rgb565_fill_colour_with_mask_and_y_mirror( \
390 case ARM_2D_CP_MODE_XY_MIRROR: \
391 tResult = arm_2d_rgb565_fill_colour_with_mask_and_xy_mirror( \
401#define arm_2d_rgb565_fill_colour_with_mask_and_opacity( \
409 arm_fsm_rt_t tResult = (arm_fsm_rt_t)ARM_2D_ERR_UNKNOWN; \
410 switch ( (ARM_2D_CP_MODE_NO_MIRROR, ##__VA_ARGS__) \
411 & ARM_2D_CP_MODE_XY_MIRROR) { \
412 case ARM_2D_CP_MODE_NO_MIRROR: \
413 tResult = arm_2d_rgb565_fill_colour_with_mask_and_opacity_only( \
420 case ARM_2D_CP_MODE_X_MIRROR: \
422 arm_2d_rgb565_fill_colour_with_mask_x_mirror_and_opacity( \
429 case ARM_2D_CP_MODE_Y_MIRROR: \
431 arm_2d_rgb565_fill_colour_with_mask_y_mirror_and_opacity( \
438 case ARM_2D_CP_MODE_XY_MIRROR: \
440 arm_2d_rgb565_fill_colour_with_mask_xy_mirror_and_opacity( \
451#define arm_2d_cccn888_fill_colour_with_mask_and_x_mirror( \
456 arm_2dp_cccn888_fill_colour_with_mask_and_x_mirror( \
463#define arm_2d_cccn888_fill_colour_with_mask_x_mirror_and_opacity( \
469 arm_2dp_cccn888_fill_colour_with_mask_x_mirror_and_opacity( \
477#define arm_2d_cccn888_fill_colour_with_mask_and_y_mirror( \
482 arm_2dp_cccn888_fill_colour_with_mask_and_y_mirror( \
489#define arm_2d_cccn888_fill_colour_with_mask_y_mirror_and_opacity( \
495 arm_2dp_cccn888_fill_colour_with_mask_y_mirror_and_opacity( \
503#define arm_2d_cccn888_fill_colour_with_mask_and_xy_mirror( \
508 arm_2dp_cccn888_fill_colour_with_mask_and_xy_mirror( \
515#define arm_2d_cccn888_fill_colour_with_mask_xy_mirror_and_opacity( \
521 arm_2dp_cccn888_fill_colour_with_mask_xy_mirror_and_opacity( \
529#define arm_2d_cccn888_fill_colour_with_mask_only( \
534 arm_2dp_cccn888_fill_colour_with_mask_only( \
541#define arm_2d_cccn888_fill_colour_with_mask_and_opacity_only( \
547 arm_2dp_cccn888_fill_colour_with_mask_and_opacity_only( \
555#define arm_2d_cccn888_fill_colour_with_mask( \
562 arm_fsm_rt_t tResult = (arm_fsm_rt_t)ARM_2D_ERR_UNKNOWN; \
563 switch ( (ARM_2D_CP_MODE_NO_MIRROR, ##__VA_ARGS__) \
564 & ARM_2D_CP_MODE_XY_MIRROR) { \
565 case ARM_2D_CP_MODE_NO_MIRROR: \
566 tResult = arm_2d_cccn888_fill_colour_with_mask_only( \
572 case ARM_2D_CP_MODE_X_MIRROR: \
573 tResult = arm_2d_cccn888_fill_colour_with_mask_and_x_mirror( \
579 case ARM_2D_CP_MODE_Y_MIRROR: \
580 tResult = arm_2d_cccn888_fill_colour_with_mask_and_y_mirror( \
586 case ARM_2D_CP_MODE_XY_MIRROR: \
587 tResult = arm_2d_cccn888_fill_colour_with_mask_and_xy_mirror( \
597#define arm_2d_cccn888_fill_colour_with_mask_and_opacity( \
605 arm_fsm_rt_t tResult = (arm_fsm_rt_t)ARM_2D_ERR_UNKNOWN; \
606 switch ( (ARM_2D_CP_MODE_NO_MIRROR, ##__VA_ARGS__) \
607 & ARM_2D_CP_MODE_XY_MIRROR) { \
608 case ARM_2D_CP_MODE_NO_MIRROR: \
609 tResult = arm_2d_cccn888_fill_colour_with_mask_and_opacity_only( \
616 case ARM_2D_CP_MODE_X_MIRROR: \
618 arm_2d_cccn888_fill_colour_with_mask_x_mirror_and_opacity( \
625 case ARM_2D_CP_MODE_Y_MIRROR: \
627 arm_2d_cccn888_fill_colour_with_mask_y_mirror_and_opacity( \
634 case ARM_2D_CP_MODE_XY_MIRROR: \
636 arm_2d_cccn888_fill_colour_with_mask_xy_mirror_and_opacity( \
652arm_fsm_rt_t arm_2dp_gray8_fill_colour_with_mask_and_x_mirror(
661arm_fsm_rt_t arm_2dp_gray8_fill_colour_with_mask_x_mirror_and_opacity(
670arm_fsm_rt_t arm_2dp_gray8_fill_colour_with_mask_and_y_mirror(
679arm_fsm_rt_t arm_2dp_gray8_fill_colour_with_mask_y_mirror_and_opacity(
688arm_fsm_rt_t arm_2dp_gray8_fill_colour_with_mask_and_xy_mirror(
697arm_fsm_rt_t arm_2dp_gray8_fill_colour_with_mask_xy_mirror_and_opacity(
706arm_fsm_rt_t arm_2dp_rgb565_fill_colour_with_mask_and_x_mirror(
715arm_fsm_rt_t arm_2dp_rgb565_fill_colour_with_mask_x_mirror_and_opacity(
724arm_fsm_rt_t arm_2dp_rgb565_fill_colour_with_mask_and_y_mirror(
733arm_fsm_rt_t arm_2dp_rgb565_fill_colour_with_mask_y_mirror_and_opacity(
742arm_fsm_rt_t arm_2dp_rgb565_fill_colour_with_mask_and_xy_mirror(
751arm_fsm_rt_t arm_2dp_rgb565_fill_colour_with_mask_xy_mirror_and_opacity(
760arm_fsm_rt_t arm_2dp_cccn888_fill_colour_with_mask_and_x_mirror(
769arm_fsm_rt_t arm_2dp_cccn888_fill_colour_with_mask_x_mirror_and_opacity(
778arm_fsm_rt_t arm_2dp_cccn888_fill_colour_with_mask_and_y_mirror(
787arm_fsm_rt_t arm_2dp_cccn888_fill_colour_with_mask_y_mirror_and_opacity(
796arm_fsm_rt_t arm_2dp_cccn888_fill_colour_with_mask_and_xy_mirror(
805arm_fsm_rt_t arm_2dp_cccn888_fill_colour_with_mask_xy_mirror_and_opacity(
815#if defined(__clang__)
816#pragma clang diagnostic pop