All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Hantro VPU JPEG encoder fixes
@ 2020-01-27 14:30 Andrzej Pietrasiewicz
  2020-01-27 14:30 ` [PATCH 1/4] media: hantro: Read be32 words starting at every fourth byte Andrzej Pietrasiewicz
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Andrzej Pietrasiewicz @ 2020-01-27 14:30 UTC (permalink / raw)
  To: devel
  Cc: linux-media, Greg Kroah-Hartman, Mauro Carvalho Chehab,
	Ezequiel Garcia, kernel

This series addresses quality issues in encoded JPEG images.

The first patch actually restores the intention of the original submission
of this driver: due to a typo the helper variables were unused and then
have been removed in some cleanup done by Mauro.

The second patch aligns the driver's luma quantization table with
the one in the ITU-T.81 standard.

The third patch changes the order in which quantization tables are
written to the resulting file and to the hardware. The file expects
a zig-zag order, while the hardware wants some special order, neither
linear nor zig-zag. In other words, hardware-wise it rearranges which
parts of quantization tables go into which 4-byte registers - in a hardware
specific order rather than linear or zig-zag. It also affects rk3288 and
hasn't been tested with it.

The fourth patch then rearranges the sequence of register writes.
The whole luma quantization table must be written first, and then the
chroma quantization is written. In other words, while patch 3/4
changes what goes into which register, this patch changes when each
register is written to. It also affects rk3288 and hasn't been
tested with it.

Andrzej Pietrasiewicz (4):
  media: hantro: Read be32 words starting at every fourth byte
  media: hantro: Use standard luma quantization table
  media: hantro: Write the quantization tables in proper order
  media: hantro: Write quantization table registers in increasing
    addresses order

 .../staging/media/hantro/hantro_h1_jpeg_enc.c | 19 ++++-
 drivers/staging/media/hantro/hantro_jpeg.c    | 76 ++++++++++++++-----
 drivers/staging/media/hantro/hantro_jpeg.h    |  2 +-
 .../media/hantro/rk3399_vpu_hw_jpeg_enc.c     | 24 ++++--
 4 files changed, 89 insertions(+), 32 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-02-07 11:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-27 14:30 [PATCH 0/4] Hantro VPU JPEG encoder fixes Andrzej Pietrasiewicz
2020-01-27 14:30 ` [PATCH 1/4] media: hantro: Read be32 words starting at every fourth byte Andrzej Pietrasiewicz
2020-01-27 18:26   ` Ezequiel Garcia
2020-01-27 14:30 ` [PATCH 2/4] media: hantro: Use standard luma quantization table Andrzej Pietrasiewicz
2020-01-27 19:46   ` Ezequiel Garcia
2020-01-27 14:30 ` [PATCH 3/4] media: hantro: Write the quantization tables in proper order Andrzej Pietrasiewicz
2020-01-27 14:30 ` [PATCH 4/4] media: hantro: Write quantization table registers in increasing addresses order Andrzej Pietrasiewicz
2020-01-27 18:11 ` [PATCH 0/4] Hantro VPU JPEG encoder fixes Ezequiel Garcia
2020-02-07 11:50   ` Andrzej Pietrasiewicz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.