xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Juergen Gross <jgross@suse.com>
To: Oleksandr Andrushchenko <andr2000@gmail.com>,
	xen-devel@lists.xenproject.org, konrad.wilk@oracle.com,
	boris.ostrovsky@oracle.com, mchehab@kernel.org,
	linux-media@vger.kernel.org, sakari.ailus@linux.intel.com,
	koji.matsuoka.xm@renesas.com
Cc: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Subject: Re: [PATCH 1/1] cameraif: add ABI for para-virtual camera
Date: Tue, 14 Aug 2018 10:30:23 +0200	[thread overview]
Message-ID: <99cd131d-85ae-bbfb-61ef-fdc0401727f6@suse.com> (raw)
In-Reply-To: <20180731093142.3828-2-andr2000@gmail.com>

On 31/07/18 11:31, Oleksandr Andrushchenko wrote:
> From: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
> 
> This is the ABI for the two halves of a para-virtualized
> camera driver which extends Xen's reach multimedia capabilities even
> farther enabling it for video conferencing, In-Vehicle Infotainment,
> high definition maps etc.
> 
> The initial goal is to support most needed functionality with the
> final idea to make it possible to extend the protocol if need be:
> 
> 1. Provide means for base virtual device configuration:
>  - pixel formats
>  - resolutions
>  - frame rates
> 2. Support basic camera controls:
>  - contrast
>  - brightness
>  - hue
>  - saturation
> 3. Support streaming control
> 4. Support zero-copying use-cases
> 
> Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>

Some style issues below...

> ---
>  xen/include/public/io/cameraif.h | 981 +++++++++++++++++++++++++++++++
>  1 file changed, 981 insertions(+)
>  create mode 100644 xen/include/public/io/cameraif.h
> 
> diff --git a/xen/include/public/io/cameraif.h b/xen/include/public/io/cameraif.h
> new file mode 100644
> index 000000000000..bdc6a1262fcf
> --- /dev/null
> +++ b/xen/include/public/io/cameraif.h

> +struct xencamera_config {
> +    uint32_t pixel_format;
> +    uint32_t width;
> +    uint32_t height;
> +    uint32_t frame_rate_nom;
> +    uint32_t frame_rate_denom;
> +    uint8_t num_bufs;

Add explicit padding?

> +};

> +struct xencamera_req {
> +    uint16_t id;
> +    uint8_t operation;
> +    uint8_t reserved[5];
> +    union {
> +        struct xencamera_config config;
> +        struct xencamera_buf_create_req buf_create;
> +	struct xencamera_buf_destroy_req buf_destroy;
> +	struct xencamera_set_ctrl_req set_ctrl;

No tabs, please.

> +        uint8_t reserved[56];
> +    } req;
> +};
> +
> +struct xencamera_resp {
> +    uint16_t id;
> +    uint8_t operation;
> +    uint8_t reserved;
> +    int32_t status;
> +    union {
> +        struct xencamera_config config;
> +        struct xencamera_buf_details_resp buf_details;
> +	struct xencamera_get_ctrl_details_resp ctrl_details;

Tab again.

> +        uint8_t reserved1[56];
> +    } resp;
> +};


Juergen

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  reply	other threads:[~2018-08-14  8:30 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-31  9:31 [PATCH 0/1] cameraif: Add ABI for para-virtualized Oleksandr Andrushchenko
2018-07-31  9:31 ` [PATCH 1/1] cameraif: add ABI for para-virtual camera Oleksandr Andrushchenko
2018-08-14  8:30   ` Juergen Gross [this message]
2018-08-21  5:54     ` Oleksandr Andrushchenko
2018-09-03 10:16       ` Oleksandr Andrushchenko
2018-09-03 15:25         ` Hans Verkuil
2018-09-04  6:56           ` Oleksandr Andrushchenko
2018-09-09 10:42             ` Hans Verkuil
2018-09-10  5:59               ` Oleksandr Andrushchenko
2018-09-10  8:14                 ` Hans Verkuil
2018-09-10  8:34                   ` Oleksandr Andrushchenko
2018-09-09 10:31   ` Hans Verkuil
2018-09-10  7:16     ` Oleksandr Andrushchenko
2018-09-10  7:53       ` Hans Verkuil
2018-09-10  8:24         ` Oleksandr Andrushchenko
2018-09-10  9:04           ` Hans Verkuil
2018-09-10  9:52             ` Oleksandr Andrushchenko
2018-09-10 11:09               ` Hans Verkuil
2018-09-10 11:49                 ` Oleksandr Andrushchenko
2018-09-10 12:26                   ` Hans Verkuil
2018-09-10 13:16                     ` Oleksandr Andrushchenko
2018-09-11  6:52                     ` Oleksandr Andrushchenko
2018-09-11  7:04                       ` Hans Verkuil
2018-09-11  7:14                         ` Oleksandr Andrushchenko
2018-09-11  7:52                           ` Hans Verkuil
2018-09-11  8:09                             ` Oleksandr Andrushchenko
2018-09-10 12:48 ` [PATCH 0/1] cameraif: Add ABI for para-virtualized Laurent Pinchart
2018-09-10 13:02   ` Oleksandr Andrushchenko

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=99cd131d-85ae-bbfb-61ef-fdc0401727f6@suse.com \
    --to=jgross@suse.com \
    --cc=andr2000@gmail.com \
    --cc=boris.ostrovsky@oracle.com \
    --cc=koji.matsuoka.xm@renesas.com \
    --cc=konrad.wilk@oracle.com \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=oleksandr_andrushchenko@epam.com \
    --cc=sakari.ailus@linux.intel.com \
    --cc=xen-devel@lists.xenproject.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
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;
as well as URLs for NNTP newsgroup(s).