mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 22:23:27 +00:00
6918ea2484
Update the 3.10 rasperry patches by rebasing raspberry/rpi-3.10-y against linux-stable/v3.10.49. Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 42678
47 lines
1.7 KiB
Diff
47 lines
1.7 KiB
Diff
From 640a6391ca5a617196bb250d3378f775fe16b9f8 Mon Sep 17 00:00:00 2001
|
|
From: Dave Stevenson <dsteve@broadcom.com>
|
|
Date: Mon, 23 Dec 2013 15:42:21 +0000
|
|
Subject: [PATCH 142/196] V4L2: Enable MJPEG encoding
|
|
|
|
Requires GPU firmware update to support MJPEG encoder.
|
|
|
|
Signed-off-by: Dave Stevenson <dsteve@broadcom.com>
|
|
---
|
|
drivers/media/platform/bcm2835/bcm2835-camera.c | 7 +++++++
|
|
drivers/media/platform/bcm2835/mmal-encodings.h | 1 +
|
|
2 files changed, 8 insertions(+)
|
|
|
|
diff --git a/drivers/media/platform/bcm2835/bcm2835-camera.c b/drivers/media/platform/bcm2835/bcm2835-camera.c
|
|
index 4780107..166039e 100644
|
|
--- a/drivers/media/platform/bcm2835/bcm2835-camera.c
|
|
+++ b/drivers/media/platform/bcm2835/bcm2835-camera.c
|
|
@@ -100,6 +100,13 @@ static struct mmal_fmt formats[] = {
|
|
.mmal = MMAL_ENCODING_H264,
|
|
.depth = 8,
|
|
.mmal_component = MMAL_COMPONENT_VIDEO_ENCODE,
|
|
+ },
|
|
+ {
|
|
+ .name = "MJPEG",
|
|
+ .fourcc = V4L2_PIX_FMT_MJPEG,
|
|
+ .mmal = MMAL_ENCODING_MJPEG,
|
|
+ .depth = 8,
|
|
+ .mmal_component = MMAL_COMPONENT_VIDEO_ENCODE,
|
|
}
|
|
};
|
|
|
|
diff --git a/drivers/media/platform/bcm2835/mmal-encodings.h b/drivers/media/platform/bcm2835/mmal-encodings.h
|
|
index 856e80e..764bb12 100644
|
|
--- a/drivers/media/platform/bcm2835/mmal-encodings.h
|
|
+++ b/drivers/media/platform/bcm2835/mmal-encodings.h
|
|
@@ -27,6 +27,7 @@
|
|
#define MMAL_ENCODING_VP6 MMAL_FOURCC('V', 'P', '6', ' ')
|
|
#define MMAL_ENCODING_THEORA MMAL_FOURCC('T', 'H', 'E', 'O')
|
|
#define MMAL_ENCODING_SPARK MMAL_FOURCC('S', 'P', 'R', 'K')
|
|
+#define MMAL_ENCODING_MJPEG MMAL_FOURCC('M', 'J', 'P', 'G')
|
|
|
|
#define MMAL_ENCODING_JPEG MMAL_FOURCC('J', 'P', 'E', 'G')
|
|
#define MMAL_ENCODING_GIF MMAL_FOURCC('G', 'I', 'F', ' ')
|
|
--
|
|
1.9.1
|
|
|