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_map.h"
50# pragma clang diagnostic push
51# pragma clang diagnostic ignored "-Wgnu-zero-variadic-macro-arguments"
52# pragma clang diagnostic ignored "-Wunused-function"
53# pragma clang diagnostic ignored "-Wmissing-declarations"
54# pragma clang diagnostic ignored "-Wpadded"
55#elif defined(__IS_COMPILER_ARM_COMPILER_5__)
56# pragma diag_suppress 64
61#ifdef __ARM_2D_HELPER_IMPLEMENT__
62# undef __ARM_2D_HELPER_IMPLEMENT__
63# define __ARM_2D_IMPL__
65#include "arm_2d_utils.h"
71#define arm_2d_draw_box arm_2d_helper_draw_box
89#define arm_2d_helper_is_time_out(__ms, ...) \
90 ({ static int64_t arm_2d_safe_name(s_lTimestamp); \
91 __arm_2d_helper_is_time_out(arm_2d_helper_convert_ms_to_ticks(__ms), \
92 (&arm_2d_safe_name(s_lTimestamp),##__VA_ARGS__));})
109#define arm_2d_helper_time_liner_slider( __from, \
114 ({static int64_t arm_2d_safe_name(s_lTimestamp); \
115 __arm_2d_helper_time_liner_slider((__from), \
117 arm_2d_helper_convert_ms_to_ticks(__ms), \
119 (&arm_2d_safe_name(s_lTimestamp),##__VA_ARGS__));})
136#define arm_2d_helper_time_cos_slider( __from, \
142 ({static int64_t arm_2d_safe_name(s_lTimestamp); \
143 __arm_2d_helper_time_cos_slider((__from), \
145 arm_2d_helper_convert_ms_to_ticks(__ms), \
148 (&arm_2d_safe_name(s_lTimestamp),##__VA_ARGS__));})
164#define arm_2d_helper_time_half_cos_slider( __from, \
169 ({static int64_t arm_2d_safe_name(s_lTimestamp); \
170 __arm_2d_helper_time_half_cos_slider((__from), \
172 arm_2d_helper_convert_ms_to_ticks(__ms), \
174 (&arm_2d_safe_name(s_lTimestamp),##__VA_ARGS__));})
189#define impl_film( __sprites_tile, \
196 .use_as__arm_2d_tile_t = \
197 impl_child_tile((__sprites_tile), 0, 0, (__width), (__height)), \
198 .hwColumn = (__column), \
199 .hwFrameNum = (__frame_count), \
200 .hwPeriodPerFrame = (__period), \
234 int32_t nTimeResidual;
353 int64_t *plTimestamp);
374 int64_t *plTimestamp);
397 int64_t *plTimestamp);
426 int32_t nStartPosition);
439 int32_t nTargetPosition,
453 int16_t iBorderWidth,
485#if defined(__clang__)
486# pragma clang diagnostic pop
487#elif __IS_COMPILER_ARM_COMPILER_5__
488#pragma diag_warning 64