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
b01c2c8a
Commit
b01c2c8a
authored
Apr 02, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Apr 03, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avifil32: Constify some variables.
parent
8e2bee8c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
21 deletions
+20
-21
avifile.c
dlls/avifil32/avifile.c
+12
-13
avifile_private.h
dlls/avifil32/avifile_private.h
+1
-1
extrachunk.c
dlls/avifil32/extrachunk.c
+2
-2
extrachunk.h
dlls/avifil32/extrachunk.h
+2
-2
tmpfile.c
dlls/avifil32/tmpfile.c
+1
-1
wavfile.c
dlls/avifil32/wavfile.c
+2
-2
No files found.
dlls/avifil32/avifile.c
View file @
b01c2c8a
...
...
@@ -210,19 +210,19 @@ static HRESULT AVIFILE_AddFrame(IAVIStreamImpl *This, DWORD ckid, DWORD size,
static
HRESULT
AVIFILE_AddRecord
(
IAVIFileImpl
*
This
);
static
DWORD
AVIFILE_ComputeMoviStart
(
IAVIFileImpl
*
This
);
static
void
AVIFILE_ConstructAVIStream
(
IAVIFileImpl
*
paf
,
DWORD
nr
,
LPAVISTREAMINFOW
asi
);
const
AVISTREAMINFOW
*
asi
);
static
void
AVIFILE_DestructAVIStream
(
IAVIStreamImpl
*
This
);
static
HRESULT
AVIFILE_LoadFile
(
IAVIFileImpl
*
This
);
static
HRESULT
AVIFILE_LoadIndex
(
IAVIFileImpl
*
This
,
DWORD
size
,
DWORD
offset
);
static
HRESULT
AVIFILE_ParseIndex
(
IAVIFileImpl
*
This
,
AVIINDEXENTRY
*
lp
,
static
HRESULT
AVIFILE_LoadIndex
(
const
IAVIFileImpl
*
This
,
DWORD
size
,
DWORD
offset
);
static
HRESULT
AVIFILE_ParseIndex
(
const
IAVIFileImpl
*
This
,
AVIINDEXENTRY
*
lp
,
LONG
count
,
DWORD
pos
,
BOOL
*
bAbsolute
);
static
HRESULT
AVIFILE_ReadBlock
(
IAVIStreamImpl
*
This
,
DWORD
start
,
LPVOID
buffer
,
LONG
size
);
static
void
AVIFILE_SamplesToBlock
(
IAVIStreamImpl
*
This
,
LPLONG
pos
,
static
void
AVIFILE_SamplesToBlock
(
const
IAVIStreamImpl
*
This
,
LPLONG
pos
,
LPLONG
offset
);
static
HRESULT
AVIFILE_SaveFile
(
IAVIFileImpl
*
This
);
static
HRESULT
AVIFILE_SaveIndex
(
IAVIFileImpl
*
This
);
static
ULONG
AVIFILE_SearchStream
(
IAVIFileImpl
*
This
,
DWORD
fccType
,
static
HRESULT
AVIFILE_SaveIndex
(
const
IAVIFileImpl
*
This
);
static
ULONG
AVIFILE_SearchStream
(
const
IAVIFileImpl
*
This
,
DWORD
fccType
,
LONG
lSkip
);
static
void
AVIFILE_UpdateInfo
(
IAVIFileImpl
*
This
);
static
HRESULT
AVIFILE_WriteBlock
(
IAVIStreamImpl
*
This
,
DWORD
block
,
...
...
@@ -1502,7 +1502,7 @@ static DWORD AVIFILE_ComputeMoviStart(IAVIFileImpl *This)
return
dwPos
;
}
static
void
AVIFILE_ConstructAVIStream
(
IAVIFileImpl
*
paf
,
DWORD
nr
,
LPAVISTREAMINFOW
asi
)
static
void
AVIFILE_ConstructAVIStream
(
IAVIFileImpl
*
paf
,
DWORD
nr
,
const
AVISTREAMINFOW
*
asi
)
{
IAVIStreamImpl
*
pstream
;
...
...
@@ -1902,7 +1902,7 @@ static HRESULT AVIFILE_LoadFile(IAVIFileImpl *This)
return
AVIERR_OK
;
}
static
HRESULT
AVIFILE_LoadIndex
(
IAVIFileImpl
*
This
,
DWORD
size
,
DWORD
offset
)
static
HRESULT
AVIFILE_LoadIndex
(
const
IAVIFileImpl
*
This
,
DWORD
size
,
DWORD
offset
)
{
AVIINDEXENTRY
*
lp
;
DWORD
pos
,
n
;
...
...
@@ -1975,7 +1975,7 @@ static HRESULT AVIFILE_LoadIndex(IAVIFileImpl *This, DWORD size, DWORD offset)
return
hr
;
}
static
HRESULT
AVIFILE_ParseIndex
(
IAVIFileImpl
*
This
,
AVIINDEXENTRY
*
lp
,
static
HRESULT
AVIFILE_ParseIndex
(
const
IAVIFileImpl
*
This
,
AVIINDEXENTRY
*
lp
,
LONG
count
,
DWORD
pos
,
BOOL
*
bAbsolute
)
{
if
(
lp
==
NULL
)
...
...
@@ -2064,8 +2064,7 @@ static HRESULT AVIFILE_ReadBlock(IAVIStreamImpl *This, DWORD pos,
return
AVIERR_OK
;
}
static
void
AVIFILE_SamplesToBlock
(
IAVIStreamImpl
*
This
,
LPLONG
pos
,
LPLONG
offset
)
static
void
AVIFILE_SamplesToBlock
(
const
IAVIStreamImpl
*
This
,
LPLONG
pos
,
LPLONG
offset
)
{
LONG
block
;
...
...
@@ -2317,7 +2316,7 @@ static HRESULT AVIFILE_SaveFile(IAVIFileImpl *This)
return
AVIERR_OK
;
}
static
HRESULT
AVIFILE_SaveIndex
(
IAVIFileImpl
*
This
)
static
HRESULT
AVIFILE_SaveIndex
(
const
IAVIFileImpl
*
This
)
{
IAVIStreamImpl
*
pStream
;
AVIINDEXENTRY
idx
;
...
...
@@ -2447,7 +2446,7 @@ static HRESULT AVIFILE_SaveIndex(IAVIFileImpl *This)
return
AVIERR_OK
;
}
static
ULONG
AVIFILE_SearchStream
(
IAVIFileImpl
*
This
,
DWORD
fcc
,
LONG
lSkip
)
static
ULONG
AVIFILE_SearchStream
(
const
IAVIFileImpl
*
This
,
DWORD
fcc
,
LONG
lSkip
)
{
UINT
i
;
UINT
nStream
;
...
...
dlls/avifil32/avifile_private.h
View file @
b01c2c8a
...
...
@@ -63,7 +63,7 @@ extern HRESULT AVIFILE_CreateACMStream(REFIID riid, LPVOID *ppobj);
extern
HRESULT
AVIFILE_CreateICMStream
(
REFIID
riid
,
LPVOID
*
ppobj
);
extern
PAVIEDITSTREAM
AVIFILE_CreateEditStream
(
PAVISTREAM
pstream
);
extern
PGETFRAME
AVIFILE_CreateGetFrame
(
PAVISTREAM
pstream
);
extern
PAVIFILE
AVIFILE_CreateAVITempFile
(
int
nStreams
,
PAVISTREAM
*
ppStreams
);
extern
PAVIFILE
AVIFILE_CreateAVITempFile
(
int
nStreams
,
const
PAVISTREAM
*
ppStreams
);
extern
LPCWSTR
AVIFILE_BasenameW
(
LPCWSTR
szFileName
);
...
...
dlls/avifil32/extrachunk.c
View file @
b01c2c8a
...
...
@@ -29,7 +29,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
avifile
);
/* reads a chunk outof the extrachunk-structure */
HRESULT
ReadExtraChunk
(
const
LPEXTRACHUNKS
extra
,
FOURCC
ckid
,
LPVOID
lpData
,
LPLONG
size
)
HRESULT
ReadExtraChunk
(
const
EXTRACHUNKS
*
extra
,
FOURCC
ckid
,
LPVOID
lpData
,
LPLONG
size
)
{
LPBYTE
lp
;
DWORD
cb
;
...
...
@@ -99,7 +99,7 @@ HRESULT WriteExtraChunk(LPEXTRACHUNKS extra,FOURCC ckid,LPCVOID lpData, LONG siz
}
/* reads a chunk fomr the HMMIO into the extrachunk-structure */
HRESULT
ReadChunkIntoExtra
(
LPEXTRACHUNKS
extra
,
HMMIO
hmmio
,
MMCKINFO
*
lpck
)
HRESULT
ReadChunkIntoExtra
(
LPEXTRACHUNKS
extra
,
HMMIO
hmmio
,
const
MMCKINFO
*
lpck
)
{
LPDWORD
lp
;
DWORD
cb
;
...
...
dlls/avifil32/extrachunk.h
View file @
b01c2c8a
...
...
@@ -35,13 +35,13 @@ typedef struct _EXTRACHUNKS {
}
EXTRACHUNKS
,
*
LPEXTRACHUNKS
;
/* reads a chunk outof the extrachunk-structure */
HRESULT
ReadExtraChunk
(
const
LPEXTRACHUNKS
extra
,
FOURCC
ckid
,
LPVOID
lp
,
LPLONG
size
);
HRESULT
ReadExtraChunk
(
const
EXTRACHUNKS
*
extra
,
FOURCC
ckid
,
LPVOID
lp
,
LPLONG
size
);
/* writes a chunk into the extrachunk-structure */
HRESULT
WriteExtraChunk
(
LPEXTRACHUNKS
extra
,
FOURCC
ckid
,
LPCVOID
lp
,
LONG
size
);
/* reads a chunk fomr the HMMIO into the extrachunk-structure */
HRESULT
ReadChunkIntoExtra
(
LPEXTRACHUNKS
extra
,
HMMIO
hmmio
,
MMCKINFO
*
lpck
);
HRESULT
ReadChunkIntoExtra
(
LPEXTRACHUNKS
extra
,
HMMIO
hmmio
,
const
MMCKINFO
*
lpck
);
/* reads all non-junk chunks into the extrachunk-structure until it finds
* the given chunk or the optional parent-chunk is at the end */
...
...
dlls/avifil32/tmpfile.c
View file @
b01c2c8a
...
...
@@ -71,7 +71,7 @@ typedef struct _ITmpFileImpl {
PAVISTREAM
*
ppStreams
;
}
ITmpFileImpl
;
PAVIFILE
AVIFILE_CreateAVITempFile
(
int
nStreams
,
PAVISTREAM
*
ppStreams
)
{
PAVIFILE
AVIFILE_CreateAVITempFile
(
int
nStreams
,
const
PAVISTREAM
*
ppStreams
)
{
ITmpFileImpl
*
tmpFile
;
int
i
;
...
...
dlls/avifil32/wavfile.c
View file @
b01c2c8a
...
...
@@ -212,7 +212,7 @@ struct _IAVIFileImpl {
static
HRESULT
AVIFILE_LoadFile
(
IAVIFileImpl
*
This
);
static
HRESULT
AVIFILE_LoadSunFile
(
IAVIFileImpl
*
This
);
static
HRESULT
AVIFILE_SaveFile
(
IAVIFileImpl
*
This
);
static
HRESULT
AVIFILE_SaveFile
(
const
IAVIFileImpl
*
This
);
HRESULT
AVIFILE_CreateWAVFile
(
REFIID
riid
,
LPVOID
*
ppv
)
{
...
...
@@ -1248,7 +1248,7 @@ static HRESULT AVIFILE_LoadSunFile(IAVIFileImpl *This)
return
AVIERR_OK
;
}
static
HRESULT
AVIFILE_SaveFile
(
IAVIFileImpl
*
This
)
static
HRESULT
AVIFILE_SaveFile
(
const
IAVIFileImpl
*
This
)
{
MMCKINFO
ckRIFF
;
MMCKINFO
ck
;
...
...
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