Mercurial > mplayer.hg
diff libmpcodecs/vf_1bpp.c @ 24969:c2b7ba444ade
begin moving const filter data to .text/.rodata sections
author | rfelker |
---|---|
date | Fri, 09 Nov 2007 06:58:32 +0000 |
parents | 497ebe3ecc2b |
children | 0f1b5b68af32 |
line wrap: on
line diff
--- a/libmpcodecs/vf_1bpp.c Fri Nov 09 06:57:24 2007 +0000 +++ b/libmpcodecs/vf_1bpp.c Fri Nov 09 06:58:32 2007 +0000 @@ -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 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 @@ 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 @@ 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",