Re: [Spice-devel] [PATCH v3 1/2] virtio-video: Add virtio video device specification

2020-06-01 Thread Alexandre Courbot
On Fri, May 29, 2020 at 11:22 PM Keiichi Watanabe wrote: > > Hi Dmitry, > > On Wed, May 27, 2020 at 9:12 PM Dmitry Sepp > wrote: > > > > Hi Keiichi, > > > > On Montag, 18. Mai 2020 07:17:53 CEST Keiichi Watanabe wrote: > > > > +struct virtio_video_stream_create { > > > > +struct

Re: [Spice-devel] [PATCH v3 1/2] virtio-video: Add virtio video device specification

2020-05-31 Thread Keiichi Watanabe
Hi Dmitry, On Wed, May 27, 2020 at 9:12 PM Dmitry Sepp wrote: > > Hi Keiichi, > > On Montag, 18. Mai 2020 07:17:53 CEST Keiichi Watanabe wrote: > > > +struct virtio_video_stream_create { > > > +struct virtio_video_cmd_hdr hdr; > > > +le32 in_mem_type; /* One of

Re: [Spice-devel] [PATCH v3 1/2] virtio-video: Add virtio video device specification

2020-05-27 Thread Dmitry Sepp
Hi Keiichi, On Montag, 18. Mai 2020 07:17:53 CEST Keiichi Watanabe wrote: > > +struct virtio_video_stream_create { > > +struct virtio_video_cmd_hdr hdr; > > +le32 in_mem_type; /* One of VIRTIO_VIDEO_MEM_TYPE_* types */ > > +le32 out_mem_type; /* One of

Re: [Spice-devel] [PATCH v3 1/2] virtio-video: Add virtio video device specification

2020-05-18 Thread Keiichi Watanabe
Hi, While I'm writing the next version of this proposal, I came up with some changes on the protocol. Let me share my ideas in advance. I'd like to hear your idea if you have another thought. On Thu, Feb 6, 2020 at 7:21 PM Keiichi Watanabe wrote: > > From: Dmitry Sepp > > The virtio video

Re: [Spice-devel] [PATCH v3 1/2] virtio-video: Add virtio video device specification

2020-04-27 Thread Dmitry Sepp
Hi Keiichi, Thanks for the update. > > Thanks for providing this detailed overview. But again, we have already > > discussed this in a similar way and it does not answer the questions. Ok, > > suppose we set bitrate to 0x as I assumed above. Then the decoder > > code should ideally wait

Re: [Spice-devel] [PATCH v3 1/2] virtio-video: Add virtio video device specification

2020-04-27 Thread Dmitry Sepp
Hi Keiichi, One more addition to the comments below. Currently spec does not define units for bitrate (are units needed for anything else except that?). Let's explicitly state that bitrate is provided in bits per sec, so whatever implementation can do proper conversion if needed. Best

Re: [Spice-devel] [PATCH v3 1/2] virtio-video: Add virtio video device specification

2020-04-24 Thread Keiichi Watanabe
Hi Dmitry, On Tue, Apr 21, 2020 at 5:39 PM Dmitry Sepp wrote: > > Hi Keiichi, > > On Montag, 20. April 2020 11:57:52 CEST Keiichi Watanabe wrote: > > Hi Dmitry, > > > > On Fri, Apr 17, 2020 at 5:09 PM Dmitry Sepp > wrote: > > > Hi, > > > > > > On Donnerstag, 9. April 2020 12:46:27 CEST Keiichi

Re: [Spice-devel] [PATCH v3 1/2] virtio-video: Add virtio video device specification

2020-04-24 Thread Keiichi Watanabe
Hi Dmitry, On Thu, Apr 9, 2020 at 10:23 PM Dmitry Sepp wrote: > > Hi Keiichi, > > On Donnerstag, 9. April 2020 12:46:56 CEST Keiichi Watanabe wrote: > > Hi, > > > > On Tue, Apr 7, 2020 at 11:49 PM Dmitry Sepp > wrote: > > > Hi, > > > > > > > +\item[VIRTIO_VIDEO_CMD_STREAM_DESTROY] Destroy a

Re: [Spice-devel] [PATCH v3 1/2] virtio-video: Add virtio video device specification

2020-04-21 Thread Dmitry Sepp
Hi Keiichi, On Montag, 20. April 2020 11:57:52 CEST Keiichi Watanabe wrote: > Hi Dmitry, > > On Fri, Apr 17, 2020 at 5:09 PM Dmitry Sepp wrote: > > Hi, > > > > On Donnerstag, 9. April 2020 12:46:27 CEST Keiichi Watanabe wrote: > > > Currently, we have three options of the design of per-stream

Re: [Spice-devel] [PATCH v3 1/2] virtio-video: Add virtio video device specification

2020-04-20 Thread Keiichi Watanabe
Hi Dmitry, On Fri, Apr 17, 2020 at 5:09 PM Dmitry Sepp wrote: > > Hi, > > On Donnerstag, 9. April 2020 12:46:27 CEST Keiichi Watanabe wrote: > > Currently, we have three options of the design of per-stream properties: > > > > 1. Have two structs for image format and bitstream format. > > Pros: >

Re: [Spice-devel] [PATCH v3 1/2] virtio-video: Add virtio video device specification

2020-04-17 Thread Dmitry Sepp
Hi, On Donnerstag, 9. April 2020 12:46:27 CEST Keiichi Watanabe wrote: > Currently, we have three options of the design of per-stream properties: > > 1. Have two structs for image format and bitstream format. > Pros: > Well structured. Easy to support uni-directional stream. > Cons: > Not all

Re: [Spice-devel] [PATCH v3 1/2] virtio-video: Add virtio video device specification

2020-04-09 Thread Keiichi Watanabe
Hi, On Tue, Apr 7, 2020 at 11:49 PM Dmitry Sepp wrote: > > Hi, > > > +\item[VIRTIO_VIDEO_CMD_STREAM_DESTROY] Destroy a video stream > > + (context) within the device. > > + > > +\begin{lstlisting} > > +struct virtio_video_stream_destroy { > > +struct virtio_video_cmd_hdr hdr; > > +}; >

Re: [Spice-devel] [PATCH v3 1/2] virtio-video: Add virtio video device specification

2020-04-09 Thread Keiichi Watanabe
Hi Dmitry, On Tue, Apr 7, 2020 at 6:21 PM Dmitry Sepp wrote: > > Hi Alexandre, Keiichi, > > Thanks for the updates, > > On Montag, 6. April 2020 13:46:33 CEST Keiichi Watanabe wrote: > > > > It seems that you're suggesting a big struct where bitstream params, > > image params and all controls

Re: [Spice-devel] [PATCH v3 1/2] virtio-video: Add virtio video device specification

2020-04-09 Thread Dmitry Sepp
Hi Keiichi, On Donnerstag, 9. April 2020 12:46:56 CEST Keiichi Watanabe wrote: > Hi, > > On Tue, Apr 7, 2020 at 11:49 PM Dmitry Sepp wrote: > > Hi, > > > > > +\item[VIRTIO_VIDEO_CMD_STREAM_DESTROY] Destroy a video stream > > > + (context) within the device. > > > + > > > +\begin{lstlisting}

Re: [Spice-devel] [PATCH v3 1/2] virtio-video: Add virtio video device specification

2020-04-07 Thread Dmitry Sepp
Hi Alexandre, Keiichi, Thanks for the updates, On Montag, 6. April 2020 13:46:33 CEST Keiichi Watanabe wrote: > > It seems that you're suggesting a big struct where bitstream params, > image params and all controls are merged into, right? > After rethinking, it makes sense to me. > Originally,

Re: [Spice-devel] [PATCH v3 1/2] virtio-video: Add virtio video device specification

2020-04-07 Thread Dmitry Sepp
Hi, > +\item[VIRTIO_VIDEO_CMD_STREAM_DESTROY] Destroy a video stream > + (context) within the device. > + > +\begin{lstlisting} > +struct virtio_video_stream_destroy { > +struct virtio_video_cmd_hdr hdr; > +}; > +\end{lstlisting} Let's add more strict description to stream_destroy, like

Re: [Spice-devel] [PATCH v3 1/2] virtio-video: Add virtio video device specification

2020-04-06 Thread Keiichi Watanabe
Hi, Thanks Alex for sharing your idea. On Mon, Apr 6, 2020 at 6:32 PM Alexandre Courbot wrote: > > On Mon, Mar 30, 2020 at 6:54 PM Dmitry Sepp > wrote: > > > > Hi Keiichi, > > > > On Freitag, 27. März 2020 04:35:13 CEST Keiichi Watanabe wrote: > > > Hi Dmitry, > > > > > > On Wed, Mar 25, 2020

Re: [Spice-devel] [PATCH v3 1/2] virtio-video: Add virtio video device specification

2020-04-06 Thread Alexandre Courbot
On Mon, Mar 30, 2020 at 6:54 PM Dmitry Sepp wrote: > > Hi Keiichi, > > On Freitag, 27. März 2020 04:35:13 CEST Keiichi Watanabe wrote: > > Hi Dmitry, > > > > On Wed, Mar 25, 2020 at 6:47 PM Dmitry Sepp > wrote: > > > Hi Keiichi, > > > > > > On Montag, 23. März 2020 16:48:14 CET Keiichi Watanabe

Re: [Spice-devel] [PATCH v3 1/2] virtio-video: Add virtio video device specification

2020-03-31 Thread Dmitry Sepp
Hi Keiichi, On Freitag, 27. März 2020 04:35:13 CEST Keiichi Watanabe wrote: > Hi Dmitry, > > On Wed, Mar 25, 2020 at 6:47 PM Dmitry Sepp wrote: > > Hi Keiichi, > > > > On Montag, 23. März 2020 16:48:14 CET Keiichi Watanabe wrote: > > > Hi, > > > > > > On Mon, Mar 23, 2020 at 10:28 PM Dmitry

Re: [Spice-devel] [PATCH v3 1/2] virtio-video: Add virtio video device specification

2020-03-26 Thread Keiichi Watanabe
Hi Dmitry, On Wed, Mar 25, 2020 at 6:47 PM Dmitry Sepp wrote: > > Hi Keiichi, > > On Montag, 23. März 2020 16:48:14 CET Keiichi Watanabe wrote: > > Hi, > > > > On Mon, Mar 23, 2020 at 10:28 PM Dmitry Sepp > > > > wrote: > > > Hi Keiichi, > > > > > > On Montag, 23. März 2020 13:07:54 CET Keiichi

Re: [Spice-devel] [PATCH v3 1/2] virtio-video: Add virtio video device specification

2020-03-25 Thread Dmitry Sepp
Hi Keiichi, On Montag, 23. März 2020 16:48:14 CET Keiichi Watanabe wrote: > Hi, > > On Mon, Mar 23, 2020 at 10:28 PM Dmitry Sepp > > wrote: > > Hi Keiichi, > > > > On Montag, 23. März 2020 13:07:54 CET Keiichi Watanabe wrote: > > > Hi everyone, > > > > > > I have implemented a virtio-video

Re: [Spice-devel] [PATCH v3 1/2] virtio-video: Add virtio video device specification

2020-03-23 Thread Keiichi Watanabe
Hi, On Mon, Mar 23, 2020 at 10:28 PM Dmitry Sepp wrote: > > Hi Keiichi, > > On Montag, 23. März 2020 13:07:54 CET Keiichi Watanabe wrote: > > Hi everyone, > > > > I have implemented a virtio-video device following my v3 spec in > > crosvm, which worked well together with Dmitry's driver [1].

Re: [Spice-devel] [PATCH v3 1/2] virtio-video: Add virtio video device specification

2020-03-23 Thread Keiichi Watanabe
Hi everyone, I have implemented a virtio-video device following my v3 spec in crosvm, which worked well together with Dmitry's driver [1]. I've started preparing v4 proposal to address problems found while implementing the driver and the devices. Regarding v3 protocol, I'm thinking about how we

Re: [Spice-devel] [PATCH v3 1/2] virtio-video: Add virtio video device specification

2020-03-23 Thread Dmitry Sepp
Hi Keiichi, On Montag, 23. März 2020 13:07:54 CET Keiichi Watanabe wrote: > Hi everyone, > > I have implemented a virtio-video device following my v3 spec in > crosvm, which worked well together with Dmitry's driver [1]. I've > started preparing v4 proposal to address problems found while >

Re: [Spice-devel] [PATCH v3 1/2] virtio-video: Add virtio video device specification

2020-03-04 Thread Alexandre Courbot
On Wed, Mar 4, 2020 at 3:43 PM Gerd Hoffmann wrote: > > Hi, > > > > With a feature flag both driver and device can choose whenever they want > > > support v1 or v2 or both. With a version config field this is more > > > limited, the device can't decide to support both. So the bonus points > >

Re: [Spice-devel] [PATCH v3 1/2] virtio-video: Add virtio video device specification

2020-03-04 Thread Gerd Hoffmann
Hi, > > With a feature flag both driver and device can choose whenever they want > > support v1 or v2 or both. With a version config field this is more > > limited, the device can't decide to support both. So the bonus points > > for a smooth transition go to the feature flags not the version

Re: [Spice-devel] [PATCH v3 1/2] virtio-video: Add virtio video device specification

2020-03-04 Thread Alexandre Courbot
On Thu, Feb 27, 2020 at 6:29 PM Gerd Hoffmann wrote: > > Hi, > > > Dmitry's virtio-video driver > > https://patchwork.linuxtv.org/patch/61717/. > > Once it becomes fully functional, I'll post a list of possible > > improvements of protocol. > > Cool. Actually implementing things can find

Re: [Spice-devel] [PATCH v3 1/2] virtio-video: Add virtio video device specification

2020-02-27 Thread Gerd Hoffmann
Hi, > Dmitry's virtio-video driver > https://patchwork.linuxtv.org/patch/61717/. > Once it becomes fully functional, I'll post a list of possible > improvements of protocol. Cool. Actually implementing things can find design problems in the protocol you didn't notice earlier. > > >

Re: [Spice-devel] [PATCH v3 1/2] virtio-video: Add virtio video device specification

2020-02-26 Thread Keiichi Watanabe
Thanks for the review, Gerd. Please see my replies inline below. FYI, I'm implementing virtio-video device for ChromeOS that works with Dmitry's virtio-video driver https://patchwork.linuxtv.org/patch/61717/. Once it becomes fully functional, I'll post a list of possible improvements of protocol.

Re: [Spice-devel] [PATCH v3 1/2] virtio-video: Add virtio video device specification

2020-02-25 Thread Gerd Hoffmann
On Thu, Feb 06, 2020 at 07:20:57PM +0900, Keiichi Watanabe wrote: > From: Dmitry Sepp > > 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

[Spice-devel] [PATCH v3 1/2] virtio-video: Add virtio video device specification

2020-02-06 Thread Keiichi Watanabe
From: Dmitry Sepp 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 Signed-off-by: Keiichi Watanabe