Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3854

Advanced users • H.264 encoder color space

$
0
0
I'm looking at the kernel driver for the H.264 encoder found on Pi 4 and older here: https://github.com/raspberrypi/linux/bl ... l2-codec.c

As far as I can see, the driver does not pass the colorspace parameter on to the hardware.

I've also noticed that the colour space is not encoded into the resulting elementary stream. The video_signal_type_present_flag in the SPS NAL unit is zero.

I'm curious to know the answers to the following questions.
  • What is the default colour space?
  • Does the source pixel format affect the colour space or the YCbCr conversion coefficients?
  • E.g. if I feed RGB buffers to it, can I expect it to use sYCC or BT.709 coefficients?
  • Can I modify the driver to enable the video_signal_type_present_flag?

Statistics: Posted by any1 — Thu Aug 15, 2024 10:19 pm



Viewing all articles
Browse latest Browse all 3854

Trending Articles