File reading successful ~ thanks to derdachs
This commit is contained in:
19
imanox-chroma-matting/imanox-chroma-matting.depend
Normal file
19
imanox-chroma-matting/imanox-chroma-matting.depend
Normal 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
|
||||||
|
|
||||||
9
imanox-chroma-matting/imanox-chroma-matting.layout
Normal file
9
imanox-chroma-matting/imanox-chroma-matting.layout
Normal 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>
|
||||||
@@ -1,15 +1,9 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <stdio.h>
|
||||||
#include <jpeglib.h>
|
#include <jpeglib.h>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
int main()
|
|
||||||
{
|
|
||||||
loadJpg("..\img\foregrounds\1.jpg")
|
|
||||||
cout << "Hello world!" << endl;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
int loadJpg(const char* Name) {
|
int loadJpg(const char* Name) {
|
||||||
unsigned char a, r, g, b;
|
unsigned char a, r, g, b;
|
||||||
int width, height;
|
int width, height;
|
||||||
@@ -63,8 +57,17 @@ int loadJpg(const char* Name) {
|
|||||||
(void) jpeg_finish_decompress(&cinfo);
|
(void) jpeg_finish_decompress(&cinfo);
|
||||||
jpeg_destroy_decompress(&cinfo);
|
jpeg_destroy_decompress(&cinfo);
|
||||||
|
|
||||||
BMap = (int*)pTest;
|
/*BMap = (int*)pTest;
|
||||||
Height = height;
|
Height = height;
|
||||||
Width = width;
|
Width = width;
|
||||||
Depth = 32;
|
Depth = 32;*/
|
||||||
|
cout << width << endl;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
loadJpg("../img/foregrounds/1.jpeg");
|
||||||
|
cout << "Hello world!" << endl;
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Reference in New Issue
Block a user