Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vsp2driver: Support to convert full-range YCbCr buffers #1

Open
wants to merge 1 commit into
base: rcar-gen3
Choose a base branch
from

Conversation

eucan
Copy link

@eucan eucan commented Jun 21, 2018

The vsp2driver is supporting BT.601 and BT.709 colorspaces.
Specifications of both standards mentions that
default quantization for YCbCr buffers limited range, and
it is full range for RGB buffers.

Nevertheless vsp2 device supports to correctly convert
full range YCbCr buffers to RGB. We need to set clrcng
of vsp_src_t data structure to 0x01 to specify our buffers
as full range.

v4l2_pix_format_mplane data structure has the necessary
information about quantization. We need to use this
information to correctly set quantization for YCbCr to
RGB conversion.

Signed-off-by: Emre Ucan [email protected]
Signed-off-by: Steve Longerbeam [email protected]

The vsp2driver is supporting BT.601 and BT.709 colorspaces.
Specifications of both standards mentions that
default quantization for YCbCr buffers limited range, and
it is full range for RGB buffers.

Nevertheless vsp2 device supports to correctly convert
full range YCbCr buffers to RGB. We need to set clrcng
of vsp_src_t data structure to 0x01 to specify our buffers
as full range.

v4l2_pix_format_mplane data structure has the necessary
information about quantization. We need to use this
information to correctly set quantization for YCbCr to
RGB conversion.

Signed-off-by: Emre Ucan <[email protected]>
Signed-off-by: Steve Longerbeam <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant