diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-07-26 03:19:46 +0300 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-07-26 20:22:48 +0300 |
commit | dddd7c62c5cce94b71174355511ae13980b13410 (patch) | |
tree | 956195da6ba6109cf6759b36653047dd0a87481e /libmpcodecs | |
parent | 78ea550f0fa3b4d5a943c83bfe5900760d1b5c54 (diff) | |
download | mpv-dddd7c62c5cce94b71174355511ae13980b13410.tar.bz2 mpv-dddd7c62c5cce94b71174355511ae13980b13410.tar.xz |
vf_pp: Remove deprecated "hex mode" support
Remove code to support specifying arguments in hex form. This code
depended on libpostproc internals, and has been deprecated and
undocumented for years.
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/vf_pp.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/libmpcodecs/vf_pp.c b/libmpcodecs/vf_pp.c index c9425f146a..6d589a9918 100644 --- a/libmpcodecs/vf_pp.c +++ b/libmpcodecs/vf_pp.c @@ -17,13 +17,6 @@ #include "vf.h" #include "libpostproc/postprocess.h" -#ifdef CONFIG_LIBPOSTPROC_A -#define EMU_OLD -#include "libpostproc/postprocess_internal.h" -#endif - -#undef malloc - struct vf_priv_s { int pp; pp_mode_t *ppMode[PP_QUALITY_MAX+1]; @@ -179,35 +172,10 @@ static int open(vf_instance_t *vf, char* args){ name="de"; } -#ifdef EMU_OLD - if(name){ -#endif for(i=0; i<=PP_QUALITY_MAX; i++){ vf->priv->ppMode[i]= pp_get_mode_by_name_and_quality(name, i); if(vf->priv->ppMode[i]==NULL) return -1; } -#ifdef EMU_OLD - }else{ - /* hex mode for compatibility */ - for(i=0; i<=PP_QUALITY_MAX; i++){ - PPMode *ppMode; - - ppMode= (PPMode*)memalign(8, sizeof(PPMode)); - - ppMode->lumMode= hex_mode; - ppMode->chromMode= ((hex_mode&0xFF)>>4) | (hex_mode&0xFFFFFF00); - ppMode->maxTmpNoise[0]= 700; - ppMode->maxTmpNoise[1]= 1500; - ppMode->maxTmpNoise[2]= 3000; - ppMode->maxAllowedY= 234; - ppMode->minAllowedY= 16; - ppMode->baseDcDiff= 256/4; - ppMode->flatnessThreshold=40; - - vf->priv->ppMode[i]= ppMode; - } - } -#endif vf->priv->pp=PP_QUALITY_MAX; return 1; |