[FFmpeg-devel] [PATCH 15/35] avcodec/proresenc_anatoliy: rename new_code/code to code/codebook

Stefano Sabatini stefasab at gmail.com
Mon Dec 18 02:18:18 EET 2023


On date Monday 2023-12-11 02:35:16 +0100, Clément Bœsch wrote:
> This makes the function closer to encode_dcs() in proresenc_kostya.
> ---
>  libavcodec/proresenc_anatoliy.c | 16 ++++++++--------
>  1 file changed, 8 insertions(+), 8 deletions(-)
> 
> diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c
> index b8433ee872..e79c465590 100644
> --- a/libavcodec/proresenc_anatoliy.c
> +++ b/libavcodec/proresenc_anatoliy.c
> @@ -270,24 +270,24 @@ static av_always_inline int get_level(int val)
>  static void encode_dc_coeffs(PutBitContext *pb, int16_t *in,
>          int blocks_per_slice, int *qmat)
>  {
> -    int prev_dc, code;
> +    int prev_dc, codebook;
>      int i, sign, idx;
> -    int new_dc, delta, diff_sign, new_code;
> +    int new_dc, delta, diff_sign, code;

better to use the same term to make the relationship evident,
code and new_code
or
codebook and new_codebook

rather than using two similar but different terms (code and codebook)
for the same thing


More information about the ffmpeg-devel mailing list