File reading successful ~ thanks to derdachs

This commit is contained in:
Caesar2011
2016-08-29 16:25:14 +02:00
parent 7a7633eebe
commit 2ddda6788a
4 changed files with 40 additions and 9 deletions

View File

@@ -0,0 +1,19 @@
# depslib dependency file v1.0
1472483353 source:c:\users\sebastian\documents\git-repos\imanox-chroma-matting\imanox-chroma-matting\main.cpp
<iostream>
<stdio.h>
"C:\Program Files (x86)\GnuWin32\include\jpeglib.h"
1116160468 c:\program files (x86)\gnuwin32\include\jpeglib.h
"jconfig.h"
"jmorecfg.h"
"jpegint.h"
"jerror.h"
1116087864 c:\program files (x86)\gnuwin32\include\jconfig.h
<windows.h>
1116087460 c:\program files (x86)\gnuwin32\include\jmorecfg.h
1116146540 c:\program files (x86)\gnuwin32\include\jerror.h

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_layout_file>
<ActiveTarget name="Debug" />
<File name="main.cpp" open="1" top="1" tabpos="1" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="41" topLine="0" />
</Cursor>
</File>
</CodeBlocks_layout_file>

View File

@@ -1,15 +1,9 @@
#include <iostream>
#include <stdio.h>
#include <jpeglib.h>
using namespace std;
int main()
{
loadJpg("..\img\foregrounds\1.jpg")
cout << "Hello world!" << endl;
return 0;
}
int loadJpg(const char* Name) {
unsigned char a, r, g, b;
int width, height;
@@ -63,8 +57,17 @@ int loadJpg(const char* Name) {
(void) jpeg_finish_decompress(&cinfo);
jpeg_destroy_decompress(&cinfo);
BMap = (int*)pTest;
/*BMap = (int*)pTest;
Height = height;
Width = width;
Depth = 32;
Depth = 32;*/
cout << width << endl;
}
int main()
{
loadJpg("../img/foregrounds/1.jpeg");
cout << "Hello world!" << endl;
return 0;
}