Commit 643a236e authored by Ezequiel Garcia's avatar Ezequiel Garcia Committed by Mauro Carvalho Chehab

media: uapi: vp8: Rename v4l2_vp8_loopfilter to v4l2_vp8_loop_filter

Rename to struct v4l2_vp8_loop_filter, which is closer to the
VP8 syntax. This change is only cosmetics, but since this API
is exposed to userspace, it's worth the trouble to get it consistent.
Signed-off-by: default avatarEzequiel Garcia <ezequiel@collabora.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent d04c114e
...@@ -1829,7 +1829,7 @@ enum v4l2_mpeg_video_h264_hierarchical_coding_type - ...@@ -1829,7 +1829,7 @@ enum v4l2_mpeg_video_h264_hierarchical_coding_type -
* - struct :c:type:`v4l2_vp8_segment` * - struct :c:type:`v4l2_vp8_segment`
- ``segment`` - ``segment``
- Structure with segment-based adjustments metadata. - Structure with segment-based adjustments metadata.
* - struct :c:type:`v4l2_vp8_loopfilter` * - struct :c:type:`v4l2_vp8_loop_filter`
- ``lf`` - ``lf``
- Structure with loop filter level adjustments metadata. - Structure with loop filter level adjustments metadata.
* - struct :c:type:`v4l2_vp8_quantization` * - struct :c:type:`v4l2_vp8_quantization`
...@@ -2027,13 +2027,13 @@ enum v4l2_mpeg_video_h264_hierarchical_coding_type - ...@@ -2027,13 +2027,13 @@ enum v4l2_mpeg_video_h264_hierarchical_coding_type -
\normalsize \normalsize
.. c:type:: v4l2_vp8_loopfilter .. c:type:: v4l2_vp8_loop_filter
.. cssclass:: longtable .. cssclass:: longtable
.. tabularcolumns:: |p{1.5cm}|p{3.9cm}|p{11.9cm}| .. tabularcolumns:: |p{1.5cm}|p{3.9cm}|p{11.9cm}|
.. flat-table:: struct v4l2_vp8_loopfilter .. flat-table:: struct v4l2_vp8_loop_filter
:header-rows: 0 :header-rows: 0
:stub-columns: 0 :stub-columns: 0
:widths: 1 1 2 :widths: 1 1 2
...@@ -2055,11 +2055,11 @@ enum v4l2_mpeg_video_h264_hierarchical_coding_type - ...@@ -2055,11 +2055,11 @@ enum v4l2_mpeg_video_h264_hierarchical_coding_type -
- Applications and drivers must set this to zero. - Applications and drivers must set this to zero.
* - __u32 * - __u32
- ``flags`` - ``flags``
- See :ref:`Loopfilter Flags <vp8_loopfilter_flags>` - See :ref:`Loop Filter Flags <vp8_loop_filter_flags>`
.. _vp8_loopfilter_flags: .. _vp8_loop_filter_flags:
``Loopfilter Flags`` ``Loop Filter Flags``
.. tabularcolumns:: |p{7.0cm}|p{1.2cm}|p{9.1cm}| .. tabularcolumns:: |p{7.0cm}|p{1.2cm}|p{9.1cm}|
......
...@@ -136,7 +136,7 @@ static void cfg_lf(struct hantro_ctx *ctx, ...@@ -136,7 +136,7 @@ static void cfg_lf(struct hantro_ctx *ctx,
const struct v4l2_ctrl_vp8_frame *hdr) const struct v4l2_ctrl_vp8_frame *hdr)
{ {
const struct v4l2_vp8_segment *seg = &hdr->segment; const struct v4l2_vp8_segment *seg = &hdr->segment;
const struct v4l2_vp8_loopfilter *lf = &hdr->lf; const struct v4l2_vp8_loop_filter *lf = &hdr->lf;
struct hantro_dev *vpu = ctx->dev; struct hantro_dev *vpu = ctx->dev;
unsigned int i; unsigned int i;
u32 reg; u32 reg;
......
...@@ -277,7 +277,7 @@ static void cfg_lf(struct hantro_ctx *ctx, ...@@ -277,7 +277,7 @@ static void cfg_lf(struct hantro_ctx *ctx,
const struct v4l2_ctrl_vp8_frame *hdr) const struct v4l2_ctrl_vp8_frame *hdr)
{ {
const struct v4l2_vp8_segment *seg = &hdr->segment; const struct v4l2_vp8_segment *seg = &hdr->segment;
const struct v4l2_vp8_loopfilter *lf = &hdr->lf; const struct v4l2_vp8_loop_filter *lf = &hdr->lf;
struct hantro_dev *vpu = ctx->dev; struct hantro_dev *vpu = ctx->dev;
unsigned int i; unsigned int i;
u32 reg; u32 reg;
......
...@@ -34,7 +34,7 @@ struct v4l2_vp8_segment { ...@@ -34,7 +34,7 @@ struct v4l2_vp8_segment {
#define V4L2_VP8_LF_ADJ_ENABLE 0x01 #define V4L2_VP8_LF_ADJ_ENABLE 0x01
#define V4L2_VP8_LF_DELTA_UPDATE 0x02 #define V4L2_VP8_LF_DELTA_UPDATE 0x02
#define V4L2_VP8_LF_FILTER_TYPE_SIMPLE 0x04 #define V4L2_VP8_LF_FILTER_TYPE_SIMPLE 0x04
struct v4l2_vp8_loopfilter { struct v4l2_vp8_loop_filter {
__s8 ref_frm_delta[4]; __s8 ref_frm_delta[4];
__s8 mb_mode_delta[4]; __s8 mb_mode_delta[4];
__u8 sharpness_level; __u8 sharpness_level;
...@@ -82,7 +82,7 @@ struct v4l2_vp8_entropy_coder_state { ...@@ -82,7 +82,7 @@ struct v4l2_vp8_entropy_coder_state {
struct v4l2_ctrl_vp8_frame { struct v4l2_ctrl_vp8_frame {
struct v4l2_vp8_segment segment; struct v4l2_vp8_segment segment;
struct v4l2_vp8_loopfilter lf; struct v4l2_vp8_loop_filter lf;
struct v4l2_vp8_quantization quant; struct v4l2_vp8_quantization quant;
struct v4l2_vp8_entropy entropy; struct v4l2_vp8_entropy entropy;
struct v4l2_vp8_entropy_coder_state coder_state; struct v4l2_vp8_entropy_coder_state coder_state;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment