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
76d857f3
Commit
76d857f3
authored
Jun 18, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Jun 19, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvidc32: Constify some variables.
parent
9309f4df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
msvideo1.c
dlls/msvidc32/msvideo1.c
+4
-4
No files found.
dlls/msvidc32/msvideo1.c
View file @
76d857f3
...
...
@@ -52,7 +52,7 @@ static HINSTANCE MSVIDC32_hModule;
#define WHAM_MAGIC mmioFOURCC('W', 'H', 'A', 'M')
#define PALETTE_COUNT 256
#define LE_16(x) ((((
uint8_t*)(x))[1] << 8) | ((uint8_t
*)(x))[0])
#define LE_16(x) ((((
const uint8_t *)(x))[1] << 8) | ((const uint8_t
*)(x))[0])
/* FIXME - check the stream size */
#define CHECK_STREAM_PTR(n) \
...
...
@@ -70,7 +70,7 @@ typedef struct Msvideo1Context {
}
Msvideo1Context
;
static
void
msvideo1_decode_8bit
(
int
width
,
int
height
,
unsigned
char
*
buf
,
int
buf_size
,
msvideo1_decode_8bit
(
int
width
,
int
height
,
const
unsigned
char
*
buf
,
int
buf_size
,
unsigned
char
*
pixels
,
int
stride
)
{
int
block_ptr
,
pixel_ptr
;
...
...
@@ -193,7 +193,7 @@ msvideo1_decode_8bit( int width, int height, unsigned char *buf, int buf_size,
}
static
void
msvideo1_decode_16bit
(
int
width
,
int
height
,
unsigned
char
*
buf
,
int
buf_size
,
msvideo1_decode_16bit
(
int
width
,
int
height
,
const
unsigned
char
*
buf
,
int
buf_size
,
unsigned
short
*
pixels
,
int
stride
)
{
int
block_ptr
,
pixel_ptr
;
...
...
@@ -456,7 +456,7 @@ static LRESULT CRAM_DecompressEx( Msvideo1Context *info, ICDECOMPRESSEX *icd, DW
return
ICERR_OK
;
}
static
LRESULT
CRAM_GetInfo
(
Msvideo1Context
*
info
,
ICINFO
*
icinfo
,
DWORD
dwSize
)
static
LRESULT
CRAM_GetInfo
(
const
Msvideo1Context
*
info
,
ICINFO
*
icinfo
,
DWORD
dwSize
)
{
if
(
!
icinfo
)
return
sizeof
(
ICINFO
);
if
(
dwSize
<
sizeof
(
ICINFO
))
return
0
;
...
...
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