diff options
author | rfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-11-09 06:58:32 +0000 |
---|---|---|
committer | rfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-11-09 06:58:32 +0000 |
commit | f713cb0faf11287bd143bb2cf2a187ead31ca869 (patch) | |
tree | 952a70f268df9e71ceb55ee9429a9a0df49c4023 /libmpcodecs/vf_1bpp.c | |
parent | 549d3be0c7fcd1290a210434d89c46f0e47c5623 (diff) | |
download | mpv-f713cb0faf11287bd143bb2cf2a187ead31ca869.tar.bz2 mpv-f713cb0faf11287bd143bb2cf2a187ead31ca869.tar.xz |
begin moving const filter data to .text/.rodata sections
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24997 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vf_1bpp.c')
-rw-r--r-- | libmpcodecs/vf_1bpp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libmpcodecs/vf_1bpp.c b/libmpcodecs/vf_1bpp.c index d0e4ffd007..873e431855 100644 --- a/libmpcodecs/vf_1bpp.c +++ b/libmpcodecs/vf_1bpp.c @@ -12,7 +12,7 @@ //===========================================================================// -static unsigned int bgr_list[]={ +static const unsigned int bgr_list[]={ IMGFMT_Y800, IMGFMT_Y8, IMGFMT_BGR8, @@ -43,7 +43,7 @@ static unsigned int bgr_list[]={ static unsigned int find_best(struct vf_instance_s* vf){ unsigned int best=0; int ret; - unsigned int* p=bgr_list; + const unsigned int* p=bgr_list; while(*p){ ret=vf->next->query_format(vf->next,*p); mp_msg(MSGT_VFILTER,MSGL_V,"[%s] query(%s) -> %d\n",vf->info->name,vo_format_name(*p),ret&3); @@ -74,7 +74,7 @@ static int config(struct vf_instance_s* vf, return vf_next_config(vf,width,height,d_width,d_height,flags,vf->priv->fmt); } -static int bittab[8]={128,64,32,16,8,4,2,1}; +static const int bittab[8]={128,64,32,16,8,4,2,1}; static void convert(mp_image_t *mpi, mp_image_t *dmpi, int value0, int value1,int bpp){ int y; @@ -171,7 +171,7 @@ static int open(vf_instance_t *vf, char* args){ return 1; } -vf_info_t vf_info_1bpp = { +const vf_info_t vf_info_1bpp = { "1bpp bitmap -> YUV/BGR 8/15/16/32 conversion", "1bpp", "A'rpi", |