• Martin Storsjö's avatar
    film_grain: Fix compilation with MSVC · 86fd0b6d
    Martin Storsjö authored
    This fixes compiler errors like these:
    src/film_grain_tmpl.c(238): error C2036: 'void *': unknown size
    
    Don't rely on sizeof(void) == 1 in pointer arithmetic, but instead
    cast the row pointers to the pixel datatype immediately, use PXSTRIDE()
    for converting a stride in byte units to pixel units, and skip
    sizeof(pixel) for horizontal offsets that previously were applied on
    a void pointer.
    86fd0b6d
Name
Last commit
Last update
doc Loading commit data...
include Loading commit data...
src Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING Loading commit data...
NEWS Loading commit data...
README.md Loading commit data...
THANKS.md Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...