mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 17:32:06 +00:00
avcodec/huffyuvenc : sub_left_prediction_bgr32, call dsp after 32 first byte of the line in order to try to call the align version (diff bytes have avx2 version)
This commit is contained in:
parent
001173b8ff
commit
dc9a187c3d
@ -90,8 +90,9 @@ static inline void sub_left_prediction_bgr32(HYuvContext *s, uint8_t *dst,
|
||||
g = *green;
|
||||
b = *blue;
|
||||
a = *alpha;
|
||||
int min_width = FFMIN(w, 8);
|
||||
|
||||
for (i = 0; i < FFMIN(w, 4); i++) {
|
||||
for (i = 0; i < min_width; i++) {
|
||||
const int rt = src[i * 4 + R];
|
||||
const int gt = src[i * 4 + G];
|
||||
const int bt = src[i * 4 + B];
|
||||
@ -106,7 +107,7 @@ static inline void sub_left_prediction_bgr32(HYuvContext *s, uint8_t *dst,
|
||||
a = at;
|
||||
}
|
||||
|
||||
s->llvidencdsp.diff_bytes(dst + 16, src + 16, src + 12, w * 4 - 16);
|
||||
s->llvidencdsp.diff_bytes(dst + 32, src + 32, src + 32 - 4, w * 4 - 32);
|
||||
|
||||
*red = src[(w - 1) * 4 + R];
|
||||
*green = src[(w - 1) * 4 + G];
|
||||
|
Loading…
Reference in New Issue
Block a user