Skip to contentSkip to conversation

V4L-DVB Summit Day 1

DISCUSSION Hans Verkuil 4 participants 7 messages Sep 24, 2009 – Sep 26, 2009 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hi all,

As most of you know I organized a v4l-dvb summit (well, really a v4l2 summit as there were no dvb topics to discuss) during the Linux Plumbers Conference in Portland. This summit will take all three days of this conference, and I intend to make a short report at the end of each day.

First of all I want to thank everyone who attended this first day of the
summit: we had a great turn-out with seven core v4l-dvb developers, three TI engineers, two Nokia engineers, two engineers from Samsung and an Intel engineer. I know I've forgotten someone, I'll try to fix that tomorrow.

But it meant that the main SoC vendors with complex video hardware were well represented.

The summit started off with an overview of the proposed media controller and an overview of the features of several SoCs to give an idea of what sort of complexity has to be supported in the future. I'll try to get some of the presentations up on my site. Unfortunately, not all presentations can be made public. The main message that came across though is that these complex devices with big pipelines, scalers, composers, colorspace converters, etc. require a completely new way of working.

While we did discuss the concepts of the media controller, we did not go into much detail: that is scheduled for Thursday.

In the afternoon we discussed the proposed timings API. There was no opposition to this API. The idea I had to also use this for sensor setup turned out to be based on a misconception on how the S_FMT relates to sensors. ENUM_FRAMESIZES basically gives you the possible resolutions that the scaler hidden inside the bridge can scale the native sensor resolution. It does not enumerate the various native sensor resolutions, since there is only one. So S_FMT really sets up the scaler.

So we can proceed with the timings RFC and hopefully have this implemented for 2.6.33.

Next was the event API proposal: this caused some more discussions, in particular since the original RFC had no provision for (un)subscribing to events. The idea is that we want to subscribe to events on a per-filehandle basis. The core framework can keep track of events and distribute them to filehandles that 'listen' to them. So this RFC will clearly need to go to at least one revision.

That was also a good point to stop for the day and head out to get free beer and food :-)

Scheduled for Thursday is a discussion of the proposed memory pool and continued media controller discussions.

Regards,

Hans

#1 lore raw

About S_FMT, Moorestown Camera driver which I am working on has a different story.

We do use different sensor resolutions, because high resolution has low FPS, and can not be used for view-finding, e.g. ov5630 only output 15fps with 5Mega resolution.

Our current solution is to disable the scaler in ISP and only support the resolutions that sensor can provide. So S_FMT will set the framesize into sensor.

Best Regards
Jinlu Yu
UMG UPSG PRC

INET: 8758 1603
TEL:  86 10 8217 1603
FAX:  86 10 8286 1400

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Hans Verkuil
Sent: 2009年9月24日 13:39
To: [email protected]
Subject: V4L-DVB Summit Day 1

Hi all,

As most of you know I organized a v4l-dvb summit (well, really a v4l2 summit as there were no dvb topics to discuss) during the Linux Plumbers Conference in Portland. This summit will take all three days of this conference, and I intend to make a short report at the end of each day.

First of all I want to thank everyone who attended this first day of the
summit: we had a great turn-out with seven core v4l-dvb developers, three TI engineers, two Nokia engineers, two engineers from Samsung and an Intel engineer. I know I've forgotten someone, I'll try to fix that tomorrow.

But it meant that the main SoC vendors with complex video hardware were well represented.

The summit started off with an overview of the proposed media controller and an overview of the features of several SoCs to give an idea of what sort of complexity has to be supported in the future. I'll try to get some of the presentations up on my site. Unfortunately, not all presentations can be made public. The main message that came across though is that these complex devices with big pipelines, scalers, composers, colorspace converters, etc. require a completely new way of working.

While we did discuss the concepts of the media controller, we did not go into much detail: that is scheduled for Thursday.

In the afternoon we discussed the proposed timings API. There was no opposition to this API. The idea I had to also use this for sensor setup turned out to be based on a misconception on how the S_FMT relates to sensors. ENUM_FRAMESIZES basically gives you the possible resolutions that the scaler hidden inside the bridge can scale the native sensor resolution. It does not enumerate the various native sensor resolutions, since there is only one. So S_FMT really sets up the scaler.

So we can proceed with the timings RFC and hopefully have this implemented for 2.6.33.

Next was the event API proposal: this caused some more discussions, in particular since the original RFC had no provision for (un)subscribing to events. The idea is that we want to subscribe to events on a per-filehandle basis. The core framework can keep track of events and distribute them to filehandles that 'listen' to them. So this RFC will clearly need to go to at least one revision.

That was also a good point to stop for the day and head out to get free beer and food :-)

Scheduled for Thursday is a discussion of the proposed memory pool and continued media controller discussions.

Regards,

Hans
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
In reply to Hans Verkuil

Hi Hans

Thanks for keeping us updated. One comment:

Quoted 7 lines · Hans Verkuil

In the afternoon we discussed the proposed timings API. There was no opposition to this API. The idea I had to also use this for sensor setup turned out to be based on a misconception on how the S_FMT relates to sensors. ENUM_FRAMESIZES basically gives you the possible resolutions that the scaler hidden inside the bridge can scale the native sensor resolution. It does not enumerate the various native sensor resolutions, since there is only one. So S_FMT really sets up the scaler.

Just as Jinlu Yu noticed in his email, this doesn't reflect the real situation, I am afraid. You can use binning and skipping on the sensor to scale the image, and you can also use the bridge to do the scaling, as you say. Worth than that, there's also a case, where there _several_ ways to perform scaling on the sensor, among which one can freely choose, and the host can scale too. And indeed it makes sense to scale on the source to save the bandwidth and thus increase the framerate. So, what I'm currently doing on sh-mobile, I try to scale on the client - in the best possible way. And then use bridge scaling to provide the exact result.

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/

#3 lore raw
Quoted 14 lines · Guennadi Liakhovetski

Hi Hans

Thanks for keeping us updated. One comment:

Quoted 7 lines · Hans Verkuil

In the afternoon we discussed the proposed timings API. There was no opposition to this API. The idea I had to also use this for sensor setup turned out to be based on a misconception on how the S_FMT relates to sensors. ENUM_FRAMESIZES basically gives you the possible resolutions that the scaler hidden inside the bridge can scale the native sensor resolution. It does not enumerate the various native sensor resolutions, since there is only one. So S_FMT really sets up the scaler.

Quoted 10 lines

Just as Jinlu Yu noticed in his email, this doesn't reflect the real situation, I am afraid. You can use binning and skipping on the sensor to scale the image, and you can also use the bridge to do the scaling, as you say. Worth than that, there's also a case, where there _several_ ways to perform scaling on the sensor, among which one can freely choose, and the host can scale too. And indeed it makes sense to scale on the source to save the bandwidth and thus increase the framerate. So, what I'm currently doing on sh-mobile, I try to scale on the client - in the best possible way. And then use bridge scaling to provide the exact result.

Yes I do agree with you. And it is highly necessary to provide a clear method which obviously indicates which device to use in scaling job. When I use some application processors which provide camera peripherals with scaler inside and external ISP attached, there is no way to use both scaler features inside them. I just need to choose one of them.
Cheers,

Nate

Signature · 8 lines
=
DongSoo, Nathaniel Kim
Engineer
Mobile S/W Platform Lab.
Digital Media & Communications R&D Centre
Samsung Electronics CO., LTD.
e-mail : [email protected]
          [email protected]
#4 lore raw
Quoted 27 lines · Nathaniel Kim
Quoted 14 lines · Guennadi Liakhovetski

Hi Hans

Thanks for keeping us updated. One comment:

Quoted 7 lines · Hans Verkuil

In the afternoon we discussed the proposed timings API. There was no opposition to this API. The idea I had to also use this for sensor setup turned out to be based on a misconception on how the S_FMT relates to sensors. ENUM_FRAMESIZES basically gives you the possible resolutions that the scaler hidden inside the bridge can scale the native sensor resolution. It does not enumerate the various native sensor resolutions, since there is only one. So S_FMT really sets up the scaler.

Quoted 10 lines

Just as Jinlu Yu noticed in his email, this doesn't reflect the real situation, I am afraid. You can use binning and skipping on the sensor to scale the image, and you can also use the bridge to do the scaling, as you say. Worth than that, there's also a case, where there _several_ ways to perform scaling on the sensor, among which one can freely choose, and the host can scale too. And indeed it makes sense to scale on the source to save the bandwidth and thus increase the framerate. So, what I'm currently doing on sh-mobile, I try to scale on the client - in the best possible way. And then use bridge scaling to provide the exact result.

Quoted 6 lines

Yes I do agree with you. And it is highly necessary to provide a clear method which obviously indicates which device to use in scaling job. When I use some application processors which provide camera peripherals with scaler inside and external ISP attached, there is no way to use both scaler features inside them. I just need to choose one of them.

Well, I don't necessarily agree, in fact, I do use both scaling engines in my sh setup. The argument is as mentioned above - bus usage and framerate optimisation. So, what I am doing is: I try to scale on the sensor as close as possible, and then scale further on the host (SoC). This works well, only calculations are not very trivial. But you only have to perform them once during setup, so, it's not time-critical. Might be worth implementing such calculations somewhere centrally to reduce error chances in specific drivers. Same with cropping.

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/

#5 lore raw
Quoted 36 lines · Guennadi Liakhovetski
Quoted 27 lines · Nathaniel Kim
Quoted 14 lines · Guennadi Liakhovetski

Hi Hans

Thanks for keeping us updated. One comment:

Quoted 7 lines · Hans Verkuil

In the afternoon we discussed the proposed timings API. There was no opposition to this API. The idea I had to also use this for sensor setup turned out to be based on a misconception on how the S_FMT relates to sensors. ENUM_FRAMESIZES basically gives you the possible resolutions that the scaler hidden inside the bridge can scale the native sensor resolution. It does not enumerate the various native sensor resolutions, since there is only one. So S_FMT really sets up the scaler.

Quoted 10 lines

Just as Jinlu Yu noticed in his email, this doesn't reflect the real situation, I am afraid. You can use binning and skipping on the sensor to scale the image, and you can also use the bridge to do the scaling, as you say. Worth than that, there's also a case, where there _several_ ways to perform scaling on the sensor, among which one can freely choose, and the host can scale too. And indeed it makes sense to scale on the source to save the bandwidth and thus increase the framerate. So, what I'm currently doing on sh-mobile, I try to scale on the client - in the best possible way. And then use bridge scaling to provide the exact result.

Quoted 6 lines

Yes I do agree with you. And it is highly necessary to provide a clear method which obviously indicates which device to use in scaling job. When I use some application processors which provide camera peripherals with scaler inside and external ISP attached, there is no way to use both scaler features inside them. I just need to choose one of them.

Quoted 9 lines

Well, I don't necessarily agree, in fact, I do use both scaling engines in my sh setup. The argument is as mentioned above - bus usage and framerate optimisation. So, what I am doing is: I try to scale on the sensor as close as possible, and then scale further on the host (SoC). This works well, only calculations are not very trivial. But you only have to perform them once during setup, so, it's not time-critical. Might be worth implementing such calculations somewhere centrally to reduce error chances in specific drivers. Same with cropping.

I think that is a good approach. And considering the image quality, I should make bypass the scaler when user is requesting the exact resolution supported by the external camera ISP. Because some of camera interface embedded scalers are very poor in image quality and performance thus they may reduce in framerate as well. So, user can choose "with scaler" or "without scaler".
Cheers,

Nate

Signature · 8 lines
=
DongSoo, Nathaniel Kim
Engineer
Mobile S/W Platform Lab.
Digital Media & Communications R&D Centre
Samsung Electronics CO., LTD.
e-mail : [email protected]
          [email protected]
#6 lore raw
Quoted 65 lines
Quoted 48 lines · Guennadi Liakhovetski
Quoted 39 lines · Nathaniel Kim
Quoted 8 lines · Guennadi Liakhovetski

Hi Hans

Thanks for keeping us updated. One comment:

Quoted 2 lines · Hans Verkuil

In the afternoon we discussed the proposed timings API. There was no opposition to this API. The idea I had to also use this for sensor

setup

Quoted 1 line
Quoted 1 line

turned out to be based on a misconception on how the S_FMT relates

to sensors.

Quoted 1 line
Quoted 1 line

ENUM_FRAMESIZES basically gives you the possible resolutions that

the scaler

Quoted 1 line
Quoted 1 line

hidden inside the bridge can scale the native sensor resolution. It

does not

Quoted 1 line
Quoted 1 line

enumerate the various native sensor resolutions, since there is only

one. So

Quoted 4 lines
Quoted 1 line

S_FMT really sets up the scaler.

Just as Jinlu Yu noticed in his email, this doesn't reflect the real situation, I am afraid. You can use binning and skipping on the

sensor to

Quoted 1 line

scale the image, and you can also use the bridge to do the scaling,

as you

Quoted 1 line

say. Worth than that, there's also a case, where there _several_ ways

to

Quoted 1 line

perform scaling on the sensor, among which one can freely choose, and

the

Quoted 1 line

host can scale too. And indeed it makes sense to scale on the source

to

Quoted 1 line

save the bandwidth and thus increase the framerate. So, what I'm

currently

Quoted 1 line

doing on sh-mobile, I try to scale on the client - in the best

possible

Quoted 2 lines

way. And then use bridge scaling to provide the exact result.

Quoted 6 lines

Yes I do agree with you. And it is highly necessary to provide a clear method which obviously indicates which device to use in scaling job. When I use some application processors which provide camera peripherals with scaler inside and external ISP attached, there is no way to use both scaler features inside them. I just need to choose one of them.

Quoted 13 lines

Well, I don't necessarily agree, in fact, I do use both scaling engines in
my sh setup. The argument is as mentioned above - bus usage and framerate
optimisation. So, what I am doing is: I try to scale on the sensor as close as possible, and then scale further on the host (SoC). This works well, only calculations are not very trivial. But you only have to perform
them once during setup, so, it's not time-critical. Might be worth implementing such calculations somewhere centrally to reduce error chances
in specific drivers. Same with cropping.

Quoted 6 lines

I think that is a good approach. And considering the image quality, I should make bypass the scaler when user is requesting the exact resolution supported by the external camera ISP. Because some of camera interface embedded scalers are very poor in image quality and performance thus they may reduce in framerate as well. So, user can choose "with scaler" or "without scaler".

There are two ways of doing this: one is to have a smart driver that will attempt to do the best thing (soc-camera, uvc, gspca), the other will be to give the application writer full control of the SoC capabilities through the media controller. Through a media controller you will be able to setup the sensor scaler and a SoC scaler independently.

For a digital camera for example you probably want to be able to control the hardware from the application in order to get the very best results, rather than let the driver do it.

Regards,

Hans

Signature · 1 line
Hans Verkuil - video4linux developer - sponsored by TANDBERG Telecom