diff --git a/Samples/2_Concepts_and_Techniques/dct8x8/BmpUtil.cpp b/Samples/2_Concepts_and_Techniques/dct8x8/BmpUtil.cpp index b3524caca..3203088ca 100644 --- a/Samples/2_Concepts_and_Techniques/dct8x8/BmpUtil.cpp +++ b/Samples/2_Concepts_and_Techniques/dct8x8/BmpUtil.cpp @@ -298,12 +298,11 @@ int PreLoadBmp(char *FileName, int *Width, int *Height) void LoadBmpAsGray(char *FileName, int Stride, ROI ImSize, byte *Img) { BMPFileHeader FileHeader; - BMPInfoHeader InfoHeader; FILE *fh; fh = fopen(FileName, "rb"); fread(&FileHeader, sizeof(BMPFileHeader), 1, fh); - fread(&InfoHeader, sizeof(BMPInfoHeader), 1, fh); + fseek(fh, FileHeader._bm_bitmap_data, SEEK_SET); for (int i = ImSize.height - 1; i >= 0; i--) { for (int j = 0; j < ImSize.width; j++) { diff --git a/Samples/2_Concepts_and_Techniques/dct8x8/teapot512_cuda1.bmp b/Samples/2_Concepts_and_Techniques/dct8x8/teapot512_cuda1.bmp index 6763d43d9..51bd72577 100644 Binary files a/Samples/2_Concepts_and_Techniques/dct8x8/teapot512_cuda1.bmp and b/Samples/2_Concepts_and_Techniques/dct8x8/teapot512_cuda1.bmp differ diff --git a/Samples/2_Concepts_and_Techniques/dct8x8/teapot512_cuda2.bmp b/Samples/2_Concepts_and_Techniques/dct8x8/teapot512_cuda2.bmp index 6f2f3099b..b8bd6a649 100644 Binary files a/Samples/2_Concepts_and_Techniques/dct8x8/teapot512_cuda2.bmp and b/Samples/2_Concepts_and_Techniques/dct8x8/teapot512_cuda2.bmp differ diff --git a/Samples/2_Concepts_and_Techniques/dct8x8/teapot512_cuda_short.bmp b/Samples/2_Concepts_and_Techniques/dct8x8/teapot512_cuda_short.bmp index 29118ff5d..2854dfa1d 100644 Binary files a/Samples/2_Concepts_and_Techniques/dct8x8/teapot512_cuda_short.bmp and b/Samples/2_Concepts_and_Techniques/dct8x8/teapot512_cuda_short.bmp differ diff --git a/Samples/2_Concepts_and_Techniques/dct8x8/teapot512_gold1.bmp b/Samples/2_Concepts_and_Techniques/dct8x8/teapot512_gold1.bmp index 010e5d20a..1729fbf0a 100644 Binary files a/Samples/2_Concepts_and_Techniques/dct8x8/teapot512_gold1.bmp and b/Samples/2_Concepts_and_Techniques/dct8x8/teapot512_gold1.bmp differ diff --git a/Samples/2_Concepts_and_Techniques/dct8x8/teapot512_gold2.bmp b/Samples/2_Concepts_and_Techniques/dct8x8/teapot512_gold2.bmp index 053896fa6..90bc6b777 100644 Binary files a/Samples/2_Concepts_and_Techniques/dct8x8/teapot512_gold2.bmp and b/Samples/2_Concepts_and_Techniques/dct8x8/teapot512_gold2.bmp differ