Skip to content

Instantly share code, notes, and snippets.

View LibRaw's full-sized avatar

LibRaw LLC LibRaw

View GitHub Profile
int main(){
signed char p[] = {static_cast<signed char>(0x88), 0x88};
signed char *cp = p;
signed short q[] = {static_cast<signed short>(0x88), 0x88};
signed short *cq = q;
int g1 = *cp++, g2 = *cp++;
printf("%d %d\n",g1, g2);
g1 = *cq++; g2=*cq++;
printf("%d %d\n",g1, g2);
diff --git a/RawSpeed/DngDecoder.cpp b/RawSpeed/DngDecoder.cpp
index 139fa25..b11265d 100644
--- a/RawSpeed/DngDecoder.cpp
+++ b/RawSpeed/DngDecoder.cpp
@@ -410,9 +410,10 @@ RawImage DngDecoder::decodeRawInternal() {
else
table[i] = intable[len-1];
}
- for (int y = 0; y < mRaw->dim.y; y++) {
+ iPoint2D udim = mRaw->getUncroppedDim();
#include <immintrin.h>
#include <intrin.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
union Mat44 {
float m[4][4];
__m128 row[4];
};