espressif / esp-dsp

DSP library for ESP-IDF
Apache License 2.0
474 stars 88 forks source link

Support for more image processing functions (DSP-81) #39

Open X-Ryl669 opened 2 years ago

X-Ryl669 commented 2 years ago

It would be great if there was support for some image processing operations like:

  1. Alpha blending (a bit like: out = x alpha + y (1 - alpha))
  2. Conversion from/to difference colorspace (RGB888 <=> RGB565)
  3. Optimized blitting (copying some memory area to some other memory area, maybe using the new DMA engine in ESP32 S3)
  4. Texture mapping ( out = bilinear(img, [x,y]) with x,y in |R not |N)
  5. etc...

Many LCD library have to deal with RGB565 format, and constantly changing from masked u16 (red = c & 0xF800 >> 8, etc...) to i16 for operations and back to u16 is very costly in terms of performance. There might be improvement to get here when using primitives from Xtensa (like MAC16, maybe).

dmitry1945 commented 2 years ago

Hi @X-Ryl669 , We have a plans to include it in this year.

Regards, Dmitry