Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
992dcd48
Commit
992dcd48
authored
Jun 05, 2016
by
Davis King
Browse files
merged
parents
aa19ff73
02f6da28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dlib/image_saver/save_jpeg.cpp
dlib/image_saver/save_jpeg.cpp
+4
-4
No files found.
dlib/image_saver/save_jpeg.cpp
View file @
992dcd48
...
@@ -86,8 +86,8 @@ namespace dlib
...
@@ -86,8 +86,8 @@ namespace dlib
cinfo
.
input_components
=
3
;
cinfo
.
input_components
=
3
;
cinfo
.
in_color_space
=
JCS_RGB
;
cinfo
.
in_color_space
=
JCS_RGB
;
jpeg_set_defaults
(
&
cinfo
);
jpeg_set_defaults
(
&
cinfo
);
jpeg_set_quality
(
&
cinfo
,
quality
,
true
);
jpeg_set_quality
(
&
cinfo
,
quality
,
TRUE
);
jpeg_start_compress
(
&
cinfo
,
true
);
jpeg_start_compress
(
&
cinfo
,
TRUE
);
// now write out the rows one at a time
// now write out the rows one at a time
while
(
cinfo
.
next_scanline
<
cinfo
.
image_height
)
{
while
(
cinfo
.
next_scanline
<
cinfo
.
image_height
)
{
...
@@ -148,8 +148,8 @@ namespace dlib
...
@@ -148,8 +148,8 @@ namespace dlib
cinfo
.
input_components
=
1
;
cinfo
.
input_components
=
1
;
cinfo
.
in_color_space
=
JCS_GRAYSCALE
;
cinfo
.
in_color_space
=
JCS_GRAYSCALE
;
jpeg_set_defaults
(
&
cinfo
);
jpeg_set_defaults
(
&
cinfo
);
jpeg_set_quality
(
&
cinfo
,
quality
,
true
);
jpeg_set_quality
(
&
cinfo
,
quality
,
TRUE
);
jpeg_start_compress
(
&
cinfo
,
true
);
jpeg_start_compress
(
&
cinfo
,
TRUE
);
// now write out the rows one at a time
// now write out the rows one at a time
while
(
cinfo
.
next_scanline
<
cinfo
.
image_height
)
{
while
(
cinfo
.
next_scanline
<
cinfo
.
image_height
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment