Andreas Rheinhardt
8be701d9f7
avfilter/avfilter: Add numbers of (in|out)pads directly to AVFilter
...
Up until now, an AVFilter's lists of input and output AVFilterPads
were terminated by a sentinel and the only way to get the length
of these lists was by using avfilter_pad_count(). This has two
drawbacks: first, sizeof(AVFilterPad) is not negligible
(i.e. 64B on 64bit systems); second, getting the size involves
a function call instead of just reading the data.
This commit therefore changes this. The sentinels are removed and new
private fields nb_inputs and nb_outputs are added to AVFilter that
contain the number of elements of the respective AVFilterPad array.
Given that AVFilter.(in|out)puts are the only arrays of zero-terminated
AVFilterPads an API user has access to (AVFilterContext.(in|out)put_pads
are not zero-terminated and they already have a size field) the argument
to avfilter_pad_count() is always one of these lists, so it just has to
find the filter the list belongs to and read said number. This is slower
than before, but a replacement function that just reads the internal numbers
that users are expected to switch to will be added soon; and furthermore,
avfilter_pad_count() is probably never called in hot loops anyway.
This saves about 49KiB from the binary; notice that these sentinels are
not in .bss despite being zeroed: they are in .data.rel.ro due to the
non-sentinels.
Reviewed-by: Nicolas George <george@nsup.org >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-08-20 12:53:58 +02:00
..
2021-04-19 14:34:10 +02:00
2021-06-24 20:58:47 +02:00
2021-08-10 22:27:27 +08:00
2020-02-14 09:59:27 +01:00
2021-07-22 11:14:31 +02:00
2021-07-27 21:16:28 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-17 21:20:59 +02:00
2020-01-10 13:14:54 +01:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-16 20:26:04 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-01-22 16:21:22 +01:00
2021-08-17 19:13:40 +02:00
2020-08-21 18:18:08 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-17 21:20:59 +02:00
2021-08-20 12:53:58 +02:00
2021-07-27 21:16:28 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:09:07 +02:00
2021-01-17 12:06:01 +01:00
2021-01-17 12:06:01 +01:00
2019-10-08 13:47:43 +08:00
2021-07-22 14:47:57 +02:00
2021-08-20 12:53:58 +02:00
2021-03-07 15:19:10 +01:00
2021-08-20 12:53:58 +02:00
2021-02-13 14:45:48 +01:00
2021-07-06 10:47:57 +08:00
2021-07-06 10:47:57 +08:00
2021-05-11 10:28:35 +08:00
2021-07-22 15:02:30 +02:00
2021-01-29 15:20:53 +01:00
2021-02-02 23:53:30 +01:00
2021-02-02 23:53:30 +01:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-17 21:20:59 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 10:26:36 +02:00
2021-08-20 10:26:36 +02:00
2021-04-27 10:43:13 -03:00
2021-04-27 10:43:13 -03:00
2019-09-28 21:53:55 +02:00
2020-06-10 12:36:44 +02:00
2021-04-27 11:48:04 -03:00
2021-02-16 21:12:11 +01:00
2020-11-25 23:06:34 +01:00
2020-02-04 23:19:48 +00:00
2019-11-21 21:26:12 +01:00
2020-08-23 19:57:42 +02:00
2020-08-25 01:29:24 +02:00
2021-08-20 12:53:58 +02:00
2021-06-10 16:51:44 +02:00
2021-02-25 22:03:32 +01:00
2021-08-16 20:26:04 +02:00
2019-10-23 16:20:21 +02:00
2019-10-31 10:32:43 +01:00
2020-02-12 11:27:28 +01:00
2020-02-14 09:59:27 +01:00
2021-08-13 17:36:22 +02:00
2020-02-15 12:18:51 +01:00
2021-07-22 14:33:45 +02:00
2021-01-01 14:24:20 +01:00
2021-08-05 19:59:00 +02:00
2021-08-09 22:57:05 -03:00
2021-04-11 23:18:20 +08:00
2020-01-15 11:26:46 +05:30
2019-12-10 12:55:48 +05:30
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-07-25 05:10:33 +05:30
2021-08-20 12:53:58 +02:00
2021-08-17 21:20:59 +02:00
2020-02-04 18:28:04 +01:00
2020-07-17 13:53:55 +02:00
2021-04-27 10:43:11 -03:00
2021-04-27 10:43:11 -03:00
2019-10-22 19:53:50 +02:00
2021-08-20 12:53:58 +02:00
2020-11-07 10:09:59 +08:00
2021-06-30 00:12:41 +02:00
2020-09-08 14:02:40 +02:00
2021-08-20 12:53:58 +02:00
2021-08-16 20:26:04 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2019-09-26 08:10:31 +08:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-01-01 14:25:28 +01:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2019-10-10 09:33:09 +08:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2020-03-28 18:39:40 +01:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2020-06-19 07:14:46 +08:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-06-25 01:44:30 +02:00
2020-11-04 18:10:19 +01:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-01-01 14:25:02 +01:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-17 19:13:16 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-20 12:53:58 +02:00
2021-08-13 17:36:22 +02:00
2020-05-23 19:07:50 +01:00
2019-09-16 10:57:09 +02:00
2020-08-27 07:30:30 +08:00
2020-08-27 07:30:30 +08:00