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
2c9cb013
Commit
2c9cb013
authored
May 18, 2005
by
Maarten Lankhorst
Committed by
Alexandre Julliard
May 18, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add pin functions from quartz.
parent
919d53f2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
81 additions
and
0 deletions
+81
-0
Makefile.in
dlls/qcap/Makefile.in
+1
-0
pin.c
dlls/qcap/pin.c
+0
-0
pin.h
dlls/qcap/pin.h
+80
-0
No files found.
dlls/qcap/Makefile.in
View file @
2c9cb013
...
...
@@ -12,6 +12,7 @@ C_SRCS = \
dllsetup.c
\
enummedia.c
\
enumpins.c
\
pin.c
\
qcap_main.c
RC_SRCS
=
version.rc
...
...
dlls/qcap/pin.c
0 → 100644
View file @
2c9cb013
This diff is collapsed.
Click to expand it.
dlls/qcap/pin.h
0 → 100644
View file @
2c9cb013
/*
* IPin function declarations to allow inheritance
*
* Copyright 2003 Robert Shearman
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/* This function will process incoming samples to the pin.
* Any return value valid in IMemInputPin::Receive is allowed here
*/
typedef
HRESULT
(
*
SAMPLEPROC
)(
LPVOID
userdata
,
IMediaSample
*
pSample
);
/* This function will determine whether a type is supported or not.
* It is allowed to return any error value (within reason), as opposed
* to IPin::QueryAccept which is only allowed to return S_OK or S_FALSE.
*/
typedef
HRESULT
(
*
QUERYACCEPTPROC
)(
LPVOID
userdata
,
const
AM_MEDIA_TYPE
*
pmt
);
/* This function is called prior to finalizing a connection with
* another pin and can be used to get things from the other pin
* like IMemInput interfaces.
*/
typedef
HRESULT
(
*
PRECONNECTPROC
)(
IPin
*
iface
,
IPin
*
pConnectPin
);
typedef
struct
IPinImpl
{
const
struct
IPinVtbl
*
lpVtbl
;
ULONG
refCount
;
LPCRITICAL_SECTION
pCritSec
;
PIN_INFO
pinInfo
;
IPin
*
pConnectedTo
;
AM_MEDIA_TYPE
mtCurrent
;
ENUMMEDIADETAILS
enumMediaDetails
;
QUERYACCEPTPROC
fnQueryAccept
;
LPVOID
pUserData
;
}
IPinImpl
;
typedef
struct
OutputPin
{
/* inheritance C style! */
IPinImpl
pin
;
IMemInputPin
*
pMemInputPin
;
HRESULT
(
*
pConnectSpecific
)(
IPin
*
iface
,
IPin
*
pReceiver
,
const
AM_MEDIA_TYPE
*
pmt
);
ALLOCATOR_PROPERTIES
allocProps
;
}
OutputPin
;
/*** Initializers ***/
HRESULT
OutputPin_Init
(
const
PIN_INFO
*
pPinInfo
,
ALLOCATOR_PROPERTIES
*
props
,
LPVOID
pUserData
,
QUERYACCEPTPROC
pQueryAccept
,
LPCRITICAL_SECTION
pCritSec
,
OutputPin
*
pPinImpl
);
/* Common */
HRESULT
WINAPI
IPinImpl_ConnectedTo
(
IPin
*
iface
,
IPin
**
ppPin
);
HRESULT
WINAPI
IPinImpl_ConnectionMediaType
(
IPin
*
iface
,
AM_MEDIA_TYPE
*
pmt
);
HRESULT
WINAPI
IPinImpl_QueryPinInfo
(
IPin
*
iface
,
PIN_INFO
*
pInfo
);
HRESULT
WINAPI
IPinImpl_QueryDirection
(
IPin
*
iface
,
PIN_DIRECTION
*
pPinDir
);
HRESULT
WINAPI
IPinImpl_QueryId
(
IPin
*
iface
,
LPWSTR
*
Id
);
HRESULT
WINAPI
IPinImpl_QueryAccept
(
IPin
*
iface
,
const
AM_MEDIA_TYPE
*
pmt
);
HRESULT
WINAPI
IPinImpl_EnumMediaTypes
(
IPin
*
iface
,
IEnumMediaTypes
**
ppEnum
);
HRESULT
WINAPI
IPinImpl_QueryInternalConnections
(
IPin
*
iface
,
IPin
**
apPin
,
ULONG
*
cPin
);
/* Output Pin */
HRESULT
WINAPI
OutputPin_Connect
(
IPin
*
iface
,
IPin
*
pReceivePin
,
const
AM_MEDIA_TYPE
*
pmt
);
HRESULT
WINAPI
OutputPin_Disconnect
(
IPin
*
iface
);
HRESULT
WINAPI
OutputPin_ReceiveConnection
(
IPin
*
iface
,
IPin
*
pReceivePin
,
const
AM_MEDIA_TYPE
*
pmt
);
HRESULT
OutputPin_GetDeliveryBuffer
(
OutputPin
*
This
,
IMediaSample
**
ppSample
,
const
REFERENCE_TIME
*
tStart
,
const
REFERENCE_TIME
*
tStop
,
DWORD
dwFlags
);
HRESULT
OutputPin_SendSample
(
OutputPin
*
This
,
IMediaSample
*
pSample
);
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