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
4c23814c
Commit
4c23814c
authored
May 19, 2010
by
Maarten Lankhorst
Committed by
Alexandre Julliard
May 20, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Support negative heights in video renderer.
parent
a489489e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
videorenderer.c
dlls/quartz/videorenderer.c
+13
-5
No files found.
dlls/quartz/videorenderer.c
View file @
4c23814c
...
...
@@ -82,8 +82,8 @@ typedef struct VideoRendererImpl
RECT
SourceRect
;
RECT
DestRect
;
RECT
WindowPos
;
long
VideoWidth
;
long
VideoHeight
;
LONG
VideoWidth
;
LONG
VideoHeight
;
IUnknown
*
pUnkOuter
;
BOOL
bUnkOuterValid
;
BOOL
bAggregatable
;
...
...
@@ -287,7 +287,6 @@ static DWORD VideoRenderer_SendSampleData(VideoRendererImpl* This, LPBYTE data,
return
VFW_E_RUNTIME_ERROR
;
}
TRACE
(
"biSize = %d
\n
"
,
bmiHeader
->
biSize
);
TRACE
(
"biWidth = %d
\n
"
,
bmiHeader
->
biWidth
);
TRACE
(
"biHeight = %d
\n
"
,
bmiHeader
->
biHeight
);
...
...
@@ -483,6 +482,7 @@ static HRESULT VideoRenderer_QueryAccept(LPVOID iface, const AM_MEDIA_TYPE * pmt
IsEqualIID
(
&
pmt
->
subtype
,
&
MEDIASUBTYPE_RGB8
))
{
VideoRendererImpl
*
This
=
iface
;
LONG
height
;
if
(
IsEqualIID
(
&
pmt
->
formattype
,
&
FORMAT_VideoInfo
))
{
...
...
@@ -490,7 +490,11 @@ static HRESULT VideoRenderer_QueryAccept(LPVOID iface, const AM_MEDIA_TYPE * pmt
This
->
SourceRect
.
left
=
0
;
This
->
SourceRect
.
top
=
0
;
This
->
SourceRect
.
right
=
This
->
VideoWidth
=
format
->
bmiHeader
.
biWidth
;
This
->
SourceRect
.
bottom
=
This
->
VideoHeight
=
format
->
bmiHeader
.
biHeight
;
height
=
format
->
bmiHeader
.
biHeight
;
if
(
height
<
0
)
This
->
SourceRect
.
bottom
=
This
->
VideoHeight
=
-
height
;
else
This
->
SourceRect
.
bottom
=
This
->
VideoHeight
=
height
;
}
else
if
(
IsEqualIID
(
&
pmt
->
formattype
,
&
FORMAT_VideoInfo2
))
{
...
...
@@ -499,7 +503,11 @@ static HRESULT VideoRenderer_QueryAccept(LPVOID iface, const AM_MEDIA_TYPE * pmt
This
->
SourceRect
.
left
=
0
;
This
->
SourceRect
.
top
=
0
;
This
->
SourceRect
.
right
=
This
->
VideoWidth
=
format2
->
bmiHeader
.
biWidth
;
This
->
SourceRect
.
bottom
=
This
->
VideoHeight
=
format2
->
bmiHeader
.
biHeight
;
height
=
format2
->
bmiHeader
.
biHeight
;
if
(
height
<
0
)
This
->
SourceRect
.
bottom
=
This
->
VideoHeight
=
-
height
;
else
This
->
SourceRect
.
bottom
=
This
->
VideoHeight
=
height
;
}
else
{
...
...
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