mbox series

[0/6] video: pixel format handling fixes and improvements

Message ID 20240516-rework-video-format-v1-0-f69822b742a3@flygoat.com
Headers show
Series video: pixel format handling fixes and improvements | expand

Message

Jiaxun Yang May 16, 2024, 10:16 p.m. UTC
Hi all,

This series fixes endian related problem I found in general
video system when testing my fresh virtio-gpu driver on big
endian target.

It also removed a lot of duplicated code on pixel handling,
and make implementation of new pixel formats easier. Further
more, it removed limitation on bpc for BMP display, now we
can display any image depth on any target display controller.

Please review.
Thanks

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
---
Jiaxun Yang (6):
      video: Move generated bmp headers to include/generated
      video: Add gitignore for u_boot_logo.S
      video: Rework pixel format handling
      video: bmp: Rework with video_rgb_to_pixel_*
      video: sandbox_sdl: Implement more pixel formats
      video: bochs: Setup framebuffer endian

 Makefile                          |   2 +-
 arch/sandbox/cpu/sdl.c            |  58 +++++++++--
 arch/sandbox/include/asm/sdl.h    |  17 ++--
 board/aristainetos/aristainetos.c |   2 +-
 board/toradex/common/tdx-common.c |   2 +-
 common/splash.c                   |   4 +-
 drivers/video/.gitignore          |   1 +
 drivers/video/bochs.c             |   8 ++
 drivers/video/console_truetype.c  |   4 +-
 drivers/video/sandbox_sdl.c       |  16 +--
 drivers/video/simplefb.c          |   2 +-
 drivers/video/video-uclass.c      |  38 ++-----
 drivers/video/video_bmp.c         | 201 +++++++++++---------------------------
 include/dm/test.h                 |   2 +
 include/video.h                   |  31 +-----
 include/video_format.h            | 161 ++++++++++++++++++++++++++++++
 lib/efi_loader/efi_gop.c          |   2 +-
 test/dm/video.c                   |  18 ++--
 tools/Makefile                    |   4 +-
 19 files changed, 332 insertions(+), 241 deletions(-)
---
base-commit: ad7dce5abd49ef3b5c93da5303e15449c8c162b4
change-id: 20240516-rework-video-format-ae8afadc45a5

Best regards,

Comments

Jiaxun Yang July 17, 2024, 2:34 p.m. UTC | #1
在2024年5月17日五月 上午6:16,Jiaxun Yang写道:
> Hi all,
>
> This series fixes endian related problem I found in general
> video system when testing my fresh virtio-gpu driver on big
> endian target.
>
> It also removed a lot of duplicated code on pixel handling,
> and make implementation of new pixel formats easier. Further
> more, it removed limitation on bpc for BMP display, now we
> can display any image depth on any target display controller.

Ping

>
> Please review.
> Thanks
>
> Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
> ---
> Jiaxun Yang (6):
>       video: Move generated bmp headers to include/generated
>       video: Add gitignore for u_boot_logo.S
>       video: Rework pixel format handling
>       video: bmp: Rework with video_rgb_to_pixel_*
>       video: sandbox_sdl: Implement more pixel formats
>       video: bochs: Setup framebuffer endian
>
>  Makefile                          |   2 +-
>  arch/sandbox/cpu/sdl.c            |  58 +++++++++--
>  arch/sandbox/include/asm/sdl.h    |  17 ++--
>  board/aristainetos/aristainetos.c |   2 +-
>  board/toradex/common/tdx-common.c |   2 +-
>  common/splash.c                   |   4 +-
>  drivers/video/.gitignore          |   1 +
>  drivers/video/bochs.c             |   8 ++
>  drivers/video/console_truetype.c  |   4 +-
>  drivers/video/sandbox_sdl.c       |  16 +--
>  drivers/video/simplefb.c          |   2 +-
>  drivers/video/video-uclass.c      |  38 ++-----
>  drivers/video/video_bmp.c         | 201 +++++++++++---------------------------
>  include/dm/test.h                 |   2 +
>  include/video.h                   |  31 +-----
>  include/video_format.h            | 161 ++++++++++++++++++++++++++++++
>  lib/efi_loader/efi_gop.c          |   2 +-
>  test/dm/video.c                   |  18 ++--
>  tools/Makefile                    |   4 +-
>  19 files changed, 332 insertions(+), 241 deletions(-)
> ---
> base-commit: ad7dce5abd49ef3b5c93da5303e15449c8c162b4
> change-id: 20240516-rework-video-format-ae8afadc45a5
>
> Best regards,
> -- 
> Jiaxun Yang <jiaxun.yang@flygoat.com>
Simon Glass July 28, 2024, 7:36 p.m. UTC | #2
Hi,

On Wed, 17 Jul 2024 at 08:34, Jiaxun Yang <jiaxun.yang@flygoat.com> wrote:
>
>
>
> 在2024年5月17日五月 上午6:16,Jiaxun Yang写道:
> > Hi all,
> >
> > This series fixes endian related problem I found in general
> > video system when testing my fresh virtio-gpu driver on big
> > endian target.
> >
> > It also removed a lot of duplicated code on pixel handling,
> > and make implementation of new pixel formats easier. Further
> > more, it removed limitation on bpc for BMP display, now we
> > can display any image depth on any target display controller.
>
> Ping

I believe this is waiting on Anatolij?

Regards,
Simon