Skip to content

Pixelcopy issue for big imagesΒ #797

@d4rkmen

Description

@d4rkmen

Display Images > 64k pixels blends to the image start when reach 64k position

Environment

  • MCU or Board name: [ESP32-S3]
  • Panel Driver IC: [any]
  • Bus type: [any]
  • LovyanGFX version: [latest develop]
  • FrameWork version: [ESP-IDF v5.5.1]
  • Build Environment: [ESP-IDF]
  • Operating System: [any]

Problem Description

Failed to copy big images from buffer display

param->fp_copy(dmabuf, 0, step, param);

Expected Behavior

Copy all data

Actual Behavior

Copy 64k data then start from 0 offset again.

Steps to reproduce

call param->fp_copy() in a loop till the end of data (do not increasy pos_y after every step)

the proble cause by insufficent percision in some of pixelcopy_t::copy_* functioms. Used src_x and src_y (16 bit integers instead of src_x32, src_y32

uint32_t i = (param->src_x + param->src_y * param->src_bitwidth) * param->src_bits;

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    pinnedexempt from stale bot

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions