All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nishanth Menon <nm@ti.com>
To: <roopangkumar.patel@ti.com>
Cc: meta-arago@arago-project.org, prashanth.amai@ti.com,
	praveen.ap@pathpartnertech.com, sidraya.bj@pathpartnertech.com
Subject: Re: [PATCH] v4l2 H264 encoder plugin changes
Date: Wed, 19 May 2021 17:39:29 -0500	[thread overview]
Message-ID: <20210519223929.n3oidsaag5wikia6@chamber> (raw)
In-Reply-To: <20210519124642.21701-1-roopangkumar.patel@ti.com>

On 18:16-20210519, roopangkumar.patel@ti.com wrote:
> From: Roopang Patel <roopangkumar.patel@ti.com>
> 
> Changes:
> 1) Given support of v4l2 extra controls such as
> bitrate,gopsize and iperiod for H264 encoding and
> also added as v4l2 H264 plugin properties to set and
> get for dynamic value change.
> 
> 2) We need to set these extra controls before the gstreamer
> pipeline set format API invoke.so, we are setting extra
> controls when the pipeline change the state
> GST_STATE_CHANGE_READY_TO_PAUSED.

I'd suggest you might want to study how to write a proper commit message
https://www.kernel.org/doc/html/v4.10/process/submitting-patches.html#describe-your-changes

is a good reference, so is a bunch of internet articles..

> ---
>  sys/v4l2/gstv4l2h264enc.c | 135 +++++++++++++++++++++++++++++++++++++-
>  sys/v4l2/gstv4l2h264enc.h |   9 +++
>  2 files changed, 142 insertions(+), 2 deletions(-)

	Ummm.... -ECONFUSED.

How does this patch apply to [1]

[1] http://arago-project.org/git/?p=meta-arago.git;a=tree
> 
> diff --git a/sys/v4l2/gstv4l2h264enc.c b/sys/v4l2/gstv4l2h264enc.c
> index ee160b3a0..169e6ae69 100644
> --- a/sys/v4l2/gstv4l2h264enc.c
> +++ b/sys/v4l2/gstv4l2h264enc.c
> @@ -47,6 +47,9 @@ enum
>  {
>    PROP_0,
>    V4L2_STD_OBJECT_PROPS,
> +  PROP_BITRATE,
> +  PROP_GOPSIZE,
> +  PROP_I_PERIOD,
>  /* TODO add H264 controls
>   * PROP_I_FRAME_QP,
>   * PROP_P_FRAME_QP,
> @@ -78,14 +81,46 @@ static void
>  gst_v4l2_h264_enc_set_property (GObject * object,
>      guint prop_id, const GValue * value, GParamSpec * pspec)
>  {
> -  /* TODO */
> +  GstV4l2H264Enc *self = GST_V4L2_H264_ENC (object);
> +
> +  switch(prop_id)
> +  {
> +    case PROP_BITRATE:{
> +     self->bitrate = g_value_get_uint (value);
> +    }break;
> +    case PROP_GOPSIZE:{
> +     self->gopsize = g_value_get_uint (value);
> +    }break;
> +    case PROP_I_PERIOD:{
> +     self->iperiod = g_value_get_uint (value);
> +    }break;
> +    default:{
> +     G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
> +    }break;
> +  }

If this is a kernel patch, please don't post it in public kernel list
with ti.com ID - this is wrong in so many kernel coding style ways.


[...]

-- 
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D


  reply	other threads:[~2021-05-19 22:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-19 12:46 [PATCH] v4l2 H264 encoder plugin changes roopangkumar.patel
2021-05-19 22:39 ` Nishanth Menon [this message]
2021-05-19 23:06   ` Denys Dmytriyenko
2021-05-19 23:20     ` Nishanth Menon

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=20210519223929.n3oidsaag5wikia6@chamber \
    --to=nm@ti.com \
    --cc=meta-arago@arago-project.org \
    --cc=prashanth.amai@ti.com \
    --cc=praveen.ap@pathpartnertech.com \
    --cc=roopangkumar.patel@ti.com \
    --cc=sidraya.bj@pathpartnertech.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.