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
31b88c38
Commit
31b88c38
authored
Mar 24, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 24, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat: Implement GetContiguousLength() for d3d9 buffer.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
264732a8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
buffer.c
dlls/mfplat/buffer.c
+1
-8
mfplat.c
dlls/mfplat/tests/mfplat.c
+10
-0
No files found.
dlls/mfplat/buffer.c
View file @
31b88c38
...
...
@@ -697,13 +697,6 @@ static HRESULT WINAPI d3d9_surface_buffer_GetScanline0AndPitch(IMF2DBuffer2 *ifa
return
hr
;
}
static
HRESULT
WINAPI
d3d9_surface_buffer_GetContiguousLength
(
IMF2DBuffer2
*
iface
,
DWORD
*
length
)
{
FIXME
(
"%p, %p.
\n
"
,
iface
,
length
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
d3d9_surface_buffer_Lock2DSize
(
IMF2DBuffer2
*
iface
,
MF2DBuffer_LockFlags
flags
,
BYTE
**
scanline0
,
LONG
*
pitch
,
BYTE
**
buffer_start
,
DWORD
*
buffer_length
)
{
...
...
@@ -748,7 +741,7 @@ static const IMF2DBuffer2Vtbl d3d9_surface_buffer_vtbl =
d3d9_surface_buffer_Unlock2D
,
d3d9_surface_buffer_GetScanline0AndPitch
,
memory_2d_buffer_IsContiguousFormat
,
d3d9_surface
_buffer_GetContiguousLength
,
memory_2d
_buffer_GetContiguousLength
,
memory_2d_buffer_ContiguousCopyTo
,
memory_2d_buffer_ContiguousCopyFrom
,
d3d9_surface_buffer_Lock2DSize
,
...
...
dlls/mfplat/tests/mfplat.c
View file @
31b88c38
...
...
@@ -5895,6 +5895,10 @@ static void test_MFCreateDXSurfaceBuffer(void)
hr
=
pMFCreateDXSurfaceBuffer
(
&
IID_IDirect3DSurface9
,
(
IUnknown
*
)
backbuffer
,
FALSE
,
&
buffer
);
ok
(
hr
==
S_OK
,
"Failed to create a buffer, hr %#x.
\n
"
,
hr
);
check_interface
(
buffer
,
&
IID_IMF2DBuffer
,
TRUE
);
check_interface
(
buffer
,
&
IID_IMF2DBuffer2
,
TRUE
);
check_interface
(
buffer
,
&
IID_IMFGetService
,
TRUE
);
/* Surface is accessible. */
hr
=
IMFMediaBuffer_QueryInterface
(
buffer
,
&
IID_IMFGetService
,
(
void
**
)
&
gs
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
...
...
@@ -5977,6 +5981,12 @@ static void test_MFCreateDXSurfaceBuffer(void)
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
ok
(
!
value
,
"Unexpected return value %d.
\n
"
,
value
);
hr
=
IMF2DBuffer_GetContiguousLength
(
_2dbuffer
,
NULL
);
ok
(
hr
==
E_POINTER
,
"Unexpected hr %#x.
\n
"
,
hr
);
hr
=
IMF2DBuffer_GetContiguousLength
(
_2dbuffer
,
&
length
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
ok
(
length
==
max_length
,
"Unexpected length %u.
\n
"
,
length
);
IMF2DBuffer_Release
(
_2dbuffer
);
hr
=
IMFMediaBuffer_QueryInterface
(
buffer
,
&
IID_IMF2DBuffer2
,
(
void
**
)
&
_2dbuffer2
);
...
...
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