Lines Matching refs:frame_info
12 static size_t pixel_offset(const struct vkms_frame_info *frame_info, int x, int y) in pixel_offset() argument
14 return frame_info->offset + (y * frame_info->pitch) in pixel_offset()
15 + (x * frame_info->cpp); in pixel_offset()
31 static void *packed_pixels_addr(const struct vkms_frame_info *frame_info, in packed_pixels_addr() argument
34 size_t offset = pixel_offset(frame_info, x, y); in packed_pixels_addr()
36 return (u8 *)frame_info->map[0].vaddr + offset; in packed_pixels_addr()
39 static void *get_packed_src_addr(const struct vkms_frame_info *frame_info, int y) in get_packed_src_addr() argument
41 int x_src = frame_info->src.x1 >> 16; in get_packed_src_addr()
42 int y_src = y - frame_info->rotated.y1 + (frame_info->src.y1 >> 16); in get_packed_src_addr()
44 return packed_pixels_addr(frame_info, x_src, y_src); in get_packed_src_addr()
47 static int get_x_position(const struct vkms_frame_info *frame_info, int limit, int x) in get_x_position() argument
49 if (frame_info->rotation & (DRM_MODE_REFLECT_X | DRM_MODE_ROTATE_270)) in get_x_position()
130 struct vkms_frame_info *frame_info = plane->frame_info; in vkms_compose_row() local
131 u8 *src_pixels = get_packed_src_addr(frame_info, y); in vkms_compose_row()
132 int limit = min_t(size_t, drm_rect_width(&frame_info->dst), stage_buffer->n_pixels); in vkms_compose_row()
134 for (size_t x = 0; x < limit; x++, src_pixels += frame_info->cpp) { in vkms_compose_row()
135 int x_pos = get_x_position(frame_info, limit, x); in vkms_compose_row()
137 if (drm_rotation_90_or_270(frame_info->rotation)) in vkms_compose_row()
138 src_pixels = get_packed_src_addr(frame_info, x + frame_info->rotated.y1) in vkms_compose_row()
139 + frame_info->cpp * y; in vkms_compose_row()
220 struct vkms_frame_info *frame_info = &wb->wb_frame_info; in vkms_writeback_row() local
221 int x_dst = frame_info->dst.x1; in vkms_writeback_row()
222 u8 *dst_pixels = packed_pixels_addr(frame_info, x_dst, y); in vkms_writeback_row()
224 int x_limit = min_t(size_t, drm_rect_width(&frame_info->dst), src_buffer->n_pixels); in vkms_writeback_row()
226 for (size_t x = 0; x < x_limit; x++, dst_pixels += frame_info->cpp) in vkms_writeback_row()