]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_hue.c
avfilter/Makefile: Don't compile transform.c unconditionally
[ffmpeg] / libavfilter / vf_hue.c
index 026d4b6eecad54633e51f3b38275ad76494ba4e0..1499c05cbd557601b578e11bd73792afdcb31c02 100644 (file)
@@ -136,7 +136,7 @@ static inline void create_chrominance_lut(HueContext *h, const int32_t c,
      */
     for (i = 0; i < 256; i++) {
         for (j = 0; j < 256; j++) {
-            /* Normalize the components from range [16;140] to [-112;112] */
+            /* Normalize the components from range [16;240] to [-112;112] */
             u = i - 128;
             v = j - 128;
             /*
@@ -363,9 +363,6 @@ static void apply_lut10(HueContext *s,
     }
 }
 
-#define TS2D(ts) ((ts) == AV_NOPTS_VALUE ? NAN : (double)(ts))
-#define TS2T(ts, tb) ((ts) == AV_NOPTS_VALUE ? NAN : (double)(ts) * av_q2d(tb))
-
 static int filter_frame(AVFilterLink *inlink, AVFrame *inpic)
 {
     HueContext *hue = inlink->dst->priv;