summaryrefslogtreecommitdiff
path: root/lib/igt_color_encoding.c
AgeCommit message (Collapse)Author
2018-08-30lib/kms: Remove special enum handling and replace with call to ↵Maarten Lankhorst
igt_plane_set_prop_enum, v2. We now have infrastructure for generic enum handling. This will make it easier to write new tests without defining all enum constants beforehand. Changes since v1: - Fix compile error, sent old version by accident. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by: Mika Kahola <mika.kahola@intel.com>
2018-06-07lib/igt_color_encoding: Appease c90Ville Syrjälä
Apparently we stil build in c90 mode or something with autotools. It doesn't like mixed code and declarations. v2: Do it the sane way (Chris) Cc: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
2018-06-07lib/igt_color_encoding: Use the m(row,col) macro to address the matrix cellsVille Syrjälä
Sinec the m(row,col) macro is now in igt_matrix.h let's use it when constructing the ycbcr<->rgb matrices. Cc: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
2018-05-23lib: Add igt_color_encodingVille Syrjälä
Add some helpers for generating rgb<->ycbcr conversion matrices. v2: Add enums for color_encoding/color_range Fix full range handling (lacked +-0.5<->+-1.0 scaling) Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>