1 /* 2 * Copyright (c) 2022 Unionman Technology Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef GE2D_COM_H_ 17 #define GE2D_COM_H_ 18 19 #include <stdio.h> 20 #include <stdlib.h> 21 #include <malloc.h> 22 #include <string.h> 23 24 typedef struct { 25 unsigned int color; 26 rectangle_t src1_rect; 27 rectangle_t src2_rect; 28 rectangle_t dst_rect; 29 int op; 30 } ge2d_op_para_t; 31 32 typedef struct { 33 unsigned int color_blending_mode; 34 unsigned int color_blending_src_factor; 35 unsigned int color_blending_dst_factor; 36 unsigned int alpha_blending_mode; 37 unsigned int alpha_blending_src_factor; 38 unsigned int alpha_blending_dst_factor; 39 } ge2d_blend_op; 40 41 #endif 42