Skip to content

Commit

Permalink
Updated example to show image pre processing
Browse files Browse the repository at this point in the history
  • Loading branch information
smasherprog committed May 5, 2017
1 parent 0932a65 commit 0ad31ca
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Example/Screen_Capture_Example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,9 @@ int main()
for (size_t h = 0; h < height; h++) {
for (size_t w = 0; w < width; w++) {
auto b = startdata[0];
//auto g = startdata[1];
auto r = startdata[2];
//auto a = startdata[3];
startdata[0] = r;
//startdata[1] = g;
startdata[2] = b;
// startdata[3] = a;

startdata += 4;//4 bytes per pixel
}
Expand All @@ -55,7 +51,7 @@ int main()
}
Extract(img, imgbuffer.get(), size);

tje_encode_to_file(s.c_str(), Width(img), Height(img), 4, (const unsigned char*)imgbuffer.get());
// tje_encode_to_file(s.c_str(), Width(img), Height(img), 4, (const unsigned char*)imgbuffer.get());
});

framgrabber.onNewFrame([&](const SL::Screen_Capture::Image& img, const SL::Screen_Capture::Monitor& monitor) {
Expand Down

0 comments on commit 0ad31ca

Please sign in to comment.