From: Gerd Hoffmann <kraxel@redhat.com> To: Keiichi Watanabe <keiichiw@chromium.org> Cc: virtio-dev@lists.oasis-open.org, linux-media@vger.kernel.org, acourbot@chromium.org, alexlau@chromium.org, daniel@ffwll.ch, dgreid@chromium.org, dstaessens@chromium.org, dmitry.sepp@opensynergy.com, egranata@google.com, fziglio@redhat.com, hverkuil@xs4all.nl, marcheu@chromium.org, posciak@chromium.org, spice-devel@lists.freedesktop.org, stevensd@chromium.org, tfiga@chromium.org, uril@redhat.com, samiullah.khawaja@opensynergy.com, kiran.pawar@opensynergy.com Subject: Re: [PATCH v3 1/2] virtio-video: Add virtio video device specification Date: Tue, 25 Feb 2020 10:59:56 +0100 Message-ID: <20200225095956.7rtwugfru4dbjj7q@sirius.home.kraxel.org> (raw) In-Reply-To: <20200206102058.247258-2-keiichiw@chromium.org> On Thu, Feb 06, 2020 at 07:20:57PM +0900, Keiichi Watanabe wrote: > From: Dmitry Sepp <dmitry.sepp@opensynergy.com> > > The virtio video encoder device and decoder device provide functionalities to > encode and decode video stream respectively. > Though video encoder and decoder are provided as different devices, they use a > same protocol. > > Signed-off-by: Dmitry Sepp <dmitry.sepp@opensynergy.com> > Signed-off-by: Keiichi Watanabe <keiichiw@chromium.org> Finally found the time for a closer look. Pretty good overall, some minor nits below ... > +\begin{description} > +\item[\field{version}] is the protocol version that the device talks. > + The device MUST set this to 0. What is the intended use case for this? Given that virtio has feature flags to negotiate support for optional features and protocol extensions between driver and device, why do you think this is needed? > +The format description \field{virtio_video_format_desc} is defined as > +follows: > +\begin{lstlisting} > +enum virtio_video_format { > + /* Raw formats */ > + VIRTIO_VIDEO_FORMAT_RAW_MIN = 1, > + VIRTIO_VIDEO_FORMAT_ARGB8888 = VIRTIO_VIDEO_FORMAT_RAW_MIN, > + VIRTIO_VIDEO_FORMAT_BGRA8888, > + VIRTIO_VIDEO_FORMAT_NV12, /* 12 Y/CbCr 4:2:0 */ > + VIRTIO_VIDEO_FORMAT_YUV420, /* 12 YUV 4:2:0 */ > + VIRTIO_VIDEO_FORMAT_YVU420, /* 12 YVU 4:2:0 */ > + VIRTIO_VIDEO_FORMAT_RAW_MAX = VIRTIO_VIDEO_FORMAT_YVU420, I'm wondering what the *_MIN and *_MAX values here (and elsewhere) are good for? I doubt drivers would actually loop over formats from min to max, I'd expect they check for specific formats they can handle instead. If you want define the range for valid raw formats I'd suggest to leave some room, so new formats can be added without changing MAX values, i.e. use -- for example -- RAW_MIN = 0x100, RAW_MAX = 0x1ff, CODED_MIN=0x200, CODED_MAX=0x2ff. Or just drop them ... > +struct virtio_video_query_control_level { > + le32 profile; /* One of VIRTIO_VIDEO_PROFILE_* */ ^^^^^^^ LEVEL ? cheers, Gerd
next prev parent reply other threads:[~2020-02-25 10:00 UTC|newest] Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-02-06 10:20 [PATCH v3 0/2] Virtio " Keiichi Watanabe 2020-02-06 10:20 ` [PATCH v3 1/2] virtio-video: Add virtio " Keiichi Watanabe 2020-02-25 9:59 ` Gerd Hoffmann [this message] 2020-02-27 7:24 ` Keiichi Watanabe 2020-02-27 9:28 ` Gerd Hoffmann 2020-03-04 4:31 ` Alexandre Courbot 2020-03-04 6:42 ` Gerd Hoffmann 2020-03-04 10:07 ` Alexandre Courbot 2020-03-23 12:07 ` Keiichi Watanabe 2020-03-23 13:28 ` Dmitry Sepp 2020-03-23 15:48 ` Keiichi Watanabe 2020-03-25 9:47 ` Dmitry Sepp 2020-03-27 3:35 ` Keiichi Watanabe 2020-03-30 9:53 ` Dmitry Sepp 2020-04-06 9:32 ` Alexandre Courbot 2020-04-06 11:46 ` Keiichi Watanabe 2020-04-07 9:21 ` Dmitry Sepp 2020-04-09 10:46 ` Keiichi Watanabe 2020-04-17 8:08 ` Dmitry Sepp 2020-04-20 9:57 ` Keiichi Watanabe 2020-04-21 8:38 ` Dmitry Sepp 2020-04-24 11:42 ` Keiichi Watanabe 2020-04-27 14:28 ` Dmitry Sepp 2020-04-07 14:49 ` Dmitry Sepp 2020-04-09 10:46 ` Keiichi Watanabe 2020-04-09 13:13 ` Dmitry Sepp 2020-04-24 11:45 ` Keiichi Watanabe 2020-04-27 9:33 ` Dmitry Sepp 2020-05-18 5:17 ` Keiichi Watanabe 2020-05-27 12:12 ` Dmitry Sepp 2020-05-29 14:21 ` Keiichi Watanabe 2020-06-01 7:19 ` Alexandre Courbot 2020-02-06 10:20 ` [PATCH v3 2/2] virtio-video: Define a feature for exported objects from different virtio devices Keiichi Watanabe 2020-02-25 10:01 ` Gerd Hoffmann 2020-02-27 7:24 ` Keiichi Watanabe
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=20200225095956.7rtwugfru4dbjj7q@sirius.home.kraxel.org \ --to=kraxel@redhat.com \ --cc=acourbot@chromium.org \ --cc=alexlau@chromium.org \ --cc=daniel@ffwll.ch \ --cc=dgreid@chromium.org \ --cc=dmitry.sepp@opensynergy.com \ --cc=dstaessens@chromium.org \ --cc=egranata@google.com \ --cc=fziglio@redhat.com \ --cc=hverkuil@xs4all.nl \ --cc=keiichiw@chromium.org \ --cc=kiran.pawar@opensynergy.com \ --cc=linux-media@vger.kernel.org \ --cc=marcheu@chromium.org \ --cc=posciak@chromium.org \ --cc=samiullah.khawaja@opensynergy.com \ --cc=spice-devel@lists.freedesktop.org \ --cc=stevensd@chromium.org \ --cc=tfiga@chromium.org \ --cc=uril@redhat.com \ --cc=virtio-dev@lists.oasis-open.org \ /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
Unnamed repository; edit this file 'description' to name the repository. This inbox may be cloned and mirrored by anyone: git clone --mirror http://archive.lwn.net:8080/linux-media/0 linux-media/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 linux-media linux-media/ http://archive.lwn.net:8080/linux-media \ linux-media@vger.kernel.org lwn-linux-media@archive.lwn.net public-inbox-index linux-media Example config snippet for mirrors. Newsgroup available over NNTP: nntp://archive.lwn.net/lwn.kernel.linux-media AGPL code for this site: git clone https://public-inbox.org/public-inbox.git