diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-10-12 06:19:37 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-10-12 06:19:37 +0400 |
commit | b6db417ee466c6aec5d412a259a6dc7c0b4c1750 (patch) | |
tree | ca86ca90c7868f92d3c795c8d1f6a968dade6760 /source/blender/imbuf/intern/tiff.c | |
parent | 744f691af42ffeadd306180048c51edad65a5f06 (diff) |
code cleanup: use const's for vector args.
Diffstat (limited to 'source/blender/imbuf/intern/tiff.c')
-rw-r--r-- | source/blender/imbuf/intern/tiff.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/imbuf/intern/tiff.c b/source/blender/imbuf/intern/tiff.c index eaba04c9310..05e9a4fa134 100644 --- a/source/blender/imbuf/intern/tiff.c +++ b/source/blender/imbuf/intern/tiff.c @@ -315,7 +315,7 @@ int imb_is_a_tiff(unsigned char *mem) (memcmp(lil_endian, mem, IMB_TIFF_NCB) == 0) ); } -static void scanline_contig_16bit(float *rectf, unsigned short *sbuf, int scanline_w, int spp) +static void scanline_contig_16bit(float *rectf, const unsigned short *sbuf, int scanline_w, int spp) { int i; for (i = 0; i < scanline_w; i++) { @@ -326,7 +326,7 @@ static void scanline_contig_16bit(float *rectf, unsigned short *sbuf, int scanli } } -static void scanline_contig_32bit(float *rectf, float *fbuf, int scanline_w, int spp) +static void scanline_contig_32bit(float *rectf, const float *fbuf, int scanline_w, int spp) { int i; for (i = 0; i < scanline_w; i++) { @@ -337,14 +337,14 @@ static void scanline_contig_32bit(float *rectf, float *fbuf, int scanline_w, int } } -static void scanline_separate_16bit(float *rectf, unsigned short *sbuf, int scanline_w, int chan) +static void scanline_separate_16bit(float *rectf, const unsigned short *sbuf, int scanline_w, int chan) { int i; for (i = 0; i < scanline_w; i++) rectf[i * 4 + chan] = sbuf[i] / 65535.0; } -static void scanline_separate_32bit(float *rectf, float *fbuf, int scanline_w, int chan) +static void scanline_separate_32bit(float *rectf, const float *fbuf, int scanline_w, int chan) { int i; for (i = 0; i < scanline_w; i++) |