} G_STMT_END
#define GST_CHROMA_HOLD_UNLOCK(self) G_STMT_START { \
- GST_LOG_OBJECT (self, "Unlocking chromahold from thread %p", g_thread_self ()); \
+ GST_LOG_OBJECT (self, "Unlocking chromahold from thread %p", \
+ g_thread_self ()); \
g_static_mutex_unlock (&self->lock); \
} G_STMT_END
#include <gst/controller/gstcontroller.h>
G_BEGIN_DECLS
-
#define GST_TYPE_CHROMA_HOLD \
(gst_chroma_hold_get_type())
#define GST_CHROMA_HOLD(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_CHROMA_HOLD))
#define GST_IS_CHROMA_HOLD_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_CHROMA_HOLD))
-
typedef struct _GstChromaHold GstChromaHold;
typedef struct _GstChromaHoldClass GstChromaHoldClass;
guint tolerance;
/* processing function */
- void (*process) (guint8 *dest, gint width, gint height, GstChromaHold *chroma_hold);
+ void (*process) (guint8 * dest, gint width, gint height,
+ GstChromaHold * chroma_hold);
/* pre-calculated values */
gint hue;
GType gst_chroma_hold_get_type (void);
G_END_DECLS
-
#endif /* __GST_CHROMA_HOLD_H__ */
* <refsect2>
* <title>Example launch line</title>
* |[
- * gst-launch -v videotestsrc ! coloreffects preset=heat ! ffmpegcolorspace ! autovideosink
+ * gst-launch -v videotestsrc ! coloreffects preset=heat ! ffmpegcolorspace !
+ * autovideosink
* ]| This pipeline shows the effect of coloreffects on a test stream.
* </refsect2>
*/
112, -94, -18, 32768,
};
-#define APPLY_MATRIX(m,o,v1,v2,v3) ((m[o*4] * v1 + m[o*4+1] * v2 + m[o*4+2] * v3 + m[o*4+3]) >> 8)
+#define APPLY_MATRIX(m,o,v1,v2,v3) ((m[o*4] * v1 + m[o*4+1] * v2 + \
+ m[o*4+2] * v3 + m[o*4+3]) >> 8)
static void
gst_color_effects_transform_rgb (GstColorEffects * filter, guint8 * data)
/* 0.2126 R + 0.7152 G + 0.0722 B */
luma = ((r << 8) * 54) + ((g << 8) * 183) + ((b << 8) * 19);
luma >>= 16; /* get integer part */
- luma *= 3; /* times 3 to retrieve the correct pixel from the lut */
+ luma *= 3; /* times 3 to retrieve the correct pixel from
+ * the lut */
/* map luma to lookup table */
/* src.luma |-> table[luma].rgb */
data[offsets[0]] = filter->table[luma];
gint height;
gint size;
- void (*process) (GstColorEffects *filter, guint8 *data);
+ void (*process) (GstColorEffects * filter, guint8 * data);
};
struct _GstColorEffectsClass