Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
db4ea9ef
Commit
db4ea9ef
authored
Sep 29, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Redirect TIFF debug output to the Wine debug functions.
parent
0fb2d0f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
libtiff.c
dlls/windowscodecs/libtiff.c
+19
-0
No files found.
dlls/windowscodecs/libtiff.c
View file @
db4ea9ef
...
...
@@ -34,6 +34,21 @@
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
wincodecs
);
WINE_DECLARE_DEBUG_CHANNEL
(
tiff
);
static
void
tiff_error_handler
(
const
char
*
module
,
const
char
*
format
,
va_list
args
)
{
if
(
!
ERR_ON
(
tiff
))
return
;
if
(
wine_dbg_vlog
(
__WINE_DBCL_ERR
,
&
__wine_dbch_tiff
,
module
,
format
,
args
)
!=
-
1
)
__wine_dbg_output
(
"
\n
"
);
}
static
void
tiff_warning_handler
(
const
char
*
module
,
const
char
*
format
,
va_list
args
)
{
if
(
!
WARN_ON
(
tiff
))
return
;
if
(
wine_dbg_vlog
(
__WINE_DBCL_WARN
,
&
__wine_dbch_tiff
,
module
,
format
,
args
)
!=
-
1
)
__wine_dbg_output
(
"
\n
"
);
}
static
tsize_t
tiff_stream_read
(
thandle_t
client_data
,
tdata_t
data
,
tsize_t
size
)
{
...
...
@@ -1077,6 +1092,8 @@ HRESULT CDECL tiff_decoder_create(struct decoder_info *info, struct decoder **re
info
->
block_format
=
GUID_ContainerFormatTiff
;
info
->
clsid
=
CLSID_WICTiffDecoder
;
TIFFSetErrorHandler
(
tiff_error_handler
);
TIFFSetWarningHandler
(
tiff_warning_handler
);
return
S_OK
;
}
...
...
@@ -1316,5 +1333,7 @@ HRESULT CDECL tiff_encoder_create(struct encoder_info *info, struct encoder **re
*
result
=
&
This
->
encoder
;
TIFFSetErrorHandler
(
tiff_error_handler
);
TIFFSetWarningHandler
(
tiff_warning_handler
);
return
S_OK
;
}
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