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
0bcc9921
Commit
0bcc9921
authored
Mar 22, 2006
by
Aric Stewart
Committed by
Alexandre Julliard
Mar 28, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
twain: A few cleanups, using some consts from sane.
parent
1a5c6ef4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
ds_image.c
dlls/twain/ds_image.c
+11
-2
No files found.
dlls/twain/ds_image.c
View file @
0bcc9921
...
...
@@ -120,7 +120,7 @@ TW_UINT16 TWAIN_ImageInfoGet (pTW_IDENTITY pOrigin, pTW_IDENTITY pDest,
TRACE
(
"Bits per Sample %i
\n
"
,
pSource
->
sane_param
.
depth
);
TRACE
(
"Frame Format %i
\n
"
,
pSource
->
sane_param
.
format
);
if
(
pSource
->
sane_param
.
format
==
1
/*RGB*/
)
if
(
pSource
->
sane_param
.
format
==
SANE_FRAME_RGB
)
{
pImageInfo
->
BitsPerPixel
=
pSource
->
sane_param
.
depth
*
3
;
pImageInfo
->
Compression
=
TWCP_NONE
;
...
...
@@ -131,9 +131,18 @@ TW_UINT16 TWAIN_ImageInfoGet (pTW_IDENTITY pOrigin, pTW_IDENTITY pDest,
pImageInfo
->
BitsPerSample
[
2
]
=
pSource
->
sane_param
.
depth
;
pImageInfo
->
PixelType
=
TWPT_RGB
;
}
else
if
(
pSource
->
sane_param
.
format
==
SANE_FRAME_GRAY
)
{
pImageInfo
->
BitsPerPixel
=
pSource
->
sane_param
.
depth
;
pImageInfo
->
Compression
=
TWCP_NONE
;
pImageInfo
->
Planar
=
TRUE
;
pImageInfo
->
SamplesPerPixel
=
1
;
pImageInfo
->
BitsPerSample
[
0
]
=
pSource
->
sane_param
.
depth
;
pImageInfo
->
PixelType
=
TWPT_GRAY
;
}
else
{
ERR
(
"Unhandled source frame type
\n
"
);
ERR
(
"Unhandled source frame type
%i
\n
"
,
pSource
->
sane_param
.
format
);
twRC
=
TWRC_FAILURE
;
pSource
->
twCC
=
TWCC_SEQERROR
;
}
...
...
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