1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-02 03:06:28 +02:00
Commit Graph

11 Commits

Author SHA1 Message Date
Vittorio Giovara
a6b1180e39 avcodec/pixlet: fix architecture-dependent code and values
The constants used in the decoder used floating point precision,
and this caused different values to be generated on different
architectures.

So, eradicate floating point numbers and use fixed point (32.32)
arithmetics everywhere, replacing constants with precomputed integer
values.

Signed-off-by: Vittorio Giovara <vittorio.giovara at gmail.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-03-07 14:04:01 +01:00
Paul B Mahol
0fe50e56e9 avcodec/pixlet: use av_clip_uintp2_c explicitly
Found-by: Clément Bœsch <u@pkh.me>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-01-19 13:32:21 +01:00
Paul B Mahol
a340987e37 avcodec/pixlet: use av_clip_uintp2()
Found-by: Clément Bœsch <u@pkh.me>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-01-19 13:19:10 +01:00
Paul B Mahol
be46eb7101 avcodec/pixlet: clip chroma before shifting
Fixes artifacts.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-01-19 12:49:41 +01:00
Paul B Mahol
25c4035529 avcodec/pixlet: simplify lowpass_prediction() function
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-12-24 16:42:00 +01:00
Paul B Mahol
6cedd20b97 avcodec/pixlet: make sure scaling factors are not zero
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-12-24 10:31:43 +01:00
Paul B Mahol
ab31b46b89 avcodec/pixlet: avoid some overflows
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-12-24 10:26:27 +01:00
Paul B Mahol
43cd33be16 avcodec/pixlet: fix undefined behaviour in postprocess_chroma
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-12-24 10:22:39 +01:00
Paul B Mahol
51ed1a7dd4 avcodec/pixlet: check out of bounds pfx value
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-12-23 09:41:06 +01:00
James Almer
41de965e31 avcodec/pixlet: remove unnecessary double to float conversion
Signed-off-by: James Almer <jamrial@gmail.com>
2016-12-23 09:19:34 +01:00
Paul B Mahol
73651090ca avcodec: add Apple Pixlet decoder
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-12-22 22:47:06 +01:00