Lines Matching full:pixel

38  * The current DRM assumption is that pixel color values have been already
123 struct pixel_argb_u16 *pixel = &output_buffer->pixels[x]; in apply_lut() local
125 pixel->r = apply_lut_to_channel_value(&crtc_state->gamma_lut, pixel->r, LUT_RED); in apply_lut()
126 pixel->g = apply_lut_to_channel_value(&crtc_state->gamma_lut, pixel->g, LUT_GREEN); in apply_lut()
127 pixel->b = apply_lut_to_channel_value(&crtc_state->gamma_lut, pixel->b, LUT_BLUE); in apply_lut()
131 VISIBLE_IF_KUNIT void apply_3x4_matrix(struct pixel_argb_s32 *pixel, in apply_3x4_matrix() argument
137 r = drm_int2fixp(pixel->r); in apply_3x4_matrix()
138 g = drm_int2fixp(pixel->g); in apply_3x4_matrix()
139 b = drm_int2fixp(pixel->b); in apply_3x4_matrix()
156 pixel->r = drm_fixp2int_round(rf); in apply_3x4_matrix()
157 pixel->g = drm_fixp2int_round(gf); in apply_3x4_matrix()
158 pixel->b = drm_fixp2int_round(bf); in apply_3x4_matrix()
162 static void apply_colorop(struct pixel_argb_s32 *pixel, struct drm_colorop *colorop) in apply_colorop() argument
170 pixel->r = apply_lut_to_channel_value(&srgb_inv_eotf, pixel->r, LUT_RED); in apply_colorop()
171 pixel->g = apply_lut_to_channel_value(&srgb_inv_eotf, pixel->g, LUT_GREEN); in apply_colorop()
172 pixel->b = apply_lut_to_channel_value(&srgb_inv_eotf, pixel->b, LUT_BLUE); in apply_colorop()
175 pixel->r = apply_lut_to_channel_value(&srgb_eotf, pixel->r, LUT_RED); in apply_colorop()
176 pixel->g = apply_lut_to_channel_value(&srgb_eotf, pixel->g, LUT_GREEN); in apply_colorop()
177 pixel->b = apply_lut_to_channel_value(&srgb_eotf, pixel->b, LUT_BLUE); in apply_colorop()
187 apply_3x4_matrix(pixel, in apply_colorop()
195 struct pixel_argb_s32 pixel; in pre_blend_color_transform() local
210 pixel.a = output_buffer->pixels[x].a; in pre_blend_color_transform()
211 pixel.r = output_buffer->pixels[x].r; in pre_blend_color_transform()
212 pixel.g = output_buffer->pixels[x].g; in pre_blend_color_transform()
213 pixel.b = output_buffer->pixels[x].b; in pre_blend_color_transform()
224 apply_colorop(&pixel, colorop); in pre_blend_color_transform()
230 output_buffer->pixels[x].a = clamp_val(pixel.a, 0, 0xffff); in pre_blend_color_transform()
231 output_buffer->pixels[x].r = clamp_val(pixel.r, 0, 0xffff); in pre_blend_color_transform()
232 output_buffer->pixels[x].g = clamp_val(pixel.g, 0, 0xffff); in pre_blend_color_transform()
233 output_buffer->pixels[x].b = clamp_val(pixel.b, 0, 0xffff); in pre_blend_color_transform()
244 * For example, if the buffer is reflected on X axis, the pixel must be read from right to left
309 /* Get the correct number of pixel to blend, it depends of the direction */ in clamp_line_coordinates()
359 * @stage_buffer: temporary buffer to convert the pixel line from the source buffer
419 /* [2]: Compute and clamp the number of pixel to read */ in blend_line()
545 * instead doing it for each channel of each pixel in case in compose_active_planes()