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
57e00c85
Commit
57e00c85
authored
Oct 07, 2010
by
Joel Holdsworth
Committed by
Alexandre Julliard
Oct 07, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Implemented GifFrameDecode_GetResolution.
parent
e66a2f6d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
gifformat.c
dlls/windowscodecs/gifformat.c
+9
-2
ungif.c
dlls/windowscodecs/ungif.c
+1
-0
ungif.h
dlls/windowscodecs/ungif.h
+2
-1
No files found.
dlls/windowscodecs/gifformat.c
View file @
57e00c85
...
...
@@ -123,8 +123,15 @@ static HRESULT WINAPI GifFrameDecode_GetPixelFormat(IWICBitmapFrameDecode *iface
static
HRESULT
WINAPI
GifFrameDecode_GetResolution
(
IWICBitmapFrameDecode
*
iface
,
double
*
pDpiX
,
double
*
pDpiY
)
{
FIXME
(
"(%p,%p,%p): stub
\n
"
,
iface
,
pDpiX
,
pDpiY
);
return
E_NOTIMPL
;
GifFrameDecode
*
This
=
(
GifFrameDecode
*
)
iface
;
const
GifWord
aspect_word
=
This
->
parent
->
gif
->
SAspectRatio
;
const
double
aspect
=
(
aspect_word
>
0
)
?
((
aspect_word
+
15
.
0
)
/
64
.
0
)
:
1
.
0
;
TRACE
(
"(%p,%p,%p)
\n
"
,
iface
,
pDpiX
,
pDpiY
);
*
pDpiX
=
96
.
0
/
aspect
;
*
pDpiY
=
96
.
0
;
return
S_OK
;
}
static
HRESULT
WINAPI
GifFrameDecode_CopyPalette
(
IWICBitmapFrameDecode
*
iface
,
...
...
dlls/windowscodecs/ungif.c
View file @
57e00c85
...
...
@@ -285,6 +285,7 @@ DGifGetScreenDesc(GifFileType * GifFile) {
GifFile
->
SColorResolution
=
(((
Buf
[
0
]
&
0x70
)
+
1
)
>>
4
)
+
1
;
BitsPerPixel
=
(
Buf
[
0
]
&
0x07
)
+
1
;
GifFile
->
SBackGroundColor
=
Buf
[
1
];
GifFile
->
SAspectRatio
=
Buf
[
2
];
if
(
Buf
[
0
]
&
0x80
)
{
/* Do we have global color map? */
GifFile
->
SColorMap
=
MakeMapObject
(
1
<<
BitsPerPixel
,
NULL
);
...
...
dlls/windowscodecs/ungif.h
View file @
57e00c85
...
...
@@ -100,7 +100,8 @@ typedef struct GifImageDesc {
typedef
struct
GifFileType
{
GifWord
SWidth
,
SHeight
,
/* Screen dimensions. */
SColorResolution
,
/* How many colors can we generate? */
SBackGroundColor
;
/* I hope you understand this one... */
SBackGroundColor
,
/* I hope you understand this one... */
SAspectRatio
;
/* Pixel aspect ratio, in 1/64 units, starting at 1:4. */
ColorMapObject
*
SColorMap
;
/* NULL if not exists. */
int
ImageCount
;
/* Number of current image */
GifImageDesc
Image
;
/* Block describing current image */
...
...
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