Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
GIMP
Commits
cc140a9b
Commit
cc140a9b
authored
May 07, 2005
by
jaycox
Browse files
add comments describing thumbnail resource. >
* plug-ins/common/psd.c: add comments describing thumbnail resource. >
parent
b163c369
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
cc140a9b
2005-05-07 Jay Cox <jaycox@gimp.org>
* plug-ins/common/psd.c: add comments describing thumbnail resource.
2005-05-07 Sven Neumann <sven@gimp.org>
* plug-ins/winicon/icoload.c
...
...
plug-ins/common/psd.c
View file @
cc140a9b
...
...
@@ -613,7 +613,7 @@ dispatch_resID(guint ID, FILE *fd, guint32 *offset, guint32 Size)
{
if
(
(
ID
<
0x0bb6
)
&&
(
ID
>
0x07d0
)
)
{
IFDBG
printf
(
"
\t\t
Path data is irrelevant to GIMP at this time
.
\n
"
);
IFDBG
printf
(
"
\t\t
The psd plugin does not currently support reading path data
.
\n
"
);
throwchunk
(
Size
,
fd
,
"dispatch_res path throw"
);
(
*
offset
)
+=
Size
;
}
...
...
@@ -885,6 +885,29 @@ dispatch_resID(guint ID, FILE *fd, guint32 *offset, guint32 Size)
psd_image
.
resolution
.
vRes
/
65536
.
0
);
}
break
;
case
0x0409
:
/* DATA LAYOUT for thumbail resource */
/* 4 bytes format (1 = jfif, 0 = raw) */
/* 4 bytes width width of thumbnail */
/* 4 bytes height height of thumbnail */
/* 4 bytes widthbytes for validation only?*/
/* 4 bytes size for validation only?*/
/* 4 bytes compressed size for validation only?*/
/* 2 bytes bits per pixel Always 24? */
/* 2 bytes planes Always 1? */
/* size bytes data JFIF (or raw) data */
IFDBG
printf
(
"
\t\t
<Photoshop 4.0 style thumbnail (BGR)> unhandled
\n
"
);
/* for resource 0x0409 we have to swap the r and b channels
after decoding */
throwchunk
(
Size
,
fd
,
"dispatch_res"
);
(
*
offset
)
+=
Size
;
break
;
case
0x040C
:
/* See above */
IFDBG
printf
(
"
\t\t
<Photoshop 5.0 style thumbnail (RGB)> unhandled
\n
"
);
throwchunk
(
Size
,
fd
,
"dispatch_res"
);
(
*
offset
)
+=
Size
;
break
;
case
0x03e9
:
case
0x03f1
:
case
0x03f3
:
...
...
Write
Preview
Supports
Markdown
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