FOSDEM / video-hardware

FOSDEM video hardware
17 stars 4 forks source link

r8g8b8 to nv12 conversion #7

Closed libv closed 3 years ago

libv commented 4 years ago

Write up V4l2 driver using G2D to convert capture buffers to the yuv420 that the h.264 can accept.

libv commented 3 years ago

V4L2 driver created and pushed. Does RGBA and planar RGB to RGBA, AYUV and NV12 conversion, with ITU REC.709 color space conversion.

https://github.com/libv/sun4i-demp

libv commented 3 years ago

A test utility called demp_test is now part of the juggler tool repo. This takes the TV test image png, converts it to planar RGB, then has the v4l2 demp driver convert it to NV12, and the result is shown on the sunxi kms driver for 600s (unless CTRL-Ced).