Linux Media Controller development
 help / color / mirror / Atom feed
From: 'Sakari Ailus' <sakari.ailus@iki.fi>
To: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: "Kamil Debski" <k.debski@samsung.com>,
	"'Laurent Pinchart'" <laurent.pinchart@ideasonboard.com>,
	linux-media@vger.kernel.org,
	"'Sebastian Dröge'" <sebastian.droege@collabora.co.uk>,
	"Sylwester Nawrocki" <s.nawrocki@samsung.com>,
	"Marek Szyprowski" <m.szyprowski@samsung.com>,
	"'Hans Verkuil'" <hans.verkuil@cisco.com>
Subject: Re: [RFC] Resolution change support in video codecs in v4l2
Date: Sat, 10 Dec 2011 11:17:15 +0200	[thread overview]
Message-ID: <20111210091715.GD1967@valkosipuli.localdomain> (raw)
In-Reply-To: <4EDE454D.5060605@redhat.com>

Hi Mauro,

On Tue, Dec 06, 2011 at 02:39:41PM -0200, Mauro Carvalho Chehab wrote:
...
> >I think that still it should contain no useful data, just *_FORMAT_CHANGED | *_ERROR
> >flags set. Then the application could decide whether it keeps the current
> >size/alignment/... or should it allocate new buffers. Then ACK the driver.
> 
> This will cause frame losses on Capture devices. It probably doesn't make sense to
> define resolution change support like this for output devices.
> 
> Eventually, we may have an extra flag: *_PAUSE. If *_PAUSE is detected, a VIDEO_DECODER_CMD
> is needed to continue.
> 
> So, on M2M devices, the 3 flags are raised and the buffer is not filled.  This would cover
> Sakari's case.

This sounds good in my opinion. I've been concentrated to memory-to-memory
devices so far, but I now reckon the data to be processed might not arrive
from the system memory.

I agree we need different behaviour in the two cases: when the data arrives
from the system memory, no loss of decoded data should happen due to
reconfiguration of the device done by the user --- which sometimes is
mandatory.

Would pause, as you propose it, be set by the driver, or by the application
in the intent to indicate the stream should be stopped whenever the format
changes, or both?

> >The thing is that we have two queues in memory-to-memory devices.
> >I think the above does apply to the CAPTURE queue:
> >- no processing is done after STREAMOFF
> >- buffers that have been queue are dequeued and their content is lost
> >Am I wrong?
> 
> This is what is there at the spec. I think we need to properly specify what
> happens for M2M devices.

I fully agree. Different device profiles have a role in this.

Cheers,

-- 
Sakari Ailus
e-mail: sakari.ailus@iki.fi	jabber/XMPP/Gmail: sailus@retiisi.org.uk

  parent reply	other threads:[~2011-12-10  9:17 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-02 10:31 [RFC] Resolution change support in video codecs in v4l2 Kamil Debski
2011-12-02 12:35 ` Mauro Carvalho Chehab
2011-12-02 13:57   ` Sakari Ailus
2011-12-02 15:41     ` Kamil Debski
2011-12-02 17:07       ` Mauro Carvalho Chehab
2011-12-02 17:32         ` Kamil Debski
2011-12-02 18:09           ` Mauro Carvalho Chehab
2011-12-06 12:00           ` Laurent Pinchart
2011-12-06 14:28             ` 'Sakari Ailus'
2011-12-06 14:41               ` Mauro Carvalho Chehab
2011-12-06 15:19                 ` Kamil Debski
2011-12-06 15:40                   ` Mauro Carvalho Chehab
2011-12-06 16:11                     ` Kamil Debski
2011-12-06 16:39                       ` Mauro Carvalho Chehab
2011-12-07 11:49                         ` Kamil Debski
2011-12-10  9:17                         ` 'Sakari Ailus' [this message]
2011-12-12 11:11                     ` Laurent Pinchart
2011-12-03  0:08         ` 'Sakari Ailus'
2011-12-05 13:01           ` Mauro Carvalho Chehab
2011-12-02 16:50     ` Mauro Carvalho Chehab
2011-12-06 14:35       ` Sakari Ailus
2011-12-06 15:03         ` Kamil Debski
2011-12-09 19:54           ` 'Sakari Ailus'
2011-12-12 10:17             ` Kamil Debski
2012-01-01 22:29               ` 'Sakari Ailus'
2012-01-04 10:19                 ` Kamil Debski
2012-01-11 22:30                   ` 'Sakari Ailus'
2011-12-12 10:59           ` Laurent Pinchart
2011-12-12 11:09             ` Kamil Debski
2011-12-06 16:20         ` Mauro Carvalho Chehab
2011-12-06 22:41           ` Sakari Ailus
2011-12-07 11:12             ` Kamil Debski
2011-12-09 19:58               ` 'Sakari Ailus'

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111210091715.GD1967@valkosipuli.localdomain \
    --to=sakari.ailus@iki.fi \
    --cc=hans.verkuil@cisco.com \
    --cc=k.debski@samsung.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-media@vger.kernel.org \
    --cc=m.szyprowski@samsung.com \
    --cc=mchehab@redhat.com \
    --cc=s.nawrocki@samsung.com \
    --cc=sebastian.droege@collabora.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox