diff options
Diffstat (limited to 'libmpcodecs/vf_palette.c')
-rw-r--r-- | libmpcodecs/vf_palette.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libmpcodecs/vf_palette.c b/libmpcodecs/vf_palette.c index cef47df788..8610f042d6 100644 --- a/libmpcodecs/vf_palette.c +++ b/libmpcodecs/vf_palette.c @@ -23,7 +23,6 @@ #include "config.h" #include "mp_msg.h" -#include "help_mp.h" #include "img_format.h" #include "mp_image.h" @@ -54,7 +53,7 @@ static const unsigned int rgb_list[]={ static unsigned int gray_pal[256]; -static unsigned int find_best(struct vf_instance *vf, unsigned int fmt){ +static unsigned int find_best(struct vf_instance* vf, unsigned int fmt){ unsigned int best=0; int ret; const unsigned int* p; @@ -78,7 +77,7 @@ struct vf_priv_s { int pal_msg; }; -static int config(struct vf_instance *vf, +static int config(struct vf_instance* vf, int width, int height, int d_width, int d_height, unsigned int flags, unsigned int outfmt){ if (!vf->priv->fmt) @@ -92,7 +91,7 @@ static int config(struct vf_instance *vf, return vf_next_config(vf,width,height,d_width,d_height,flags,vf->priv->fmt); } -static int put_image(struct vf_instance *vf, mp_image_t *mpi, double pts){ +static int put_image(struct vf_instance* vf, mp_image_t *mpi, double pts){ mp_image_t *dmpi; uint8_t *old_palette = mpi->planes[1]; @@ -178,7 +177,7 @@ static int put_image(struct vf_instance *vf, mp_image_t *mpi, double pts){ //===========================================================================// -static int query_format(struct vf_instance *vf, unsigned int fmt){ +static int query_format(struct vf_instance* vf, unsigned int fmt){ int best=find_best(vf,fmt); if(!best) return 0; // no match return vf->next->query_format(vf->next,best); @@ -208,7 +207,7 @@ static int vf_open(vf_instance_t *vf, char *args){ if (!strcasecmp(args,"bgr24")) vf->priv->fmt=IMGFMT_BGR24; else if (!strcasecmp(args,"bgr32")) vf->priv->fmt=IMGFMT_BGR32; else { - mp_msg(MSGT_VFILTER, MSGL_WARN, MSGTR_MPCODECS_UnknownFormatName, args); + mp_tmsg(MSGT_VFILTER, MSGL_WARN, "[VF_FORMAT] Unknown format name: '%s'.\n", args); return 0; } } |