Skip to content

Commit fa02902

Browse files
Thibault Sauniergregkh
authored andcommitted
exynos-gsc: Do not swap cb/cr for semi planar formats
[ Upstream commit d7f3e33df4fbdc9855fb151f4a328ec46447e3ba ] 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 <nicolas.dufresne@collabora.com> Signed-off-by: Thibault Saunier <thibault.saunier@osg.samsung.com> Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 8bd7216 commit fa02902

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
@@ -849,9 +849,7 @@ int gsc_prepare_addr(struct gsc_ctx *ctx, struct vb2_buffer *vb,
849849

850850
if ((frame->fmt->pixelformat == V4L2_PIX_FMT_VYUY) ||
851851
(frame->fmt->pixelformat == V4L2_PIX_FMT_YVYU) ||
852-
(frame->fmt->pixelformat == V4L2_PIX_FMT_NV61) ||
853852
(frame->fmt->pixelformat == V4L2_PIX_FMT_YVU420) ||
854-
(frame->fmt->pixelformat == V4L2_PIX_FMT_NV21) ||
855853
(frame->fmt->pixelformat == V4L2_PIX_FMT_YVU420M))
856854
swap(addr->cb, addr->cr);
857855

0 commit comments

Comments
 (0)