<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lwn.git/drivers/media/platform/vivid/vivid-tpg.c, branch docs-next</title>
<subtitle>Linux kernel documentation tree maintained by Jonathan Corbet</subtitle>
<id>http://mirrors.hust.edu.cn/git/lwn.git/atom?h=docs-next</id>
<link rel='self' href='http://mirrors.hust.edu.cn/git/lwn.git/atom?h=docs-next'/>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/'/>
<updated>2016-04-20T19:14:39+00:00</updated>
<entry>
<title>[media] tpg: Export the tpg code from vivid as a module</title>
<updated>2016-04-20T19:14:39+00:00</updated>
<author>
<name>Helen Mae Koike Fornazier</name>
<email>helen.koike@collabora.co.uk</email>
</author>
<published>2016-04-08T20:28:58+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=e07d46e7e0da86c146f199dae76f879096bc436a'/>
<id>urn:sha1:e07d46e7e0da86c146f199dae76f879096bc436a</id>
<content type='text'>
The test pattern generator will be used by other drivers as the virtual
media controller (vimc)

Signed-off-by: Helen Mae Koike Fornazier &lt;helen.koike@collabora.co.uk&gt;
Acked-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] vivid: support new multiplanar YUV formats</title>
<updated>2016-03-03T10:48:31+00:00</updated>
<author>
<name>Hans Verkuil</name>
<email>hverkuil@xs4all.nl</email>
</author>
<published>2016-02-20T08:57:38+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=00036b307c9f0374ef33ede2ddd745ffbec51cad'/>
<id>urn:sha1:00036b307c9f0374ef33ede2ddd745ffbec51cad</id>
<content type='text'>
Add support for the new YUV422M, YVU422M, YUV444M and YVU444M formats.
This allows applications to check their support for these formats.

Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] vivid: add 10 and 12 bit Bayer formats</title>
<updated>2015-10-01T10:49:45+00:00</updated>
<author>
<name>Hans Verkuil</name>
<email>hverkuil@xs4all.nl</email>
</author>
<published>2015-09-21T08:31:19+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=b96c544f44c00a85b660e72dd8cc8363a499a6d6'/>
<id>urn:sha1:b96c544f44c00a85b660e72dd8cc8363a499a6d6</id>
<content type='text'>
Add support for 10 and 12 bit Bayer formats to the test pattern generator
and the vivid driver.

Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] vivid-tpg: improve Y16 color setup</title>
<updated>2015-06-06T10:34:52+00:00</updated>
<author>
<name>Hans Verkuil</name>
<email>hverkuil@xs4all.nl</email>
</author>
<published>2015-06-05T06:45:38+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=afeef4ee23b4865d6c3bf294b5ac9d55dbff5b82'/>
<id>urn:sha1:afeef4ee23b4865d6c3bf294b5ac9d55dbff5b82</id>
<content type='text'>
Currently the colors for the Y16 and Y16_BE pixelformats are in the range
0x0000-0xff00. So pure white (0xffff) is never created.

Improve this by making white really white. For other colors the lsb remains 0
so vivid can be used to detect endian problems.

Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Reviewed-by: Ricardo Ribalda &lt;ricardo.ribalda@gmail.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] vivid: move PRINTSTR to separate functions</title>
<updated>2015-06-06T01:22:05+00:00</updated>
<author>
<name>Hans Verkuil</name>
<email>hverkuil@xs4all.nl</email>
</author>
<published>2015-06-05T16:09:31+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=c70316f2a193fcd62232cddc1b2d44997ca2c930'/>
<id>urn:sha1:c70316f2a193fcd62232cddc1b2d44997ca2c930</id>
<content type='text'>
Commit 84cb7be43cec12868e94163c99fdc34c0297c3b8 broke vivid-tpg
(uninitialized variable p).

This patch takes a different approach: four different functions are
created, one for each PRINTSTR version.

In order to avoid the 'the frame size of 1308 bytes is larger than 1024
bytes' warning I had to mark those functions with 'noinline'. For
whatever reason gcc seems to inline this aggressively and it is doing
weird things with the stack.

I tried to read the assembly code, but I couldn't see what exactly it
was doing on the stack.

Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] vivid-tpg: precalculate colorspace/xfer_func combinations</title>
<updated>2015-06-05T14:50:36+00:00</updated>
<author>
<name>Hans Verkuil</name>
<email>hans.verkuil@cisco.com</email>
</author>
<published>2015-04-28T13:08:43+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=78aad7f81aa6dfccdb2804ac35db6fc371d265cf'/>
<id>urn:sha1:78aad7f81aa6dfccdb2804ac35db6fc371d265cf</id>
<content type='text'>
Precalculate all the colorspace/transfer function combinations in order
to easily generate the correct colors.

Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] vivid: add xfer_func support</title>
<updated>2015-06-05T14:49:53+00:00</updated>
<author>
<name>Hans Verkuil</name>
<email>hans.verkuil@cisco.com</email>
</author>
<published>2015-04-28T12:41:37+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=ca5316db08199124bf72b0ed16dc1a83fe0609e2'/>
<id>urn:sha1:ca5316db08199124bf72b0ed16dc1a83fe0609e2</id>
<content type='text'>
Add support for the transfer function: create a new control for it,
and support it for both capture and output sides.

Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] vivid: don't use more than 1024 bytes of stack</title>
<updated>2015-06-05T10:41:54+00:00</updated>
<author>
<name>Mauro Carvalho Chehab</name>
<email>mchehab@osg.samsung.com</email>
</author>
<published>2015-06-05T10:24:22+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=84cb7be43cec12868e94163c99fdc34c0297c3b8'/>
<id>urn:sha1:84cb7be43cec12868e94163c99fdc34c0297c3b8</id>
<content type='text'>
Remove the following compilation warnings:

	drivers/media/platform/vivid/vivid-tpg.c: In function 'tpg_gen_text':
	drivers/media/platform/vivid/vivid-tpg.c:1562:1: warning: the frame size of 1308 bytes is larger than 1024 bytes [-Wframe-larger-than=]
	 }
	 ^

This seems to be due to some bad optimization done by gcc.

Moving the for() loop to happen inside the macro solves the
issue.

While here, fix CodingStyle at the switch().

Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
Acked-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
</content>
</entry>
<entry>
<title>[media] vivid: use new V4L2_MAP_*_DEFAULT defines</title>
<updated>2015-05-30T14:39:52+00:00</updated>
<author>
<name>Hans Verkuil</name>
<email>hans.verkuil@cisco.com</email>
</author>
<published>2015-05-15T12:29:10+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=9c54faef71c0dd7ce01ff0c4251d6fdfbf570b09'/>
<id>urn:sha1:9c54faef71c0dd7ce01ff0c4251d6fdfbf570b09</id>
<content type='text'>
Use these defines instead of hardcoding this in any driver that needs it.

Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] media/vivid: Add support for Y16_BE format</title>
<updated>2015-05-30T14:34:29+00:00</updated>
<author>
<name>Ricardo Ribalda</name>
<email>ricardo.ribalda@gmail.com</email>
</author>
<published>2015-05-04T08:07:31+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=b0ce23f065744ba136e6b059369f51e5ae1fb769'/>
<id>urn:sha1:b0ce23f065744ba136e6b059369f51e5ae1fb769</id>
<content type='text'>
Support for V4L2_PIX_FMT_Y16_BE, a 16 bit big endian greyscale format.

Signed-off-by: Ricardo Ribalda Delgado &lt;ricardo.ribalda@gmail.com&gt;
Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
</feed>
