Re: [RFC] Stand-alone Resizer/Previewer Driver support under V4L2 framework
From: Dongsoo, Nathaniel Kim <hidden>
Date: 2009-04-21 13:04:13
Also in:
linux-media
Hello Vaibhav, On Tue, Apr 21, 2009 at 9:08 PM, Hiremath, Vaibhav [off-list ref] wrote:
quoted
-----Original Message----- From: Dongsoo, Nathaniel Kim [mailto:dongsoo.kim@gmail.com] Sent: Tuesday, April 21, 2009 3:44 PM To: Hiremath, Vaibhav Cc: Hans Verkuil; linux-media@vger.kernel.org; Aguirre Rodriguez, Sergio Alberto; Toivonen Tuukka.O (Nokia-D/Oulu); linux- omap@vger.kernel.org; Nagalla, Hari; Sakari Ailus; Jadav, Brijesh R; R, Sivaraj; Hadli, Manjunath; Shah, Hardik; Kumar, Purushotam Subject: Re: [RFC] Stand-alone Resizer/Previewer Driver support under V4L2 framework Hello, Vaibhav, On Tue, Apr 21, 2009 at 7:01 PM, Hiremath, Vaibhav [off-list ref] wrote:quoted
quoted
-----Original Message----- From: Hiremath, Vaibhav Sent: Tuesday, April 21, 2009 3:16 PM To: 'Dongsoo, Nathaniel Kim' Cc: Hans Verkuil; linux-media@vger.kernel.org; Aguirre Rodriguez, Sergio Alberto; Toivonen Tuukka.O (Nokia-D/Oulu); linux- omap@vger.kernel.org; Nagalla, Hari; Sakari Ailus; Jadav, BrijeshR;quoted
quoted
R, Sivaraj; Hadli, Manjunath; Shah, Hardik; Kumar, Purushotam Subject: RE: [RFC] Stand-alone Resizer/Previewer Driver support under V4L2 frameworkquoted
-----Original Message----- From: Dongsoo, Nathaniel Kim [mailto:dongsoo.kim@gmail.com] Sent: Monday, April 20, 2009 4:15 PM To: Hiremath, Vaibhav Cc: Hans Verkuil; linux-media@vger.kernel.org; AguirreRodriguez,quoted
quoted
quoted
Sergio Alberto; Toivonen Tuukka.O (Nokia-D/Oulu); linux- omap@vger.kernel.org; Nagalla, Hari; Sakari Ailus; Jadav,Brijeshquoted
quoted
R;quoted
R, Sivaraj; Hadli, Manjunath; Shah, Hardik; Kumar, Purushotam Subject: Re: [RFC] Stand-alone Resizer/Previewer Driver support under V4L2 framework Hello Vaibhav, This is user manual of S3C6400 (not much different fromS3C6410)quoted
quoted
quoted
http://www.ebv.com/fileadmin/products/Products/Samsung/S3C6400/S3C64quoted
quoted
quoted
00X_UserManual_rev1-0_2008-02_661558um.pdf That SoC is from my company but not from the same division ofmine.quoted
Actually I'm doing this driver job without any request fromchipquoted
quoted
quoted
delivering division. I'm doing this because this is sochallengingquoted
quoted
quoted
and want better generic driver :-) Take a look at the user manual and please let me know youropinion.quoted
In my understanding scaler and some camera interface feature in S3C64XX are very similar to the features in Omap3.[Hiremath, Vaibhav] Hi Kim, I went through the document and below are some observations and questions I have - - If I compare it with OMAP then there is nothingapplicationquoted
quoted
needs to configure specific to hardware. All the parameters supported through "v4l2_format" one with TYPE_VIDEO_OUTPUT and another with TYPE_VIDEO_CAPTURE except the parameter "offset" (If driver is supporting it)I'm not sure whether I'm following your question, but S3C64XX camera interface is obviously simpler than OMAP. So there is no wonder that user doesn't need to configure H/W specific things. And I don't get the question about "offset" parameter. Can you explain me more specifically?[Hiremath, Vaibhav] Please refer to the section 16.5.1 (Page no 532 (16-11)) 16.7.11 and 16.7.16. You can specify offset from the input image to start, so that you can have part of image for scaling.
Oh! sorry I made you get confused. What I'm working on is not the TV scaler of S3C64XX but scaler and rotator in camera interface. Please take a look at "20-1 camera interface" This scaler/rotator feature can be used in general purpose.
quoted
quoted
quoted
- I wanted to understand how are you configuring offset register? How are you exporting it to user application?Again, I don't get the point. Sorry.quoted
quoted
Rest everything we can handle in driver once input source andoutputquoted
quoted
destination format receives from application.[Hiremath, Vaibhav] Missed one point in last draft, about bufferhandling. How are you handling buffers? Are you supporting both USER_POINTER and MMAP buffers?quoted
What is the size of buffers, is that different for input andoutput?quoted
If yes, then how are you managing it? If no, don't you see requirement for it?Sorry, my driver work is not that stage yet. It's just still in designing level, because of some special H/W features (like MSDMA, scaler and so) I'm totally stuck and can't go further. But your buffer theory seems to make sense and I suppose that is necessary if we have that kind of device.[Hiremath, Vaibhav] I am talking to Mauro, and will keep you updated on this.
Thank you. I appreciate it. Nate
Thanks, Vaibhav Hiremathquoted
quoted
Thanks, Vaibhavquoted
From OMAP Point of view - ----------------------- The extra configuration is coefficients, which if we don't exporttoquoted
quoted
user application then I think we are very close to your IP. Extra configuration required other than coeff. RSZ_YENH - which takes 4 params - Algo - Gain - Slope - Core All are part of one register so we can make use of "priv" fieldforquoted
quoted
this configuration.I get it. But S3C64XX is not that much configurable. As you see in user manual, it's a quite simple device. For now I'm still designing my driver, so I'll let you know if I face those issues in my driver. Cheers, Natequoted
quoted
Thanks, Vaibhav Hiremathquoted
Cheers, Nate On Mon, Apr 20, 2009 at 7:11 PM, Hiremath, Vaibhav[off-list ref]quoted
wrote:quoted
Thanks, Vaibhav Hiremathquoted
-----Original Message----- From: linux-media-owner@vger.kernel.org [mailto:linux-media- owner@vger.kernel.org] On Behalf Of Dongsoo Kim Sent: Sunday, April 19, 2009 12:06 PM To: Hans Verkuil Cc: Hiremath, Vaibhav; linux-media@vger.kernel.org; Aguirre Rodriguez, Sergio Alberto; Toivonen Tuukka.O (Nokia-D/Oulu);linux-quoted
quoted
omap@vger.kernel.org; Nagalla, Hari; Sakari Ailus; Jadav,Brijeshquoted
R;quoted
quoted
R, Sivaraj; Hadli, Manjunath; Shah, Hardik; Kumar,Purushotamquoted
quoted
quoted
quoted
quoted
Subject: Re: [RFC] Stand-alone Resizer/Previewer Driversupportquoted
quoted
quoted
quoted
quoted
under V4L2 framework Hello Hans and Hiremath, One of my recent job is making S3C64XX camera interfacedriverquoted
quoted
quoted
(evenquoted
quoted
though other jobs of mine are not finished yet...;-() And, what a incident! S3C64XX has also similar H/W block incameraquoted
quoted
interface. Resizer in S3C camera interface can be used in system widelikequoted
quoted
quoted
thequoted
quoted
one in Omap3.[Hiremath, Vaibhav] Can you share the spec for the same; Iwantedquoted
to verify the configuration part of it? What all configurationisquoted
quoted
quoted
exported to the user?quoted
quoted
But in case of mine, I decided to make it as aTYPE_VIDEO_CAPTUREquoted
quoted
quoted
and TYPE_VIDEO_OUTPUT. I thought that is was enough. Actually I took omap video out(vout?)quoted
quoted
for reference :-)[Hiremath, Vaibhav] I have also implemented the driver is thesamequoted
way and also working with Hans to get it reviewed. But therearequoted
quoted
quoted
some configuration like coeff., luma enhancement, etc... needtoquoted
quoted
quoted
export to the user, where we need to add mechanism in V4L2 framework.quoted
Since we have one more device where we are demanding for M-to-Mquoted
quoted
quoted
operation, I think it is important to go through it. Can yousharequoted
quoted
quoted
some documents of your IP for better understanding.quoted
quoted
Cheers, Nate 2009. 04. 19, 오전 12:53, Hans Verkuil 작성:quoted
On Tuesday 31 March 2009 10:53:02 Hiremath, Vaibhav wrote:quoted
Thanks, Vaibhav Hiremathquoted
quoted
APPROACH 3 - ---------- ..... (Any other approach which I could not think of would beappreciated)quoted
I would prefer second approach, since this will providestandardquoted
quoted
quoted
quoted
interface to applications independent on underneathhardware.quoted
quoted
quoted
quoted
quoted
quoted
There may be many number of such configurationparametersquoted
quoted
quoted
quoted
quoted
requiredquoted
quoted
quoted
forquoted
different such devices, we need to work on this andcomequoted
quoted
upquoted
quoted
quoted
withquoted
quoted
quoted
somequoted
standard capability fields covering most of availabledevices.quoted
quoted
quoted
quoted
quoted
quoted
Does anybody have some other opinions on this? Any suggestions will be helpful here,FYI: I have very little time to look at this for thenextquoted
quoted
2-3quoted
quoted
quoted
weeks.quoted
quoted
quoted
As you know I'm working on the last pieces of the v4l2_subdevconversionquoted
quoted
quoted
for 2.6.30 that should be finished this week. After that I'mattendingquoted
quoted
quoted
thequoted
quoted
quoted
quoted
quoted
Embedded Linux Conference in San Francisco. But I always thought that something like this would bejustquoted
quoted
aquoted
quoted
quoted
quoted
quoted
quoted
regular video device that can do both 'output' and 'capture'. For aresizerquoted
Iquoted
quoted
quoted
quoted
quoted
would expect that you set the 'output' size (the size of yoursourcequoted
quoted
quoted
quoted
quoted
image) and the 'capture' size (the size of the resized image), thenjustquoted
quoted
quoted
sendquoted
quoted
quoted
the frames to the device (== resizer) and get them back onthequoted
quoted
quoted
quoted
quoted
capturequoted
quoted
quoted
side.[Hiremath, Vaibhav] Yes, it is possible to do that. Hans, I went through the link referred by Sergio and I think weshouldquoted
quoted
quoted
quoted
inherit some implementation for CODECs here for such devices. V4L2_BUF_TYPE_CODECIN - To access the input format. V4L2_BUF_TYPE_CODECOUT - To access the output format. It makes sense, since such memory-to-memory devices willmostlyquoted
quoted
beingquoted
quoted
used from codecs context. And this would be more clearfromquoted
quoted
quoted
userquoted
quoted
quoted
quoted
application.To be honest, I don't see the need for this. I think TYPE_VIDEO_CAPTURE and TYPE_VIDEO_OUTPUT are perfectly fine.quoted
And as acknowledged by you, we can use VIDIOC_S_FMT forsettingquoted
quoted
quoted
quoted
parameters. One thing I am not able to convince myself is that, using"priv"quoted
quoted
quoted
quoted
field for custom configuration.I agree. Especially since you cannot use it as a pointertoquoted
quoted
quoted
quoted
quoted
additionquoted
information.quoted
I would prefer and recommend capability based interface, where application will query the capability ofthequoted
quoted
quoted
quoted
quoted
device for luma enhancement, filter coefficients (number of coeffandquoted
quoted
quoted
quoted
quoted
depth),quoted
quoted
interpolation type, etc... This way we can make sure that, any such future devicescanquoted
quoted
bequoted
quoted
quoted
quoted
quoted
adapted by this framework.The big question is how many of these capabilities are'generic'quoted
quoted
andquoted
how many are very much hardware specific. I am leaning towardsusingquoted
quoted
thequoted
extended control API for this. It's a bit awkward toimplementquoted
inquoted
quoted
quoted
drivers at the moment, but that should improve in the future whenaquoted
quoted
lotquoted
ofquoted
quoted
thequoted
control handling code will move into the new coreframework.quoted
quoted
quoted
quoted
quoted
quoted
I really need to know more about the sort of features thatomap/quoted
quoted
quoted
davinci offer (and preferably also for similar devices by other manufacturers).quoted
Hans, Have you get a chance to look at Video-Buf layer issues Imentionedquoted
quoted
in original draft?I've asked Magnus Damm to take a look at this. I know hedidquoted
quoted
quoted
somequoted
quoted
quoted
work in this area and he may have fixed some of these issuesalready.quoted
quoted
quoted
Veryquoted
quoted
quoted
useful, that Embedded Linux conference... Regards, Hans -- Hans Verkuil - video4linux developer - sponsored byTANDBERGquoted
quoted
quoted
quoted
quoted
= DongSoo, Nathaniel Kim Engineer Mobile S/W Platform Lab. Digital Media & Communications R&D Centre Samsung Electronics CO., LTD. e-mail : dongsoo.kim@gmail.com dongsoo45.kim@samsung.com -- To unsubscribe from this list: send the line "unsubscribelinux-quoted
quoted
quoted
media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.htmlquoted
-- ======================================================== DongSoo, Nathaniel Kim Engineer Mobile S/W Platform Lab. Digital Media & Communications R&D Centre Samsung Electronics CO., LTD. e-mail : dongsoo.kim@gmail.com dongsoo45.kim@samsung.com ========================================================-- = DongSoo, Nathaniel Kim Engineer Mobile S/W Platform Lab. Digital Media & Communications R&D Centre Samsung Electronics CO., LTD. e-mail : dongsoo.kim@gmail.com dongsoo45.kim@samsung.com
--
=
DongSoo, Nathaniel Kim
Engineer
Mobile S/W Platform Lab.
Digital Media & Communications R&D Centre
Samsung Electronics CO., LTD.
e-mail : dongsoo.kim@gmail.com
dongsoo45.kim@samsung.com
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html