Changeset View
Changeset View
Standalone View
Standalone View
source/blender/imbuf/intern/iris.c
| Show First 20 Lines • Show All 116 Lines • ▼ Show 20 Lines | |||||
| static int expandrow( | static int expandrow( | ||||
| uchar *optr, const uchar *optr_end, const uchar *iptr, const uchar *iptr_end, int z); | uchar *optr, const uchar *optr_end, const uchar *iptr, const uchar *iptr_end, int z); | ||||
| static int expandrow2( | static int expandrow2( | ||||
| float *optr, const float *optr_end, const uchar *iptr, const uchar *iptr_end, int z); | float *optr, const float *optr_end, const uchar *iptr, const uchar *iptr_end, int z); | ||||
| static void interleaverow(uchar *lptr, const uchar *cptr, int z, int n); | static void interleaverow(uchar *lptr, const uchar *cptr, int z, int n); | ||||
| static void interleaverow2(float *lptr, const uchar *cptr, int z, int n); | static void interleaverow2(float *lptr, const uchar *cptr, int z, int n); | ||||
| static int compressrow(uchar *lbuf, uchar *rlebuf, int z, int cnt); | static int compressrow(uchar *lbuf, uchar *rlebuf, int z, int cnt); | ||||
| static void lumrow(uchar *rgbptr, uchar *lumptr, int n); | static void lumrow(const uchar *rgbptr, uchar *lumptr, int n); | ||||
| /* | /* | ||||
| * byte order independent read/write of shorts and ints. | * byte order independent read/write of shorts and ints. | ||||
| */ | */ | ||||
| static ushort getshort(MFileOffset *inf) | static ushort getshort(MFileOffset *inf) | ||||
| { | { | ||||
| const uchar *buf; | const uchar *buf; | ||||
| ▲ Show 20 Lines • Show All 761 Lines • ▼ Show 20 Lines | static int output_iris(uint *lptr, int xsize, int ysize, int zsize, const char *name, int *zptr) | ||||
| else { | else { | ||||
| fprintf(stderr, "output_iris: not enough space for image!!\n"); | fprintf(stderr, "output_iris: not enough space for image!!\n"); | ||||
| return 0; | return 0; | ||||
| } | } | ||||
| } | } | ||||
| /* static utility functions for output_iris */ | /* static utility functions for output_iris */ | ||||
| static void lumrow(uchar *rgbptr, uchar *lumptr, int n) | static void lumrow(const uchar *rgbptr, uchar *lumptr, int n) | ||||
| { | { | ||||
| lumptr += CHANOFFSET(0); | lumptr += CHANOFFSET(0); | ||||
| while (n--) { | while (n--) { | ||||
| *lumptr = ILUM(rgbptr[OFFSET_R], rgbptr[OFFSET_G], rgbptr[OFFSET_B]); | *lumptr = ILUM(rgbptr[OFFSET_R], rgbptr[OFFSET_G], rgbptr[OFFSET_B]); | ||||
| lumptr += 4; | lumptr += 4; | ||||
| rgbptr += 4; | rgbptr += 4; | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines | |||||