Lines Matching refs:matrix
263 const struct conversion_matrix *matrix)
269 fp_y = drm_int2fixp(((int)y - matrix->y_offset) * 257);
273 fp_r = drm_fixp_mul(matrix->matrix[0][0], fp_y) +
274 drm_fixp_mul(matrix->matrix[0][1], fp_channel_1) +
275 drm_fixp_mul(matrix->matrix[0][2], fp_channel_2);
276 fp_g = drm_fixp_mul(matrix->matrix[1][0], fp_y) +
277 drm_fixp_mul(matrix->matrix[1][1], fp_channel_1) +
278 drm_fixp_mul(matrix->matrix[1][2], fp_channel_2);
279 fp_b = drm_fixp_mul(matrix->matrix[2][0], fp_y) +
280 drm_fixp_mul(matrix->matrix[2][1], fp_channel_1) +
281 drm_fixp_mul(matrix->matrix[2][2], fp_channel_2);
519 * The conversion matrix stored in the @plane is used to:
558 * The conversion matrix stored in the @plane is used to:
763 * Below are the function calls used to generate each matrix, go to
772 .matrix = {
781 .matrix = {
795 .matrix = {
809 .matrix = {
823 .matrix = {
837 .matrix = {
851 .matrix = {
860 * swap_uv_columns() - Swap u and v column of a given matrix
862 * @matrix: Matrix in which column are swapped
864 static void swap_uv_columns(struct conversion_matrix *matrix)
866 swap(matrix->matrix[0][2], matrix->matrix[0][1]);
867 swap(matrix->matrix[1][2], matrix->matrix[1][1]);
868 swap(matrix->matrix[2][2], matrix->matrix[2][1]);
872 * get_conversion_matrix_to_argb_u16() - Retrieve the correct yuv to rgb conversion matrix for a
876 * @encoding: DRM_COLOR_* value for which to obtain a conversion matrix
877 * @range: DRM_COLOR_*_RANGE value for which to obtain a conversion matrix
878 * @matrix: Pointer to store the value into
883 struct conversion_matrix *matrix)
920 memcpy(matrix, matrix_to_copy, sizeof(*matrix_to_copy));
929 swap_uv_columns(matrix);