public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC] Support for H.264/MPEG4 encoder (VPU) in i.MX27.
@ 2011-09-06 15:07 javier Martin
  2011-09-06 15:26 ` Guennadi Liakhovetski
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: javier Martin @ 2011-09-06 15:07 UTC (permalink / raw)
  To: linux-media; +Cc: Guennadi Liakhovetski

Hi,
we are planning to add support to H.264/MPEG4 encoder inside the
i.MX27 to v4l2. It is mainly a hardware module that has the following
features:

- It needs two input buffers (current frame and previous frame).
- It produces a third buffer as output, containing the encoded frame,
and generates an IRQ when that happens.
- Previous three buffers need contiguous physical memory addresses and
probably some alignment requirements.
- It needs an external firmware to be loaded in another contiguous
memory buffer.

I would like to know what is your opinion on this, what v4l2 framework
should we use to deal with it, etc... I guess Multi Format Codec 5.1
driver for s5pv210 and exynos4 SoC is the most similar piece of HW
I've found so far but it has not yet entered mainline [1]

Note that mx2_camera driver is still using soc-camera framework and
soc-camera doesn't seem to be ready for integration with pad level API
[2]. For that reason we think we could develop this VPU driver
separately.

[1] http://www.spinics.net/lists/linux-media/msg35040.html
[2] http://www.open-technology.de/index.php?/categories/2-SoC-camera

-- 
Javier Martin
Vista Silicon S.L.
CDTUC - FASE C - Oficina S-345
Avda de los Castros s/n
39005- Santander. Cantabria. Spain
+34 942 25 32 60
www.vista-silicon.com

^ permalink raw reply	[flat|nested] 16+ messages in thread
* [RFC] Support for H.264/MPEG4 encoder (VPU) in i.MX27.
@ 2012-06-08  7:21 javier Martin
       [not found] ` <20120608072601.GD30137@pengutronix.de>
  0 siblings, 1 reply; 16+ messages in thread
From: javier Martin @ 2012-06-08  7:21 UTC (permalink / raw)
  To: Fabio Estevam
  Cc: linux-media, Sascha Hauer, Shawn Guo, Dirk Behme,
	linux-arm-kernel

Fabio,

On 8 June 2012 08:51, javier Martin <javier.martin@vista-silicon.com> wrote:
> Hi Fabio,
>
> On 7 June 2012 19:35, Fabio Estevam <festevam@gmail.com> wrote:
>> Hi Javier,
>>
>> On Thu, Jun 7, 2012 at 5:30 AM, javier Martin
>> <javier.martin@vista-silicon.com> wrote:
>>
>>> As i stated, the driver is still in an early development stage, it
>>> doesn't do anything useful yet. But this is the public git repository
>>> if you want to take a look:
>>>
>>> git repo: https://github.com/jmartinc/video_visstrim.git
>>> branch:  mx27-codadx6
>>
>> Thanks, I will take a look at your tree when I am back to the office next week.
>>
>> I also see that Linaro's tree has support for VPU for mx5/mx6:
>> http://git.linaro.org/gitweb?p=landing-teams/working/freescale/kernel.git;a=summary
>>
>> ,so we should probably think in unifying it with mx27 support there too.

If you refer to driver in [1] I have some concerns: i.MX27 VPU should
be implemented as a V4L2 mem2mem device since it gets raw pictures
from memory and outputs encoded frames to memory (some discussion
about the subject can be fond here [2]), as Exynos driver from Samsung
does. However, this driver you've mentioned doesn't do that: it just
creates several mapping regions so that the actual functionality is
implemented in user space by a library provided by Freescale, which
regarding i.MX27 it is also GPL.

What we are trying to do is implementing all the functionality in
kernel space using mem2mem V4L2 framework so that it can be accepted
in mainline.

Please, correct me if the driver you are talking about is not the one in [1].

Regards.

[1] http://git.linaro.org/gitweb?p=landing-teams/working/freescale/kernel.git;a=blob;f=drivers/mxc/vpu/mxc_vpu.c;h=27b09e56d5a3f6cb7eeba16fe5493cbec46c65cd;hb=d0f289f67f0ff403d92880c410b009f1fd4e69f3
[2] http://www.mail-archive.com/linux-media@vger.kernel.org/msg36555.html

-- 
Javier Martin
Vista Silicon S.L.
CDTUC - FASE C - Oficina S-345
Avda de los Castros s/n
39005- Santander. Cantabria. Spain
+34 942 25 32 60
www.vista-silicon.com

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2012-06-08 15:26 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-06 15:07 [RFC] Support for H.264/MPEG4 encoder (VPU) in i.MX27 javier Martin
2011-09-06 15:26 ` Guennadi Liakhovetski
2011-09-07  7:17 ` Robert Schwebel
2011-09-15 17:33 ` Sakari Ailus
2011-09-15 17:48   ` Guennadi Liakhovetski
2011-09-15 22:46     ` Sakari Ailus
2011-09-16  7:49       ` javier Martin
  -- strict thread matches above, loose matches on Subject: below --
2012-06-08  7:21 javier Martin
     [not found] ` <20120608072601.GD30137@pengutronix.de>
2012-06-08  7:39   ` javier Martin
2012-06-08  7:41     ` Robert Schwebel
2012-06-08  8:48     ` Sascha Hauer
2012-06-08  9:00       ` javier Martin
2012-06-08  9:02         ` javier Martin
2012-06-08  9:23           ` Sascha Hauer
2012-06-08 11:32             ` javier Martin
2012-06-08 15:25               ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox