Skip to content

Commit d7f3e33

Browse files
Thibault Sauniermchehab
authored andcommitted
[media] exynos-gsc: Do not swap cb/cr for semi planar formats
In the case of semi planar formats cb and cr are in the same plane in memory, meaning that will be set to 'cb' whatever the format is, and whatever the (packed) order of those components are. Suggested-by: Nicolas Dufresne <[email protected]> Signed-off-by: Thibault Saunier <[email protected]> Signed-off-by: Javier Martinez Canillas <[email protected]> Acked-by: Sylwester Nawrocki <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 446aba6 commit d7f3e33

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/media/platform/exynos-gsc/gsc-core.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -861,9 +861,7 @@ int gsc_prepare_addr(struct gsc_ctx *ctx, struct vb2_buffer *vb,
861861

862862
if ((frame->fmt->pixelformat == V4L2_PIX_FMT_VYUY) ||
863863
(frame->fmt->pixelformat == V4L2_PIX_FMT_YVYU) ||
864-
(frame->fmt->pixelformat == V4L2_PIX_FMT_NV61) ||
865864
(frame->fmt->pixelformat == V4L2_PIX_FMT_YVU420) ||
866-
(frame->fmt->pixelformat == V4L2_PIX_FMT_NV21) ||
867865
(frame->fmt->pixelformat == V4L2_PIX_FMT_YVU420M))
868866
swap(addr->cb, addr->cr);
869867

0 commit comments

Comments
 (0)