Arm-2D  
2D Image Processing Library for Cortex-M Processors
arm_2d_transform.h
1/*
2 * Copyright (C) 2010-2022 Arm Limited or its affiliates. All rights reserved.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 *
6 * Licensed under the Apache License, Version 2.0 (the License); you may
7 * not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an AS IS BASIS, WITHOUT
14 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18
19/* ----------------------------------------------------------------------
20 * Project: Arm-2D Library
21 * Title: #include "arm_2d_transform.h"
22 * Description: Public header file to contain the APIs for transform
23 *
24 * $Date: 03 May 2023
25 * $Revision: V.1.0.6
26 *
27 * Target Processor: Cortex-M cores
28 * -------------------------------------------------------------------- */
29
30#ifndef __ARM_2D_ROTATION_H__
31#define __ARM_2D_ROTATION_H__
32
33/*============================ INCLUDES ======================================*/
34
35#include "arm_2d_types.h"
36
37#ifdef __cplusplus
38extern "C" {
39#endif
40
41#if defined(__clang__)
42# pragma clang diagnostic push
43# pragma clang diagnostic ignored "-Wunknown-warning-option"
44# pragma clang diagnostic ignored "-Wreserved-identifier"
45# pragma clang diagnostic ignored "-Wsign-conversion"
46# pragma clang diagnostic ignored "-Wpadded"
47# pragma clang diagnostic ignored "-Wgnu-zero-variadic-macro-arguments"
48#endif
49
50/*============================ MACROS ========================================*/
51/*!
52 * \addtogroup Deprecated
53 * @{
54 */
55#define arm_2d_op_rotate_t arm_2d_op_trans_t
56#define arm_2d_op_rotate_opacity_t arm_2d_op_trans_opa_t
57/*! @} */
58
59/*!
60 * \addtogroup Deprecated
61 * @{
62 */
63
64#define arm_2dp_gray8_tile_transform_with_opacity_prepare \
65 arm_2dp_gray8_tile_transform_with_colour_keying_and_opacity_prepare
66
67#define arm_2dp_rgb565_tile_transform_with_opacity_prepare \
68 arm_2dp_rgb565_tile_transform_with_colour_keying_and_opacity_prepare
69
70#define arm_2dp_cccn888_tile_transform_with_opacity_prepare \
71 arm_2dp_cccn888_tile_transform_with_colour_keying_and_opacity_prepare
72
73#define arm_2dp_gray8_tile_transform_prepare \
74 arm_2dp_gray8_tile_transform_with_colour_keying_prepare
75
76#define arm_2dp_rgb565_tile_transform_prepare \
77 arm_2dp_rgb565_tile_transform_with_colour_keying_prepare
78
79#define arm_2dp_cccn888_tile_transform_prepare \
80 arm_2dp_cccn888_tile_transform_with_colour_keying_prepare
81
82#define arm_2dp_tile_rotate arm_2dp_tile_transform
83
84#define arm_2dp_gray8_tile_rotate_prepare \
85 arm_2dp_gray8_tile_transform_with_colour_keying_prepare
86
87#define arm_2dp_rgb565_tile_rotate_prepare \
88 arm_2dp_rgb565_tile_transform_with_colour_keying_prepare
89
90#define arm_2dp_cccn888_tile_rotate_prepare \
91 arm_2dp_cccn888_tile_transform_with_colour_keying_prepare
92
93#define arm_2d_rgb888_tile_rotation_prepare \
94 arm_2d_cccn888_tile_rotation_prepare
95
96#define arm_2d_gray8_tile_rotation_prepare \
97 arm_2d_gray8_tile_rotation_with_colour_keying_prepare
98
99#define arm_2d_rgb565_tile_rotation_prepare \
100 arm_2d_rgb565_tile_rotation_with_colour_keying_prepare
101
102#define arm_2d_cccn888_tile_rotation_prepare \
103 arm_2d_cccn888_tile_rotation_with_colour_keying_prepare
104
105#define arm_2dp_gray8_tile_rotate_with_opacity_prepare \
106 arm_2dp_gray8_tile_transform_with_colour_keying_and_opacity_prepare
107
108#define arm_2dp_rgb565_tile_rotate_with_opacity_prepare \
109 arm_2dp_rgb565_tile_transform_with_colour_keying_and_opacity_prepare
110
111#define arm_2dp_cccn888_tile_rotate_with_opacity_prepare \
112 arm_2dp_cccn888_tile_transform_with_colour_keying_and_opacity_prepare
113
114#define arm_2d_gray8_tile_rotation_with_alpha_prepare \
115 arm_2d_gray8_tile_rotation_with_opacity_prepare
116
117#define arm_2d_rgb565_tile_rotation_with_alpha_prepare \
118 arm_2d_rgb565_tile_rotation_with_opacity_prepare
119
120#define arm_2d_rgb888_tile_rotation_with_alpha_prepare \
121 arm_2d_rgb888_tile_rotation_with_opacity_prepare
122
123#define arm_2d_cccn888_tile_rotation_with_alpha_prepare \
124 arm_2d_cccn888_tile_rotation_with_opacity_prepare
125
126#define arm_2d_rgb888_tile_rotation_with_opacity_prepare \
127 arm_2d_cccn888_tile_rotation_with_opacity_prepare
128
129#define arm_2dp_gray8_tile_rotation \
130 arm_2dp_gray8_tile_rotation_with_colour_keying
131
132#define arm_2dp_rgb565_tile_rotation \
133 arm_2dp_rgb565_tile_rotation_with_colour_keying
134
135#define arm_2dp_cccn888_tile_rotation \
136 arm_2dp_cccn888_tile_rotation_with_colour_keying
137
138#define arm_2d_gray8_tile_rotation \
139 arm_2d_gray8_tile_rotation_with_colour_keying
140
141#define arm_2d_rgb565_tile_rotation \
142 arm_2d_rgb565_tile_rotation_with_colour_keying
143
144#define arm_2d_cccn888_tile_rotation \
145 arm_2d_cccn888_tile_rotation_with_colour_keying
146
147#define arm_2d_rgb888_tile_rotation_with_colour_keying \
148 arm_2d_cccn888_tile_rotation_with_colour_keying
149
150#define arm_2dp_gray8_tile_rotation_with_alpha \
151 arm_2dp_gray8_tile_rotation_with_opacity
152
153#define arm_2dp_rgb565_tile_rotation_with_alpha \
154 arm_2dp_rgb565_tile_rotation_with_opacity
155
156#define arm_2dp_rgb888_tile_rotation_with_alpha \
157 arm_2dp_cccn888_tile_rotation_with_opacity
158
159#define arm_2dp_rgb888_tile_rotation_with_opacity \
160 arm_2dp_cccn888_tile_rotation_with_opacity
161
162#define arm_2dp_cccn888_tile_rotation_with_alpha \
163 arm_2dp_cccn888_tile_rotation_with_opacity
164
165#define arm_2d_gray8_tile_rotation_with_alpha \
166 arm_2d_gray8_tile_rotation_with_opacity
167
168#define arm_2d_rgb565_tile_rotation_with_alpha \
169 arm_2d_rgb565_tile_rotation_with_opacity
170
171#define arm_2d_rgb888_tile_rotation_with_alpha \
172 arm_2d_rgb888_tile_rotation_with_opacity
173
174#define arm_2d_cccn888_tile_rotation_with_alpha \
175 arm_2d_cccn888_tile_rotation_with_opacity
176
177#define arm_2d_rgb888_tile_rotation_with_opacity \
178 arm_2d_cccn888_tile_rotation_with_opacity
179
180#define arm_2d_gray8_tile_transform_prepare \
181 arm_2d_gray8_tile_transform_with_colour_keying_prepare
182
183#define arm_2d_rgb565_tile_transform_prepare \
184 arm_2d_rgb565_tile_transform_with_colour_keying_prepare
185
186#define arm_2d_cccn888_tile_transform_prepare \
187 arm_2d_cccn888_tile_transform_with_colour_keying_prepare
188
189#define arm_2d_rgb888_tile_transform_prepare \
190 arm_2d_cccn888_tile_transform_prepare
191
192#define arm_2d_gray8_tile_transform_with_alpha_prepare \
193 arm_2d_gray8_tile_transform_with_opacity_prepare
194
195#define arm_2d_rgb565_tile_transform_with_alpha_prepare \
196 arm_2d_rgb565_tile_transform_with_opacity_prepare
197
198#define arm_2d_rgb888_tile_transform_with_alpha_prepare \
199 arm_2d_rgb888_tile_transform_with_opacity_prepare
200
201#define arm_2d_cccn888_tile_transform_with_alpha_prepare \
202 arm_2d_cccn888_tile_transform_with_opacity_prepare
203
204#define arm_2d_rgb888_tile_transform_with_opacity_prepare \
205 arm_2d_cccn888_tile_transform_with_opacity_prepare
206
207#define arm_2d_gray8_tile_transform_with_alpha \
208 arm_2d_gray8_tile_transform_with_opacity
209
210#define arm_2d_rgb565_tile_transform_with_alpha \
211 arm_2d_rgb565_tile_transform_with_opacity
212
213#define arm_2d_rgb888_tile_transform_with_alpha \
214 arm_2d_rgb888_tile_transform_with_opacity
215
216#define arm_2d_cccn888_tile_transform_with_alpha \
217 arm_2d_cccn888_tile_transform_with_opacity
218
219#define arm_2d_rgb888_tile_transform_with_opacity \
220 arm_2d_cccn888_tile_transform_with_opacity
221
222#define arm_2dp_gray8_tile_transform \
223 arm_2dp_gray8_tile_transform_with_colour_keying
224
225#define arm_2dp_rgb565_tile_transform \
226 arm_2dp_rgb565_tile_transform_with_colour_keying
227
228#define arm_2dp_cccn888_tile_transform \
229 arm_2dp_cccn888_tile_transform_with_colour_keying
230
231#define arm_2d_gray8_tile_transform \
232 arm_2d_gray8_tile_transform_with_colour_keying
233
234#define arm_2d_rgb565_tile_transform \
235 arm_2d_rgb565_tile_transform_with_colour_keying
236
237#define arm_2d_cccn888_tile_transform \
238 arm_2d_cccn888_tile_transform_with_colour_keying
239
240#define arm_2dp_gray8_tile_transform_with_alpha \
241 arm_2dp_gray8_tile_transform_with_opacity
242
243#define arm_2dp_rgb565_tile_transform_with_alpha \
244 arm_2dp_rgb565_tile_transform_with_opacity
245
246#define arm_2dp_rgb888_tile_transform_with_alpha \
247 arm_2dp_rgb888_tile_transform_with_opacity
248
249#define arm_2dp_cccn888_tile_transform_with_alpha \
250 arm_2dp_cccn888_tile_transform_with_opacity
251
252#define arm_2dp_rgb888_tile_transform_with_opacity \
253 arm_2dp_cccn888_tile_transform_with_opacity
254
255#define arm_2d_gray8_tile_scaling_prepare \
256 arm_2d_gray8_tile_scaling_with_colour_keying_prepare
257
258#define arm_2d_rgb565_tile_scaling_prepare \
259 arm_2d_rgb565_tile_scaling_with_colour_keying_prepare
260
261#define arm_2d_cccn888_tile_scaling_prepare \
262 arm_2d_cccn888_tile_scaling_with_colour_keying_prepare
263
264#define arm_2d_rgb888_tile_scaling_prepare \
265 arm_2d_cccn888_tile_scaling_with_colour_keying_prepare
266
267
268#define arm_2d_gray8_tile_scaling_with_alpha_prepare \
269 arm_2d_gray8_tile_scaling_with_opacity_prepare
270
271#define arm_2d_rgb565_tile_scaling_with_alpha_prepare \
272 arm_2d_rgb565_tile_scaling_with_opacity_prepare
273
274#define arm_2d_rgb888_tile_scaling_with_alpha_prepare \
275 arm_2d_rgb888_tile_scaling_with_opacity_prepare
276
277#define arm_2d_cccn888_tile_scaling_with_alpha_prepare \
278 arm_2d_cccn888_tile_scaling_with_opacity_prepare
279
280#define arm_2d_rgb888_tile_scaling_with_opacity_prepare \
281 arm_2d_cccn888_tile_scaling_with_opacity_prepare
282
283#define arm_2dp_gray8_tile_scaling_with_alpha \
284 arm_2dp_gray8_tile_scaling_with_opacity
285
286#define arm_2dp_rgb565_tile_scaling_with_alpha \
287 arm_2dp_rgb565_tile_scaling_with_opacity
288
289#define arm_2dp_rgb888_tile_scaling_with_alpha \
290 arm_2dp_rgb888_tile_scaling_with_opacity
291
292#define arm_2dp_cccn888_tile_scaling_with_alpha \
293 arm_2dp_cccn888_tile_scaling_with_opacity
294
295#define arm_2dp_rgb888_tile_scaling_with_opacity \
296 arm_2dp_cccn888_tile_scaling_with_opacity
297
298#define arm_2d_gray8_tile_scaling_with_alpha \
299 arm_2d_gray8_tile_scaling_with_opacity
300
301#define arm_2d_rgb565_tile_scaling_with_alpha \
302 arm_2d_rgb565_tile_scaling_with_opacity
303
304#define arm_2d_rgb888_tile_scaling_with_alpha \
305 arm_2d_rgb888_tile_scaling_with_opacity
306
307#define arm_2d_cccn888_tile_scaling_with_alpha \
308 arm_2d_cccn888_tile_scaling_with_opacity
309
310#define arm_2d_rgb888_tile_scaling_with_opacity \
311 arm_2d_cccn888_tile_scaling_with_opacity
312
313#define arm_2dp_gray8_tile_scaling \
314 arm_2dp_gray8_tile_scaling_with_colour_keying
315
316#define arm_2dp_rgb565_tile_scaling \
317 arm_2dp_rgb565_tile_scaling_with_colour_keying
318
319#define arm_2dp_cccn888_tile_scaling \
320 arm_2dp_cccn888_tile_scaling_with_colour_keying
321
322#define arm_2d_gray8_tile_scaling \
323 arm_2d_gray8_tile_scaling_with_colour_keying
324
325#define arm_2d_rgb565_tile_scaling \
326 arm_2d_rgb565_tile_scaling_with_colour_keying
327
328#define arm_2d_cccn888_tile_scaling \
329 arm_2d_cccn888_tile_scaling_with_colour_keying
330
331#define arm_2d_rgb888_tile_scaling \
332 arm_2d_cccn888_tile_scaling_with_colour_keying
333
334/*! @} */
335
336/*!
337 * \addtogroup gTransform 5 Transform Operations
338 * @{
339 */
340
341/*============================ MACROFIED FUNCTIONS ===========================*/
342
343/*----------------------------------------------------------------------------*
344 * API wrappers: Rotation *
345 *----------------------------------------------------------------------------*/
346
347#define arm_2d_gray8_tile_rotation_with_colour_keying_prepare( __SRC_TILE_ADDR,\
348 __CENTRE, \
349 __ANGLE, \
350 __MSK_COLOUR) \
351 arm_2dp_gray8_tile_transform_with_colour_keying_prepare( NULL, \
352 (__SRC_TILE_ADDR), \
353 (__CENTRE), \
354 (float)(__ANGLE), \
355 1.0f, \
356 (__MSK_COLOUR))
357
358#define arm_2d_rgb565_tile_rotation_with_colour_keying_prepare( __SRC_TILE_ADDR,\
359 __CENTRE, \
360 __ANGLE, \
361 __MSK_COLOUR) \
362 arm_2dp_rgb565_tile_transform_with_colour_keying_prepare( NULL, \
363 (__SRC_TILE_ADDR), \
364 (__CENTRE), \
365 (float)(__ANGLE), \
366 1.0f, \
367 (__MSK_COLOUR))
368
369#define arm_2d_cccn888_tile_rotation_with_colour_keying_prepare(__SRC_TILE_ADDR,\
370 __CENTRE, \
371 __ANGLE, \
372 __MSK_COLOUR) \
373 arm_2dp_cccn888_tile_transform_with_colour_keying_prepare( NULL, \
374 (__SRC_TILE_ADDR), \
375 (__CENTRE), \
376 (float)(__ANGLE), \
377 1.0f, \
378 (__MSK_COLOUR))
379
380#define arm_2d_gray8_tile_rotation_only_prepare(__SRC_TILE_ADDR, \
381 __CENTRE, \
382 __ANGLE) \
383 arm_2dp_gray8_tile_transform_only_prepare( NULL, \
384 (__SRC_TILE_ADDR), \
385 (__CENTRE), \
386 (float)(__ANGLE), \
387 1.0f)
388
389#define arm_2d_rgb565_tile_rotation_only_prepare( __SRC_TILE_ADDR, \
390 __CENTRE, \
391 __ANGLE) \
392 arm_2dp_rgb565_tile_transform_with_colour_keying_prepare( NULL, \
393 (__SRC_TILE_ADDR), \
394 (__CENTRE), \
395 (float)(__ANGLE), \
396 1.0f)
397
398#define arm_2d_cccn888_tile_rotation_only_prepare( __SRC_TILE_ADDR, \
399 __CENTRE, \
400 __ANGLE) \
401 arm_2dp_cccn888_tile_transform_with_colour_keying_prepare( NULL, \
402 (__SRC_TILE_ADDR), \
403 (__CENTRE), \
404 (float)(__ANGLE), \
405 1.0f)
406
407#define arm_2d_gray8_tile_rotation_with_opacity_prepare( \
408 __SRC_TILE_ADDR, \
409 __CENTRE, \
410 __ANGLE, \
411 __MSK_COLOUR, \
412 __OPACITY) \
413 arm_2dp_gray8_tile_transform_with_colour_keying_and_opacity_prepare(\
414 NULL, \
415 (__SRC_TILE_ADDR), \
416 (__CENTRE), \
417 (float)(__ANGLE), \
418 1.0f, \
419 (__MSK_COLOUR), \
420 (__OPACITY))
421
422#define arm_2d_rgb565_tile_rotation_with_opacity_prepare( \
423 __SRC_TILE_ADDR, \
424 __CENTRE, \
425 __ANGLE, \
426 __MSK_COLOUR, \
427 __OPACITY) \
428 arm_2dp_rgb565_tile_transform_with_colour_keying_and_opacity_prepare(\
429 NULL, \
430 (__SRC_TILE_ADDR), \
431 (__CENTRE), \
432 (float)(__ANGLE), \
433 1.0f, \
434 (__MSK_COLOUR), \
435 (__OPACITY))
436
437
438#define arm_2d_cccn888_tile_rotation_with_opacity_prepare( \
439 __SRC_TILE_ADDR, \
440 __CENTRE, \
441 __ANGLE, \
442 __MSK_COLOUR, \
443 __OPACITY) \
444 arm_2dp_cccn888_tile_transform_with_colour_keying_and_opacity_prepare(\
445 NULL, \
446 (__SRC_TILE_ADDR), \
447 (__CENTRE), \
448 (float)(__ANGLE), \
449 1.0f, \
450 (__MSK_COLOUR), \
451 (__OPACITY))
452
453
454#define arm_2d_gray8_tile_rotation_only_with_opacity_prepare( \
455 __SRC_TILE_ADDR, \
456 __CENTRE, \
457 __ANGLE, \
458 __OPACITY) \
459 arm_2dp_gray8_tile_transform_only_with_opacity_prepare( \
460 NULL, \
461 (__SRC_TILE_ADDR), \
462 (__CENTRE), \
463 (float)(__ANGLE), \
464 1.0f, \
465 (__OPACITY))
466
467#define arm_2d_rgb565_tile_rotation_only_with_opacity_prepare( \
468 __SRC_TILE_ADDR, \
469 __CENTRE, \
470 __ANGLE, \
471 __OPACITY) \
472 arm_2dp_rgb565_tile_transform_only_with_opacity_prepare( \
473 NULL, \
474 (__SRC_TILE_ADDR), \
475 (__CENTRE), \
476 (float)(__ANGLE), \
477 1.0f, \
478 (__OPACITY))
479
480#define arm_2d_cccn888_tile_rotation_only_with_opacity_prepare( \
481 __SRC_TILE_ADDR, \
482 __CENTRE, \
483 __ANGLE, \
484 __OPACITY) \
485 arm_2dp_cccn888_tile_transform_only_with_opacity_prepare( \
486 NULL, \
487 (__SRC_TILE_ADDR), \
488 (__CENTRE), \
489 (float)(__ANGLE), \
490 1.0f, \
491 (__OPACITY))
492
493
494#define arm_2d_gray8_tile_rotation_with_src_mask_prepare( \
495 __SRC_TILE_ADDR, \
496 __SRC_MASK_ADDR, \
497 __CENTRE, \
498 __ANGLE) \
499 arm_2dp_gray8_tile_transform_with_src_mask_prepare( NULL, \
500 (__SRC_TILE_ADDR), \
501 (__SRC_MASK_ADDR), \
502 (__CENTRE), \
503 (float)(__ANGLE), \
504 1.0f)
505
506#define arm_2d_rgb565_tile_rotation_with_src_mask_prepare( \
507 __SRC_TILE_ADDR, \
508 __SRC_MASK_ADDR, \
509 __CENTRE, \
510 __ANGLE) \
511 arm_2dp_rgb565_tile_transform_with_src_mask_prepare( NULL, \
512 (__SRC_TILE_ADDR), \
513 (__SRC_MASK_ADDR), \
514 (__CENTRE), \
515 (float)(__ANGLE), \
516 1.0f)
517
518#define arm_2d_cccn888_tile_rotation_with_src_mask_prepare( \
519 __SRC_TILE_ADDR, \
520 __SRC_MASK_ADDR, \
521 __CENTRE, \
522 __ANGLE) \
523 arm_2dp_cccn888_tile_transform_with_src_mask_prepare( NULL, \
524 (__SRC_TILE_ADDR), \
525 (__SRC_MASK_ADDR), \
526 (__CENTRE), \
527 (float)(__ANGLE), \
528 1.0f)
529
530#define arm_2d_gray8_tile_rotation_with_src_mask_and_opacity_prepare( \
531 __SRC_TILE_ADDR, \
532 __SRC_MASK_ADDR, \
533 __CENTRE, \
534 __ANGLE, \
535 __OPACITY) \
536 arm_2dp_gray8_tile_transform_with_src_mask_and_opacity_prepare( \
537 NULL, \
538 (__SRC_TILE_ADDR), \
539 (__SRC_MASK_ADDR), \
540 (__CENTRE), \
541 (float)(__ANGLE), \
542 1.0f, \
543 (__OPACITY))
544
545#define arm_2d_rgb565_tile_rotation_with_src_mask_and_opacity_prepare( \
546 __SRC_TILE_ADDR, \
547 __SRC_MASK_ADDR, \
548 __CENTRE, \
549 __ANGLE, \
550 __OPACITY) \
551 arm_2dp_rgb565_tile_transform_with_src_mask_and_opacity_prepare( \
552 NULL, \
553 (__SRC_TILE_ADDR), \
554 (__SRC_MASK_ADDR), \
555 (__CENTRE), \
556 (float)(__ANGLE), \
557 1.0f, \
558 (__OPACITY))
559
560#define arm_2d_cccn888_tile_rotation_with_src_mask_and_opacity_prepare( \
561 __SRC_TILE_ADDR, \
562 __SRC_MASK_ADDR, \
563 __CENTRE, \
564 __ANGLE, \
565 __OPACITY) \
566 arm_2dp_cccn888_tile_transform_with_src_mask_and_opacity_prepare( \
567 NULL, \
568 (__SRC_TILE_ADDR), \
569 (__SRC_MASK_ADDR), \
570 (__CENTRE), \
571 (float)(__ANGLE), \
572 1.0f, \
573 (__OPACITY))
574
575#define arm_2d_tile_rotate( __DES_TILE_ADDR, \
576 __DES_REGION_ADDR, \
577 __DES_CENTRE_ADDR) \
578 arm_2dp_tile_transform(NULL, \
579 (__DES_TILE_ADDR), \
580 (__DES_REGION_ADDR), \
581 (__DES_CENTRE_ADDR))
582
583/* following macro APIs rely on the boolean variable bIsNewFrame.
584 * Please make sure you have define it with the correct name and the
585 * corresponding value. If you don't use the PFB interfaces for neight
586 * the low level rendering nor the high level GUI drawing, please find
587 * such variable with the value "true".
588 */
589
590#define arm_2dp_gray8_tile_rotation_with_colour_keying( __CB_ADDR, \
591 __SRC_TILE_ADDR, \
592 __DES_TILE_ADDR, \
593 __DES_REGION_ADDR, \
594 __CENTRE, \
595 __ANGLE, \
596 __MSK_COLOUR, \
597 ...) \
598 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
599 arm_2dp_gray8_tile_transform_with_colour_keying_prepare( \
600 (__CB_ADDR), \
601 (__SRC_TILE_ADDR), \
602 (__CENTRE), \
603 (__ANGLE), \
604 1.0f, \
605 (__MSK_COLOUR)); \
606 }; \
607 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
608 (__DES_TILE_ADDR), \
609 (__DES_REGION_ADDR), \
610 (NULL,##__VA_ARGS__)); \
611 })
612
613#define arm_2dp_rgb565_tile_rotation_with_colour_keying(__CB_ADDR, \
614 __SRC_TILE_ADDR, \
615 __DES_TILE_ADDR, \
616 __DES_REGION_ADDR, \
617 __CENTRE, \
618 __ANGLE, \
619 __MSK_COLOUR, \
620 ...) \
621 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
622 arm_2dp_rgb565_tile_transform_with_colour_keying_prepare( \
623 (__CB_ADDR), \
624 (__SRC_TILE_ADDR), \
625 (__CENTRE), \
626 (__ANGLE), \
627 1.0f, \
628 (__MSK_COLOUR)); \
629 }; \
630 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
631 (__DES_TILE_ADDR), \
632 (__DES_REGION_ADDR), \
633 (NULL,##__VA_ARGS__)); \
634 })
635
636
637#define arm_2dp_cccn888_tile_rotation_with_colour_keying(__CB_ADDR, \
638 __SRC_TILE_ADDR, \
639 __DES_TILE_ADDR, \
640 __DES_REGION_ADDR, \
641 __CENTRE, \
642 __ANGLE, \
643 __MSK_COLOUR, \
644 ...) \
645 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
646 arm_2dp_cccn888_tile_transform_with_colour_keying_prepare( \
647 (__CB_ADDR), \
648 (__SRC_TILE_ADDR), \
649 (__CENTRE), \
650 (__ANGLE), \
651 1.0f, \
652 (__MSK_COLOUR)); \
653 }; \
654 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
655 (__DES_TILE_ADDR), \
656 (__DES_REGION_ADDR), \
657 (NULL,##__VA_ARGS__)); \
658 })
659
660#define arm_2dp_gray8_tile_rotation_only( __CB_ADDR, \
661 __SRC_TILE_ADDR, \
662 __DES_TILE_ADDR, \
663 __DES_REGION_ADDR, \
664 __CENTRE, \
665 __ANGLE, \
666 ...) \
667 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
668 arm_2dp_gray8_tile_transform_only_prepare( \
669 (__CB_ADDR), \
670 (__SRC_TILE_ADDR), \
671 (__CENTRE), \
672 (__ANGLE), \
673 1.0f); \
674 }; \
675 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
676 (__DES_TILE_ADDR), \
677 (__DES_REGION_ADDR), \
678 (NULL,##__VA_ARGS__)); \
679 })
680
681#define arm_2dp_rgb565_tile_rotation_only( __CB_ADDR, \
682 __SRC_TILE_ADDR, \
683 __DES_TILE_ADDR, \
684 __DES_REGION_ADDR, \
685 __CENTRE, \
686 __ANGLE, \
687 ...) \
688 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
689 arm_2dp_rgb565_tile_transform_only_prepare( \
690 (__CB_ADDR), \
691 (__SRC_TILE_ADDR), \
692 (__CENTRE), \
693 (__ANGLE), \
694 1.0f); \
695 }; \
696 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
697 (__DES_TILE_ADDR), \
698 (__DES_REGION_ADDR), \
699 (NULL,##__VA_ARGS__)); \
700 })
701
702
703#define arm_2dp_cccn888_tile_rotation_only( __CB_ADDR, \
704 __SRC_TILE_ADDR, \
705 __DES_TILE_ADDR, \
706 __DES_REGION_ADDR, \
707 __CENTRE, \
708 __ANGLE, \
709 ...) \
710 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
711 arm_2dp_cccn888_tile_transform_only_prepare( \
712 (__CB_ADDR), \
713 (__SRC_TILE_ADDR), \
714 (__CENTRE), \
715 (__ANGLE), \
716 1.0f); \
717 }; \
718 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
719 (__DES_TILE_ADDR), \
720 (__DES_REGION_ADDR), \
721 (NULL,##__VA_ARGS__)); \
722 })
723
724#define arm_2dp_gray8_tile_rotation_with_opacity( \
725 __CB_ADDR, \
726 __SRC_TILE_ADDR, \
727 __DES_TILE_ADDR, \
728 __DES_REGION_ADDR, \
729 __CENTRE, \
730 __ANGLE, \
731 __MSK_COLOUR, \
732 __OPACITY,...) \
733 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
734 arm_2dp_gray8_tile_transform_with_colour_keying_and_opacity_prepare(\
735 (__CB_ADDR), \
736 (__SRC_TILE_ADDR), \
737 (__CENTRE), \
738 (__ANGLE), \
739 1.0f, \
740 (__MSK_COLOUR), \
741 (__OPACITY)); \
742 }; \
743 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
744 (__DES_TILE_ADDR), \
745 (__DES_REGION_ADDR), \
746 (NULL,##__VA_ARGS__)); \
747 })
748
749
750#define arm_2dp_rgb565_tile_rotation_with_opacity( \
751 __CB_ADDR, \
752 __SRC_TILE_ADDR, \
753 __DES_TILE_ADDR, \
754 __DES_REGION_ADDR, \
755 __CENTRE, \
756 __ANGLE, \
757 __MSK_COLOUR, \
758 __OPACITY,...) \
759 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
760 arm_2dp_rgb565_tile_transform_with_colour_keying_and_opacity_prepare(\
761 (__CB_ADDR), \
762 (__SRC_TILE_ADDR), \
763 (__CENTRE), \
764 (__ANGLE), \
765 1.0f, \
766 (__MSK_COLOUR), \
767 (__OPACITY)); \
768 }; \
769 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
770 (__DES_TILE_ADDR), \
771 (__DES_REGION_ADDR), \
772 (NULL,##__VA_ARGS__)); \
773 })
774
775#define arm_2dp_cccn888_tile_rotation_with_opacity( \
776 __CB_ADDR, \
777 __SRC_TILE_ADDR, \
778 __DES_TILE_ADDR, \
779 __DES_REGION_ADDR, \
780 __CENTRE, \
781 __ANGLE, \
782 __MSK_COLOUR, \
783 __OPACITY, ...) \
784 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
785 arm_2dp_cccn888_tile_transform_with_colour_keying_and_opacity_prepare(\
786 (__CB_ADDR), \
787 (__SRC_TILE_ADDR), \
788 (__CENTRE), \
789 (__ANGLE), \
790 1.0f, \
791 (__MSK_COLOUR), \
792 (__OPACITY)); \
793 }; \
794 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
795 (__DES_TILE_ADDR), \
796 (__DES_REGION_ADDR), \
797 (NULL,##__VA_ARGS__)); \
798 })
799
800#define arm_2dp_gray8_tile_rotation_only_with_opacity( \
801 __CB_ADDR, \
802 __SRC_TILE_ADDR, \
803 __DES_TILE_ADDR, \
804 __DES_REGION_ADDR, \
805 __CENTRE, \
806 __ANGLE, \
807 __OPACITY, ...) \
808 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
809 arm_2dp_gray8_tile_transform_only_with_opacity_prepare( \
810 (__CB_ADDR), \
811 (__SRC_TILE_ADDR), \
812 (__CENTRE), \
813 (__ANGLE), \
814 1.0f, \
815 (__OPACITY)); \
816 }; \
817 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
818 (__DES_TILE_ADDR), \
819 (__DES_REGION_ADDR), \
820 (NULL,##__VA_ARGS__)); \
821 })
822
823#define arm_2dp_rgb565_tile_rotation_only_with_opacity( \
824 __CB_ADDR, \
825 __SRC_TILE_ADDR, \
826 __DES_TILE_ADDR, \
827 __DES_REGION_ADDR, \
828 __CENTRE, \
829 __ANGLE, \
830 __OPACITY, ...) \
831 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
832 arm_2dp_rgb565_tile_transform_only_with_opacity_prepare( \
833 (__CB_ADDR), \
834 (__SRC_TILE_ADDR), \
835 (__CENTRE), \
836 (__ANGLE), \
837 1.0f, \
838 (__OPACITY)); \
839 }; \
840 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
841 (__DES_TILE_ADDR), \
842 (__DES_REGION_ADDR), \
843 (NULL,##__VA_ARGS__)); \
844 })
845
846#define arm_2dp_cccn888_tile_rotation_only_with_opacity( \
847 __CB_ADDR, \
848 __SRC_TILE_ADDR, \
849 __DES_TILE_ADDR, \
850 __DES_REGION_ADDR, \
851 __CENTRE, \
852 __ANGLE, \
853 __OPACITY, ...) \
854 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
855 arm_2dp_cccn888_tile_transform_only_with_opacity_prepare( \
856 (__CB_ADDR), \
857 (__SRC_TILE_ADDR), \
858 (__CENTRE), \
859 (__ANGLE), \
860 1.0f, \
861 (__OPACITY)); \
862 }; \
863 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
864 (__DES_TILE_ADDR), \
865 (__DES_REGION_ADDR), \
866 (NULL,##__VA_ARGS__)); \
867 })
868
869#define arm_2dp_gray8_tile_rotation_with_src_mask( \
870 __CB_ADDR, \
871 __SRC_TILE_ADDR, \
872 __SRC_MASK_ADDR, \
873 __DES_TILE_ADDR, \
874 __DES_REGION_ADDR, \
875 __CENTRE, \
876 __ANGLE, \
877 ...) \
878 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
879 arm_2dp_gray8_tile_transform_with_src_mask_prepare( \
880 (__CB_ADDR), \
881 (__SRC_TILE_ADDR), \
882 (__SRC_MASK_ADDR), \
883 (__CENTRE), \
884 (__ANGLE), \
885 1.0f); \
886 }; \
887 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
888 (__DES_TILE_ADDR), \
889 (__DES_REGION_ADDR), \
890 (NULL,##__VA_ARGS__)); \
891 })
892
893#define arm_2dp_rgb565_tile_rotation_with_src_mask( \
894 __CB_ADDR, \
895 __SRC_TILE_ADDR, \
896 __SRC_MASK_ADDR, \
897 __DES_TILE_ADDR, \
898 __DES_REGION_ADDR, \
899 __CENTRE, \
900 __ANGLE, \
901 ...) \
902 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
903 arm_2dp_rgb565_tile_transform_with_src_mask_prepare( \
904 (__CB_ADDR), \
905 (__SRC_TILE_ADDR), \
906 (__SRC_MASK_ADDR), \
907 (__CENTRE), \
908 (__ANGLE), \
909 1.0f); \
910 }; \
911 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
912 (__DES_TILE_ADDR), \
913 (__DES_REGION_ADDR), \
914 (NULL,##__VA_ARGS__)); \
915 })
916
917#define arm_2dp_cccn888_tile_rotation_with_src_mask( \
918 __CB_ADDR, \
919 __SRC_TILE_ADDR, \
920 __SRC_MASK_ADDR, \
921 __DES_TILE_ADDR, \
922 __DES_REGION_ADDR, \
923 __CENTRE, \
924 __ANGLE, \
925 ...) \
926 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
927 arm_2dp_cccn888_tile_transform_with_src_mask_prepare( \
928 (__CB_ADDR), \
929 (__SRC_TILE_ADDR), \
930 (__SRC_MASK_ADDR), \
931 (__CENTRE), \
932 (__ANGLE), \
933 1.0f); \
934 }; \
935 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
936 (__DES_TILE_ADDR), \
937 (__DES_REGION_ADDR), \
938 (NULL,##__VA_ARGS__)); \
939 })
940
941#define arm_2dp_gray8_tile_rotation_with_src_mask_and_opacity( \
942 __CB_ADDR, \
943 __SRC_TILE_ADDR, \
944 __SRC_MASK_ADDR, \
945 __DES_TILE_ADDR, \
946 __DES_REGION_ADDR, \
947 __CENTRE, \
948 __ANGLE, \
949 __OPACITY, \
950 ...) \
951 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
952 arm_2dp_gray8_tile_transform_with_src_mask_and_opacity_prepare( \
953 (__CB_ADDR), \
954 (__SRC_TILE_ADDR), \
955 (__SRC_MASK_ADDR), \
956 (__CENTRE), \
957 (__ANGLE), \
958 1.0f, \
959 (__OPACITY)); \
960 }; \
961 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
962 (__DES_TILE_ADDR), \
963 (__DES_REGION_ADDR), \
964 (NULL,##__VA_ARGS__)); \
965 })
966
967#define arm_2dp_rgb565_tile_rotation_with_src_mask_and_opacity( \
968 __CB_ADDR, \
969 __SRC_TILE_ADDR, \
970 __SRC_MASK_ADDR, \
971 __DES_TILE_ADDR, \
972 __DES_REGION_ADDR, \
973 __CENTRE, \
974 __ANGLE, \
975 __OPACITY, \
976 ...) \
977 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
978 arm_2dp_rgb565_tile_transform_with_src_mask_and_opacity_prepare( \
979 (__CB_ADDR), \
980 (__SRC_TILE_ADDR), \
981 (__SRC_MASK_ADDR), \
982 (__CENTRE), \
983 (__ANGLE), \
984 1.0f, \
985 (__OPACITY)); \
986 }; \
987 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
988 (__DES_TILE_ADDR), \
989 (__DES_REGION_ADDR), \
990 (NULL,##__VA_ARGS__)); \
991 })
992
993#define arm_2dp_cccn888_tile_rotation_with_src_mask_and_opacity( \
994 __CB_ADDR, \
995 __SRC_TILE_ADDR, \
996 __SRC_MASK_ADDR, \
997 __DES_TILE_ADDR, \
998 __DES_REGION_ADDR, \
999 __CENTRE, \
1000 __ANGLE, \
1001 __OPACITY, \
1002 ...) \
1003 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
1004 arm_2dp_cccn888_tile_transform_with_src_mask_and_opacity_prepare( \
1005 (__CB_ADDR), \
1006 (__SRC_TILE_ADDR), \
1007 (__SRC_MASK_ADDR), \
1008 (__CENTRE), \
1009 (__ANGLE), \
1010 1.0f, \
1011 (__OPACITY)); \
1012 }; \
1013 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
1014 (__DES_TILE_ADDR), \
1015 (__DES_REGION_ADDR), \
1016 (NULL,##__VA_ARGS__)); \
1017 })
1018
1019#define arm_2d_gray8_tile_rotation_with_colour_keying( \
1020 __SRC_TILE_ADDR, \
1021 __DES_TILE_ADDR, \
1022 __DES_REGION_ADDR, \
1023 __CENTRE, \
1024 __ANGLE, \
1025 __MSK_COLOUR, ...) \
1026 ({{ \
1027 arm_2dp_gray8_tile_transform_with_colour_keying_prepare( \
1028 (NULL), \
1029 (__SRC_TILE_ADDR), \
1030 (__CENTRE), \
1031 (__ANGLE), \
1032 1.0f, \
1033 (__MSK_COLOUR)); \
1034 }; \
1035 arm_2dp_tile_transform(NULL, \
1036 (__DES_TILE_ADDR), \
1037 (__DES_REGION_ADDR), \
1038 (NULL,##__VA_ARGS__)); \
1039 })
1040
1041
1042#define arm_2d_rgb565_tile_rotation_with_colour_keying( \
1043 __SRC_TILE_ADDR, \
1044 __DES_TILE_ADDR, \
1045 __DES_REGION_ADDR, \
1046 __CENTRE, \
1047 __ANGLE, \
1048 __MSK_COLOUR, ...) \
1049 ({{ \
1050 arm_2dp_rgb565_tile_transform_with_colour_keying_prepare( \
1051 (NULL), \
1052 (__SRC_TILE_ADDR), \
1053 (__CENTRE), \
1054 (__ANGLE), \
1055 1.0f, \
1056 (__MSK_COLOUR)); \
1057 }; \
1058 arm_2dp_tile_transform(NULL, \
1059 (__DES_TILE_ADDR), \
1060 (__DES_REGION_ADDR), \
1061 (NULL,##__VA_ARGS__)); \
1062 })
1063
1064#define arm_2d_cccn888_tile_rotation_with_colour_keying( \
1065 __SRC_TILE_ADDR, \
1066 __DES_TILE_ADDR, \
1067 __DES_REGION_ADDR, \
1068 __CENTRE, \
1069 __ANGLE, \
1070 __MSK_COLOUR, ...) \
1071 ({{ \
1072 arm_2dp_cccn888_tile_transform_with_colour_keying_prepare( \
1073 NULL, \
1074 (__SRC_TILE_ADDR), \
1075 (__CENTRE), \
1076 (__ANGLE), \
1077 1.0f, \
1078 (__MSK_COLOUR)); \
1079 }; \
1080 arm_2dp_tile_transform(NULL, \
1081 (__DES_TILE_ADDR), \
1082 (__DES_REGION_ADDR), \
1083 (NULL,##__VA_ARGS__)); \
1084 })
1085
1086
1087#define arm_2d_gray8_tile_rotation_only( \
1088 __SRC_TILE_ADDR, \
1089 __DES_TILE_ADDR, \
1090 __DES_REGION_ADDR, \
1091 __CENTRE, \
1092 __ANGLE, \
1093 ...) \
1094 ({{ \
1095 arm_2dp_gray8_tile_transform_only_prepare( \
1096 NULL, \
1097 (__SRC_TILE_ADDR), \
1098 (__CENTRE), \
1099 (__ANGLE), \
1100 1.0f); \
1101 }; \
1102 arm_2dp_tile_transform(NULL, \
1103 (__DES_TILE_ADDR), \
1104 (__DES_REGION_ADDR), \
1105 (NULL,##__VA_ARGS__)); \
1106 })
1107
1108
1109#define arm_2d_rgb565_tile_rotation_only( \
1110 __SRC_TILE_ADDR, \
1111 __DES_TILE_ADDR, \
1112 __DES_REGION_ADDR, \
1113 __CENTRE, \
1114 __ANGLE, \
1115 ...) \
1116 ({{ \
1117 arm_2dp_rgb565_tile_transform_only_prepare( \
1118 NULL, \
1119 (__SRC_TILE_ADDR), \
1120 (__CENTRE), \
1121 (__ANGLE), \
1122 1.0f); \
1123 }; \
1124 arm_2dp_tile_transform(NULL, \
1125 (__DES_TILE_ADDR), \
1126 (__DES_REGION_ADDR), \
1127 (NULL,##__VA_ARGS__)); \
1128 })
1129
1130
1131#define arm_2d_cccn888_tile_rotation_only( \
1132 __SRC_TILE_ADDR, \
1133 __DES_TILE_ADDR, \
1134 __DES_REGION_ADDR, \
1135 __CENTRE, \
1136 __ANGLE, \
1137 ...) \
1138 ({{ \
1139 arm_2dp_cccn888_tile_transform_only_prepare( \
1140 NULL, \
1141 (__SRC_TILE_ADDR), \
1142 (__CENTRE), \
1143 (__ANGLE), \
1144 1.0f); \
1145 }; \
1146 arm_2dp_tile_transform(NULL, \
1147 (__DES_TILE_ADDR), \
1148 (__DES_REGION_ADDR), \
1149 (NULL,##__VA_ARGS__)); \
1150 })
1151
1152#define arm_2d_gray8_tile_rotation_with_opacity( \
1153 __SRC_TILE_ADDR, \
1154 __DES_TILE_ADDR, \
1155 __DES_REGION_ADDR, \
1156 __CENTRE, \
1157 __ANGLE, \
1158 __MSK_COLOUR, \
1159 __OPACITY, ...) \
1160 ({{ \
1161 arm_2dp_gray8_tile_transform_with_colour_keying_and_opacity_prepare(\
1162 NULL, \
1163 (__SRC_TILE_ADDR), \
1164 (__CENTRE), \
1165 (__ANGLE), \
1166 1.0f, \
1167 (__MSK_COLOUR), \
1168 (__OPACITY)); \
1169 }; \
1170 arm_2dp_tile_transform(NULL, \
1171 (__DES_TILE_ADDR), \
1172 (__DES_REGION_ADDR), \
1173 (NULL,##__VA_ARGS__)); \
1174 })
1175
1176#define arm_2d_rgb565_tile_rotation_with_opacity( \
1177 __SRC_TILE_ADDR, \
1178 __DES_TILE_ADDR, \
1179 __DES_REGION_ADDR, \
1180 __CENTRE, \
1181 __ANGLE, \
1182 __MSK_COLOUR, \
1183 __OPACITY, ...) \
1184 ({{ \
1185 arm_2dp_rgb565_tile_transform_with_colour_keying_and_opacity_prepare(\
1186 NULL, \
1187 (__SRC_TILE_ADDR), \
1188 (__CENTRE), \
1189 (__ANGLE), \
1190 1.0f, \
1191 (__MSK_COLOUR), \
1192 (__OPACITY)); \
1193 }; \
1194 arm_2dp_tile_transform(NULL, \
1195 (__DES_TILE_ADDR), \
1196 (__DES_REGION_ADDR), \
1197 (NULL,##__VA_ARGS__)); \
1198 })
1199
1200#define arm_2d_cccn888_tile_rotation_with_opacity( \
1201 __SRC_TILE_ADDR, \
1202 __DES_TILE_ADDR, \
1203 __DES_REGION_ADDR, \
1204 __CENTRE, \
1205 __ANGLE, \
1206 __MSK_COLOUR, \
1207 __OPACITY, ...) \
1208 ({{ \
1209 arm_2dp_cccn888_tile_transform_with_colour_keying_and_opacity_prepare(\
1210 NULL, \
1211 (__SRC_TILE_ADDR), \
1212 (__CENTRE), \
1213 (__ANGLE), \
1214 1.0f, \
1215 (__MSK_COLOUR), \
1216 (__OPACITY)); \
1217 }; \
1218 arm_2dp_tile_transform(NULL, \
1219 (__DES_TILE_ADDR), \
1220 (__DES_REGION_ADDR), \
1221 (NULL,##__VA_ARGS__)); \
1222 })
1223
1224#define arm_2d_gray8_tile_rotation_only_with_opacity( \
1225 __SRC_TILE_ADDR, \
1226 __DES_TILE_ADDR, \
1227 __DES_REGION_ADDR, \
1228 __CENTRE, \
1229 __ANGLE, \
1230 __OPACITY, ...) \
1231 ({{ \
1232 arm_2dp_gray8_tile_transform_only_with_opacity_prepare( \
1233 NULL, \
1234 (__SRC_TILE_ADDR), \
1235 (__CENTRE), \
1236 (__ANGLE), \
1237 1.0f, \
1238 (__OPACITY)); \
1239 }; \
1240 arm_2dp_tile_transform(NULL, \
1241 (__DES_TILE_ADDR), \
1242 (__DES_REGION_ADDR), \
1243 (NULL,##__VA_ARGS__)); \
1244 })
1245
1246#define arm_2d_rgb565_tile_rotation_only_with_opacity( \
1247 __SRC_TILE_ADDR, \
1248 __DES_TILE_ADDR, \
1249 __DES_REGION_ADDR, \
1250 __CENTRE, \
1251 __ANGLE, \
1252 __OPACITY, ...) \
1253 ({{ \
1254 arm_2dp_rgb565_tile_transform_only_with_opacity_prepare( \
1255 NULL, \
1256 (__SRC_TILE_ADDR), \
1257 (__CENTRE), \
1258 (__ANGLE), \
1259 1.0f, \
1260 (__OPACITY)); \
1261 }; \
1262 arm_2dp_tile_transform(NULL, \
1263 (__DES_TILE_ADDR), \
1264 (__DES_REGION_ADDR), \
1265 (NULL,##__VA_ARGS__)); \
1266 })
1267
1268#define arm_2d_cccn888_tile_rotation_only_with_opacity( \
1269 __SRC_TILE_ADDR, \
1270 __DES_TILE_ADDR, \
1271 __DES_REGION_ADDR, \
1272 __CENTRE, \
1273 __ANGLE, \
1274 __OPACITY, ...) \
1275 ({{ \
1276 arm_2dp_cccn888_tile_transform_only_with_opacity_prepare( \
1277 NULL, \
1278 (__SRC_TILE_ADDR), \
1279 (__CENTRE), \
1280 (__ANGLE), \
1281 1.0f, \
1282 (__OPACITY)); \
1283 }; \
1284 arm_2dp_tile_transform(NULL, \
1285 (__DES_TILE_ADDR), \
1286 (__DES_REGION_ADDR), \
1287 (NULL,##__VA_ARGS__)); \
1288 })
1289
1290#define arm_2d_gray8_tile_rotation_with_src_mask( \
1291 __SRC_TILE_ADDR, \
1292 __SRC_MASK_ADDR, \
1293 __DES_TILE_ADDR, \
1294 __DES_REGION_ADDR, \
1295 __CENTRE, \
1296 __ANGLE, \
1297 ...) \
1298 ({{ \
1299 arm_2dp_gray8_tile_transform_with_src_mask_prepare( \
1300 (NULL), \
1301 (__SRC_TILE_ADDR), \
1302 (__SRC_MASK_ADDR), \
1303 (__CENTRE), \
1304 (__ANGLE), \
1305 1.0f); \
1306 }; \
1307 arm_2dp_tile_transform(NULL, \
1308 (__DES_TILE_ADDR), \
1309 (__DES_REGION_ADDR), \
1310 (NULL,##__VA_ARGS__)); \
1311 })
1312
1313#define arm_2d_rgb565_tile_rotation_with_src_mask( \
1314 __SRC_TILE_ADDR, \
1315 __SRC_MASK_ADDR, \
1316 __DES_TILE_ADDR, \
1317 __DES_REGION_ADDR, \
1318 __CENTRE, \
1319 __ANGLE, \
1320 ...) \
1321 ({{ \
1322 arm_2dp_rgb565_tile_transform_with_src_mask_prepare( \
1323 (NULL), \
1324 (__SRC_TILE_ADDR), \
1325 (__SRC_MASK_ADDR), \
1326 (__CENTRE), \
1327 (__ANGLE), \
1328 1.0f); \
1329 }; \
1330 arm_2dp_tile_transform(NULL, \
1331 (__DES_TILE_ADDR), \
1332 (__DES_REGION_ADDR), \
1333 (NULL,##__VA_ARGS__)); \
1334 })
1335
1336#define arm_2d_cccn888_tile_rotation_with_src_mask( \
1337 __SRC_TILE_ADDR, \
1338 __SRC_MASK_ADDR, \
1339 __DES_TILE_ADDR, \
1340 __DES_REGION_ADDR, \
1341 __CENTRE, \
1342 __ANGLE, \
1343 ...) \
1344 ({{ \
1345 arm_2dp_cccn888_tile_transform_with_src_mask_prepare( \
1346 (NULL), \
1347 (__SRC_TILE_ADDR), \
1348 (__SRC_MASK_ADDR), \
1349 (__CENTRE), \
1350 (__ANGLE), \
1351 1.0f); \
1352 }; \
1353 arm_2dp_tile_transform(NULL, \
1354 (__DES_TILE_ADDR), \
1355 (__DES_REGION_ADDR), \
1356 (NULL,##__VA_ARGS__)); \
1357 })
1358
1359#define arm_2d_gray8_tile_rotation_with_src_mask_and_opacity( \
1360 __SRC_TILE_ADDR, \
1361 __SRC_MASK_ADDR, \
1362 __DES_TILE_ADDR, \
1363 __DES_REGION_ADDR, \
1364 __CENTRE, \
1365 __ANGLE, \
1366 __OPACITY, \
1367 ...) \
1368 ({{ \
1369 arm_2dp_gray8_tile_transform_with_src_mask_and_opacity_prepare( \
1370 (NULL), \
1371 (__SRC_TILE_ADDR), \
1372 (__SRC_MASK_ADDR), \
1373 (__CENTRE), \
1374 (__ANGLE), \
1375 1.0f, \
1376 (__OPACITY)); \
1377 }; \
1378 arm_2dp_tile_transform(NULL, \
1379 (__DES_TILE_ADDR), \
1380 (__DES_REGION_ADDR), \
1381 (NULL,##__VA_ARGS__)); \
1382 })
1383
1384#define arm_2d_rgb565_tile_rotation_with_src_mask_and_opacity( \
1385 __SRC_TILE_ADDR, \
1386 __SRC_MASK_ADDR, \
1387 __DES_TILE_ADDR, \
1388 __DES_REGION_ADDR, \
1389 __CENTRE, \
1390 __ANGLE, \
1391 __OPACITY, \
1392 ...) \
1393 ({{ \
1394 arm_2dp_rgb565_tile_transform_with_src_mask_and_opacity_prepare( \
1395 (NULL), \
1396 (__SRC_TILE_ADDR), \
1397 (__SRC_MASK_ADDR), \
1398 (__CENTRE), \
1399 (__ANGLE), \
1400 1.0f, \
1401 (__OPACITY)); \
1402 }; \
1403 arm_2dp_tile_transform(NULL, \
1404 (__DES_TILE_ADDR), \
1405 (__DES_REGION_ADDR), \
1406 (NULL,##__VA_ARGS__)); \
1407 })
1408
1409#define arm_2d_cccn888_tile_rotation_with_src_mask_and_opacity( \
1410 __SRC_TILE_ADDR, \
1411 __SRC_MASK_ADDR, \
1412 __DES_TILE_ADDR, \
1413 __DES_REGION_ADDR, \
1414 __CENTRE, \
1415 __ANGLE, \
1416 __OPACITY, \
1417 ...) \
1418 ({{ \
1419 arm_2dp_cccn888_tile_transform_with_src_mask_and_opacity_prepare( \
1420 (NULL), \
1421 (__SRC_TILE_ADDR), \
1422 (__SRC_MASK_ADDR), \
1423 (__CENTRE), \
1424 (__ANGLE), \
1425 1.0f, \
1426 (__OPACITY)); \
1427 }; \
1428 arm_2dp_tile_transform(NULL, \
1429 (__DES_TILE_ADDR), \
1430 (__DES_REGION_ADDR), \
1431 (NULL,##__VA_ARGS__)); \
1432 })
1433
1434/*----------------------------------------------------------------------------*
1435 * API wrappers: Transform *
1436 *----------------------------------------------------------------------------*/
1437
1438#define arm_2d_gray8_tile_transform_with_colour_keying_prepare( __SRC_TILE_ADDR,\
1439 __CENTRE, \
1440 __ANGLE, \
1441 __SCALE, \
1442 __MSK_COLOUR) \
1443 arm_2dp_gray8_tile_transform_with_colour_keying_prepare( NULL, \
1444 (__SRC_TILE_ADDR), \
1445 (__CENTRE), \
1446 (float)(__ANGLE), \
1447 (float)(__SCALE), \
1448 (__MSK_COLOUR))
1449
1450#define arm_2d_rgb565_tile_transform_with_colour_keying_prepare(__SRC_TILE_ADDR,\
1451 __CENTRE, \
1452 __ANGLE, \
1453 __SCALE, \
1454 __MSK_COLOUR) \
1455 arm_2dp_rgb565_tile_transform_with_colour_keying_prepare( NULL, \
1456 (__SRC_TILE_ADDR), \
1457 (__CENTRE), \
1458 (float)(__ANGLE), \
1459 (float)(__SCALE), \
1460 (__MSK_COLOUR))
1461
1462
1463#define arm_2d_cccn888_tile_transform_with_colour_keying_prepare( \
1464 __SRC_TILE_ADDR,\
1465 __CENTRE, \
1466 __ANGLE, \
1467 __SCALE, \
1468 __MSK_COLOUR) \
1469 arm_2dp_cccn888_tile_transform_with_colour_keying_prepare( NULL, \
1470 (__SRC_TILE_ADDR), \
1471 (__CENTRE), \
1472 (float)(__ANGLE), \
1473 (float)(__SCALE), \
1474 (__MSK_COLOUR))
1475
1476#define arm_2d_gray8_tile_transform_only( __SRC_TILE_ADDR, \
1477 __CENTRE, \
1478 __ANGLE, \
1479 __SCALE) \
1480 arm_2dp_gray8_tile_transform_only_prepare( NULL, \
1481 (__SRC_TILE_ADDR), \
1482 (__CENTRE), \
1483 (float)(__ANGLE), \
1484 (float)(__SCALE))
1485
1486#define arm_2d_rgb565_tile_transform_only( __SRC_TILE_ADDR, \
1487 __CENTRE, \
1488 __ANGLE, \
1489 __SCALE) \
1490 arm_2dp_rgb565_tile_transform_only_prepare( NULL, \
1491 (__SRC_TILE_ADDR), \
1492 (__CENTRE), \
1493 (float)(__ANGLE), \
1494 (float)(__SCALE))
1495
1496#define arm_2d_cccn888_tile_transform_only( __SRC_TILE_ADDR, \
1497 __CENTRE, \
1498 __ANGLE, \
1499 __SCALE) \
1500 arm_2dp_cccn888_tile_transform_only_prepare( NULL, \
1501 (__SRC_TILE_ADDR), \
1502 (__CENTRE), \
1503 (float)(__ANGLE), \
1504 (float)(__SCALE))
1505
1506#define arm_2d_gray8_tile_transform_with_opacity_prepare( \
1507 __SRC_TILE_ADDR, \
1508 __CENTRE, \
1509 __ANGLE, \
1510 __SCALE, \
1511 __MSK_COLOUR, \
1512 __OPACITY) \
1513 arm_2dp_gray8_tile_transform_with_colour_keying_and_opacity_prepare(\
1514 NULL, \
1515 (__SRC_TILE_ADDR), \
1516 (__CENTRE), \
1517 (float)(__ANGLE), \
1518 (float)(__SCALE), \
1519 (__MSK_COLOUR), \
1520 (__OPACITY))
1521
1522#define arm_2d_rgb565_tile_transform_with_opacity_prepare( \
1523 __SRC_TILE_ADDR, \
1524 __CENTRE, \
1525 __ANGLE, \
1526 __SCALE, \
1527 __MSK_COLOUR, \
1528 __OPACITY) \
1529 arm_2dp_rgb565_tile_transform_with_colour_keying_and_opacity_prepare(\
1530 NULL, \
1531 (__SRC_TILE_ADDR), \
1532 (__CENTRE), \
1533 (float)(__ANGLE), \
1534 (float)(__SCALE), \
1535 (__MSK_COLOUR), \
1536 (__OPACITY))
1537
1538#define arm_2d_cccn888_tile_transform_with_opacity_prepare( \
1539 __SRC_TILE_ADDR, \
1540 __CENTRE, \
1541 __ANGLE, \
1542 __SCALE, \
1543 __MSK_COLOUR, \
1544 __OPACITY) \
1545 arm_2dp_cccn888_tile_transform_with_colour_keying_and_opacity_prepare(\
1546 NULL, \
1547 (__SRC_TILE_ADDR), \
1548 (__CENTRE), \
1549 (float)(__ANGLE), \
1550 (float)(__SCALE), \
1551 (__MSK_COLOUR), \
1552 (__OPACITY))
1553
1554#define arm_2d_gray8_tile_transform_only_with_opacity_prepare( \
1555 __SRC_TILE_ADDR, \
1556 __CENTRE, \
1557 __ANGLE, \
1558 __SCALE, \
1559 __OPACITY) \
1560 arm_2dp_gray8_tile_transform_only_with_opacity_prepare( \
1561 NULL, \
1562 (__SRC_TILE_ADDR), \
1563 (__CENTRE), \
1564 (float)(__ANGLE), \
1565 (float)(__SCALE), \
1566 (__OPACITY))
1567
1568#define arm_2d_rgb565_tile_transform_only_with_opacity_prepare( \
1569 __SRC_TILE_ADDR, \
1570 __CENTRE, \
1571 __ANGLE, \
1572 __SCALE, \
1573 __OPACITY) \
1574 arm_2dp_rgb565_tile_transform_only_with_opacity_prepare( \
1575 NULL, \
1576 (__SRC_TILE_ADDR), \
1577 (__CENTRE), \
1578 (float)(__ANGLE), \
1579 (float)(__SCALE), \
1580 (__OPACITY))
1581
1582#define arm_2d_cccn888_tile_transform_only_with_opacity_prepare( \
1583 __SRC_TILE_ADDR, \
1584 __CENTRE, \
1585 __ANGLE, \
1586 __SCALE, \
1587 __OPACITY) \
1588 arm_2dp_cccn888_tile_transform_only_with_opacity_prepare( \
1589 NULL, \
1590 (__SRC_TILE_ADDR), \
1591 (__CENTRE), \
1592 (float)(__ANGLE), \
1593 (float)(__SCALE), \
1594 (__OPACITY))
1595
1596
1597#define arm_2d_gray8_tile_transform_with_src_mask_prepare( \
1598 __SRC_TILE_ADDR, \
1599 __SRC_MASK_ADDR, \
1600 __CENTRE, \
1601 __ANGLE, \
1602 __SCALE) \
1603 arm_2dp_gray8_tile_transform_with_src_mask_prepare( NULL, \
1604 (__SRC_TILE_ADDR), \
1605 (__SRC_MASK_ADDR), \
1606 (__CENTRE), \
1607 (float)(__ANGLE), \
1608 (float)(__SCALE))
1609
1610#define arm_2d_rgb565_tile_transform_with_src_mask_prepare( \
1611 __SRC_TILE_ADDR, \
1612 __SRC_MASK_ADDR, \
1613 __CENTRE, \
1614 __ANGLE, \
1615 __SCALE) \
1616 arm_2dp_rgb565_tile_transform_with_src_mask_prepare( NULL, \
1617 (__SRC_TILE_ADDR), \
1618 (__SRC_MASK_ADDR), \
1619 (__CENTRE), \
1620 (float)(__ANGLE), \
1621 (float)(__SCALE))
1622
1623#define arm_2d_cccn888_tile_transform_with_src_mask_prepare( \
1624 __SRC_TILE_ADDR, \
1625 __SRC_MASK_ADDR, \
1626 __CENTRE, \
1627 __ANGLE, \
1628 __SCALE) \
1629 arm_2dp_cccn888_tile_transform_with_src_mask_prepare( NULL, \
1630 (__SRC_TILE_ADDR), \
1631 (__SRC_MASK_ADDR), \
1632 (__CENTRE), \
1633 (float)(__ANGLE), \
1634 (float)(__SCALE))
1635
1636#define arm_2d_gray8_tile_transform_with_src_mask_and_opacity_prepare( \
1637 __SRC_TILE_ADDR, \
1638 __SRC_MASK_ADDR, \
1639 __CENTRE, \
1640 __ANGLE, \
1641 __SCALE, \
1642 __OPACITY) \
1643 arm_2dp_gray8_tile_transform_with_src_mask_and_opacity_prepare( \
1644 NULL, \
1645 (__SRC_TILE_ADDR), \
1646 (__SRC_MASK_ADDR), \
1647 (__CENTRE), \
1648 (float)(__ANGLE), \
1649 (float)(__SCALE), \
1650 (__OPACITY))
1651
1652#define arm_2d_rgb565_tile_transform_with_src_mask_and_opacity_prepare( \
1653 __SRC_TILE_ADDR, \
1654 __SRC_MASK_ADDR, \
1655 __CENTRE, \
1656 __ANGLE, \
1657 __SCALE, \
1658 __OPACITY) \
1659 arm_2dp_rgb565_tile_transform_with_src_mask_and_opacity_prepare( \
1660 NULL, \
1661 (__SRC_TILE_ADDR), \
1662 (__SRC_MASK_ADDR), \
1663 (__CENTRE), \
1664 (float)(__ANGLE), \
1665 (float)(__SCALE), \
1666 (__OPACITY))
1667
1668#define arm_2d_cccn888_tile_transform_with_src_mask_and_opacity_prepare( \
1669 __SRC_TILE_ADDR, \
1670 __SRC_MASK_ADDR, \
1671 __CENTRE, \
1672 __ANGLE, \
1673 __SCALE, \
1674 __OPACITY) \
1675 arm_2dp_cccn888_tile_transform_with_src_mask_and_opacity_prepare( \
1676 NULL, \
1677 (__SRC_TILE_ADDR), \
1678 (__SRC_MASK_ADDR), \
1679 (__CENTRE), \
1680 (float)(__ANGLE), \
1681 (float)(__SCALE), \
1682 (__OPACITY))
1683
1684#define arm_2d_tile_transform( __DES_TILE_ADDR, \
1685 __DES_REGION_ADDR, \
1686 __DES_CENTRE_ADDR) \
1687 arm_2dp_tile_transform(NULL, \
1688 (__DES_TILE_ADDR), \
1689 (__DES_REGION_ADDR), \
1690 (__DES_CENTRE_ADDR))
1691
1692
1693/* following macro APIs rely on the boolean variable bIsNewFrame.
1694 * Please make sure you have define it with the correct name and the
1695 * corresponding value. If you don't use the PFB interfaces for neither
1696 * the low level rendering nor the high level GUI drawing, please find
1697 * such variable with the value "true".
1698 */
1699
1700#define arm_2dp_gray8_tile_transform_with_colour_keying(__CB_ADDR, \
1701 __SRC_TILE_ADDR, \
1702 __DES_TILE_ADDR, \
1703 __DES_REGION_ADDR, \
1704 __CENTRE, \
1705 __ANGLE, \
1706 __SCALE, \
1707 __MSK_COLOUR, \
1708 ...) \
1709 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
1710 arm_2dp_gray8_tile_transform_with_colour_keying_prepare( \
1711 (__CB_ADDR), \
1712 (__SRC_TILE_ADDR), \
1713 (__CENTRE), \
1714 (float)(__ANGLE), \
1715 (float)(__SCALE), \
1716 (__MSK_COLOUR)); \
1717 }; \
1718 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
1719 (__DES_TILE_ADDR), \
1720 (__DES_REGION_ADDR), \
1721 (NULL,##__VA_ARGS__)); \
1722 })
1723
1724#define arm_2dp_rgb565_tile_transform_with_colour_keying( __CB_ADDR, \
1725 __SRC_TILE_ADDR, \
1726 __DES_TILE_ADDR, \
1727 __DES_REGION_ADDR, \
1728 __CENTRE, \
1729 __ANGLE, \
1730 __SCALE, \
1731 __MSK_COLOUR, \
1732 ...) \
1733 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
1734 arm_2dp_rgb565_tile_transform_with_colour_keying_prepare( \
1735 (__CB_ADDR), \
1736 (__SRC_TILE_ADDR), \
1737 (__CENTRE), \
1738 (float)(__ANGLE), \
1739 (float)(__SCALE), \
1740 (__MSK_COLOUR)); \
1741 }; \
1742 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
1743 (__DES_TILE_ADDR), \
1744 (__DES_REGION_ADDR), \
1745 (NULL,##__VA_ARGS__)); \
1746 })
1747
1748
1749#define arm_2dp_cccn888_tile_transform_with_colour_keying( __CB_ADDR, \
1750 __SRC_TILE_ADDR, \
1751 __DES_TILE_ADDR, \
1752 __DES_REGION_ADDR, \
1753 __CENTRE, \
1754 __ANGLE, \
1755 __SCALE, \
1756 __MSK_COLOUR, \
1757 ...) \
1758 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
1759 arm_2dp_cccn888_tile_transform_with_colour_keying_prepare( \
1760 (__CB_ADDR), \
1761 (__SRC_TILE_ADDR), \
1762 (__CENTRE), \
1763 (float)(__ANGLE), \
1764 (float)(__SCALE), \
1765 (__MSK_COLOUR)); \
1766 }; \
1767 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
1768 (__DES_TILE_ADDR), \
1769 (__DES_REGION_ADDR), \
1770 (NULL,##__VA_ARGS__)); \
1771 })
1772
1773#define arm_2dp_gray8_tile_transform_only( __CB_ADDR, \
1774 __SRC_TILE_ADDR, \
1775 __DES_TILE_ADDR, \
1776 __DES_REGION_ADDR, \
1777 __CENTRE, \
1778 __ANGLE, \
1779 __SCALE, \
1780 ...) \
1781 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
1782 arm_2dp_gray8_tile_transform_only_prepare( \
1783 (__CB_ADDR), \
1784 (__SRC_TILE_ADDR), \
1785 (__CENTRE), \
1786 (float)(__ANGLE), \
1787 (float)(__SCALE)); \
1788 }; \
1789 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
1790 (__DES_TILE_ADDR), \
1791 (__DES_REGION_ADDR), \
1792 (NULL,##__VA_ARGS__)); \
1793 })
1794
1795#define arm_2dp_rgb565_tile_transform_only( __CB_ADDR, \
1796 __SRC_TILE_ADDR, \
1797 __DES_TILE_ADDR, \
1798 __DES_REGION_ADDR, \
1799 __CENTRE, \
1800 __ANGLE, \
1801 __SCALE, \
1802 ...) \
1803 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
1804 arm_2dp_rgb565_tile_transform_only_prepare( \
1805 (__CB_ADDR), \
1806 (__SRC_TILE_ADDR), \
1807 (__CENTRE), \
1808 (float)(__ANGLE), \
1809 (float)(__SCALE)); \
1810 }; \
1811 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
1812 (__DES_TILE_ADDR), \
1813 (__DES_REGION_ADDR), \
1814 (NULL,##__VA_ARGS__)); \
1815 })
1816
1817#define arm_2dp_cccn888_tile_transform_only(__CB_ADDR, \
1818 __SRC_TILE_ADDR, \
1819 __DES_TILE_ADDR, \
1820 __DES_REGION_ADDR, \
1821 __CENTRE, \
1822 __ANGLE, \
1823 __SCALE, \
1824 ...) \
1825 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
1826 arm_2dp_cccn888_tile_transform_only_prepare( \
1827 (__CB_ADDR), \
1828 (__SRC_TILE_ADDR), \
1829 (__CENTRE), \
1830 (float)(__ANGLE), \
1831 (float)(__SCALE)); \
1832 }; \
1833 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
1834 (__DES_TILE_ADDR), \
1835 (__DES_REGION_ADDR), \
1836 (NULL,##__VA_ARGS__)); \
1837 })
1838
1839
1840#define arm_2dp_gray8_tile_transform_with_opacity( \
1841 __CB_ADDR, \
1842 __SRC_TILE_ADDR, \
1843 __DES_TILE_ADDR, \
1844 __DES_REGION_ADDR, \
1845 __CENTRE, \
1846 __ANGLE, \
1847 __SCALE, \
1848 __MSK_COLOUR, \
1849 __OPACITY,...) \
1850 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
1851 arm_2dp_gray8_tile_transform_with_colour_keying_and_opacity_prepare(\
1852 (__CB_ADDR), \
1853 (__SRC_TILE_ADDR), \
1854 (__CENTRE), \
1855 (float)(__ANGLE), \
1856 (float)(__SCALE), \
1857 (__MSK_COLOUR), \
1858 (__OPACITY)); \
1859 }; \
1860 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
1861 (__DES_TILE_ADDR), \
1862 (__DES_REGION_ADDR), \
1863 (NULL,##__VA_ARGS__)); \
1864 })
1865
1866
1867#define arm_2dp_rgb565_tile_transform_with_opacity( \
1868 __CB_ADDR, \
1869 __SRC_TILE_ADDR, \
1870 __DES_TILE_ADDR, \
1871 __DES_REGION_ADDR, \
1872 __CENTRE, \
1873 __ANGLE, \
1874 __SCALE, \
1875 __MSK_COLOUR, \
1876 __OPACITY,...) \
1877 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
1878 arm_2dp_rgb565_tile_transform_with_colour_keying_and_opacity_prepare(\
1879 (__CB_ADDR), \
1880 (__SRC_TILE_ADDR), \
1881 (__CENTRE), \
1882 (float)(__ANGLE), \
1883 (float)(__SCALE), \
1884 (__MSK_COLOUR), \
1885 (__OPACITY)); \
1886 }; \
1887 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
1888 (__DES_TILE_ADDR), \
1889 (__DES_REGION_ADDR), \
1890 (NULL,##__VA_ARGS__)); \
1891 })
1892
1893#define arm_2dp_cccn888_tile_transform_with_opacity( \
1894 __CB_ADDR, \
1895 __SRC_TILE_ADDR, \
1896 __DES_TILE_ADDR, \
1897 __DES_REGION_ADDR, \
1898 __CENTRE, \
1899 __ANGLE, \
1900 __SCALE, \
1901 __MSK_COLOUR, \
1902 __OPACITY, ...) \
1903 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
1904 arm_2dp_cccn888_tile_transform_with_colour_keying_and_opacity_prepare(\
1905 (__CB_ADDR), \
1906 (__SRC_TILE_ADDR), \
1907 (__CENTRE), \
1908 (float)(__ANGLE), \
1909 (float)(__SCALE), \
1910 (__MSK_COLOUR), \
1911 (__OPACITY)); \
1912 }; \
1913 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
1914 (__DES_TILE_ADDR), \
1915 (__DES_REGION_ADDR), \
1916 (NULL,##__VA_ARGS__)); \
1917 })
1918
1919#define arm_2dp_gray8_tile_transform_only_with_opacity( \
1920 __CB_ADDR, \
1921 __SRC_TILE_ADDR, \
1922 __DES_TILE_ADDR, \
1923 __DES_REGION_ADDR, \
1924 __CENTRE, \
1925 __ANGLE, \
1926 __SCALE, \
1927 __OPACITY, ...) \
1928 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
1929 arm_2dp_gray8_tile_transform_only_with_opacity_prepare( \
1930 (__CB_ADDR), \
1931 (__SRC_TILE_ADDR), \
1932 (__CENTRE), \
1933 (float)(__ANGLE), \
1934 (float)(__SCALE), \
1935 (__OPACITY)); \
1936 }; \
1937 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
1938 (__DES_TILE_ADDR), \
1939 (__DES_REGION_ADDR), \
1940 (NULL,##__VA_ARGS__)); \
1941 })
1942
1943#define arm_2dp_rgb565_tile_transform_only_with_opacity( \
1944 __CB_ADDR, \
1945 __SRC_TILE_ADDR, \
1946 __DES_TILE_ADDR, \
1947 __DES_REGION_ADDR, \
1948 __CENTRE, \
1949 __ANGLE, \
1950 __SCALE, \
1951 __OPACITY, ...) \
1952 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
1953 arm_2dp_rgb565_tile_transform_only_with_opacity_prepare( \
1954 (__CB_ADDR), \
1955 (__SRC_TILE_ADDR), \
1956 (__CENTRE), \
1957 (float)(__ANGLE), \
1958 (float)(__SCALE), \
1959 (__OPACITY)); \
1960 }; \
1961 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
1962 (__DES_TILE_ADDR), \
1963 (__DES_REGION_ADDR), \
1964 (NULL,##__VA_ARGS__)); \
1965 })
1966
1967#define arm_2dp_cccn888_tile_transform_only_with_opacity( \
1968 __CB_ADDR, \
1969 __SRC_TILE_ADDR, \
1970 __DES_TILE_ADDR, \
1971 __DES_REGION_ADDR, \
1972 __CENTRE, \
1973 __ANGLE, \
1974 __SCALE, \
1975 __OPACITY, ...) \
1976 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
1977 arm_2dp_cccn888_tile_transform_only_with_opacity_prepare( \
1978 (__CB_ADDR), \
1979 (__SRC_TILE_ADDR), \
1980 (__CENTRE), \
1981 (float)(__ANGLE), \
1982 (float)(__SCALE), \
1983 (__OPACITY)); \
1984 }; \
1985 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
1986 (__DES_TILE_ADDR), \
1987 (__DES_REGION_ADDR), \
1988 (NULL,##__VA_ARGS__)); \
1989 })
1990
1991#define arm_2dp_gray8_fill_colour_with_mask_opacity_and_transform( \
1992 __CB_ADDR, \
1993 __MASK_ADDR, \
1994 __DES_TILE_ADDR, \
1995 __DES_REGION_ADDR, \
1996 __CENTRE, \
1997 __ANGLE, \
1998 __SCALE, \
1999 __MSK_COLOUR, \
2000 __OPACITY,...) \
2001 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
2002 arm_2dp_gray8_fill_colour_with_mask_opacity_and_transform_prepare( \
2003 (__CB_ADDR), \
2004 (__MASK_ADDR), \
2005 (__CENTRE), \
2006 (float)(__ANGLE), \
2007 (float)(__SCALE), \
2008 (__MSK_COLOUR), \
2009 (__OPACITY)); \
2010 }; \
2011 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
2012 (__DES_TILE_ADDR), \
2013 (__DES_REGION_ADDR), \
2014 (NULL,##__VA_ARGS__)); \
2015 })
2016
2017#define arm_2dp_rgb565_fill_colour_with_mask_opacity_and_transform( \
2018 __CB_ADDR, \
2019 __MASK_ADDR, \
2020 __DES_TILE_ADDR, \
2021 __DES_REGION_ADDR, \
2022 __CENTRE, \
2023 __ANGLE, \
2024 __SCALE, \
2025 __MSK_COLOUR, \
2026 __OPACITY,...) \
2027 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
2028 arm_2dp_rgb565_fill_colour_with_mask_opacity_and_transform_prepare( \
2029 (__CB_ADDR), \
2030 (__MASK_ADDR), \
2031 (__CENTRE), \
2032 (float)(__ANGLE), \
2033 (float)(__SCALE), \
2034 (__MSK_COLOUR), \
2035 (__OPACITY)); \
2036 }; \
2037 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
2038 (__DES_TILE_ADDR), \
2039 (__DES_REGION_ADDR), \
2040 (NULL,##__VA_ARGS__)); \
2041 })
2042
2043#define arm_2dp_rgb888_fill_colour_with_mask_opacity_and_transform( \
2044 __CB_ADDR, \
2045 __MASK_ADDR, \
2046 __DES_TILE_ADDR, \
2047 __DES_REGION_ADDR, \
2048 __CENTRE, \
2049 __ANGLE, \
2050 __SCALE, \
2051 __MSK_COLOUR, \
2052 __OPACITY,...) \
2053 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
2054 arm_2dp_cccn888_fill_colour_with_mask_opacity_and_transform_prepare(\
2055 (__CB_ADDR), \
2056 (__MASK_ADDR), \
2057 (__CENTRE), \
2058 (float)(__ANGLE), \
2059 (float)(__SCALE), \
2060 (__MSK_COLOUR), \
2061 (__OPACITY)); \
2062 }; \
2063 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
2064 (__DES_TILE_ADDR), \
2065 (__DES_REGION_ADDR), \
2066 (NULL,##__VA_ARGS__)); \
2067 })
2068
2069#define arm_2dp_cccn888_fill_colour_with_mask_opacity_and_transform( \
2070 __CB_ADDR, \
2071 __MASK_ADDR, \
2072 __DES_TILE_ADDR, \
2073 __DES_REGION_ADDR, \
2074 __CENTRE, \
2075 __ANGLE, \
2076 __SCALE, \
2077 __MSK_COLOUR, \
2078 __OPACITY,...) \
2079 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
2080 arm_2dp_cccn888_fill_colour_with_mask_opacity_and_transform_prepare(\
2081 (__CB_ADDR), \
2082 (__MASK_ADDR), \
2083 (__CENTRE), \
2084 (float)(__ANGLE), \
2085 (float)(__SCALE), \
2086 (__MSK_COLOUR), \
2087 (__OPACITY)); \
2088 }; \
2089 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
2090 (__DES_TILE_ADDR), \
2091 (__DES_REGION_ADDR), \
2092 (NULL,##__VA_ARGS__)); \
2093 })
2094
2095#define arm_2dp_gray8_tile_transform_with_src_mask( \
2096 __CB_ADDR, \
2097 __SRC_TILE_ADDR, \
2098 __SRC_MASK_ADDR, \
2099 __DES_TILE_ADDR, \
2100 __DES_REGION_ADDR, \
2101 __CENTRE, \
2102 __ANGLE, \
2103 __SCALE, \
2104 ...) \
2105 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
2106 arm_2dp_gray8_tile_transform_with_src_mask_prepare( \
2107 (__CB_ADDR), \
2108 (__SRC_TILE_ADDR), \
2109 (__SRC_MASK_ADDR), \
2110 (__CENTRE), \
2111 (float)(__ANGLE), \
2112 (float)(__SCALE)); \
2113 }; \
2114 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
2115 (__DES_TILE_ADDR), \
2116 (__DES_REGION_ADDR), \
2117 (NULL,##__VA_ARGS__)); \
2118 })
2119
2120#define arm_2dp_rgb565_tile_transform_with_src_mask( \
2121 __CB_ADDR, \
2122 __SRC_TILE_ADDR, \
2123 __SRC_MASK_ADDR, \
2124 __DES_TILE_ADDR, \
2125 __DES_REGION_ADDR, \
2126 __CENTRE, \
2127 __ANGLE, \
2128 __SCALE, \
2129 ...) \
2130 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
2131 arm_2dp_rgb565_tile_transform_with_src_mask_prepare( \
2132 (__CB_ADDR), \
2133 (__SRC_TILE_ADDR), \
2134 (__SRC_MASK_ADDR), \
2135 (__CENTRE), \
2136 (float)(__ANGLE), \
2137 (float)(__SCALE)); \
2138 }; \
2139 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
2140 (__DES_TILE_ADDR), \
2141 (__DES_REGION_ADDR), \
2142 (NULL,##__VA_ARGS__)); \
2143 })
2144
2145
2146#define arm_2dp_cccn888_tile_transform_with_src_mask( \
2147 __CB_ADDR, \
2148 __SRC_TILE_ADDR, \
2149 __SRC_MASK_ADDR, \
2150 __DES_TILE_ADDR, \
2151 __DES_REGION_ADDR, \
2152 __CENTRE, \
2153 __ANGLE, \
2154 __SCALE, \
2155 ...) \
2156 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
2157 arm_2dp_cccn888_tile_transform_with_src_mask_prepare( \
2158 (__CB_ADDR), \
2159 (__SRC_TILE_ADDR), \
2160 (__SRC_MASK_ADDR), \
2161 (__CENTRE), \
2162 (float)(__ANGLE), \
2163 (float)(__SCALE)); \
2164 }; \
2165 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
2166 (__DES_TILE_ADDR), \
2167 (__DES_REGION_ADDR), \
2168 (NULL,##__VA_ARGS__)); \
2169 })
2170
2171#define arm_2dp_gray8_tile_transform_with_src_mask_and_opacity( \
2172 __CB_ADDR, \
2173 __SRC_TILE_ADDR, \
2174 __SRC_MASK_ADDR, \
2175 __DES_TILE_ADDR, \
2176 __DES_REGION_ADDR, \
2177 __CENTRE, \
2178 __ANGLE, \
2179 __SCALE, \
2180 __OPACITY, \
2181 ...) \
2182 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
2183 arm_2dp_gray8_tile_transform_with_src_mask_and_opacity_prepare( \
2184 (__CB_ADDR), \
2185 (__SRC_TILE_ADDR), \
2186 (__SRC_MASK_ADDR), \
2187 (__CENTRE), \
2188 (float)(__ANGLE), \
2189 (float)(__SCALE), \
2190 (__OPACITY)); \
2191 }; \
2192 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
2193 (__DES_TILE_ADDR), \
2194 (__DES_REGION_ADDR), \
2195 (NULL,##__VA_ARGS__)); \
2196 })
2197
2198#define arm_2dp_rgb565_tile_transform_with_src_mask_and_opacity( \
2199 __CB_ADDR, \
2200 __SRC_TILE_ADDR, \
2201 __SRC_MASK_ADDR, \
2202 __DES_TILE_ADDR, \
2203 __DES_REGION_ADDR, \
2204 __CENTRE, \
2205 __ANGLE, \
2206 __SCALE, \
2207 __OPACITY, \
2208 ...) \
2209 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
2210 arm_2dp_rgb565_tile_transform_with_src_mask_and_opacity_prepare( \
2211 (__CB_ADDR), \
2212 (__SRC_TILE_ADDR), \
2213 (__SRC_MASK_ADDR), \
2214 (__CENTRE), \
2215 (float)(__ANGLE), \
2216 (float)(__SCALE), \
2217 (__OPACITY)); \
2218 }; \
2219 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
2220 (__DES_TILE_ADDR), \
2221 (__DES_REGION_ADDR), \
2222 (NULL,##__VA_ARGS__)); \
2223 })
2224
2225
2226#define arm_2dp_cccn888_tile_transform_with_src_mask_and_opacity( \
2227 __CB_ADDR, \
2228 __SRC_TILE_ADDR, \
2229 __SRC_MASK_ADDR, \
2230 __DES_TILE_ADDR, \
2231 __DES_REGION_ADDR, \
2232 __CENTRE, \
2233 __ANGLE, \
2234 __SCALE, \
2235 __OPACITY, \
2236 ...) \
2237 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
2238 arm_2dp_cccn888_tile_transform_with_src_mask_and_opacity_prepare( \
2239 (__CB_ADDR), \
2240 (__SRC_TILE_ADDR), \
2241 (__SRC_MASK_ADDR), \
2242 (__CENTRE), \
2243 (float)(__ANGLE), \
2244 (float)(__SCALE), \
2245 (__OPACITY)); \
2246 }; \
2247 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
2248 (__DES_TILE_ADDR), \
2249 (__DES_REGION_ADDR), \
2250 (NULL,##__VA_ARGS__)); \
2251 })
2252
2253#define arm_2d_gray8_tile_transform_with_colour_keying( \
2254 __SRC_TILE_ADDR, \
2255 __DES_TILE_ADDR, \
2256 __DES_REGION_ADDR, \
2257 __CENTRE, \
2258 __ANGLE, \
2259 __SCALE, \
2260 __MSK_COLOUR, ...) \
2261 ({{ \
2262 arm_2dp_gray8_tile_transform_with_colour_keying_prepare( \
2263 (NULL), \
2264 (__SRC_TILE_ADDR), \
2265 (__CENTRE), \
2266 (float)(__ANGLE), \
2267 (float)(__SCALE), \
2268 (__MSK_COLOUR)); \
2269 }; \
2270 arm_2dp_tile_transform(NULL, \
2271 (__DES_TILE_ADDR), \
2272 (__DES_REGION_ADDR), \
2273 (NULL,##__VA_ARGS__)); \
2274 })
2275
2276#define arm_2d_rgb565_tile_transform_with_colour_keying( \
2277 __SRC_TILE_ADDR, \
2278 __DES_TILE_ADDR, \
2279 __DES_REGION_ADDR, \
2280 __CENTRE, \
2281 __ANGLE, \
2282 __SCALE, \
2283 __MSK_COLOUR, ...) \
2284 ({{ \
2285 arm_2dp_rgb565_tile_transform_with_colour_keying_prepare( \
2286 (NULL), \
2287 (__SRC_TILE_ADDR), \
2288 (__CENTRE), \
2289 (float)(__ANGLE), \
2290 (float)(__SCALE), \
2291 (__MSK_COLOUR)); \
2292 }; \
2293 arm_2dp_tile_transform(NULL, \
2294 (__DES_TILE_ADDR), \
2295 (__DES_REGION_ADDR), \
2296 (NULL,##__VA_ARGS__)); \
2297 })
2298
2299#define arm_2d_cccn888_tile_transform_with_colour_keying( \
2300 __SRC_TILE_ADDR, \
2301 __DES_TILE_ADDR, \
2302 __DES_REGION_ADDR, \
2303 __CENTRE, \
2304 __ANGLE, \
2305 __SCALE, \
2306 __MSK_COLOUR, ...) \
2307 ({{ \
2308 arm_2dp_cccn888_tile_transform_with_colour_keying_prepare( \
2309 NULL, \
2310 (__SRC_TILE_ADDR), \
2311 (__CENTRE), \
2312 (float)(__ANGLE), \
2313 (float)(__SCALE), \
2314 (__MSK_COLOUR)); \
2315 }; \
2316 arm_2dp_tile_transform(NULL, \
2317 (__DES_TILE_ADDR), \
2318 (__DES_REGION_ADDR), \
2319 (NULL,##__VA_ARGS__)); \
2320 })
2321
2322#define arm_2d_gray8_tile_transform_with_opacity( \
2323 __SRC_TILE_ADDR, \
2324 __DES_TILE_ADDR, \
2325 __DES_REGION_ADDR, \
2326 __CENTRE, \
2327 __ANGLE, \
2328 __SCALE, \
2329 __MSK_COLOUR, \
2330 __OPACITY, ...) \
2331 ({{ \
2332 arm_2dp_gray8_tile_transform_with_colour_keying_and_opacity_prepare(\
2333 NULL, \
2334 (__SRC_TILE_ADDR), \
2335 (__CENTRE), \
2336 (float)(__ANGLE), \
2337 (float)(__SCALE), \
2338 (__MSK_COLOUR), \
2339 (__OPACITY)); \
2340 }; \
2341 arm_2dp_tile_transform(NULL, \
2342 (__DES_TILE_ADDR), \
2343 (__DES_REGION_ADDR), \
2344 (NULL,##__VA_ARGS__)); \
2345 })
2346
2347#define arm_2d_rgb565_tile_transform_with_opacity( \
2348 __SRC_TILE_ADDR, \
2349 __DES_TILE_ADDR, \
2350 __DES_REGION_ADDR, \
2351 __CENTRE, \
2352 __ANGLE, \
2353 __SCALE, \
2354 __MSK_COLOUR, \
2355 __OPACITY, ...) \
2356 ({{ \
2357 arm_2dp_rgb565_tile_transform_with_colour_keying_and_opacity_prepare(\
2358 NULL, \
2359 (__SRC_TILE_ADDR), \
2360 (__CENTRE), \
2361 (float)(__ANGLE), \
2362 (float)(__SCALE), \
2363 (__MSK_COLOUR), \
2364 (__OPACITY)); \
2365 }; \
2366 arm_2dp_tile_transform(NULL, \
2367 (__DES_TILE_ADDR), \
2368 (__DES_REGION_ADDR), \
2369 (NULL,##__VA_ARGS__)); \
2370 })
2371
2372#define arm_2d_cccn888_tile_transform_with_opacity( \
2373 __SRC_TILE_ADDR, \
2374 __DES_TILE_ADDR, \
2375 __DES_REGION_ADDR, \
2376 __CENTRE, \
2377 __ANGLE, \
2378 __SCALE, \
2379 __MSK_COLOUR, \
2380 __OPACITY, ...) \
2381 ({{ \
2382 arm_2dp_cccn888_tile_transform_with_colour_keying_and_opacity_prepare(\
2383 NULL, \
2384 (__SRC_TILE_ADDR), \
2385 (__CENTRE), \
2386 (float)(__ANGLE), \
2387 (float)(__SCALE), \
2388 (__MSK_COLOUR), \
2389 (__OPACITY)); \
2390 }; \
2391 arm_2dp_tile_transform(NULL, \
2392 (__DES_TILE_ADDR), \
2393 (__DES_REGION_ADDR), \
2394 (NULL,##__VA_ARGS__)); \
2395 })
2396
2397#define arm_2d_gray8_tile_transform_only_with_opacity( \
2398 __SRC_TILE_ADDR, \
2399 __DES_TILE_ADDR, \
2400 __DES_REGION_ADDR, \
2401 __CENTRE, \
2402 __ANGLE, \
2403 __SCALE, \
2404 __OPACITY, ...) \
2405 ({{ \
2406 arm_2dp_gray8_tile_transform_only_with_opacity_prepare( \
2407 NULL, \
2408 (__SRC_TILE_ADDR), \
2409 (__CENTRE), \
2410 (float)(__ANGLE), \
2411 (float)(__SCALE), \
2412 (__OPACITY)); \
2413 }; \
2414 arm_2dp_tile_transform(NULL, \
2415 (__DES_TILE_ADDR), \
2416 (__DES_REGION_ADDR), \
2417 (NULL,##__VA_ARGS__)); \
2418 })
2419
2420#define arm_2d_rgb565_tile_transform_only_with_opacity( \
2421 __SRC_TILE_ADDR, \
2422 __DES_TILE_ADDR, \
2423 __DES_REGION_ADDR, \
2424 __CENTRE, \
2425 __ANGLE, \
2426 __SCALE, \
2427 __OPACITY, ...) \
2428 ({{ \
2429 arm_2dp_rgb565_tile_transform_only_with_opacity_prepare( \
2430 NULL, \
2431 (__SRC_TILE_ADDR), \
2432 (__CENTRE), \
2433 (float)(__ANGLE), \
2434 (float)(__SCALE), \
2435 (__OPACITY)); \
2436 }; \
2437 arm_2dp_tile_transform(NULL, \
2438 (__DES_TILE_ADDR), \
2439 (__DES_REGION_ADDR), \
2440 (NULL,##__VA_ARGS__)); \
2441 })
2442
2443#define arm_2d_cccn888_tile_transform_only_with_opacity( \
2444 __SRC_TILE_ADDR, \
2445 __DES_TILE_ADDR, \
2446 __DES_REGION_ADDR, \
2447 __CENTRE, \
2448 __ANGLE, \
2449 __SCALE, \
2450 __OPACITY, ...) \
2451 ({{ \
2452 arm_2dp_cccn888_tile_transform_only_with_opacity_prepare( \
2453 NULL, \
2454 (__SRC_TILE_ADDR), \
2455 (__CENTRE), \
2456 (float)(__ANGLE), \
2457 (float)(__SCALE), \
2458 (__OPACITY)); \
2459 }; \
2460 arm_2dp_tile_transform(NULL, \
2461 (__DES_TILE_ADDR), \
2462 (__DES_REGION_ADDR), \
2463 (NULL,##__VA_ARGS__)); \
2464 })
2465
2466#define arm_2d_gray8_tile_transform_with_src_mask( \
2467 __SRC_TILE_ADDR, \
2468 __SRC_MASK_ADDR, \
2469 __DES_TILE_ADDR, \
2470 __DES_REGION_ADDR, \
2471 __CENTRE, \
2472 __ANGLE, \
2473 __SCALE, \
2474 ...) \
2475 ({{ \
2476 arm_2dp_gray8_tile_transform_with_src_mask_prepare( \
2477 (NULL), \
2478 (__SRC_TILE_ADDR), \
2479 (__SRC_MASK_ADDR), \
2480 (__CENTRE), \
2481 (float)(__ANGLE), \
2482 (float)(__SCALE)); \
2483 }; \
2484 arm_2dp_tile_transform(NULL, \
2485 (__DES_TILE_ADDR), \
2486 (__DES_REGION_ADDR), \
2487 (NULL,##__VA_ARGS__)); \
2488 })
2489
2490#define arm_2d_rgb565_tile_transform_with_src_mask( \
2491 __SRC_TILE_ADDR, \
2492 __SRC_MASK_ADDR, \
2493 __DES_TILE_ADDR, \
2494 __DES_REGION_ADDR, \
2495 __CENTRE, \
2496 __ANGLE, \
2497 __SCALE, \
2498 ...) \
2499 ({{ \
2500 arm_2dp_rgb565_tile_transform_with_src_mask_prepare( \
2501 (NULL), \
2502 (__SRC_TILE_ADDR), \
2503 (__SRC_MASK_ADDR), \
2504 (__CENTRE), \
2505 (float)(__ANGLE), \
2506 (float)(__SCALE)); \
2507 }; \
2508 arm_2dp_tile_transform(NULL, \
2509 (__DES_TILE_ADDR), \
2510 (__DES_REGION_ADDR), \
2511 (NULL,##__VA_ARGS__)); \
2512 })
2513
2514#define arm_2d_cccn888_tile_transform_with_src_mask( \
2515 __SRC_TILE_ADDR, \
2516 __SRC_MASK_ADDR, \
2517 __DES_TILE_ADDR, \
2518 __DES_REGION_ADDR, \
2519 __CENTRE, \
2520 __ANGLE, \
2521 __SCALE, \
2522 ...) \
2523 ({{ \
2524 arm_2dp_cccn888_tile_transform_with_src_mask_prepare( \
2525 (NULL), \
2526 (__SRC_TILE_ADDR), \
2527 (__SRC_MASK_ADDR), \
2528 (__CENTRE), \
2529 (float)(__ANGLE), \
2530 (float)(__SCALE)); \
2531 }; \
2532 arm_2dp_tile_transform(NULL, \
2533 (__DES_TILE_ADDR), \
2534 (__DES_REGION_ADDR), \
2535 (NULL,##__VA_ARGS__)); \
2536 })
2537
2538#define arm_2d_gray8_tile_transform_with_src_mask_and_opacity( \
2539 __SRC_TILE_ADDR, \
2540 __SRC_MASK_ADDR, \
2541 __DES_TILE_ADDR, \
2542 __DES_REGION_ADDR, \
2543 __CENTRE, \
2544 __ANGLE, \
2545 __SCALE, \
2546 __OPACITY, \
2547 ...) \
2548 ({{ \
2549 arm_2dp_gray8_tile_transform_with_src_mask_and_opacity_prepare( \
2550 (NULL), \
2551 (__SRC_TILE_ADDR), \
2552 (__SRC_MASK_ADDR), \
2553 (__CENTRE), \
2554 (float)(__ANGLE), \
2555 (float)(__SCALE), \
2556 (__OPACITY)); \
2557 }; \
2558 arm_2dp_tile_transform(NULL, \
2559 (__DES_TILE_ADDR), \
2560 (__DES_REGION_ADDR), \
2561 (NULL,##__VA_ARGS__)); \
2562 })
2563
2564#define arm_2d_rgb565_tile_transform_with_src_mask_and_opacity( \
2565 __SRC_TILE_ADDR, \
2566 __SRC_MASK_ADDR, \
2567 __DES_TILE_ADDR, \
2568 __DES_REGION_ADDR, \
2569 __CENTRE, \
2570 __ANGLE, \
2571 __SCALE, \
2572 __OPACITY, \
2573 ...) \
2574 ({{ \
2575 arm_2dp_rgb565_tile_transform_with_src_mask_and_opacity_prepare( \
2576 (NULL), \
2577 (__SRC_TILE_ADDR), \
2578 (__SRC_MASK_ADDR), \
2579 (__CENTRE), \
2580 (float)(__ANGLE), \
2581 (float)(__SCALE), \
2582 (__OPACITY)); \
2583 }; \
2584 arm_2dp_tile_transform(NULL, \
2585 (__DES_TILE_ADDR), \
2586 (__DES_REGION_ADDR), \
2587 (NULL,##__VA_ARGS__)); \
2588 })
2589
2590#define arm_2d_cccn888_tile_transform_with_src_mask_and_opacity( \
2591 __SRC_TILE_ADDR, \
2592 __SRC_MASK_ADDR, \
2593 __DES_TILE_ADDR, \
2594 __DES_REGION_ADDR, \
2595 __CENTRE, \
2596 __ANGLE, \
2597 __SCALE, \
2598 __OPACITY, \
2599 ...) \
2600 ({{ \
2601 arm_2dp_cccn888_tile_transform_with_src_mask_and_opacity_prepare( \
2602 (NULL), \
2603 (__SRC_TILE_ADDR), \
2604 (__SRC_MASK_ADDR), \
2605 (__CENTRE), \
2606 (float)(__ANGLE), \
2607 (float)(__SCALE), \
2608 (__OPACITY)); \
2609 }; \
2610 arm_2dp_tile_transform(NULL, \
2611 (__DES_TILE_ADDR), \
2612 (__DES_REGION_ADDR), \
2613 (NULL,##__VA_ARGS__)); \
2614 })
2615
2616/*----------------------------------------------------------------------------*
2617 * API wrappers: Scaling *
2618 *----------------------------------------------------------------------------*/
2619
2620#define arm_2d_gray8_tile_scaling_with_colour_keying_prepare( __SRC_TILE_ADDR,\
2621 __CENTRE, \
2622 __SCALE, \
2623 __MSK_COLOUR) \
2624 arm_2dp_gray8_tile_transform_with_colour_keying_prepare( NULL, \
2625 (__SRC_TILE_ADDR), \
2626 (__CENTRE), \
2627 0.0f, \
2628 (float)(__SCALE), \
2629 (__MSK_COLOUR))
2630
2631#define arm_2d_rgb565_tile_scaling_with_colour_keying_prepare( __SRC_TILE_ADDR,\
2632 __CENTRE, \
2633 __SCALE, \
2634 __MSK_COLOUR) \
2635 arm_2dp_rgb565_tile_transform_with_colour_keying_prepare( NULL, \
2636 (__SRC_TILE_ADDR), \
2637 (__CENTRE), \
2638 0.0f, \
2639 (float)(__SCALE), \
2640 (__MSK_COLOUR))
2641
2642#define arm_2d_cccn888_tile_scaling_with_colour_keying_prepare( __SRC_TILE_ADDR,\
2643 __CENTRE, \
2644 __SCALE, \
2645 __MSK_COLOUR) \
2646 arm_2dp_cccn888_tile_transform_with_colour_keying_prepare( NULL, \
2647 (__SRC_TILE_ADDR), \
2648 (__CENTRE), \
2649 0.0f, \
2650 (float)(__SCALE), \
2651 (__MSK_COLOUR))
2652
2653#define arm_2d_gray8_tile_scaling_only_prepare( __SRC_TILE_ADDR, \
2654 __CENTRE, \
2655 __SCALE) \
2656 arm_2dp_gray8_tile_transform_only_prepare( NULL, \
2657 (__SRC_TILE_ADDR), \
2658 (__CENTRE), \
2659 0.0f, \
2660 (float)(__SCALE))
2661
2662#define arm_2d_rgb565_tile_scaling_only_prepare( __SRC_TILE_ADDR, \
2663 __CENTRE, \
2664 __SCALE) \
2665 arm_2dp_rgb565_tile_transform_only_prepare( NULL, \
2666 (__SRC_TILE_ADDR), \
2667 (__CENTRE), \
2668 0.0f, \
2669 (float)(__SCALE))
2670
2671#define arm_2d_cccn888_tile_scaling_only_prepare( __SRC_TILE_ADDR, \
2672 __CENTRE, \
2673 __SCALE) \
2674 arm_2dp_cccn888_tile_transform_only_prepare( NULL, \
2675 (__SRC_TILE_ADDR), \
2676 (__CENTRE), \
2677 0.0f, \
2678 (float)(__SCALE))
2679
2680#define arm_2d_gray8_tile_scaling_with_opacity_prepare( \
2681 __SRC_TILE_ADDR, \
2682 __CENTRE, \
2683 __SCALE, \
2684 __MSK_COLOUR, \
2685 __OPACITY) \
2686 arm_2dp_gray8_tile_transform_with_colour_keying_and_opacity_prepare(\
2687 NULL, \
2688 (__SRC_TILE_ADDR), \
2689 (__CENTRE), \
2690 0.0f, \
2691 (float)(__SCALE), \
2692 (__MSK_COLOUR), \
2693 (__OPACITY))
2694
2695#define arm_2d_rgb565_tile_scaling_with_opacity_prepare( \
2696 __SRC_TILE_ADDR, \
2697 __CENTRE, \
2698 __SCALE, \
2699 __MSK_COLOUR, \
2700 __OPACITY) \
2701 arm_2dp_rgb565_tile_transform_with_colour_keying_and_opacity_prepare(\
2702 NULL, \
2703 (__SRC_TILE_ADDR), \
2704 (__CENTRE), \
2705 0.0f, \
2706 (float)(__SCALE), \
2707 (__MSK_COLOUR), \
2708 (__OPACITY))
2709
2710#define arm_2d_cccn888_tile_scaling_with_opacity_prepare( \
2711 __SRC_TILE_ADDR, \
2712 __CENTRE, \
2713 __SCALE, \
2714 __MSK_COLOUR, \
2715 __OPACITY) \
2716 arm_2dp_cccn888_tile_transform_with_colour_keying_and_opacity_prepare(\
2717 NULL, \
2718 (__SRC_TILE_ADDR), \
2719 (__CENTRE), \
2720 0.0f, \
2721 (float)(__SCALE), \
2722 (__MSK_COLOUR), \
2723 (__OPACITY))
2724
2725#define arm_2d_gray8_tile_scaling_only_with_opacity_prepare( \
2726 __SRC_TILE_ADDR, \
2727 __CENTRE, \
2728 __SCALE, \
2729 __OPACITY) \
2730 arm_2dp_gray8_tile_transform_only_with_opacity_prepare( \
2731 NULL, \
2732 (__SRC_TILE_ADDR), \
2733 (__CENTRE), \
2734 0.0f, \
2735 (float)(__SCALE), \
2736 (__OPACITY))
2737
2738#define arm_2d_rgb565_tile_scaling_only_with_opacity_prepare( \
2739 __SRC_TILE_ADDR, \
2740 __CENTRE, \
2741 __SCALE, \
2742 __OPACITY) \
2743 arm_2dp_rgb565_tile_transform_only_with_opacity_prepare( \
2744 NULL, \
2745 (__SRC_TILE_ADDR), \
2746 (__CENTRE), \
2747 0.0f, \
2748 (float)(__SCALE), \
2749 (__OPACITY))
2750
2751#define arm_2d_cccn888_tile_scaling_only_with_opacity_prepare( \
2752 __SRC_TILE_ADDR, \
2753 __CENTRE, \
2754 __SCALE, \
2755 __OPACITY) \
2756 arm_2dp_cccn888_tile_transform_only_with_opacity_prepare( \
2757 NULL, \
2758 (__SRC_TILE_ADDR), \
2759 (__CENTRE), \
2760 0.0f, \
2761 (float)(__SCALE), \
2762 (__OPACITY))
2763
2764#define arm_2d_gray8_tile_scaling_with_src_mask_prepare( \
2765 __SRC_TILE_ADDR, \
2766 __SRC_MASK_ADDR, \
2767 __CENTRE, \
2768 __SCALE) \
2769 arm_2dp_gray8_tile_transform_with_src_mask_prepare( NULL, \
2770 (__SRC_TILE_ADDR), \
2771 (__SRC_MASK_ADDR), \
2772 (__CENTRE), \
2773 0.0f, \
2774 (float)(__SCALE))
2775
2776#define arm_2d_rgb565_tile_scaling_with_src_mask_prepare( \
2777 __SRC_TILE_ADDR, \
2778 __SRC_MASK_ADDR, \
2779 __CENTRE, \
2780 __SCALE) \
2781 arm_2dp_rgb565_tile_transform_with_src_mask_prepare( NULL, \
2782 (__SRC_TILE_ADDR), \
2783 (__SRC_MASK_ADDR), \
2784 (__CENTRE), \
2785 0.0f, \
2786 (float)(__SCALE))
2787
2788#define arm_2d_cccn888_tile_scaling_with_src_mask_prepare( \
2789 __SRC_TILE_ADDR, \
2790 __SRC_MASK_ADDR, \
2791 __CENTRE, \
2792 __SCALE) \
2793 arm_2dp_cccn888_tile_transform_with_src_mask_prepare( NULL, \
2794 (__SRC_TILE_ADDR), \
2795 (__SRC_MASK_ADDR), \
2796 (__CENTRE), \
2797 0.0f, \
2798 (float)(__SCALE))
2799
2800#define arm_2d_gray8_tile_scaling_with_src_mask_and_opacity_prepare( \
2801 __SRC_TILE_ADDR, \
2802 __SRC_MASK_ADDR, \
2803 __CENTRE, \
2804 __SCALE, \
2805 __OPACITY) \
2806 arm_2dp_gray8_tile_transform_with_src_mask_and_opacity_prepare( \
2807 NULL, \
2808 (__SRC_TILE_ADDR), \
2809 (__SRC_MASK_ADDR), \
2810 (__CENTRE), \
2811 0.0f, \
2812 (float)(__SCALE), \
2813 (__OPACITY))
2814
2815#define arm_2d_rgb565_tile_scaling_with_src_mask_and_opacity_prepare( \
2816 __SRC_TILE_ADDR, \
2817 __SRC_MASK_ADDR, \
2818 __CENTRE, \
2819 __SCALE, \
2820 __OPACITY) \
2821 arm_2dp_rgb565_tile_transform_with_src_mask_and_opacity_prepare( \
2822 NULL, \
2823 (__SRC_TILE_ADDR), \
2824 (__SRC_MASK_ADDR), \
2825 (__CENTRE), \
2826 0.0f, \
2827 (float)(__SCALE), \
2828 (__OPACITY))
2829
2830#define arm_2d_cccn888_tile_scaling_with_src_mask_and_opacity_prepare( \
2831 __SRC_TILE_ADDR, \
2832 __SRC_MASK_ADDR, \
2833 __CENTRE, \
2834 __SCALE, \
2835 __OPACITY) \
2836 arm_2dp_cccn888_tile_transform_with_src_mask_and_opacity_prepare( \
2837 NULL, \
2838 (__SRC_TILE_ADDR), \
2839 (__SRC_MASK_ADDR), \
2840 (__CENTRE), \
2841 0.0f, \
2842 (float)(__SCALE), \
2843 (__OPACITY))
2844
2845#define arm_2d_tile_scale( __DES_TILE_ADDR, \
2846 __DES_REGION_ADDR, \
2847 __DES_CENTRE_ADDR) \
2848 arm_2dp_tile_transform(NULL, \
2849 (__DES_TILE_ADDR), \
2850 (__DES_REGION_ADDR), \
2851 (__DES_CENTRE_ADDR))
2852
2853
2854/* following macro APIs rely on the boolean variable bIsNewFrame.
2855 * Please make sure you have define it with the correct name and the
2856 * corresponding value. If you don't use the PFB interfaces for neither
2857 * the low level rendering nor the high level GUI drawing, please find
2858 * such variable with the value "true".
2859 */
2860
2861#define arm_2dp_gray8_tile_scaling_with_colour_keying( __CB_ADDR, \
2862 __SRC_TILE_ADDR, \
2863 __DES_TILE_ADDR, \
2864 __DES_REGION_ADDR, \
2865 __CENTRE, \
2866 __SCALE, \
2867 __MSK_COLOUR, \
2868 ...) \
2869 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
2870 arm_2dp_gray8_tile_transform_with_colour_keying_prepare( \
2871 (__CB_ADDR), \
2872 (__SRC_TILE_ADDR), \
2873 (__CENTRE), \
2874 0.0f, \
2875 (__SCALE), \
2876 (__MSK_COLOUR)); \
2877 }; \
2878 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
2879 (__DES_TILE_ADDR), \
2880 (__DES_REGION_ADDR), \
2881 (NULL,##__VA_ARGS__)); \
2882 })
2883
2884#define arm_2dp_rgb565_tile_scaling_with_colour_keying( __CB_ADDR, \
2885 __SRC_TILE_ADDR, \
2886 __DES_TILE_ADDR, \
2887 __DES_REGION_ADDR, \
2888 __CENTRE, \
2889 __SCALE, \
2890 __MSK_COLOUR, \
2891 ...) \
2892 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
2893 arm_2dp_rgb565_tile_transform_with_colour_keying_prepare( \
2894 (__CB_ADDR), \
2895 (__SRC_TILE_ADDR), \
2896 (__CENTRE), \
2897 0.0f, \
2898 (__SCALE), \
2899 (__MSK_COLOUR)); \
2900 }; \
2901 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
2902 (__DES_TILE_ADDR), \
2903 (__DES_REGION_ADDR), \
2904 (NULL,##__VA_ARGS__)); \
2905 })
2906
2907#define arm_2dp_cccn888_tile_scaling_with_colour_keying( __CB_ADDR, \
2908 __SRC_TILE_ADDR, \
2909 __DES_TILE_ADDR, \
2910 __DES_REGION_ADDR, \
2911 __CENTRE, \
2912 __SCALE, \
2913 __MSK_COLOUR, \
2914 ...) \
2915 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
2916 arm_2dp_cccn888_tile_transform_with_colour_keying_prepare( \
2917 (__CB_ADDR), \
2918 (__SRC_TILE_ADDR), \
2919 (__CENTRE), \
2920 0.0f, \
2921 (__SCALE), \
2922 (__MSK_COLOUR)); \
2923 }; \
2924 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
2925 (__DES_TILE_ADDR), \
2926 (__DES_REGION_ADDR), \
2927 (NULL,##__VA_ARGS__)); \
2928 })
2929
2930#define arm_2dp_gray8_tile_scaling_only( __CB_ADDR, \
2931 __SRC_TILE_ADDR, \
2932 __DES_TILE_ADDR, \
2933 __DES_REGION_ADDR, \
2934 __CENTRE, \
2935 __SCALE, \
2936 ...) \
2937 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
2938 arm_2dp_gray8_tile_transform_only_prepare( \
2939 (__CB_ADDR), \
2940 (__SRC_TILE_ADDR), \
2941 (__CENTRE), \
2942 0.0f, \
2943 (__SCALE)); \
2944 }; \
2945 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
2946 (__DES_TILE_ADDR), \
2947 (__DES_REGION_ADDR), \
2948 (NULL,##__VA_ARGS__)); \
2949 })
2950
2951#define arm_2dp_rgb565_tile_scaling_only( __CB_ADDR, \
2952 __SRC_TILE_ADDR, \
2953 __DES_TILE_ADDR, \
2954 __DES_REGION_ADDR, \
2955 __CENTRE, \
2956 __SCALE, \
2957 ...) \
2958 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
2959 arm_2dp_rgb565_tile_transform_only_prepare( \
2960 (__CB_ADDR), \
2961 (__SRC_TILE_ADDR), \
2962 (__CENTRE), \
2963 0.0f, \
2964 (__SCALE)); \
2965 }; \
2966 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
2967 (__DES_TILE_ADDR), \
2968 (__DES_REGION_ADDR), \
2969 (NULL,##__VA_ARGS__)); \
2970 })
2971
2972#define arm_2dp_cccn888_tile_scaling_only( __CB_ADDR, \
2973 __SRC_TILE_ADDR, \
2974 __DES_TILE_ADDR, \
2975 __DES_REGION_ADDR, \
2976 __CENTRE, \
2977 __SCALE, \
2978 ...) \
2979 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
2980 arm_2dp_cccn888_tile_transform_only_prepare( \
2981 (__CB_ADDR), \
2982 (__SRC_TILE_ADDR), \
2983 (__CENTRE), \
2984 0.0f, \
2985 (__SCALE)); \
2986 }; \
2987 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
2988 (__DES_TILE_ADDR), \
2989 (__DES_REGION_ADDR), \
2990 (NULL,##__VA_ARGS__)); \
2991 })
2992
2993#define arm_2dp_gray8_tile_scaling_with_opacity( \
2994 __CB_ADDR, \
2995 __SRC_TILE_ADDR, \
2996 __DES_TILE_ADDR, \
2997 __DES_REGION_ADDR, \
2998 __CENTRE, \
2999 __SCALE, \
3000 __MSK_COLOUR, \
3001 __OPACITY,...) \
3002 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
3003 arm_2dp_gray8_tile_transform_with_colour_keying_and_opacity_prepare(\
3004 (__CB_ADDR), \
3005 (__SRC_TILE_ADDR), \
3006 (__CENTRE), \
3007 0.0f, \
3008 (__SCALE), \
3009 (__MSK_COLOUR), \
3010 (__OPACITY)); \
3011 }; \
3012 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
3013 (__DES_TILE_ADDR), \
3014 (__DES_REGION_ADDR), \
3015 (NULL,##__VA_ARGS__)); \
3016 })
3017
3018#define arm_2dp_rgb565_tile_scaling_with_opacity( \
3019 __CB_ADDR, \
3020 __SRC_TILE_ADDR, \
3021 __DES_TILE_ADDR, \
3022 __DES_REGION_ADDR, \
3023 __CENTRE, \
3024 __SCALE, \
3025 __MSK_COLOUR, \
3026 __OPACITY,...) \
3027 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
3028 arm_2dp_rgb565_tile_transform_with_colour_keying_and_opacity_prepare(\
3029 (__CB_ADDR), \
3030 (__SRC_TILE_ADDR), \
3031 (__CENTRE), \
3032 0.0f, \
3033 (__SCALE), \
3034 (__MSK_COLOUR), \
3035 (__OPACITY)); \
3036 }; \
3037 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
3038 (__DES_TILE_ADDR), \
3039 (__DES_REGION_ADDR), \
3040 (NULL,##__VA_ARGS__)); \
3041 })
3042
3043#define arm_2dp_cccn888_tile_scaling_with_opacity( \
3044 __CB_ADDR, \
3045 __SRC_TILE_ADDR, \
3046 __DES_TILE_ADDR, \
3047 __DES_REGION_ADDR, \
3048 __CENTRE, \
3049 __SCALE, \
3050 __MSK_COLOUR, \
3051 __OPACITY, ...) \
3052 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
3053 arm_2dp_cccn888_tile_transform_with_colour_keying_and_opacity_prepare(\
3054 (__CB_ADDR), \
3055 (__SRC_TILE_ADDR), \
3056 (__CENTRE), \
3057 0.0f, \
3058 (__SCALE), \
3059 (__MSK_COLOUR), \
3060 (__OPACITY)); \
3061 }; \
3062 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
3063 (__DES_TILE_ADDR), \
3064 (__DES_REGION_ADDR), \
3065 (NULL,##__VA_ARGS__)); \
3066 })
3067
3068#define arm_2dp_gray8_tile_scaling_only_with_opacity( \
3069 __CB_ADDR, \
3070 __SRC_TILE_ADDR, \
3071 __DES_TILE_ADDR, \
3072 __DES_REGION_ADDR, \
3073 __CENTRE, \
3074 __SCALE, \
3075 __OPACITY, ...) \
3076 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
3077 arm_2dp_gray8_tile_transform_only_with_opacity_prepare( \
3078 (__CB_ADDR), \
3079 (__SRC_TILE_ADDR), \
3080 (__CENTRE), \
3081 0.0f, \
3082 (__SCALE), \
3083 (__OPACITY)); \
3084 }; \
3085 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
3086 (__DES_TILE_ADDR), \
3087 (__DES_REGION_ADDR), \
3088 (NULL,##__VA_ARGS__)); \
3089 })
3090
3091#define arm_2dp_rgb565_tile_scaling_only_with_opacity( \
3092 __CB_ADDR, \
3093 __SRC_TILE_ADDR, \
3094 __DES_TILE_ADDR, \
3095 __DES_REGION_ADDR, \
3096 __CENTRE, \
3097 __SCALE, \
3098 __OPACITY, ...) \
3099 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
3100 arm_2dp_rgb565_tile_transform_only_with_opacity_prepare( \
3101 (__CB_ADDR), \
3102 (__SRC_TILE_ADDR), \
3103 (__CENTRE), \
3104 0.0f, \
3105 (__SCALE), \
3106 (__OPACITY)); \
3107 }; \
3108 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
3109 (__DES_TILE_ADDR), \
3110 (__DES_REGION_ADDR), \
3111 (NULL,##__VA_ARGS__)); \
3112 })
3113
3114#define arm_2dp_cccn888_tile_scaling_only_with_opacity( \
3115 __CB_ADDR, \
3116 __SRC_TILE_ADDR, \
3117 __DES_TILE_ADDR, \
3118 __DES_REGION_ADDR, \
3119 __CENTRE, \
3120 __SCALE, \
3121 __OPACITY, ...) \
3122 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
3123 arm_2dp_cccn888_tile_transform_only_with_opacity_prepare( \
3124 (__CB_ADDR), \
3125 (__SRC_TILE_ADDR), \
3126 (__CENTRE), \
3127 0.0f, \
3128 (__SCALE), \
3129 (__OPACITY)); \
3130 }; \
3131 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
3132 (__DES_TILE_ADDR), \
3133 (__DES_REGION_ADDR), \
3134 (NULL,##__VA_ARGS__)); \
3135 })
3136
3137#define arm_2dp_gray8_tile_scaling_with_src_mask( \
3138 __CB_ADDR, \
3139 __SRC_TILE_ADDR, \
3140 __SRC_MASK_ADDR, \
3141 __DES_TILE_ADDR, \
3142 __DES_REGION_ADDR, \
3143 __CENTRE, \
3144 __SCALE, \
3145 ...) \
3146 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
3147 arm_2dp_gray8_tile_transform_with_src_mask_prepare( \
3148 (__CB_ADDR), \
3149 (__SRC_TILE_ADDR), \
3150 (__SRC_MASK_ADDR), \
3151 (__CENTRE), \
3152 0.0f, \
3153 (__SCALE)); \
3154 }; \
3155 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
3156 (__DES_TILE_ADDR), \
3157 (__DES_REGION_ADDR), \
3158 (NULL,##__VA_ARGS__)); \
3159 })
3160
3161#define arm_2dp_rgb565_tile_scaling_with_src_mask( \
3162 __CB_ADDR, \
3163 __SRC_TILE_ADDR, \
3164 __SRC_MASK_ADDR, \
3165 __DES_TILE_ADDR, \
3166 __DES_REGION_ADDR, \
3167 __CENTRE, \
3168 __SCALE, \
3169 ...) \
3170 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
3171 arm_2dp_rgb565_tile_transform_with_src_mask_prepare( \
3172 (__CB_ADDR), \
3173 (__SRC_TILE_ADDR), \
3174 (__SRC_MASK_ADDR), \
3175 (__CENTRE), \
3176 0.0f, \
3177 (__SCALE)); \
3178 }; \
3179 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
3180 (__DES_TILE_ADDR), \
3181 (__DES_REGION_ADDR), \
3182 (NULL,##__VA_ARGS__)); \
3183 })
3184
3185#define arm_2dp_cccn888_tile_scaling_with_src_mask( \
3186 __CB_ADDR, \
3187 __SRC_TILE_ADDR, \
3188 __SRC_MASK_ADDR, \
3189 __DES_TILE_ADDR, \
3190 __DES_REGION_ADDR, \
3191 __CENTRE, \
3192 __SCALE, \
3193 ...) \
3194 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
3195 arm_2dp_cccn888_tile_transform_with_src_mask_prepare( \
3196 (__CB_ADDR), \
3197 (__SRC_TILE_ADDR), \
3198 (__SRC_MASK_ADDR), \
3199 (__CENTRE), \
3200 0.0f, \
3201 (__SCALE)); \
3202 }; \
3203 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
3204 (__DES_TILE_ADDR), \
3205 (__DES_REGION_ADDR), \
3206 (NULL,##__VA_ARGS__)); \
3207 })
3208
3209#define arm_2dp_gray8_tile_scaling_with_src_mask_and_opacity( \
3210 __CB_ADDR, \
3211 __SRC_TILE_ADDR, \
3212 __SRC_MASK_ADDR, \
3213 __DES_TILE_ADDR, \
3214 __DES_REGION_ADDR, \
3215 __CENTRE, \
3216 __SCALE, \
3217 __OPACITY, \
3218 ...) \
3219 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
3220 arm_2dp_gray8_tile_transform_with_src_mask_and_opacity_prepare( \
3221 (__CB_ADDR), \
3222 (__SRC_TILE_ADDR), \
3223 (__SRC_MASK_ADDR), \
3224 (__CENTRE), \
3225 0.0f, \
3226 (__SCALE), \
3227 (__OPACITY)); \
3228 }; \
3229 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
3230 (__DES_TILE_ADDR), \
3231 (__DES_REGION_ADDR), \
3232 (NULL,##__VA_ARGS__)); \
3233 })
3234
3235#define arm_2dp_rgb565_tile_scaling_with_src_mask_and_opacity( \
3236 __CB_ADDR, \
3237 __SRC_TILE_ADDR, \
3238 __SRC_MASK_ADDR, \
3239 __DES_TILE_ADDR, \
3240 __DES_REGION_ADDR, \
3241 __CENTRE, \
3242 __SCALE, \
3243 __OPACITY, \
3244 ...) \
3245 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
3246 arm_2dp_rgb565_tile_transform_with_src_mask_and_opacity_prepare( \
3247 (__CB_ADDR), \
3248 (__SRC_TILE_ADDR), \
3249 (__SRC_MASK_ADDR), \
3250 (__CENTRE), \
3251 0.0f, \
3252 (__SCALE), \
3253 (__OPACITY)); \
3254 }; \
3255 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
3256 (__DES_TILE_ADDR), \
3257 (__DES_REGION_ADDR), \
3258 (NULL,##__VA_ARGS__)); \
3259 })
3260
3261#define arm_2dp_cccn888_tile_scaling_with_src_mask_and_opacity( \
3262 __CB_ADDR, \
3263 __SRC_TILE_ADDR, \
3264 __SRC_MASK_ADDR, \
3265 __DES_TILE_ADDR, \
3266 __DES_REGION_ADDR, \
3267 __CENTRE, \
3268 __SCALE, \
3269 __OPACITY, \
3270 ...) \
3271 ({assert(NULL != (__CB_ADDR)); if (bIsNewFrame) { \
3272 arm_2dp_cccn888_tile_transform_with_src_mask_and_opacity_prepare( \
3273 (__CB_ADDR), \
3274 (__SRC_TILE_ADDR), \
3275 (__SRC_MASK_ADDR), \
3276 (__CENTRE), \
3277 0.0f, \
3278 (__SCALE), \
3279 (__OPACITY)); \
3280 }; \
3281 arm_2dp_tile_transform((arm_2d_op_trans_t *)(__CB_ADDR), \
3282 (__DES_TILE_ADDR), \
3283 (__DES_REGION_ADDR), \
3284 (NULL,##__VA_ARGS__)); \
3285 })
3286
3287#define arm_2d_gray8_tile_scaling_with_colour_keying( \
3288 __SRC_TILE_ADDR, \
3289 __DES_TILE_ADDR, \
3290 __DES_REGION_ADDR, \
3291 __CENTRE, \
3292 __SCALE, \
3293 __MSK_COLOUR, ...) \
3294 ({{ \
3295 arm_2dp_gray8_tile_transform_with_colour_keying_prepare( \
3296 (NULL), \
3297 (__SRC_TILE_ADDR), \
3298 (__CENTRE), \
3299 0.0f, \
3300 (__SCALE), \
3301 (__MSK_COLOUR)); \
3302 }; \
3303 arm_2dp_tile_transform(NULL, \
3304 (__DES_TILE_ADDR), \
3305 (__DES_REGION_ADDR), \
3306 (NULL,##__VA_ARGS__)); \
3307 })
3308
3309#define arm_2d_rgb565_tile_scaling_with_colour_keying( \
3310 __SRC_TILE_ADDR, \
3311 __DES_TILE_ADDR, \
3312 __DES_REGION_ADDR, \
3313 __CENTRE, \
3314 __SCALE, \
3315 __MSK_COLOUR, ...) \
3316 ({{ \
3317 arm_2dp_rgb565_tile_transform_with_colour_keying_prepare( \
3318 (NULL), \
3319 (__SRC_TILE_ADDR), \
3320 (__CENTRE), \
3321 0.0f, \
3322 (__SCALE), \
3323 (__MSK_COLOUR)); \
3324 }; \
3325 arm_2dp_tile_transform(NULL, \
3326 (__DES_TILE_ADDR), \
3327 (__DES_REGION_ADDR), \
3328 (NULL,##__VA_ARGS__)); \
3329 })
3330
3331#define arm_2d_cccn888_tile_scaling_with_colour_keying( \
3332 __SRC_TILE_ADDR, \
3333 __DES_TILE_ADDR, \
3334 __DES_REGION_ADDR, \
3335 __CENTRE, \
3336 __SCALE, \
3337 __MSK_COLOUR, ...) \
3338 ({{ \
3339 arm_2dp_cccn888_tile_transform_with_colour_keying_prepare( \
3340 NULL, \
3341 (__SRC_TILE_ADDR), \
3342 (__CENTRE), \
3343 0.0f, \
3344 (__SCALE), \
3345 (__MSK_COLOUR)); \
3346 }; \
3347 arm_2dp_tile_transform(NULL, \
3348 (__DES_TILE_ADDR), \
3349 (__DES_REGION_ADDR), \
3350 (NULL,##__VA_ARGS__)); \
3351 })
3352
3353#define arm_2d_gray8_tile_scaling_only( \
3354 __SRC_TILE_ADDR, \
3355 __DES_TILE_ADDR, \
3356 __DES_REGION_ADDR, \
3357 __CENTRE, \
3358 __SCALE, \
3359 ...) \
3360 ({{ \
3361 arm_2dp_gray8_tile_transform_only_prepare( \
3362 NULL, \
3363 (__SRC_TILE_ADDR), \
3364 (__CENTRE), \
3365 0.0f, \
3366 (__SCALE)); \
3367 }; \
3368 arm_2dp_tile_transform(NULL, \
3369 (__DES_TILE_ADDR), \
3370 (__DES_REGION_ADDR), \
3371 (NULL,##__VA_ARGS__)); \
3372 })
3373
3374#define arm_2d_rgb565_tile_scaling_only( \
3375 __SRC_TILE_ADDR, \
3376 __DES_TILE_ADDR, \
3377 __DES_REGION_ADDR, \
3378 __CENTRE, \
3379 __SCALE, \
3380 ...) \
3381 ({{ \
3382 arm_2dp_rgb565_tile_transform_only_prepare( \
3383 NULL, \
3384 (__SRC_TILE_ADDR), \
3385 (__CENTRE), \
3386 0.0f, \
3387 (__SCALE)); \
3388 }; \
3389 arm_2dp_tile_transform(NULL, \
3390 (__DES_TILE_ADDR), \
3391 (__DES_REGION_ADDR), \
3392 (NULL,##__VA_ARGS__)); \
3393 })
3394
3395#define arm_2d_cccn888_tile_scaling_only( \
3396 __SRC_TILE_ADDR, \
3397 __DES_TILE_ADDR, \
3398 __DES_REGION_ADDR, \
3399 __CENTRE, \
3400 __SCALE, \
3401 ...) \
3402 ({{ \
3403 arm_2dp_cccn888_tile_transform_only_prepare( \
3404 NULL, \
3405 (__SRC_TILE_ADDR), \
3406 (__CENTRE), \
3407 0.0f, \
3408 (__SCALE)); \
3409 }; \
3410 arm_2dp_tile_transform(NULL, \
3411 (__DES_TILE_ADDR), \
3412 (__DES_REGION_ADDR), \
3413 (NULL,##__VA_ARGS__)); \
3414 })
3415
3416#define arm_2d_gray8_tile_scaling_with_opacity( \
3417 __SRC_TILE_ADDR, \
3418 __DES_TILE_ADDR, \
3419 __DES_REGION_ADDR, \
3420 __CENTRE, \
3421 __SCALE, \
3422 __MSK_COLOUR, \
3423 __OPACITY, ...) \
3424 ({{ \
3425 arm_2dp_gray8_tile_transform_with_colour_keying_and_opacity_prepare(\
3426 NULL, \
3427 (__SRC_TILE_ADDR), \
3428 (__CENTRE), \
3429 0.0f, \
3430 (__SCALE), \
3431 (__MSK_COLOUR), \
3432 (__OPACITY)); \
3433 }; \
3434 arm_2dp_tile_transform(NULL, \
3435 (__DES_TILE_ADDR), \
3436 (__DES_REGION_ADDR), \
3437 (NULL,##__VA_ARGS__)); \
3438 })
3439
3440
3441#define arm_2d_rgb565_tile_scaling_with_opacity( \
3442 __SRC_TILE_ADDR, \
3443 __DES_TILE_ADDR, \
3444 __DES_REGION_ADDR, \
3445 __CENTRE, \
3446 __SCALE, \
3447 __MSK_COLOUR, \
3448 __OPACITY, ...) \
3449 ({{ \
3450 arm_2dp_rgb565_tile_transform_with_colour_keying_and_opacity_prepare(\
3451 NULL, \
3452 (__SRC_TILE_ADDR), \
3453 (__CENTRE), \
3454 0.0f, \
3455 (__SCALE), \
3456 (__MSK_COLOUR), \
3457 (__OPACITY)); \
3458 }; \
3459 arm_2dp_tile_transform(NULL, \
3460 (__DES_TILE_ADDR), \
3461 (__DES_REGION_ADDR), \
3462 (NULL,##__VA_ARGS__)); \
3463 })
3464
3465#define arm_2d_cccn888_tile_scaling_with_opacity( \
3466 __SRC_TILE_ADDR, \
3467 __DES_TILE_ADDR, \
3468 __DES_REGION_ADDR, \
3469 __CENTRE, \
3470 __SCALE, \
3471 __MSK_COLOUR, \
3472 __OPACITY, ...) \
3473 ({{ \
3474 arm_2dp_cccn888_tile_transform_with_colour_keying_and_opacity_prepare(\
3475 NULL, \
3476 (__SRC_TILE_ADDR), \
3477 (__CENTRE), \
3478 0.0f, \
3479 (__SCALE), \
3480 (__MSK_COLOUR), \
3481 (__OPACITY)); \
3482 }; \
3483 arm_2dp_tile_transform(NULL, \
3484 (__DES_TILE_ADDR), \
3485 (__DES_REGION_ADDR), \
3486 (NULL,##__VA_ARGS__)); \
3487 })
3488
3489#define arm_2d_gray8_tile_scaling_only_with_opacity( \
3490 __SRC_TILE_ADDR, \
3491 __DES_TILE_ADDR, \
3492 __DES_REGION_ADDR, \
3493 __CENTRE, \
3494 __SCALE, \
3495 __OPACITY, ...) \
3496 ({{ \
3497 arm_2dp_gray8_tile_transform_only_with_opacity_prepare( \
3498 NULL, \
3499 (__SRC_TILE_ADDR), \
3500 (__CENTRE), \
3501 0.0f, \
3502 (__SCALE), \
3503 (__OPACITY)); \
3504 }; \
3505 arm_2dp_tile_transform(NULL, \
3506 (__DES_TILE_ADDR), \
3507 (__DES_REGION_ADDR), \
3508 (NULL,##__VA_ARGS__)); \
3509 })
3510
3511#define arm_2d_rgb565_tile_scaling_only_with_opacity( \
3512 __SRC_TILE_ADDR, \
3513 __DES_TILE_ADDR, \
3514 __DES_REGION_ADDR, \
3515 __CENTRE, \
3516 __SCALE, \
3517 __OPACITY, ...) \
3518 ({{ \
3519 arm_2dp_rgb565_tile_transform_only_with_opacity_prepare( \
3520 NULL, \
3521 (__SRC_TILE_ADDR), \
3522 (__CENTRE), \
3523 0.0f, \
3524 (__SCALE), \
3525 (__OPACITY)); \
3526 }; \
3527 arm_2dp_tile_transform(NULL, \
3528 (__DES_TILE_ADDR), \
3529 (__DES_REGION_ADDR), \
3530 (NULL,##__VA_ARGS__)); \
3531 })
3532
3533#define arm_2d_cccn888_tile_scaling_only_with_opacity( \
3534 __SRC_TILE_ADDR, \
3535 __DES_TILE_ADDR, \
3536 __DES_REGION_ADDR, \
3537 __CENTRE, \
3538 __SCALE, \
3539 __OPACITY, ...) \
3540 ({{ \
3541 arm_2dp_cccn888_tile_transform_only_with_opacity_prepare( \
3542 NULL, \
3543 (__SRC_TILE_ADDR), \
3544 (__CENTRE), \
3545 0.0f, \
3546 (__SCALE), \
3547 (__OPACITY)); \
3548 }; \
3549 arm_2dp_tile_transform(NULL, \
3550 (__DES_TILE_ADDR), \
3551 (__DES_REGION_ADDR), \
3552 (NULL,##__VA_ARGS__)); \
3553 })
3554
3555#define arm_2d_gray8_tile_scaling_with_src_mask( \
3556 __SRC_TILE_ADDR, \
3557 __SRC_MASK_ADDR, \
3558 __DES_TILE_ADDR, \
3559 __DES_REGION_ADDR, \
3560 __CENTRE, \
3561 __SCALE, \
3562 ...) \
3563 ({{ \
3564 arm_2dp_gray8_tile_transform_with_src_mask_prepare( \
3565 (NULL), \
3566 (__SRC_TILE_ADDR), \
3567 (__SRC_MASK_ADDR), \
3568 (__CENTRE), \
3569 0.0f, \
3570 (__SCALE)); \
3571 }; \
3572 arm_2dp_tile_transform(NULL, \
3573 (__DES_TILE_ADDR), \
3574 (__DES_REGION_ADDR), \
3575 (NULL,##__VA_ARGS__)); \
3576 })
3577
3578#define arm_2d_rgb565_tile_scaling_with_src_mask( \
3579 __SRC_TILE_ADDR, \
3580 __SRC_MASK_ADDR, \
3581 __DES_TILE_ADDR, \
3582 __DES_REGION_ADDR, \
3583 __CENTRE, \
3584 __SCALE, \
3585 ...) \
3586 ({{ \
3587 arm_2dp_rgb565_tile_transform_with_src_mask_prepare( \
3588 (NULL), \
3589 (__SRC_TILE_ADDR), \
3590 (__SRC_MASK_ADDR), \
3591 (__CENTRE), \
3592 0.0f, \
3593 (__SCALE)); \
3594 }; \
3595 arm_2dp_tile_transform(NULL, \
3596 (__DES_TILE_ADDR), \
3597 (__DES_REGION_ADDR), \
3598 (NULL,##__VA_ARGS__)); \
3599 })
3600
3601#define arm_2d_cccn888_tile_scaling_with_src_mask( \
3602 __SRC_TILE_ADDR, \
3603 __SRC_MASK_ADDR, \
3604 __DES_TILE_ADDR, \
3605 __DES_REGION_ADDR, \
3606 __CENTRE, \
3607 __SCALE, \
3608 ...) \
3609 ({{ \
3610 arm_2dp_cccn888_tile_transform_with_src_mask_prepare( \
3611 (NULL), \
3612 (__SRC_TILE_ADDR), \
3613 (__SRC_MASK_ADDR), \
3614 (__CENTRE), \
3615 0.0f, \
3616 (__SCALE)); \
3617 }; \
3618 arm_2dp_tile_transform(NULL, \
3619 (__DES_TILE_ADDR), \
3620 (__DES_REGION_ADDR), \
3621 (NULL,##__VA_ARGS__)); \
3622 })
3623
3624#define arm_2d_gray8_tile_scaling_with_src_mask_and_opacity( \
3625 __SRC_TILE_ADDR, \
3626 __SRC_MASK_ADDR, \
3627 __DES_TILE_ADDR, \
3628 __DES_REGION_ADDR, \
3629 __CENTRE, \
3630 __SCALE, \
3631 __OPACITY, \
3632 ...) \
3633 ({{ \
3634 arm_2dp_gray8_tile_transform_with_src_mask_and_opacity_prepare( \
3635 (NULL), \
3636 (__SRC_TILE_ADDR), \
3637 (__SRC_MASK_ADDR), \
3638 (__CENTRE), \
3639 0.0f, \
3640 (__SCALE), \
3641 (__OPACITY)); \
3642 }; \
3643 arm_2dp_tile_transform(NULL, \
3644 (__DES_TILE_ADDR), \
3645 (__DES_REGION_ADDR), \
3646 (NULL,##__VA_ARGS__)); \
3647 })
3648
3649#define arm_2d_rgb565_tile_scaling_with_src_mask_and_opacity( \
3650 __SRC_TILE_ADDR, \
3651 __SRC_MASK_ADDR, \
3652 __DES_TILE_ADDR, \
3653 __DES_REGION_ADDR, \
3654 __CENTRE, \
3655 __SCALE, \
3656 __OPACITY, \
3657 ...) \
3658 ({{ \
3659 arm_2dp_rgb565_tile_transform_with_src_mask_and_opacity_prepare( \
3660 (NULL), \
3661 (__SRC_TILE_ADDR), \
3662 (__SRC_MASK_ADDR), \
3663 (__CENTRE), \
3664 0.0f, \
3665 (__SCALE), \
3666 (__OPACITY)); \
3667 }; \
3668 arm_2dp_tile_transform(NULL, \
3669 (__DES_TILE_ADDR), \
3670 (__DES_REGION_ADDR), \
3671 (NULL,##__VA_ARGS__)); \
3672 })
3673
3674#define arm_2d_cccn888_tile_scaling_with_src_mask_and_opacity( \
3675 __SRC_TILE_ADDR, \
3676 __SRC_MASK_ADDR, \
3677 __DES_TILE_ADDR, \
3678 __DES_REGION_ADDR, \
3679 __CENTRE, \
3680 __SCALE, \
3681 __OPACITY, \
3682 ...) \
3683 ({{ \
3684 arm_2dp_cccn888_tile_transform_with_src_mask_and_opacity_prepare( \
3685 (NULL), \
3686 (__SRC_TILE_ADDR), \
3687 (__SRC_MASK_ADDR), \
3688 (__CENTRE), \
3689 0.0f, \
3690 (__SCALE), \
3691 (__OPACITY)); \
3692 }; \
3693 arm_2dp_tile_transform(NULL, \
3694 (__DES_TILE_ADDR), \
3695 (__DES_REGION_ADDR), \
3696 (NULL,##__VA_ARGS__)); \
3697 })
3698
3699/*============================ TYPES =========================================*/
3700
3701/*!
3702 * \brief transform runtime context
3703 *
3704 */
3706 float fAngle; //!< target angle
3707 float fScale; //!< scaling factor
3709 union {
3710 uint8_t chColour; //!< the key colour in 8bit
3711 uint32_t wColour; //!< the key colour in 16bit
3712 uint16_t hwColour; //!< the key colour in 32bit
3713 } Mask;
3714
3715 /* private members used by runtime */
3716ARM_PRIVATE(
3717 arm_2d_location_t tDummySourceOffset;
3718 struct {
3719 arm_2d_region_t tRegion;
3720 arm_2d_tile_t tTile;
3721 } Target;
3723
3725
3726/*! \brief arm_2d_op_trans_t is inherit from arm_2d_op_src_orig_t
3727 */
3728typedef struct arm_2d_op_trans_t {
3730 struct {
3731 const arm_2d_tile_t *ptTile; //!< target tile
3732 const arm_2d_region_t *ptRegion; //!< target region
3733 } Target;
3734 struct {
3735 const arm_2d_tile_t *ptTile; //!< source tile
3736 }Source;
3737 uint32_t wMode; //!< not used
3738
3739 struct {
3740 const arm_2d_tile_t *ptTile; //!< the origin tile
3741 arm_2d_tile_t tDummySource; //!< the buffer for the source
3742 }Origin;
3743
3745
3747
3748
3749/*! \brief arm_2d_op_trans_opa_t is inherit from arm_2d_op_trans_t
3750 */
3753 struct {
3754 const arm_2d_tile_t *ptTile; //!< target tile
3755 const arm_2d_region_t *ptRegion; //!< target region
3756 } Target;
3757 struct {
3758 const arm_2d_tile_t *ptTile; //!< source tile
3759 }Source;
3760 uint32_t wMode; //!< not used
3761
3762 struct {
3763 const arm_2d_tile_t *ptTile; //!< the origin tile
3764 arm_2d_tile_t tDummySource; //!< the buffer for the source
3765 }Origin;
3766
3768 uint8_t chOpacity; //!< opacity
3769
3771
3772
3773/*! \brief arm_2d_op_fill_cl_msk_opa_trans_t is alias of arm_2d_op_trans_opa_t
3774 */
3776
3777
3778/*! \brief arm_2d_op_trans_msk_t is inherit from arm_2d_op_src_orig_msk_t
3779 */
3782 struct {
3783 const arm_2d_tile_t *ptTile; //!< target tile
3784 const arm_2d_region_t *ptRegion; //!< target region
3785 } Target;
3786 struct {
3787 const arm_2d_tile_t *ptTile; //!< source tile
3788 }Source;
3789 uint32_t wMode; //!< not used
3790 struct {
3791 const arm_2d_tile_t *ptTile; //!< the origin tile
3792 arm_2d_tile_t tDummySource; //!< the buffer for the source
3793 }Origin;
3794 struct {
3795 const arm_2d_tile_t *ptOriginSide; //!< origin side mask
3796 const arm_2d_tile_t *ptTargetSide; //!< target side mask
3797 } Mask;
3798
3800
3802
3803
3804/*! \brief arm_2d_op_trans_msk_t is inherit from arm_2d_op_trans_msk_t
3805 */
3808 struct {
3809 const arm_2d_tile_t *ptTile; //!< target tile
3810 const arm_2d_region_t *ptRegion; //!< target region
3811 } Target;
3812 struct {
3813 const arm_2d_tile_t *ptTile; //!< source tile
3814 }Source;
3815 uint32_t wMode; //!< not used
3816 struct {
3817 const arm_2d_tile_t *ptTile; //!< the origin tile
3818 arm_2d_tile_t tDummySource; //!< the buffer for the source
3819 }Origin;
3820 struct {
3821 const arm_2d_tile_t *ptOriginSide; //!< origin side mask
3822 const arm_2d_tile_t *ptTargetSide; //!< target side mask
3823 } Mask;
3824
3826 uint8_t chOpacity; //!< opacity
3827
3829
3830/*============================ GLOBAL VARIABLES ==============================*/
3831/*============================ PROTOTYPES ====================================*/
3832
3833/*!
3834 * \brief prepare for a transform with colour-keying in gray8
3835 * \param[in] ptOP the control block, NULL means using the default control block
3836 * \param[in] ptSource the source tile
3837 * \param[in] tCentre the pivot in the source tile
3838 * \param[in] fAngle the rotation angle
3839 * \param[in] fScale the scaling factor
3840 * \param[in] chFillColour the key colour
3841 * \return arm_2d_err_t the result of the preparing process
3842 */
3843extern
3844ARM_NONNULL(2)
3846 arm_2d_op_trans_t *ptOP,
3847 const arm_2d_tile_t *ptSource,
3848 const arm_2d_location_t tCentre,
3849 float fAngle,
3850 float fScale,
3851 uint_fast8_t chFillColour);
3852
3853/*!
3854 * \brief prepare for a transform with colour-keying in rgb565
3855 * \param[in] ptOP the control block, NULL means using the default control block
3856 * \param[in] ptSource the source tile
3857 * \param[in] tCentre the pivot in the source tile
3858 * \param[in] fAngle the rotation angle
3859 * \param[in] fScale the scaling factor
3860 * \param[in] hwFillColour the key colour
3861 * \return arm_2d_err_t the result of the preparing process
3862 */
3863extern
3864ARM_NONNULL(2)
3866 arm_2d_op_trans_t *ptOP,
3867 const arm_2d_tile_t *ptSource,
3868 const arm_2d_location_t tCentre,
3869 float fAngle,
3870 float fScale,
3871 uint_fast16_t hwFillColour);
3872
3873/*!
3874 * \brief prepare for a transform with colour-keying in cccn888
3875 * \param[in] ptOP the control block, NULL means using the default control block
3876 * \param[in] ptSource the source tile
3877 * \param[in] tCentre the pivot in the source tile
3878 * \param[in] fAngle the rotation angle
3879 * \param[in] fScale the scaling factor
3880 * \param[in] wFillColour the key colour
3881 * \return arm_2d_err_t the result of the preparing process
3882 */
3883extern
3884ARM_NONNULL(2)
3886 arm_2d_op_trans_t *ptOP,
3887 const arm_2d_tile_t *ptSource,
3888 const arm_2d_location_t tCentre,
3889 float fAngle,
3890 float fScale,
3891 uint32_t wFillColour);
3892
3893
3894/*!
3895 * \brief prepare for a transform in gray8
3896 * \param[in] ptOP the control block, NULL means using the default control block
3897 * \param[in] ptSource the source tile
3898 * \param[in] tCentre the pivot in the source tile
3899 * \param[in] fAngle the rotation angle
3900 * \param[in] fScale the scaling factor
3901 * \return arm_2d_err_t the result of the preparing process
3902 */
3903extern
3904ARM_NONNULL(2)
3906 arm_2d_op_trans_t *ptOP,
3907 const arm_2d_tile_t *ptSource,
3908 const arm_2d_location_t tCentre,
3909 float fAngle,
3910 float fScale);
3911
3912/*!
3913 * \brief prepare for a transform in rgb565
3914 * \param[in] ptOP the control block, NULL means using the default control block
3915 * \param[in] ptSource the source tile
3916 * \param[in] tCentre the pivot in the source tile
3917 * \param[in] fAngle the rotation angle
3918 * \param[in] fScale the scaling factor
3919 * \return arm_2d_err_t the result of the preparing process
3920 */
3921extern
3922ARM_NONNULL(2)
3924 arm_2d_op_trans_t *ptOP,
3925 const arm_2d_tile_t *ptSource,
3926 const arm_2d_location_t tCentre,
3927 float fAngle,
3928 float fScale);
3929
3930/*!
3931 * \brief prepare for a transform in cccn888
3932 * \param[in] ptOP the control block, NULL means using the default control block
3933 * \param[in] ptSource the source tile
3934 * \param[in] tCentre the pivot in the source tile
3935 * \param[in] fAngle the rotation angle
3936 * \param[in] fScale the scaling factor
3937 * \return arm_2d_err_t the result of the preparing process
3938 */
3939extern
3940ARM_NONNULL(2)
3942 arm_2d_op_trans_t *ptOP,
3943 const arm_2d_tile_t *ptSource,
3944 const arm_2d_location_t tCentre,
3945 float fAngle,
3946 float fScale);
3947
3948/*!
3949 * \brief prepare for a transform with colour keying and opacity in gray8
3950 * \param[in] ptOP the control block, NULL means using the default control block
3951 * \param[in] ptSource the source tile
3952 * \param[in] tCentre the pivot in the source tile
3953 * \param[in] fAngle the rotation angle
3954 * \param[in] fScale the scaling factor
3955 * \param[in] chFillColour the key colour
3956 * \param[in] chRatio the opacity
3957 * \return arm_2d_err_t the result of the preparing process
3958 */
3959extern
3960ARM_NONNULL(2)
3963 const arm_2d_tile_t *ptSource,
3964 const arm_2d_location_t tCentre,
3965 float fAngle,
3966 float fScale,
3967 uint_fast8_t chFillColour,
3968 uint_fast8_t chRatio);
3969
3970/*!
3971 * \brief prepare for a transform with colour keying and opacity in rgb565
3972 * \param[in] ptOP the control block, NULL means using the default control block
3973 * \param[in] ptSource the source tile
3974 * \param[in] tCentre the pivot in the source tile
3975 * \param[in] fAngle the rotation angle
3976 * \param[in] fScale the scaling factor
3977 * \param[in] hwFillColour the key colour
3978 * \param[in] chRatio the opacity
3979 * \return arm_2d_err_t the result of the preparing process
3980 */
3981extern
3982ARM_NONNULL(2)
3985 const arm_2d_tile_t *ptSource,
3986 const arm_2d_location_t tCentre,
3987 float fAngle,
3988 float fScale,
3989 uint_fast16_t hwFillColour,
3990 uint_fast8_t chRatio);
3991
3992/*!
3993 * \brief prepare for a transform with colour keyding and opacity in cccn888
3994 * \param[in] ptOP the control block, NULL means using the default control block
3995 * \param[in] ptSource the source tile
3996 * \param[in] tCentre the pivot in the source tile
3997 * \param[in] fAngle the rotation angle
3998 * \param[in] fScale the scaling factor
3999 * \param[in] wFillColour the key colour
4000 * \param[in] chRatio the opacity
4001 * \return arm_2d_err_t the result of the preparing process
4002 */
4003extern
4004ARM_NONNULL(2)
4007 const arm_2d_tile_t *ptSource,
4008 const arm_2d_location_t tCentre,
4009 float fAngle,
4010 float fScale,
4011 uint32_t wFillColour,
4012 uint_fast8_t chRatio);
4013
4014/*!
4015 * \brief prepare for a transform with opacity in gray8
4016 * \param[in] ptOP the control block, NULL means using the default control block
4017 * \param[in] ptSource the source tile
4018 * \param[in] tCentre the pivot in the source tile
4019 * \param[in] fAngle the rotation angle
4020 * \param[in] fScale the scaling factor
4021 * \param[in] chRatio the opacity
4022 * \return arm_2d_err_t the result of the preparing process
4023 */
4024extern
4025ARM_NONNULL(2)
4028 const arm_2d_tile_t *ptSource,
4029 const arm_2d_location_t tCentre,
4030 float fAngle,
4031 float fScale,
4032 uint_fast8_t chRatio);
4033
4034/*!
4035 * \brief prepare for a transform with opacity in rgb565
4036 * \param[in] ptOP the control block, NULL means using the default control block
4037 * \param[in] ptSource the source tile
4038 * \param[in] tCentre the pivot in the source tile
4039 * \param[in] fAngle the rotation angle
4040 * \param[in] fScale the scaling factor
4041 * \param[in] chRatio the opacity
4042 * \return arm_2d_err_t the result of the preparing process
4043 */
4044extern
4045ARM_NONNULL(2)
4048 const arm_2d_tile_t *ptSource,
4049 const arm_2d_location_t tCentre,
4050 float fAngle,
4051 float fScale,
4052 uint_fast8_t chRatio);
4053
4054/*!
4055 * \brief prepare for a transform with opacity in cccn888
4056 * \param[in] ptOP the control block, NULL means using the default control block
4057 * \param[in] ptSource the source tile
4058 * \param[in] tCentre the pivot in the source tile
4059 * \param[in] fAngle the rotation angle
4060 * \param[in] fScale the scaling factor
4061 * \param[in] chRatio the opacity
4062 * \return arm_2d_err_t the result of the preparing process
4063 */
4064extern
4065ARM_NONNULL(2)
4068 const arm_2d_tile_t *ptSource,
4069 const arm_2d_location_t tCentre,
4070 float fAngle,
4071 float fScale,
4072 uint_fast8_t chRatio);
4073
4074/*!
4075 * \brief prepare for a transform with a source mask in gray8
4076 * \param[in] ptOP the control block, NULL means using the default control block
4077 * \param[in] ptSource the source tile
4078 * \param[in] ptSourceMask the source mask
4079 * \param[in] tCentre the pivot in the source tile
4080 * \param[in] fAngle the rotation angle
4081 * \param[in] fScale the scaling factor
4082 * \return arm_2d_err_t the result of the preparing process
4083 */
4084extern
4085ARM_NONNULL(2,3)
4088 const arm_2d_tile_t *ptSource,
4089 const arm_2d_tile_t *ptSourceMask,
4090 const arm_2d_location_t tCentre,
4091 float fAngle,
4092 float fScale);
4093
4094/*!
4095 * \brief prepare for a transform with a source mask in rgb565
4096 * \param[in] ptOP the control block, NULL means using the default control block
4097 * \param[in] ptSource the source tile
4098 * \param[in] ptSourceMask the source mask
4099 * \param[in] tCentre the pivot in the source tile
4100 * \param[in] fAngle the rotation angle
4101 * \param[in] fScale the scaling factor
4102 * \return arm_2d_err_t the result of the preparing process
4103 */
4104extern
4105ARM_NONNULL(2,3)
4108 const arm_2d_tile_t *ptSource,
4109 const arm_2d_tile_t *ptSourceMask,
4110 const arm_2d_location_t tCentre,
4111 float fAngle,
4112 float fScale);
4113
4114/*!
4115 * \brief prepare for a transform with a source mask in cccn888
4116 * \param[in] ptOP the control block, NULL means using the default control block
4117 * \param[in] ptSource the source tile
4118 * \param[in] ptSourceMask the source mask
4119 * \param[in] tCentre the pivot in the source tile
4120 * \param[in] fAngle the rotation angle
4121 * \param[in] fScale the scaling factor
4122 * \return arm_2d_err_t the result of the preparing process
4123 */
4124extern
4125ARM_NONNULL(2,3)
4128 const arm_2d_tile_t *ptSource,
4129 const arm_2d_tile_t *ptSourceMask,
4130 const arm_2d_location_t tCentre,
4131 float fAngle,
4132 float fScale);
4133
4134/*!
4135 * \brief prepare for a transform with a source mask and opacity in gray8
4136 * \param[in] ptOP the control block, NULL means using the default control block
4137 * \param[in] ptSource the source tile
4138 * \param[in] ptSourceMask the source mask
4139 * \param[in] tCentre the pivot in the source tile
4140 * \param[in] fAngle the rotation angle
4141 * \param[in] fScale the scaling factor
4142 * \param[in] chOpacity the opacity
4143 * \return arm_2d_err_t the result of the preparing process
4144 */
4145extern
4146ARM_NONNULL(2,3)
4149 const arm_2d_tile_t *ptSource,
4150 const arm_2d_tile_t *ptSourceMask,
4151 const arm_2d_location_t tCentre,
4152 float fAngle,
4153 float fScale,
4154 uint_fast8_t chOpacity);
4155
4156/*!
4157 * \brief prepare for a transform with a source mask and opacity in rgb565
4158 * \param[in] ptOP the control block, NULL means using the default control block
4159 * \param[in] ptSource the source tile
4160 * \param[in] ptSourceMask the source mask
4161 * \param[in] tCentre the pivot in the source tile
4162 * \param[in] fAngle the rotation angle
4163 * \param[in] fScale the scaling factor
4164 * \param[in] chOpacity the opacity
4165 * \return arm_2d_err_t the result of the preparing process
4166 */
4167extern
4168ARM_NONNULL(2,3)
4171 const arm_2d_tile_t *ptSource,
4172 const arm_2d_tile_t *ptSourceMask,
4173 const arm_2d_location_t tCentre,
4174 float fAngle,
4175 float fScale,
4176 uint_fast8_t chOpacity);
4177
4178/*!
4179 * \brief prepare for a transform with a source mask and opacity in cccn888
4180 * \param[in] ptOP the control block, NULL means using the default control block
4181 * \param[in] ptSource the source tile
4182 * \param[in] ptSourceMask the source mask
4183 * \param[in] tCentre the pivot in the source tile
4184 * \param[in] fAngle the rotation angle
4185 * \param[in] fScale the scaling factor
4186 * \param[in] chOpacity the opacity
4187 * \return arm_2d_err_t the result of the preparing process
4188 */
4189extern
4190ARM_NONNULL(2,3)
4193 const arm_2d_tile_t *ptSource,
4194 const arm_2d_tile_t *ptSourceMask,
4195 const arm_2d_location_t tCentre,
4196 float fAngle,
4197 float fScale,
4198 uint_fast8_t chOpacity);
4199
4200
4201/*!
4202 * \brief prepare for a gray8 colour-filling with a mask, a given opacity and
4203 * transform
4204 * \param[in] ptOP the control block, NULL means using the default control block
4205 * \param[in] ptMask the target mask
4206 * \param[in] tCentre the pivot in the source tile
4207 * \param[in] fAngle the rotation angle
4208 * \param[in] fScale the scaling factor
4209 * \param[in] chFillColour the colour to fill
4210 * \param[in] chOpacity the opacity
4211 * \return arm_2d_err_t the result of the preparing process
4212 */
4213extern
4214ARM_NONNULL(2)
4217 const arm_2d_tile_t *ptMask,
4218 const arm_2d_location_t tCentre,
4219 float fAngle,
4220 float fScale,
4221 uint_fast8_t chFillColour,
4222 uint_fast8_t chOpacity);
4223
4224/*!
4225 * \brief prepare for a rgb565 colour-filling with a mask, a given opacity and
4226 * transform
4227 * \param[in] ptOP the control block, NULL means using the default control block
4228 * \param[in] ptMask the target mask
4229 * \param[in] tCentre the pivot in the source tile
4230 * \param[in] fAngle the rotation angle
4231 * \param[in] fScale the scaling factor
4232 * \param[in] hwFillColour the colour to fill
4233 * \param[in] chOpacity the opacity
4234 * \return arm_2d_err_t the result of the preparing process
4235 */
4236extern
4237ARM_NONNULL(2)
4240 const arm_2d_tile_t *ptMask,
4241 const arm_2d_location_t tCentre,
4242 float fAngle,
4243 float fScale,
4244 uint_fast16_t hwFillColour,
4245 uint_fast8_t chOpacity);
4246
4247/*!
4248 * \brief prepare for a cccn888 colour-filling with a mask, a given opacity and
4249 * transform
4250 * \param[in] ptOP the control block, NULL means using the default control block
4251 * \param[in] ptMask the target mask
4252 * \param[in] tCentre the pivot in the source tile
4253 * \param[in] fAngle the rotation angle
4254 * \param[in] fScale the scaling factor
4255 * \param[in] wFillColour the colour to fill
4256 * \param[in] chOpacity the opacity
4257 * \return arm_2d_err_t the result of the preparing process
4258 */
4259extern
4260ARM_NONNULL(2)
4263 const arm_2d_tile_t *ptMask,
4264 const arm_2d_location_t tCentre,
4265 float fAngle,
4266 float fScale,
4267 uint32_t wFillColour,
4268 uint_fast8_t chOpacity);
4269
4270/*!
4271 * \brief start a transform operation
4272 * \param[in] ptOP the control block, NULL means using the default control block
4273 * \param[in] ptTarget the target tile
4274 * \param[in] ptRegion the target region
4275 * \param[in] ptTargetCentre the pivot in the target region
4276 * \return arm_fsm_rt_t the operation result
4277 */
4278extern
4279ARM_NONNULL(2)
4281 const arm_2d_tile_t *ptTarget,
4282 const arm_2d_region_t *ptRegion,
4283 const arm_2d_location_t *ptTargetCentre);
4284
4285/*! @} */
4286
4287#if defined(__clang__)
4288# pragma clang diagnostic pop
4289#endif
4290
4291#ifdef __cplusplus
4292}
4293#endif
4294
4295#endif