For Seminar
Dependencies: GR-PEACH_video GraphicsFramework R_BSP mbed-rtos mbed
Fork of RGA_HelloWorld by
Diff: rga_func.h
- Revision:
- 0:84e4649e7707
- Child:
- 1:a07212e32dcb
- Child:
- 2:c7faef0ef374
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rga_func.h Wed Jan 20 02:35:42 2016 +0000 @@ -0,0 +1,54 @@ +/* +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +#ifndef RGA_FUNC_H +#define RGA_FUNC_H + +#include "RGA.h" + +#define IMG_DRAW_WIDTH 241 +#define IMG_DRAW_HEIGHT 180 +#define IMAGE_WIDTH_SCROLL_FUNC 352 // Image width of Scroll function +#define IMAGE_HEIGHT_SCROLL_FUNC 233 // Image height of Scroll function +#define IMAGE_WIDTH_ZOOM_FUNC 352 // Image width of Zoom function +#define IMAGE_HEIGHT_ZOOM_FUNC 233 // Image height of Zoom function + +#define DISSOLVE_MAX_NUM 256 +#define SCROLL_MAX_NUM IMAGE_WIDTH_SCROLL_FUNC - IMG_DRAW_WIDTH +#define ZOOM_MAX_NUM IMAGE_HEIGHT_ZOOM_FUNC / 2 +#define ROTATION_MAX_NUM 360 +#define ACCELERATE_MAX_NUM 256 + + + +extern void Set_RGAObject(frame_buffer_t* frmbuf_info); +extern void Get_AnimationTiming(char_t *timing_name); +extern void RGA_Func_ClrScreen(frame_buffer_t* frmbuf_info); +extern void RGA_Func_DrawTopScreen(frame_buffer_t* frmbuf_info); +extern void RGA_Func_DrawReturnButton(frame_buffer_t* frmbuf_info); +extern void RGA_Func_DrawRectangle(frame_buffer_t* frmbuf_info); +extern void RGA_Func_DrawImage(frame_buffer_t* frmbuf_info); +extern void RGA_Func_Dissolve(frame_buffer_t* frmbuf_info, float32_t global_alpha); +extern void RGA_Func_Scroll(frame_buffer_t* frmbuf_info, int src_width_pos); +extern void RGA_Func_Zoom(frame_buffer_t* frmbuf_info, int src_height_pos); +extern void RGA_Func_Rotation(frame_buffer_t* frmbuf_info, graphics_matrix_float_t image_angle); +extern void RGA_Func_Accelerate(frame_buffer_t* frmbuf_info, float32_t relative_pos); + +#endif