30#ifndef __ARM_2D_HELPER_H__
31#define __ARM_2D_HELPER_H__
35#include "./__arm_2d_helper_common.h"
36#include "./arm_2d_helper_pfb.h"
37#include "./arm_2d_helper_scene.h"
38#include "./arm_2d_disp_adapters.h"
39#include "./arm_2d_helper_list.h"
40#include "./arm_2d_helper_shape.h"
41#include "./arm_2d_helper_font.h"
42#include "./arm_2d_helper_control.h"
55# pragma clang diagnostic push
56# pragma clang diagnostic ignored "-Wgnu-zero-variadic-macro-arguments"
57# pragma clang diagnostic ignored "-Wunused-function"
58# pragma clang diagnostic ignored "-Wmissing-declarations"
59# pragma clang diagnostic ignored "-Wpadded"
60#elif defined(__IS_COMPILER_ARM_COMPILER_5__)
61# pragma diag_suppress 64
66#ifdef __ARM_2D_HELPER_IMPLEMENT__
67# define __ARM_2D_IMPL__
68#elif defined(__ARM_2D_HELPER_INHERIT__)
69# undef __ARM_2D_HELPER_INHERIT__
70# define __ARM_2D_INHERIT__
72#include "arm_2d_utils.h"
78#define arm_2d_draw_box arm_2d_helper_draw_box
96#define arm_2d_helper_is_time_out(__ms, ...) \
97 ({ static int64_t arm_2d_safe_name(s_lTimestamp); \
98 __arm_2d_helper_is_time_out(arm_2d_helper_convert_ms_to_ticks(__ms), \
99 (&arm_2d_safe_name(s_lTimestamp),##__VA_ARGS__));})
102#define arm_2d_helper_time_elapsed(__timestamp_ptr) \
103 arm_2d_helper_convert_ticks_to_ms( \
104 __arm_2d_helper_time_elapsed(__timestamp_ptr))
120#define arm_2d_helper_time_liner_slider( __from, \
125 ({static int64_t arm_2d_safe_name(s_lTimestamp); \
126 __arm_2d_helper_time_liner_slider((__from), \
128 arm_2d_helper_convert_ms_to_ticks(__ms), \
130 (&arm_2d_safe_name(s_lTimestamp),##__VA_ARGS__));})
147#define arm_2d_helper_time_cos_slider( __from, \
153 ({static int64_t arm_2d_safe_name(s_lTimestamp); \
154 __arm_2d_helper_time_cos_slider((__from), \
156 arm_2d_helper_convert_ms_to_ticks(__ms), \
159 (&arm_2d_safe_name(s_lTimestamp),##__VA_ARGS__));})
175#define arm_2d_helper_time_half_cos_slider( __from, \
180 ({static int64_t arm_2d_safe_name(s_lTimestamp); \
181 __arm_2d_helper_time_half_cos_slider((__from), \
183 arm_2d_helper_convert_ms_to_ticks(__ms), \
185 (&arm_2d_safe_name(s_lTimestamp),##__VA_ARGS__));})
200#define impl_film( __sprites_tile, \
207 .use_as__arm_2d_tile_t = \
208 impl_child_tile((__sprites_tile), 0, 0, (__width), (__height)), \
209 .hwColumn = (__column), \
210 .hwFrameNum = (__frame_count), \
211 .hwPeriodPerFrame = (__period), \
245 int32_t nTimeResidual;
253 uint16_t hwDataAvailable;
388 int64_t *plTimestamp);
409 int64_t *plTimestamp);
432 int64_t *plTimestamp);
461 int32_t nStartPosition);
474 int32_t nTargetPosition,
498 float fTargetPosition,
523 int16_t iBorderWidth,
659#if __ARM_2D_HELPER_CFG_LAYOUT_DEBUG_MODE__
662void __arm_2d_helper_layout_debug_print_label(const
arm_2d_tile_t *ptTile,
664 const
char *pchString);
670#include "arm_2d_helper_built_in.h"
672#if defined(__clang__)
673# pragma clang diagnostic pop
674#elif __IS_COMPILER_ARM_COMPILER_5__
675#pragma diag_warning 64
678#undef __ARM_2D_HELPER_IMPLEMENT__
679#undef __ARM_2D_HELPER_INHERIT__