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
vision
Commits
480eec29
Unverified
Commit
480eec29
authored
Mar 21, 2024
by
cdzhan
Committed by
GitHub
Mar 21, 2024
Browse files
Fix compilation error when there is no libjpeg (#8342)
Co-authored-by:
vfdev
<
vfdev.5@gmail.com
>
parent
d868be90
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
torchvision/csrc/io/image/cpu/exif.h
torchvision/csrc/io/image/cpu/exif.h
+0
-8
No files found.
torchvision/csrc/io/image/cpu/exif.h
View file @
480eec29
...
@@ -196,10 +196,6 @@ inline int fetch_jpeg_exif_orientation(j_decompress_ptr cinfo) {
...
@@ -196,10 +196,6 @@ inline int fetch_jpeg_exif_orientation(j_decompress_ptr cinfo) {
return
fetch_exif_orientation
(
exif_data_ptr
,
size
);
return
fetch_exif_orientation
(
exif_data_ptr
,
size
);
}
}
#else // #if JPEG_FOUND
inline
int
fetch_jpeg_exif_orientation
(
j_decompress_ptr
cinfo
)
{
return
-
1
;
}
#endif // #if JPEG_FOUND
#endif // #if JPEG_FOUND
#if PNG_FOUND && defined(PNG_eXIf_SUPPORTED)
#if PNG_FOUND && defined(PNG_eXIf_SUPPORTED)
...
@@ -216,10 +212,6 @@ inline int fetch_png_exif_orientation(png_structp png_ptr, png_infop info_ptr) {
...
@@ -216,10 +212,6 @@ inline int fetch_png_exif_orientation(png_structp png_ptr, png_infop info_ptr) {
return
fetch_exif_orientation
(
exif
,
num_exif
);
return
fetch_exif_orientation
(
exif
,
num_exif
);
}
}
}
}
#else // #if PNG_FOUND && defined(PNG_eXIf_SUPPORTED)
inline
int
fetch_png_exif_orientation
(
png_structp
png_ptr
,
png_infop
info_ptr
)
{
return
-
1
;
}
#endif // #if PNG_FOUND && defined(PNG_eXIf_SUPPORTED)
#endif // #if PNG_FOUND && defined(PNG_eXIf_SUPPORTED)
constexpr
uint16_t
IMAGE_ORIENTATION_TL
=
1
;
// normal orientation
constexpr
uint16_t
IMAGE_ORIENTATION_TL
=
1
;
// normal orientation
...
...
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