diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-07-30 09:06:44 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-18 01:10:53 +0200 |
commit | 61669b7c40b8dc3a0841768fb39c7567513b7cfc (patch) | |
tree | 3fdffb224a7c2dbc38a9a65afdfde96ebefcfb49 /libavcodec/idctdsp.c | |
parent | 2cef0316747499f3d845d778fbf7e1d1d27d55fb (diff) | |
download | ffmpeg-61669b7c40b8dc3a0841768fb39c7567513b7cfc.tar.gz |
avcodec/vlc: Add macro for ff_init_vlc_sparse()
ff_init_vlc_sparse() supports arrays of uint8_t, uint16_t and uint32_t
as input (and it also supports padding/other elements in between the
elements). This makes the typical case in which the input is a simple
array more cumbersome. E.g. for an array of uint8_t one would either
need to call the function with arguments like "array, sizeof(array[0]),
sizeof(array[0])" or with "array, 1, 1". The former is nicer, but
longer, so that the latter is mostly used. Therefore this commit adds a
macro that expands to the sizeof() construct.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/idctdsp.c')
0 files changed, 0 insertions, 0 deletions