1
0
Fork 0
mirror of https://github.com/followmsi/android_kernel_google_msm.git synced 2024-11-06 23:17:41 +00:00

msm: rotator: Add pseudo-planar 422 H1V2 dst format for MDP4

For interleaved 422 inputs, rotator outputs MDP_Y_CRCB_H1V2
format on 90 degree rotation. Add support as destination format
for MDP4.

CRs-Fixed: 371303
Change-Id: Ie0f98d40f58bf2cb9bc3298a94cae9c4e89b2f7a
Signed-off-by: Mayank Chopra <makchopra@codeaurora.org>
This commit is contained in:
Mayank Chopra 2012-03-03 06:29:40 +05:30 committed by Stephen Boyd
parent 6fe8f3c97a
commit d6dbd7a557

View file

@ -421,6 +421,7 @@ static int msm_rotator_get_plane_sizes(uint32_t format, uint32_t w, uint32_t h,
break;
case MDP_Y_CRCB_H2V1:
case MDP_Y_CBCR_H2V1:
case MDP_Y_CRCB_H1V2:
p->num_planes = 2;
p->plane_size[0] = w * h;
p->plane_size[1] = w * h;
@ -651,9 +652,12 @@ static int msm_rotator_ycrycb(struct msm_rotator_img_info *info,
int bpp;
uint32_t dst_format;
if (info->src.format == MDP_YCRYCB_H2V1)
dst_format = MDP_Y_CRCB_H2V1;
else
if (info->src.format == MDP_YCRYCB_H2V1) {
if (info->rotations & MDP_ROT_90)
dst_format = MDP_Y_CRCB_H1V2;
else
dst_format = MDP_Y_CRCB_H2V1;
} else
return -EINVAL;
if (info->dst.format != dst_format)
@ -1286,7 +1290,10 @@ static int msm_rotator_start(unsigned long arg,
info.dst.format = info.src.format;
break;
case MDP_YCRYCB_H2V1:
info.dst.format = MDP_Y_CRCB_H2V1;
if (info.rotations & MDP_ROT_90)
info.dst.format = MDP_Y_CRCB_H1V2;
else
info.dst.format = MDP_Y_CRCB_H2V1;
break;
case MDP_Y_CB_CR_H2V2:
case MDP_Y_CBCR_H2V2_TILE: