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
48dcc3fc
Commit
48dcc3fc
authored
Aug 06, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Aug 07, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap: Constify some variables.
parent
3207e06f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
11 deletions
+15
-11
capture.h
dlls/qcap/capture.h
+1
-1
pin.c
dlls/qcap/pin.c
+3
-1
pin.h
dlls/qcap/pin.h
+3
-1
v4l.c
dlls/qcap/v4l.c
+8
-8
No files found.
dlls/qcap/capture.h
View file @
48dcc3fc
...
...
@@ -29,7 +29,7 @@ typedef struct _Capture Capture;
Capture
*
qcap_driver_init
(
IPin
*
,
USHORT
);
HRESULT
qcap_driver_destroy
(
Capture
*
);
HRESULT
qcap_driver_set_format
(
Capture
*
,
AM_MEDIA_TYPE
*
);
HRESULT
qcap_driver_get_format
(
Capture
*
,
AM_MEDIA_TYPE
**
);
HRESULT
qcap_driver_get_format
(
const
Capture
*
,
AM_MEDIA_TYPE
**
);
HRESULT
qcap_driver_get_prop_range
(
Capture
*
,
long
,
long
*
,
long
*
,
long
*
,
long
*
,
long
*
);
HRESULT
qcap_driver_get_prop
(
Capture
*
,
long
,
long
*
,
long
*
);
HRESULT
qcap_driver_set_prop
(
Capture
*
,
long
,
long
,
long
);
...
...
dlls/qcap/pin.c
View file @
48dcc3fc
...
...
@@ -223,7 +223,9 @@ static HRESULT OutputPin_ConnectSpecific(IPin * iface, IPin * pReceivePin, const
return
hr
;
}
HRESULT
OutputPin_Init
(
const
PIN_INFO
*
pPinInfo
,
ALLOCATOR_PROPERTIES
*
props
,
LPVOID
pUserData
,
QUERYACCEPTPROC
pQueryAccept
,
LPCRITICAL_SECTION
pCritSec
,
OutputPin
*
pPinImpl
)
HRESULT
OutputPin_Init
(
const
PIN_INFO
*
pPinInfo
,
const
ALLOCATOR_PROPERTIES
*
props
,
LPVOID
pUserData
,
QUERYACCEPTPROC
pQueryAccept
,
LPCRITICAL_SECTION
pCritSec
,
OutputPin
*
pPinImpl
)
{
TRACE
(
"
\n
"
);
...
...
dlls/qcap/pin.h
View file @
48dcc3fc
...
...
@@ -59,7 +59,9 @@ typedef struct OutputPin
}
OutputPin
;
/*** Initializers ***/
HRESULT
OutputPin_Init
(
const
PIN_INFO
*
pPinInfo
,
ALLOCATOR_PROPERTIES
*
props
,
LPVOID
pUserData
,
QUERYACCEPTPROC
pQueryAccept
,
LPCRITICAL_SECTION
pCritSec
,
OutputPin
*
pPinImpl
);
HRESULT
OutputPin_Init
(
const
PIN_INFO
*
pPinInfo
,
const
ALLOCATOR_PROPERTIES
*
props
,
LPVOID
pUserData
,
QUERYACCEPTPROC
pQueryAccept
,
LPCRITICAL_SECTION
pCritSec
,
OutputPin
*
pPinImpl
);
/* Common */
HRESULT
WINAPI
IPinImpl_ConnectedTo
(
IPin
*
iface
,
IPin
**
ppPin
);
...
...
dlls/qcap/v4l.c
View file @
48dcc3fc
...
...
@@ -73,7 +73,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(qcap_v4l);
#ifdef HAVE_LINUX_VIDEODEV_H
typedef
void
(
*
Renderer
)(
Capture
*
,
LPBYTE
bufferin
,
LPBYTE
stream
);
typedef
void
(
*
Renderer
)(
const
Capture
*
,
LPBYTE
bufferin
,
const
BYTE
*
stream
);
struct
_Capture
{
...
...
@@ -111,8 +111,8 @@ struct renderlist
Renderer
renderer
;
};
static
void
renderer_RGB
(
Capture
*
capBox
,
LPBYTE
bufferin
,
LPBYTE
stream
);
static
void
renderer_YUV
(
Capture
*
capBox
,
LPBYTE
bufferin
,
LPBYTE
stream
);
static
void
renderer_RGB
(
const
Capture
*
capBox
,
LPBYTE
bufferin
,
const
BYTE
*
stream
);
static
void
renderer_YUV
(
const
Capture
*
capBox
,
LPBYTE
bufferin
,
const
BYTE
*
stream
);
static
const
struct
renderlist
renderlist_V4l
[]
=
{
{
0
,
"NULL renderer"
,
NULL
},
...
...
@@ -279,7 +279,7 @@ HRESULT qcap_driver_set_format(Capture *capBox, AM_MEDIA_TYPE * mT)
return
S_OK
;
}
HRESULT
qcap_driver_get_format
(
Capture
*
capBox
,
AM_MEDIA_TYPE
**
mT
)
HRESULT
qcap_driver_get_format
(
const
Capture
*
capBox
,
AM_MEDIA_TYPE
**
mT
)
{
VIDEOINFOHEADER
*
vi
;
...
...
@@ -412,7 +412,7 @@ HRESULT qcap_driver_set_prop(Capture *capBox, long Property, long lValue, long F
return
S_OK
;
}
static
void
renderer_RGB
(
Capture
*
capBox
,
LPBYTE
bufferin
,
LPBYTE
stream
)
static
void
renderer_RGB
(
const
Capture
*
capBox
,
LPBYTE
bufferin
,
const
BYTE
*
stream
)
{
int
depth
=
renderlist_V4l
[
capBox
->
pict
.
palette
].
depth
;
int
size
=
capBox
->
height
*
capBox
->
width
*
depth
/
8
;
...
...
@@ -443,7 +443,7 @@ static void renderer_RGB(Capture *capBox, LPBYTE bufferin, LPBYTE stream)
}
}
static
void
renderer_YUV
(
Capture
*
capBox
,
LPBYTE
bufferin
,
LPBYTE
stream
)
static
void
renderer_YUV
(
const
Capture
*
capBox
,
LPBYTE
bufferin
,
const
BYTE
*
stream
)
{
enum
YUV_Format
format
;
...
...
@@ -478,7 +478,7 @@ static void renderer_YUV(Capture *capBox, LPBYTE bufferin, LPBYTE stream)
YUV_To_RGB24
(
format
,
bufferin
,
stream
,
capBox
->
width
,
capBox
->
height
);
}
static
void
Resize
(
Capture
*
capBox
,
LPBYTE
output
,
LPBYTE
input
)
static
void
Resize
(
const
Capture
*
capBox
,
LPBYTE
output
,
const
BYTE
*
input
)
{
/* the whole image needs to be reversed,
because the dibs are messed up in windows */
...
...
@@ -927,7 +927,7 @@ HRESULT qcap_driver_set_format(Capture *capBox, AM_MEDIA_TYPE * mT)
FAIL_WITH_ERR
;
}
HRESULT
qcap_driver_get_format
(
Capture
*
capBox
,
AM_MEDIA_TYPE
**
mT
)
HRESULT
qcap_driver_get_format
(
const
Capture
*
capBox
,
AM_MEDIA_TYPE
**
mT
)
{
FAIL_WITH_ERR
;
}
...
...
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