<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/include/media/hevc-ctrls.h, branch linux-5.19.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.19.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.19.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2022-08-17T13:14:50Z</updated>
<entry>
<title>media: uapi: HEVC: Change pic_order_cnt definition in v4l2_hevc_dpb_entry</title>
<updated>2022-08-17T13:14:50Z</updated>
<author>
<name>Benjamin Gaignard</name>
</author>
<published>2022-07-08T16:21:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=dfacf78ed98c8e64ac39a5fd6aa9075bfccc3b3e'/>
<id>urn:sha1:dfacf78ed98c8e64ac39a5fd6aa9075bfccc3b3e</id>
<content type='text'>
[ Upstream commit c4a179c7167ee16aad1267f9c99bc1ecff475585 ]

The HEVC specification describes the following:
"PicOrderCntVal is derived as follows:
PicOrderCntVal = PicOrderCntMsb + slice_pic_order_cnt_lsb
The value of PicOrderCntVal shall be in the range of
−2^31 to 2^31 − 1, inclusive."

To match with these definitions change __u16 pic_order_cnt[2]
into __s32 pic_order_cnt_val.
Change v4l2_ctrl_hevc_slice_params-&gt;slice_pic_order_cnt to __s32 too.

Signed-off-by: Benjamin Gaignard &lt;benjamin.gaignard@collabora.com&gt;
Reviewed-by: Ezequiel Garcia &lt;ezequiel@vanguardiasur.com.ar&gt;
Acked-by: Nicolas Dufresne &lt;nicolas.dufresne@collabora.com&gt;
Tested-by: Jernej Skrabec &lt;jernej.skrabec@gmail.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: hevc: Remove RPS named flags</title>
<updated>2022-01-23T20:18:44Z</updated>
<author>
<name>Benjamin Gaignard</name>
</author>
<published>2022-01-07T15:54:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7a3b3dc3bb2eeac4adf8b01b1b6b519bcbc48cfc'/>
<id>urn:sha1:7a3b3dc3bb2eeac4adf8b01b1b6b519bcbc48cfc</id>
<content type='text'>
Marking a picture as long-term reference is valid for DPB but not for RPS.
Change flag name to match with the description in HEVC spec chapter
"8.3.2 Decoding process for reference picture set".

PocStCurrBefore, PocStCurrAfter, PocLtCurr lists could be built by the
kernel from the DPB entries struct v4l2_hevc_dpb_entry, using the
information in the rps field. This way RPS flags becomes useless and are
removed.

This patch breaks the staging HEVC API because it introduces a new flag,
changes a field name in v4l2_hevc_dpb_entry structure and removes
V4L2_HEVC_DPB_ENTRY_RPS_* flags.

[hverkuil: fixed some typos]

Signed-off-by: Benjamin Gaignard &lt;benjamin.gaignard@collabora.com&gt;
Reviewed-by: Jernej Skrabec &lt;jernej.skrabec@gmail.com&gt;
Reviewed-by: Ezequiel Garcia &lt;ezequiel@vanguardiasur.com.ar&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: hevc: Add scaling matrix control</title>
<updated>2021-09-30T08:07:38Z</updated>
<author>
<name>Benjamin Gaignard</name>
</author>
<published>2021-07-15T15:12:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7ba59fb6c3b473dc0c76e87cd493388480c6dd27'/>
<id>urn:sha1:7ba59fb6c3b473dc0c76e87cd493388480c6dd27</id>
<content type='text'>
HEVC scaling lists are used for the scaling process for transform
coefficients.
V4L2_HEVC_SPS_FLAG_SCALING_LIST_ENABLED has to set when they are
encoded in the bitstream.

Signed-off-by: Benjamin Gaignard &lt;benjamin.gaignard@collabora.com&gt;
Reviewed-by: Jernej Skrabec &lt;jernej.skrabec@gmail.com&gt;
Reviewed-by: Ezequiel Garcia &lt;ezequiel@collabora.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: hevc: Add segment address field</title>
<updated>2021-07-12T07:16:32Z</updated>
<author>
<name>Jernej Skrabec</name>
</author>
<published>2021-06-06T08:23:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=229e5bdcd39ed3ca0a71dc8500ba4ea90d4415db'/>
<id>urn:sha1:229e5bdcd39ed3ca0a71dc8500ba4ea90d4415db</id>
<content type='text'>
If HEVC frame consists of multiple slices, segment address has to be
known in order to properly decode it.

Add segment address field to slice parameters.

Signed-off-by: Jernej Skrabec &lt;jernej.skrabec@gmail.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: uapi: Add a control for HANTRO driver</title>
<updated>2021-06-08T14:08:59Z</updated>
<author>
<name>Benjamin Gaignard</name>
</author>
<published>2021-06-03T11:50:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=35f51f6091bcf2cb90d9ac2f41465c415a34632e'/>
<id>urn:sha1:35f51f6091bcf2cb90d9ac2f41465c415a34632e</id>
<content type='text'>
The HEVC HANTRO driver needs to know the number of bits to skip at
the beginning of the slice header.
That is a hardware specific requirement so create a dedicated control
for this purpose.

Signed-off-by: Benjamin Gaignard &lt;benjamin.gaignard@collabora.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: hevc: Add decode params control</title>
<updated>2021-06-08T14:04:27Z</updated>
<author>
<name>Benjamin Gaignard</name>
</author>
<published>2021-06-03T11:49:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d395a78db9eabd12633b39e05c80e803543b6590'/>
<id>urn:sha1:d395a78db9eabd12633b39e05c80e803543b6590</id>
<content type='text'>
Add decode params control and the associated structure to group
all the information that are needed to decode a reference frame as
is described in ITU-T Rec. H.265 section "8.3.2 Decoding process
for reference picture set".

Adapt Cedrus driver to these changes.

Signed-off-by: Benjamin Gaignard &lt;benjamin.gaignard@collabora.com&gt;
Reviewed-by: Ezequiel Garcia &lt;ezequiel@collabora.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: hevc: Add fields and flags for hevc PPS</title>
<updated>2021-06-08T14:01:15Z</updated>
<author>
<name>Benjamin Gaignard</name>
</author>
<published>2021-06-03T11:49:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4dd0f63b51c24afd2f34afbae2e728cf00c390e6'/>
<id>urn:sha1:4dd0f63b51c24afd2f34afbae2e728cf00c390e6</id>
<content type='text'>
Add fields and flags as they are defined in
7.4.3.3.1 "General picture parameter set RBSP semantics of the
H.265 ITU specification.

Signed-off-by: Benjamin Gaignard &lt;benjamin.gaignard@collabora.com&gt;
Reviewed-by: Ezequiel Garcia &lt;ezequiel@collabora.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: hevc: Add sps_max_sub_layers_minus1 to v4l2_ctrl_hevc_sps</title>
<updated>2021-06-08T10:14:57Z</updated>
<author>
<name>John Cox</name>
</author>
<published>2021-04-30T16:48:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=269b4dd3e8b34edec44c5bb0016ee96353638618'/>
<id>urn:sha1:269b4dd3e8b34edec44c5bb0016ee96353638618</id>
<content type='text'>
sps_max_sub_layers_minus1 is needed if the driver wishes to determine
whether or not a frame might be used for reference.

Signed-off-by: John Cox &lt;jc@kynesim.co.uk&gt;
Reviewed-by: Benjamin Gaignard &lt;benjamin.gaignard@collabora.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: hevc: Fix dependent slice segment flags</title>
<updated>2021-05-19T07:51:39Z</updated>
<author>
<name>Jernej Skrabec</name>
</author>
<published>2021-04-27T07:15:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=67a7e53d5b21f3a84efc03a4e62db7caf97841ef'/>
<id>urn:sha1:67a7e53d5b21f3a84efc03a4e62db7caf97841ef</id>
<content type='text'>
Dependent slice segment flag for PPS control is misnamed. It should have
"enabled" at the end. It only tells if this flag is present in slice
header or not and not the actual value.

Fix this by renaming the PPS flag and introduce another flag for slice
control which tells actual value.

Signed-off-by: Jernej Skrabec &lt;jernej.skrabec@siol.net&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: Rename stateful codec control macros</title>
<updated>2020-12-03T11:27:32Z</updated>
<author>
<name>Ezequiel Garcia</name>
</author>
<published>2020-11-26T09:36:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=35aaa6e650c24212316781b63005f52c1988cd4e'/>
<id>urn:sha1:35aaa6e650c24212316781b63005f52c1988cd4e</id>
<content type='text'>
For historical reasons, stateful codec controls are named
as {}_MPEG_{}. While we can't at this point sanely
change all control IDs (such as V4L2_CID_MPEG_VIDEO_VP8_FRAME_HEADER),
we can least change the more meaningful macros such as classes
macros.

Signed-off-by: Ezequiel Garcia &lt;ezequiel@collabora.com&gt;
Tested-by: Jernej Skrabec &lt;jernej.skrabec@siol.net&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
</content>
</entry>
</feed>
