linux/drivers/media
Ezequiel Garcia eb44c6c9c2 media: uapi: h264: Split prediction weight parameters
The prediction weight parameters are only required under
certain conditions, which depend on slice header parameters.

As specified in section 7.3.3 Slice header syntax, the prediction
weight table is present if:

((weighted_pred_flag && (slice_type == P || slice_type == SP)) || \
(weighted_bipred_idc == 1 && slice_type == B))

Given its size, it makes sense to move this table to its control,
so applications can avoid passing it if the slice doesn't specify it.

Before this change struct v4l2_ctrl_h264_slice_params was 960 bytes.
With this change, it's 188 bytes and struct v4l2_ctrl_h264_pred_weight
is 772 bytes.

Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Tested-by: Jonas Karlman <jonas@kwiboo.se>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2020-09-01 14:13:28 +02:00
..
cec media: cec: no need to check return value of debugfs_create functions 2020-09-01 14:13:26 +02:00
common media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
dvb-core media: videobuf2: add queue memory consistency parameter 2020-06-23 13:31:12 +02:00
dvb-frontends media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
firewire media: firewire: Using uninitialized values in node_probe() 2020-07-04 11:57:10 +02:00
i2c media: ov5675: correct the maximum exposure value 2020-09-01 14:13:27 +02:00
mc media: mc-device.c: change media_device_request_alloc to match media_ioctl_info 2020-08-29 08:15:23 +02:00
mmc media updates for v5.8-rc1 2020-06-03 20:59:38 -07:00
pci saa7134: drop unnecessary list_empty 2020-09-01 13:37:53 +02:00
platform media: omap: Replace HTTP links with HTTPS ones 2020-09-01 14:13:27 +02:00
radio media: radio: si476x: no need to check return value of debugfs_create functions 2020-09-01 14:13:26 +02:00
rc media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
spi media: i2c/Kconfig: use sub-menus for I2C support 2020-04-16 10:34:40 +02:00
test-drivers media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
tuners media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
usb tm6000: drop unnecessary list_empty 2020-09-01 14:12:36 +02:00
v4l2-core media: uapi: h264: Split prediction weight parameters 2020-09-01 14:13:28 +02:00
Kconfig media: media/test_drivers: rename to test-drivers 2020-04-16 10:38:31 +02:00
Makefile media: media/test_drivers: rename to test-drivers 2020-04-16 10:38:31 +02:00