1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 17:42:17 +00:00

Mark m_struct_t defaults as const

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22045 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2007-01-28 16:48:01 +00:00
parent a1fe76958b
commit 6d32d91eca
10 changed files with 10 additions and 10 deletions

View File

@ -64,7 +64,7 @@ static struct vf_priv_s {
unsigned char* planes[3]; unsigned char* planes[3];
unsigned char* dirty_rows; unsigned char* dirty_rows;
} vf_priv_dflt; } const vf_priv_dflt;
extern int opt_screen_size_x; extern int opt_screen_size_x;
extern int opt_screen_size_y; extern int opt_screen_size_y;

View File

@ -16,7 +16,7 @@
static struct vf_priv_s { static struct vf_priv_s {
int crop_w,crop_h; int crop_w,crop_h;
int crop_x,crop_y; int crop_x,crop_y;
} vf_priv_dflt = { } const vf_priv_dflt = {
-1,-1, -1,-1,
-1,-1 -1,-1
}; };

View File

@ -45,7 +45,7 @@
static struct vf_priv_s { static struct vf_priv_s {
unsigned int outfmt; unsigned int outfmt;
int xoff, yoff, lw, lh, band, show; int xoff, yoff, lw, lh, band, show;
} vf_priv_dflt = { } const vf_priv_dflt = {
0, 0,
0, 0, 0, 0, 0, 0 0, 0, 0, 0, 0, 0
}; };

View File

@ -21,7 +21,7 @@ static struct vf_priv_s {
unsigned char *buf; unsigned char *buf;
int brightness; int brightness;
int contrast; int contrast;
} vf_priv_dflt = { } const vf_priv_dflt = {
NULL, NULL,
0, 0,
0 0

View File

@ -33,7 +33,7 @@ static struct vf_priv_s {
unsigned char* fb_ptr; unsigned char* fb_ptr;
int passthrough; int passthrough;
int first_slice; int first_slice;
} vf_priv_dflt = { } const vf_priv_dflt = {
-1,-1, -1,-1,
-1,-1, -1,-1,
0, 0,

View File

@ -16,7 +16,7 @@
static struct vf_priv_s { static struct vf_priv_s {
unsigned int fmt; unsigned int fmt;
} vf_priv_dflt = { } const vf_priv_dflt = {
IMGFMT_YUY2 IMGFMT_YUY2
}; };

View File

@ -21,7 +21,7 @@ static struct vf_priv_s {
uint8_t *buf[2]; uint8_t *buf[2];
float hue; float hue;
float saturation; float saturation;
} vf_priv_dflt = { } const vf_priv_dflt = {
{NULL, NULL}, {NULL, NULL},
0.0, 0.0,
1.0, 1.0,

View File

@ -16,7 +16,7 @@
static struct vf_priv_s { static struct vf_priv_s {
unsigned int fmt; unsigned int fmt;
} vf_priv_dflt = { } const vf_priv_dflt = {
IMGFMT_YV12 IMGFMT_YV12
}; };

View File

@ -31,7 +31,7 @@ static struct vf_priv_s {
int noup; int noup;
int accurate_rnd; int accurate_rnd;
int query_format_cache[64]; int query_format_cache[64];
} vf_priv_dflt = { } const vf_priv_dflt = {
-1,-1, -1,-1,
0, 0,
{SWS_PARAM_DEFAULT, SWS_PARAM_DEFAULT}, {SWS_PARAM_DEFAULT, SWS_PARAM_DEFAULT},

View File

@ -17,7 +17,7 @@ typedef struct m_struct_st {
/// size of the whole struct /// size of the whole struct
unsigned int size; unsigned int size;
/// Pointer to a struct filled with the default settings /// Pointer to a struct filled with the default settings
void* defaults; const void* defaults;
/// Field list. /// Field list.
/** The p field of the \ref m_option struct must contain the offset /** The p field of the \ref m_option struct must contain the offset
* of the member in the struct (use M_ST_OFF macro for this). * of the member in the struct (use M_ST_OFF macro for this).