Skip to content

Commit

Permalink
OMAPDSS: DISPC: Downscale chroma if plane is writeback
Browse files Browse the repository at this point in the history
When converting YUYV444 content to YUV422 or NV12 formats through writeback
pipeline, the scaler needs to downscale the chroma plane. Ensure that chroma
is downscaled when the pipeline is writeback.

Signed-off-by: Archit Taneja <archit@ti.com>
  • Loading branch information
Archit Taneja authored and Tomi Valkeinen committed Sep 26, 2012
1 parent 36d87d9 commit f92afae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/omap2/dss/dispc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1460,7 +1460,7 @@ static void dispc_ovl_set_scaling_uv(enum omap_plane plane,
{
int scale_x = out_width != orig_width;
int scale_y = out_height != orig_height;
bool chroma_upscale = true;
bool chroma_upscale = plane != OMAP_DSS_WB ? true : false;

if (!dss_has_feature(FEAT_HANDLE_UV_SEPARATE))
return;
Expand Down

0 comments on commit f92afae

Please sign in to comment.