]> git.sesse.net Git - movit/commitdiff
Fix a warning.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 6 Oct 2012 13:03:55 +0000 (15:03 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 6 Oct 2012 13:03:55 +0000 (15:03 +0200)
effect_chain.cpp
effect_id.h [deleted file]

index b1dea4b9391b62375919e2bbfa6401668769014a..31a7c8b128041c951f99a1624c95e9402bcee0c0 100644 (file)
@@ -36,7 +36,7 @@ EffectChain::EffectChain(unsigned width, unsigned height)
 Input *EffectChain::add_input(const ImageFormat &format)
 {
        char eff_id[256];
 Input *EffectChain::add_input(const ImageFormat &format)
 {
        char eff_id[256];
-       sprintf(eff_id, "src_image%d", inputs.size());
+       sprintf(eff_id, "src_image%u", (unsigned)inputs.size());
 
        Input *input = new Input(format, width, height);
        effects.push_back(input);
 
        Input *input = new Input(format, width, height);
        effects.push_back(input);
diff --git a/effect_id.h b/effect_id.h
deleted file mode 100644 (file)
index 227cf97..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-#ifndef _EFFECT_ID_H
-#define _EFFECT_ID_H 1
-
-enum EffectId {
-       // Mostly for internal use.
-       EFFECT_GAMMA_EXPANSION = 0,
-       EFFECT_GAMMA_COMPRESSION,
-       EFFECT_COLOR_SPACE_CONVERSION,
-       EFFECT_SANDBOX,
-
-       // Color.
-       EFFECT_LIFT_GAMMA_GAIN,
-       EFFECT_SATURATION,
-
-       // Spatial.
-       EFFECT_MIRROR,
-       EFFECT_VIGNETTE,
-       EFFECT_BLUR,
-       EFFECT_DIFFUSION,
-       EFFECT_GLOW,
-
-       // Combining.
-       EFFECT_MIX,
-};
-
-#endif // !defined(_EFFECT_ID_H)