Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/imbuf/intern/cineon/dpxlib.c')
-rw-r--r--source/blender/imbuf/intern/cineon/dpxlib.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/source/blender/imbuf/intern/cineon/dpxlib.c b/source/blender/imbuf/intern/cineon/dpxlib.c
index 01177b01178..c9b9901a495 100644
--- a/source/blender/imbuf/intern/cineon/dpxlib.c
+++ b/source/blender/imbuf/intern/cineon/dpxlib.c
@@ -142,7 +142,8 @@ fillDpxImageInfo(
if (dpx->depth == 1) {
fillDpxChannelInfo(dpx, &imageInfo->channel[0], 0);
- } else if (dpx->depth == 3) {
+ }
+ else if (dpx->depth == 3) {
fillDpxChannelInfo(dpx, &imageInfo->channel[0], 50);
}
}
@@ -270,7 +271,8 @@ dpxGetRowBytes(DpxFile* dpx, unsigned short* row, int y) {
dpx->pixelBuffer[pixelIndex+2] = t & 0x3ff;
pixelIndex += 3;
}
- } else /* if (dpx->depth == 3) */ {
+ }
+ else /* if (dpx->depth == 3) */ {
for (longIndex = 0; longIndex < readLongs; ++longIndex) {
unsigned int t = ntohl(dpx->lineBuffer[longIndex]);
t = t >> 2;
@@ -286,7 +288,7 @@ dpxGetRowBytes(DpxFile* dpx, unsigned short* row, int y) {
/* extract required pixels */
for (pixelIndex = 0; pixelIndex < numPixels; ++pixelIndex) {
- if(dpx->params.doLogarithm)
+ if (dpx->params.doLogarithm)
row[pixelIndex] = dpx->lut10_16[dpx->pixelBuffer[pixelIndex]];
else
row[pixelIndex] = dpx->pixelBuffer[pixelIndex] << 6;
@@ -329,7 +331,7 @@ dpxSetRowBytes(DpxFile* dpx, const unsigned short* row, int y) {
/* put new pixels into pixelBuffer */
for (pixelIndex = 0; pixelIndex < numPixels; ++pixelIndex) {
- if(dpx->params.doLogarithm)
+ if (dpx->params.doLogarithm)
dpx->pixelBuffer[dpx->pixelBufferUsed + pixelIndex] = dpx->lut16_16[row[pixelIndex]];
else
dpx->pixelBuffer[dpx->pixelBufferUsed + pixelIndex] = row[pixelIndex] >> 6;
@@ -351,7 +353,8 @@ dpxSetRowBytes(DpxFile* dpx, const unsigned short* row, int y) {
dpx->lineBuffer[longIndex] = htonl(t);
pixelIndex += 3;
}
- } else {
+ }
+ else {
for (longIndex = 0; longIndex < writeLongs; ++longIndex) {
unsigned int t = dpx->pixelBuffer[pixelIndex+2] << 2 |
(dpx->pixelBuffer[pixelIndex+1] << 12) |
@@ -411,7 +414,8 @@ intern_dpxOpen(int mode, const char* bytestuff, int bufsize) {
dpx->membuffer = 0;
dpx->memcursor = 0;
dpx->membuffersize = 0;
- } else if (mode == LFMEMFILE) {
+ }
+ else if (mode == LFMEMFILE) {
dpx->membuffer = (unsigned char *)bytestuff;
dpx->memcursor = (unsigned char *)bytestuff;
dpx->membuffersize = bufsize;
@@ -625,7 +629,8 @@ dpxCreate(const char* filename, int width, int height, int depth) {
shortFilename = strrchr(filename, '/');
if (shortFilename == 0) {
shortFilename = filename;
- } else {
+ }
+ else {
++shortFilename;
}
initDpxMainHeader(dpx, &header, shortFilename);