File reading successful ~ thanks to derdachs
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user