[sixel] drop unused auxvec_idx

pull/2648/head
nick black 2 years ago
parent b292bba6df
commit dcf3e10965
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -128,7 +128,7 @@ endif()
if(MSVC)
add_compile_options(/W4)
else()
add_compile_options(-Wall -Wextra -W -Wshadow -Wvla)
add_compile_options(-Wall -Wextra -W -Wshadow -Wvla -Wstrict-aliasing=2)
# -ffast-math dies on NaNs we draw from libav (by -ffinite-math-only)
add_compile_options(-fno-signed-zeros -fno-trapping-math -fassociative-math)
add_compile_options(-fno-math-errno -freciprocal-math -funsafe-math-optimizations)

@ -477,16 +477,6 @@ sixelband_extend(char* vec, struct band_extender* bes, int dimx, int curx){
return vec;
}
// get the index into the auxvec (2 bytes per pixel) given the true y/x pixel
// coordinates, plus the origin+dimensions of the relevant cell.
static inline int
auxvec_idx(int y, int x, int cellpxy, int cellpxx){
const int xoff = x % cellpxx;
const int yoff = y % cellpxy;
const int off = yoff * cellpxx + xoff;
return AUXVECELEMSIZE * off;
}
// write to this cell's auxvec, backing up the pixels cleared by a wipe. wipes
// are requested at cell granularity, broken down into sixelbands, broken down
// by color, and then finally effected at the sixel RLE level. we're thus in

Loading…
Cancel
Save