Lines Matching refs:msg
27 matrix_cal(const struct rga_req *msg, TILE_INFO *tile) in matrix_cal() argument
34 s_act_w = msg->src.act_w; in matrix_cal()
35 s_act_h = msg->src.act_h; in matrix_cal()
36 d_act_w = msg->dst.act_w; in matrix_cal()
37 d_act_h = msg->dst.act_h; in matrix_cal()
47 sina = msg->sina; in matrix_cal()
48 cosa = msg->cosa; in matrix_cal()
50 switch(msg->rotate_mode) in matrix_cal()
82 int32_t RGA_gen_two_pro(struct rga_req *msg, struct rga_req *msg1) in RGA_gen_two_pro() argument
96 if(msg->dst.act_w == 0) in RGA_gen_two_pro()
102 if (msg->dst.act_h == 0) in RGA_gen_two_pro()
107 w_ratio = (msg->src.act_w << 16) / msg->dst.act_w; in RGA_gen_two_pro()
108 h_ratio = (msg->src.act_h << 16) / msg->dst.act_h; in RGA_gen_two_pro()
110 memcpy(msg1, msg, sizeof(struct rga_req)); in RGA_gen_two_pro()
112 msg->dst.format = msg->src.format; in RGA_gen_two_pro()
116 daw = (msg->src.act_w + 1) >> 1; in RGA_gen_two_pro()
117 if((IS_YUV_420(msg->dst.format)) && (daw & 1)) { in RGA_gen_two_pro()
119 msg->src.act_w = daw << 1; in RGA_gen_two_pro()
123 daw = (msg->src.act_w + 3) >> 2; in RGA_gen_two_pro()
124 if((IS_YUV_420(msg->dst.format)) && (daw & 1)) { in RGA_gen_two_pro()
126 msg->src.act_w = daw << 2; in RGA_gen_two_pro()
130 daw = (msg->src.act_w + 7) >> 3; in RGA_gen_two_pro()
131 if((IS_YUV_420(msg->dst.format)) && (daw & 1)) { in RGA_gen_two_pro()
133 msg->src.act_w = daw << 3; in RGA_gen_two_pro()
138 daw = msg->src.act_w; in RGA_gen_two_pro()
141 pl = (RGA_pixel_width_init(msg->src.format)); in RGA_gen_two_pro()
143 msg->dst.act_w = daw; in RGA_gen_two_pro()
144 msg->dst.vir_w = stride / pl; in RGA_gen_two_pro()
148 dah = (msg->src.act_h + 1) >> 1; in RGA_gen_two_pro()
149 if((IS_YUV(msg->dst.format)) && (dah & 1)) { in RGA_gen_two_pro()
151 msg->src.act_h = dah << 1; in RGA_gen_two_pro()
155 dah = (msg->src.act_h + 3) >> 2; in RGA_gen_two_pro()
156 if((IS_YUV(msg->dst.format)) && (dah & 1)) { in RGA_gen_two_pro()
158 msg->src.act_h = dah << 2; in RGA_gen_two_pro()
163 dah = (msg->src.act_h + 7) >> 3; in RGA_gen_two_pro()
164 if((IS_YUV(msg->dst.format)) && (dah & 1)) { in RGA_gen_two_pro()
166 msg->src.act_h = dah << 3; in RGA_gen_two_pro()
171 dah = msg->src.act_h; in RGA_gen_two_pro()
174 msg->dst.act_h = dah; in RGA_gen_two_pro()
175 msg->dst.vir_h = dah; in RGA_gen_two_pro()
177 msg->dst.x_offset = 0; in RGA_gen_two_pro()
178 msg->dst.y_offset = 0; in RGA_gen_two_pro()
180 msg->dst.yrgb_addr = (unsigned long)rga_service.pre_scale_buf; in RGA_gen_two_pro()
181 msg->dst.uv_addr = msg->dst.yrgb_addr + stride * dah; in RGA_gen_two_pro()
182 msg->dst.v_addr = msg->dst.uv_addr + ((stride * dah) >> 1); in RGA_gen_two_pro()
184 msg->render_mode = pre_scaling_mode; in RGA_gen_two_pro()
186 msg1->src.yrgb_addr = msg->dst.yrgb_addr; in RGA_gen_two_pro()
187 msg1->src.uv_addr = msg->dst.uv_addr; in RGA_gen_two_pro()
188 msg1->src.v_addr = msg->dst.v_addr; in RGA_gen_two_pro()
190 msg1->src.act_w = msg->dst.act_w; in RGA_gen_two_pro()
191 msg1->src.act_h = msg->dst.act_h; in RGA_gen_two_pro()
192 msg1->src.vir_w = msg->dst.vir_w; in RGA_gen_two_pro()
193 msg1->src.vir_h = msg->dst.vir_h; in RGA_gen_two_pro()