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
a1412f68
Commit
a1412f68
authored
Aug 26, 2002
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 26, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved most of the 16-bit functions in dlls/msvideo to msvideo16.c.
parent
d86393f6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
301 deletions
+1
-301
Makefile.in
dlls/msvideo/Makefile.in
+1
-0
drawdib.c
dlls/msvideo/drawdib.c
+0
-89
msvideo16.c
dlls/msvideo/msvideo16.c
+0
-0
msvideo_main.c
dlls/msvideo/msvideo_main.c
+0
-212
No files found.
dlls/msvideo/Makefile.in
View file @
a1412f68
...
...
@@ -12,6 +12,7 @@ SYMBOLFILE = $(MODULE).tmp.o
C_SRCS
=
\
mciwnd.c
\
msvideo_main.c
\
msvideo16.c
\
drawdib.c
EXTRA_OBJS
=
$(MODULE)
.glue.o
...
...
dlls/msvideo/drawdib.c
View file @
a1412f68
...
...
@@ -72,13 +72,6 @@ HDRAWDIB VFWAPI DrawDibOpen(void) {
}
/***********************************************************************
* DrawDibOpen [MSVIDEO.102]
*/
HDRAWDIB16
VFWAPI
DrawDibOpen16
(
void
)
{
return
(
HDRAWDIB16
)
DrawDibOpen
();
}
/***********************************************************************
* DrawDibClose [MSVFW32.@]
*/
BOOL
VFWAPI
DrawDibClose
(
HDRAWDIB
hdd
)
{
...
...
@@ -98,13 +91,6 @@ BOOL VFWAPI DrawDibClose(HDRAWDIB hdd) {
}
/***********************************************************************
* DrawDibClose [MSVIDEO.103]
*/
BOOL16
VFWAPI
DrawDibClose16
(
HDRAWDIB16
hdd
)
{
return
DrawDibClose
(
hdd
);
}
/***********************************************************************
* DrawDibEnd [MSVFW32.@]
*/
BOOL
VFWAPI
DrawDibEnd
(
HDRAWDIB
hdd
)
{
...
...
@@ -149,13 +135,6 @@ BOOL VFWAPI DrawDibEnd(HDRAWDIB hdd) {
}
/***********************************************************************
* DrawDibEnd [MSVIDEO.105]
*/
BOOL16
VFWAPI
DrawDibEnd16
(
HDRAWDIB16
hdd
)
{
return
DrawDibEnd
(
hdd
);
}
/***********************************************************************
* DrawDibBegin [MSVFW32.@]
*/
BOOL
VFWAPI
DrawDibBegin
(
HDRAWDIB
hdd
,
...
...
@@ -266,20 +245,6 @@ BOOL VFWAPI DrawDibBegin(HDRAWDIB hdd,
return
ret
;
}
/************************************************************************
* DrawDibBegin [MSVIDEO.104]
*/
BOOL16
VFWAPI
DrawDibBegin16
(
HDRAWDIB16
hdd
,
HDC16
hdc
,
INT16
dxDst
,
INT16
dyDst
,
LPBITMAPINFOHEADER
lpbi
,
INT16
dxSrc
,
INT16
dySrc
,
UINT16
wFlags
)
{
return
DrawDibBegin
(
hdd
,
hdc
,
dxDst
,
dyDst
,
lpbi
,
dxSrc
,
dySrc
,
wFlags
);
}
/**********************************************************************
* DrawDibDraw [MSVFW32.@]
*/
...
...
@@ -351,25 +316,6 @@ BOOL VFWAPI DrawDibDraw(HDRAWDIB hdd, HDC hdc,
return
ret
;
}
/**********************************************************************
* DrawDibDraw [MSVIDEO.106]
*/
BOOL16
VFWAPI
DrawDibDraw16
(
HDRAWDIB16
hdd
,
HDC16
hdc
,
INT16
xDst
,
INT16
yDst
,
INT16
dxDst
,
INT16
dyDst
,
LPBITMAPINFOHEADER
lpbi
,
LPVOID
lpBits
,
INT16
xSrc
,
INT16
ySrc
,
INT16
dxSrc
,
INT16
dySrc
,
UINT16
wFlags
)
{
return
DrawDibDraw
(
hdd
,
hdc
,
xDst
,
yDst
,
dxDst
,
dyDst
,
lpbi
,
lpBits
,
xSrc
,
ySrc
,
dxSrc
,
dySrc
,
wFlags
);
}
/*************************************************************************
* DrawDibStart [MSVFW32.@]
*/
...
...
@@ -379,13 +325,6 @@ BOOL VFWAPI DrawDibStart(HDRAWDIB hdd, DWORD rate) {
}
/*************************************************************************
* DrawDibStart [MSVIDEO.118]
*/
BOOL16
VFWAPI
DrawDibStart16
(
HDRAWDIB16
hdd
,
DWORD
rate
)
{
return
DrawDibStart
(
hdd
,
rate
);
}
/*************************************************************************
* DrawDibStop [MSVFW32.@]
*/
BOOL
VFWAPI
DrawDibStop
(
HDRAWDIB
hdd
)
{
...
...
@@ -393,13 +332,6 @@ BOOL VFWAPI DrawDibStop(HDRAWDIB hdd) {
return
TRUE
;
}
/*************************************************************************
* DrawDibStop [MSVIDEO.119]
*/
BOOL16
DrawDibStop16
(
HDRAWDIB16
hdd
)
{
return
DrawDibStop
(
hdd
);
}
/***********************************************************************
* DrawDibSetPalette [MSVFW32.@]
*/
...
...
@@ -420,13 +352,6 @@ BOOL VFWAPI DrawDibSetPalette(HDRAWDIB hdd, HPALETTE hpal) {
}
/***********************************************************************
* DrawDibSetPalette [MSVIDEO.110]
*/
BOOL16
VFWAPI
DrawDibSetPalette16
(
HDRAWDIB16
hdd
,
HPALETTE16
hpal
)
{
return
DrawDibSetPalette
(
hdd
,
hpal
);
}
/***********************************************************************
* DrawDibGetPalette [MSVFW32.@]
*/
HPALETTE
VFWAPI
DrawDibGetPalette
(
HDRAWDIB
hdd
)
{
...
...
@@ -442,13 +367,6 @@ HPALETTE VFWAPI DrawDibGetPalette(HDRAWDIB hdd) {
}
/***********************************************************************
* DrawDibGetPalette [MSVIDEO.108]
*/
HPALETTE16
VFWAPI
DrawDibGetPalette16
(
HDRAWDIB16
hdd
)
{
return
(
HPALETTE16
)
DrawDibGetPalette
(
hdd
);
}
/***********************************************************************
* DrawDibRealize [MSVFW32.@]
*/
UINT
VFWAPI
DrawDibRealize
(
HDRAWDIB
hdd
,
HDC
hdc
,
BOOL
fBackground
)
{
...
...
@@ -477,10 +395,3 @@ UINT VFWAPI DrawDibRealize(HDRAWDIB hdd, HDC hdc, BOOL fBackground) {
TRACE
(
"=> %u
\n
"
,
ret
);
return
ret
;
}
/***********************************************************************
* DrawDibRealize [MSVIDEO.112]
*/
UINT16
VFWAPI
DrawDibRealize16
(
HDRAWDIB16
hdd
,
HDC16
hdc
,
BOOL16
fBackground
)
{
return
(
UINT16
)
DrawDibRealize
(
hdd
,
hdc
,
fBackground
);
}
dlls/msvideo/msvideo16.c
0 → 100644
View file @
a1412f68
This diff is collapsed.
Click to expand it.
dlls/msvideo/msvideo_main.c
View file @
a1412f68
...
...
@@ -292,13 +292,6 @@ HIC VFWAPI ICOpenFunction(DWORD fccType, DWORD fccHandler, UINT wMode, FARPROC l
}
/***********************************************************************
* ICOpen [MSVIDEO.203]
*/
HIC16
VFWAPI
ICOpen16
(
DWORD
fccType
,
DWORD
fccHandler
,
UINT16
wMode
)
{
return
(
HIC16
)
ICOpen
(
fccType
,
fccHandler
,
wMode
);
}
/***********************************************************************
* ICOpenFunction [MSVIDEO.206]
*/
HIC16
VFWAPI
ICOpenFunction16
(
DWORD
fccType
,
DWORD
fccHandler
,
UINT16
wMode
,
FARPROC16
lpfnHandler
)
...
...
@@ -319,18 +312,6 @@ LRESULT VFWAPI ICGetInfo(HIC hic,ICINFO *picinfo,DWORD cb) {
}
/***********************************************************************
* ICGetInfo [MSVIDEO.212]
*/
LRESULT
VFWAPI
ICGetInfo16
(
HIC16
hic
,
ICINFO16
*
picinfo
,
DWORD
cb
)
{
LRESULT
ret
;
TRACE
(
"(0x%08lx,%p,%ld)
\n
"
,(
DWORD
)
hic
,
picinfo
,
cb
);
ret
=
ICSendMessage16
(
hic
,
ICM_GETINFO
,(
DWORD
)
picinfo
,
cb
);
TRACE
(
" -> 0x%08lx
\n
"
,
ret
);
return
ret
;
}
/***********************************************************************
* ICLocate [MSVFW32.@]
*/
HIC
VFWAPI
ICLocate
(
...
...
@@ -413,14 +394,6 @@ HIC VFWAPI ICLocate(
}
/***********************************************************************
* ICLocate [MSVIDEO.213]
*/
HIC16
VFWAPI
ICLocate16
(
DWORD
fccType
,
DWORD
fccHandler
,
LPBITMAPINFOHEADER
lpbiIn
,
LPBITMAPINFOHEADER
lpbiOut
,
WORD
wFlags
)
{
return
(
HIC16
)
ICLocate
(
fccType
,
fccHandler
,
lpbiIn
,
lpbiOut
,
wFlags
);
}
/***********************************************************************
* ICGetDisplayFormat [MSVFW32.@]
*/
HIC
VFWAPI
ICGetDisplayFormat
(
...
...
@@ -476,14 +449,6 @@ errout:
}
/***********************************************************************
* ICGetDisplayFormat [MSVIDEO.239]
*/
HIC16
VFWAPI
ICGetDisplayFormat16
(
HIC16
hic
,
LPBITMAPINFOHEADER
lpbiIn
,
LPBITMAPINFOHEADER
lpbiOut
,
INT16
depth
,
INT16
dx
,
INT16
dy
)
{
return
(
HIC16
)
ICGetDisplayFormat
(
hic
,
lpbiIn
,
lpbiOut
,
depth
,
dx
,
dy
);
}
/***********************************************************************
* ICCompress [MSVFW32.@]
*/
DWORD
VFWAPIV
...
...
@@ -515,40 +480,6 @@ ICCompress(
}
/***********************************************************************
* _ICCompress [MSVIDEO.224]
*/
DWORD
VFWAPIV
ICCompress16
(
HIC16
hic
,
DWORD
dwFlags
,
LPBITMAPINFOHEADER
lpbiOutput
,
LPVOID
lpData
,
LPBITMAPINFOHEADER
lpbiInput
,
LPVOID
lpBits
,
LPDWORD
lpckid
,
LPDWORD
lpdwFlags
,
LONG
lFrameNum
,
DWORD
dwFrameSize
,
DWORD
dwQuality
,
LPBITMAPINFOHEADER
lpbiPrev
,
LPVOID
lpPrev
)
{
DWORD
ret
;
ICCOMPRESS
iccmp
;
SEGPTR
seg_iccmp
;
TRACE
(
"(0x%08lx,%ld,%p,%p,%p,%p,...)
\n
"
,(
DWORD
)
hic
,
dwFlags
,
lpbiOutput
,
lpData
,
lpbiInput
,
lpBits
);
iccmp
.
dwFlags
=
dwFlags
;
iccmp
.
lpbiOutput
=
lpbiOutput
;
iccmp
.
lpOutput
=
lpData
;
iccmp
.
lpbiInput
=
lpbiInput
;
iccmp
.
lpInput
=
lpBits
;
iccmp
.
lpckid
=
lpckid
;
iccmp
.
lpdwFlags
=
lpdwFlags
;
iccmp
.
lFrameNum
=
lFrameNum
;
iccmp
.
dwFrameSize
=
dwFrameSize
;
iccmp
.
dwQuality
=
dwQuality
;
iccmp
.
lpbiPrev
=
lpbiPrev
;
iccmp
.
lpPrev
=
lpPrev
;
seg_iccmp
=
MapLS
(
&
iccmp
);
ret
=
ICSendMessage16
(
hic
,
ICM_COMPRESS
,
seg_iccmp
,
sizeof
(
ICCOMPRESS
));
UnMapLS
(
seg_iccmp
);
return
ret
;
}
/***********************************************************************
* ICDecompress [MSVFW32.@]
*/
DWORD
VFWAPIV
ICDecompress
(
HIC
hic
,
DWORD
dwFlags
,
LPBITMAPINFOHEADER
lpbiFormat
,
...
...
@@ -577,30 +508,6 @@ DWORD VFWAPIV ICDecompress(HIC hic,DWORD dwFlags,LPBITMAPINFOHEADER lpbiFormat,
return
ret
;
}
/***********************************************************************
* _ICDecompress [MSVIDEO.230]
*/
DWORD
VFWAPIV
ICDecompress16
(
HIC16
hic
,
DWORD
dwFlags
,
LPBITMAPINFOHEADER
lpbiFormat
,
LPVOID
lpData
,
LPBITMAPINFOHEADER
lpbi
,
LPVOID
lpBits
)
{
ICDECOMPRESS
icd
;
SEGPTR
segptr
;
DWORD
ret
;
TRACE
(
"(0x%08lx,%ld,%p,%p,%p,%p)
\n
"
,(
DWORD
)
hic
,
dwFlags
,
lpbiFormat
,
lpData
,
lpbi
,
lpBits
);
icd
.
dwFlags
=
dwFlags
;
icd
.
lpbiInput
=
lpbiFormat
;
icd
.
lpInput
=
lpData
;
icd
.
lpbiOutput
=
lpbi
;
icd
.
lpOutput
=
lpBits
;
icd
.
ckid
=
0
;
segptr
=
MapLS
(
&
icd
);
ret
=
ICSendMessage16
(
hic
,
ICM_DECOMPRESS
,
segptr
,
sizeof
(
ICDECOMPRESS
));
UnMapLS
(
segptr
);
return
ret
;
}
#define COPY(x,y) (x->y = x##16->y);
#define COPYPTR(x,y) (x->y = MapSL((SEGPTR)x##16->y));
...
...
@@ -1010,41 +917,6 @@ LRESULT VFWAPI ICSendMessage16(HIC16 hic, UINT16 msg, DWORD lParam1, DWORD lPara
}
/***********************************************************************
* _ICMessage [MSVIDEO.207]
*/
LRESULT
VFWAPIV
ICMessage16
(
void
)
{
HIC16
hic
;
UINT16
msg
;
UINT16
cb
;
LPWORD
lpData
;
SEGPTR
segData
;
LRESULT
ret
;
UINT16
i
;
VA_LIST16
valist
;
VA_START16
(
valist
);
hic
=
VA_ARG16
(
valist
,
HIC16
);
msg
=
VA_ARG16
(
valist
,
UINT16
);
cb
=
VA_ARG16
(
valist
,
UINT16
);
lpData
=
HeapAlloc
(
GetProcessHeap
(),
0
,
cb
);
TRACE
(
"0x%08lx, %u, %u, ...)
\n
"
,(
DWORD
)
hic
,
msg
,
cb
);
for
(
i
=
0
;
i
<
cb
/
sizeof
(
WORD
);
i
++
)
{
lpData
[
i
]
=
VA_ARG16
(
valist
,
WORD
);
}
VA_END16
(
valist
);
segData
=
MapLS
(
lpData
);
ret
=
ICSendMessage16
(
hic
,
msg
,
segData
,
(
DWORD
)
cb
);
UnMapLS
(
segData
);
HeapFree
(
GetProcessHeap
(),
0
,
lpData
);
return
ret
;
}
/***********************************************************************
* ICDrawBegin [MSVFW32.@]
*/
DWORD
VFWAPIV
ICDrawBegin
(
...
...
@@ -1091,56 +963,6 @@ DWORD VFWAPIV ICDrawBegin(
}
/***********************************************************************
* _ICDrawBegin [MSVIDEO.232]
*/
DWORD
VFWAPIV
ICDrawBegin16
(
HIC16
hic
,
/* [in] */
DWORD
dwFlags
,
/* [in] flags */
HPALETTE16
hpal
,
/* [in] palette to draw with */
HWND16
hwnd
,
/* [in] window to draw to */
HDC16
hdc
,
/* [in] HDC to draw to */
INT16
xDst
,
/* [in] destination rectangle */
INT16
yDst
,
/* [in] */
INT16
dxDst
,
/* [in] */
INT16
dyDst
,
/* [in] */
LPBITMAPINFOHEADER
lpbi
,
/* [in] format of frame to draw NOTE: SEGPTR */
INT16
xSrc
,
/* [in] source rectangle */
INT16
ySrc
,
/* [in] */
INT16
dxSrc
,
/* [in] */
INT16
dySrc
,
/* [in] */
DWORD
dwRate
,
/* [in] frames/second = (dwRate/dwScale) */
DWORD
dwScale
)
/* [in] */
{
DWORD
ret
;
ICDRAWBEGIN16
icdb
;
SEGPTR
seg_icdb
;
TRACE
(
"(0x%08lx,%ld,0x%08lx,0x%08lx,0x%08lx,%u,%u,%u,%u,%p,%u,%u,%u,%u,%ld,%ld)
\n
"
,
(
DWORD
)
hic
,
dwFlags
,
(
DWORD
)
hpal
,
(
DWORD
)
hwnd
,
(
DWORD
)
hdc
,
xDst
,
yDst
,
dxDst
,
dyDst
,
lpbi
,
xSrc
,
ySrc
,
dxSrc
,
dySrc
,
dwRate
,
dwScale
);
icdb
.
dwFlags
=
dwFlags
;
icdb
.
hpal
=
hpal
;
icdb
.
hwnd
=
hwnd
;
icdb
.
hdc
=
hdc
;
icdb
.
xDst
=
xDst
;
icdb
.
yDst
=
yDst
;
icdb
.
dxDst
=
dxDst
;
icdb
.
dyDst
=
dyDst
;
icdb
.
lpbi
=
lpbi
;
/* Keep this as SEGPTR for the mapping code to deal with */
icdb
.
xSrc
=
xSrc
;
icdb
.
ySrc
=
ySrc
;
icdb
.
dxSrc
=
dxSrc
;
icdb
.
dySrc
=
dySrc
;
icdb
.
dwRate
=
dwRate
;
icdb
.
dwScale
=
dwScale
;
seg_icdb
=
MapLS
(
&
icdb
);
ret
=
(
DWORD
)
ICSendMessage16
(
hic
,
ICM_DRAW_BEGIN
,
seg_icdb
,
sizeof
(
ICDRAWBEGIN16
));
UnMapLS
(
seg_icdb
);
return
ret
;
}
/***********************************************************************
* ICDraw [MSVFW32.@]
*/
DWORD
VFWAPIV
ICDraw
(
HIC
hic
,
DWORD
dwFlags
,
LPVOID
lpFormat
,
LPVOID
lpData
,
DWORD
cbData
,
LONG
lTime
)
{
...
...
@@ -1158,33 +980,6 @@ DWORD VFWAPIV ICDraw(HIC hic, DWORD dwFlags, LPVOID lpFormat, LPVOID lpData, DWO
}
/***********************************************************************
* _ICDraw [MSVIDEO.234]
*/
DWORD
VFWAPIV
ICDraw16
(
HIC16
hic
,
DWORD
dwFlags
,
LPVOID
lpFormat
,
/* [???] NOTE: SEGPTR */
LPVOID
lpData
,
/* [???] NOTE: SEGPTR */
DWORD
cbData
,
LONG
lTime
)
{
DWORD
ret
;
ICDRAW
icd
;
SEGPTR
seg_icd
;
TRACE
(
"(0x%08lx,0x%08lx,%p,%p,%ld,%ld)
\n
"
,(
DWORD
)
hic
,
dwFlags
,
lpFormat
,
lpData
,
cbData
,
lTime
);
icd
.
dwFlags
=
dwFlags
;
icd
.
lpFormat
=
lpFormat
;
icd
.
lpData
=
lpData
;
icd
.
cbData
=
cbData
;
icd
.
lTime
=
lTime
;
seg_icd
=
MapLS
(
&
icd
);
ret
=
ICSendMessage16
(
hic
,
ICM_DRAW
,
seg_icd
,
sizeof
(
ICDRAW
));
UnMapLS
(
seg_icd
);
return
ret
;
}
/***********************************************************************
* ICClose [MSVFW32.@]
*/
LRESULT
WINAPI
ICClose
(
HIC
hic
)
{
...
...
@@ -1203,13 +998,6 @@ LRESULT WINAPI ICClose(HIC hic) {
return
0
;
}
/***********************************************************************
* ICClose [MSVIDEO.204]
*/
LRESULT
WINAPI
ICClose16
(
HIC16
hic
)
{
return
ICClose
(
hic
);
}
/***********************************************************************
...
...
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