Re: [PATCH 3/3] [media] tvp5150: Migrate to media-controller framework and add video format detection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Javier,

On Monday 03 October 2011 11:53:44 Javier Martinez Canillas wrote:

[snip]

> Laurent, I have a few questions about MCF and the OMAP3ISP driver if
> you are so kind to answer.
> 
> 1- User-space programs that are not MCF aware negotiate the format
> with the V4L2 device (i.e: OMAP3 ISP CCDC output), which is a sink
> pad. But the real format is driven by the analog video format in the
> source pad (i.e: tvp5151).

That's not different from existing systems using digital sensors, where the 
format is driven by the sensor.

> I modified the ISP driver to get the data format from the source pad
> and set the format for each pad on the pipeline accordingly but I've
> read from the documentation [1] that is not correct to propagate a
> data format from source pads to sink pads, that the correct thing is
> to do it from sink to source.
> 
> So, in this case an administrator has to externally configure the
> format for each pad and to guarantee a coherent format on the whole
> pipeline?.

That's correct (except you don't need to be an administrator to do so :-)).

> Or does exist a way to do this automatic?. i.e: The output entity on the
> pipeline promotes the capabilities of the source pad so applications can
> select a data format and this format gets propagated all over the pipeline
> from the sink pad to the source?

It can be automated in userspace (through a libv4l plugin for instance), but 
it's really not the kernel's job to do so.

> [1]: http://linuxtv.org/downloads/v4l-dvb-apis/subdev.html
> 
> 2- If the application want a different format that the default
> provided by the tvp5151, (i.e: 720x576 for PAL), where do I have to
> crop the image? I thought this can be made using the CCDC, copying
> less lines to memory or the RESIZER if the application wants a bigger
> image. What is the best approach for this?

Cropping can be done in the resizer, and I will soon post patches that add 
cropping support in the preview engine (although that will be useless for the 
TVP5151, as the preview engine doesn't support YUV data). The CCDC supports 
cropping too, but that's not implemented in the driver yet.

> 3- When using embedded sync, CCDC doesn't have an external vertical
> sync signal, so we have to manually configure when we want the VD0
> interrupt to raise. This works for progressive frames, since each
> frame has the same size but in the case of interlaced video,
> sub-frames have different sizes (i.e: 313 and 312 vertical lines for
> PAL).
> 
> What I did is to reconfigure the CCDC on the VD1 interrupt handler,
> but I think this is more a hack than a clean solution. What do you
> think is the best approach to solve this?

I *really* wish the CCDC had an end of frame interrupt :-( I'm not sure if 
there's a non-hackish solution to this.

-- 
Regards,

Laurent Pinchart
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux