Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
9aa3c745
Commit
9aa3c745
authored
Jan 16, 2012
by
Aric Stewart
Committed by
Alexandre Julliard
Jan 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineqtdecoder: Do not invert height.
parent
a6b6c0eb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
qtsplitter.c
dlls/wineqtdecoder/qtsplitter.c
+3
-2
qtutils.c
dlls/wineqtdecoder/qtutils.c
+3
-2
qtvdecoder.c
dlls/wineqtdecoder/qtvdecoder.c
+0
-2
No files found.
dlls/wineqtdecoder/qtsplitter.c
View file @
9aa3c745
...
...
@@ -767,12 +767,13 @@ static HRESULT QT_Process_Video_Track(QTSplitter* filter, Track trk)
pvi
=
(
VIDEOINFOHEADER
*
)
amt
.
pbFormat
;
pvi
->
bmiHeader
.
biSize
=
sizeof
(
BITMAPINFOHEADER
);
pvi
->
bmiHeader
.
biWidth
=
outputWidth
;
pvi
->
bmiHeader
.
biHeight
=
-
outputHeight
;
pvi
->
bmiHeader
.
biHeight
=
outputHeight
;
pvi
->
bmiHeader
.
biPlanes
=
1
;
pvi
->
bmiHeader
.
biBitCount
=
24
;
pvi
->
bmiHeader
.
biCompression
=
BI_RGB
;
pvi
->
bmiHeader
.
biSizeImage
=
outputWidth
*
outputHeight
*
outputDepth
;
filter
->
outputSize
=
outputWidth
*
outputHeight
*
outputDepth
;
filter
->
outputSize
=
pvi
->
bmiHeader
.
biSizeImage
;
amt
.
lSampleSize
=
0
;
pixelBufferOptions
=
CFDictionaryCreateMutable
(
NULL
,
0
,
&
kCFTypeDictionaryKeyCallBacks
,
&
kCFTypeDictionaryValueCallBacks
);
...
...
dlls/wineqtdecoder/qtutils.c
View file @
9aa3c745
...
...
@@ -126,7 +126,6 @@ typedef struct {
HRESULT
AccessPixelBufferPixels
(
CVPixelBufferRef
pixelBuffer
,
LPBYTE
pbDstStream
)
{
LPBYTE
pPixels
=
NULL
;
LPBYTE
out
=
NULL
;
size_t
bytesPerRow
=
0
,
height
=
0
,
width
=
0
;
OSType
actualType
;
int
i
;
...
...
@@ -143,9 +142,11 @@ HRESULT AccessPixelBufferPixels( CVPixelBufferRef pixelBuffer, LPBYTE pbDstStrea
height
=
CVPixelBufferGetHeight
(
pixelBuffer
);
width
=
CVPixelBufferGetWidth
(
pixelBuffer
);
for
(
out
=
pbDstStream
,
i
=
0
;
i
<
height
;
i
++
)
for
(
i
=
1
;
i
<=
height
;
i
++
)
{
int
j
;
LPBYTE
out
=
pbDstStream
+
((
height
-
i
)
*
width
*
3
);
for
(
j
=
0
;
j
<
width
;
j
++
)
{
*
((
DWORD
*
)
out
)
=
(((
ARGBPixelPtr
)
pPixels
)[
j
].
r
)
<<
16
...
...
dlls/wineqtdecoder/qtvdecoder.c
View file @
9aa3c745
...
...
@@ -442,8 +442,6 @@ static HRESULT WINAPI QTVDecoder_SetMediaType(TransformFilter *tf, PIN_DIRECTION
bmi
->
biCompression
=
BI_RGB
;
bmi
->
biBitCount
=
24
;
outpmt
->
subtype
=
MEDIASUBTYPE_RGB24
;
if
(
bmi
->
biHeight
>
0
)
bmi
->
biHeight
=
-
bmi
->
biHeight
;
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