Lines Matching refs:direction
86 * to read in a certain direction.
89 * @direction: Direction of the reading
92 * As the returned count is the number of bytes between two consecutive blocks in a direction,
97 static int get_block_step_bytes(struct drm_framebuffer *fb, enum pixel_read_direction direction,
100 switch (direction) {
146 * get_subsampling() - Get the subsampling divisor value on a specific direction
149 * @direction: direction of the subsampling requested
152 enum pixel_read_direction direction)
154 switch (direction) {
162 WARN_ONCE(true, "Invalid direction for pixel reading: %d\n", direction);
170 * @direction: direction of the reading to properly compute this offset
174 static int get_subsampling_offset(enum pixel_read_direction direction, int x_start, int y_start)
176 switch (direction) {
186 WARN_ONCE(true, "Invalid direction for pixel reading: %d\n", direction);
298 * They read a line starting at the point @x_start,@y_start following the @direction. The result
309 int y_start, enum pixel_read_direction direction, int count,
322 int step = get_block_step_bytes(plane->frame_info->fb, direction, 0);
326 if (direction == READ_LEFT_TO_RIGHT || direction == READ_RIGHT_TO_LEFT) {
330 if (direction == READ_LEFT_TO_RIGHT) {
350 } else if (direction == READ_TOP_TO_BOTTOM || direction == READ_BOTTOM_TO_TOP) {
361 int y_start, enum pixel_read_direction direction, int count,
364 Rx_read_line(plane, x_start, y_start, direction, count, out_pixel);
368 int y_start, enum pixel_read_direction direction, int count,
371 Rx_read_line(plane, x_start, y_start, direction, count, out_pixel);
375 int y_start, enum pixel_read_direction direction, int count,
378 Rx_read_line(plane, x_start, y_start, direction, count, out_pixel);
382 int y_start, enum pixel_read_direction direction, int count,
387 int step = get_block_step_bytes(plane->frame_info->fb, direction, 0);
399 enum pixel_read_direction direction, int count,
407 int step = get_block_step_bytes(plane->frame_info->fb, direction, 0);
418 enum pixel_read_direction direction, int count,
426 int step = get_block_step_bytes(plane->frame_info->fb, direction, 0);
437 enum pixel_read_direction direction, int count,
445 int step = get_block_step_bytes(plane->frame_info->fb, direction, 0);
457 int y_start, enum pixel_read_direction direction, int count,
465 int step = get_block_step_bytes(plane->frame_info->fb, direction, 0);
476 int y_start, enum pixel_read_direction direction, int count,
484 int step = get_block_step_bytes(plane->frame_info->fb, direction, 0);
495 int y_start, enum pixel_read_direction direction, int count,
503 int step = get_block_step_bytes(plane->frame_info->fb, direction, 0);
525 int y_start, enum pixel_read_direction direction, int count,
537 int step_y = get_block_step_bytes(plane->frame_info->fb, direction, 0);
538 int step_uv = get_block_step_bytes(plane->frame_info->fb, direction, 1);
539 int subsampling = get_subsampling(plane->frame_info->fb->format, direction);
540 int subsampling_offset = get_subsampling_offset(direction, x_start, y_start);
564 int y_start, enum pixel_read_direction direction, int count,
581 int step_y = get_block_step_bytes(plane->frame_info->fb, direction, 0);
582 int step_channel_1 = get_block_step_bytes(plane->frame_info->fb, direction, 1);
583 int step_channel_2 = get_block_step_bytes(plane->frame_info->fb, direction, 2);
584 int subsampling = get_subsampling(plane->frame_info->fb->format, direction);
585 int subsampling_offset = get_subsampling_offset(direction, x_start, y_start);