convert_set_alpha_u8 (GstVideoConverter * convert, gpointer pixels, gint width)
{
guint8 *p = pixels;
- guint8 alpha = CLAMP (convert->alpha_value, 0, 255);
+ guint8 alpha = MIN (convert->alpha_value, 255);
int i;
for (i = 0; i < width; i++)
guint16 alpha;
int i;
- alpha = CLAMP (convert->alpha_value, 0, 255);
+ alpha = MIN (convert->alpha_value, 255);
alpha |= alpha << 8;
for (i = 0; i < width; i++)
gint width = convert->in_width;
gint height = convert->in_height;
gboolean interlaced = GST_VIDEO_FRAME_IS_INTERLACED (src);
- guint8 alpha = CLAMP (convert->alpha_value, 0, 255);
+ guint8 alpha = MIN (convert->alpha_value, 255);
gint l1, l2;
for (i = 0; i < GST_ROUND_DOWN_2 (height); i += 2) {
gint width = convert->in_width;
gint height = convert->in_height;
guint8 *s, *d;
- guint8 alpha = CLAMP (convert->alpha_value, 0, 255);
+ guint8 alpha = MIN (convert->alpha_value, 255);
s = FRAME_GET_LINE (src, convert->in_y);
s += (GST_ROUND_UP_2 (convert->in_x) * 2);
gint width = convert->in_width;
gint height = convert->in_height;
guint8 *s, *d;
- guint8 alpha = CLAMP (convert->alpha_value, 0, 255);
+ guint8 alpha = MIN (convert->alpha_value, 255);
s = FRAME_GET_LINE (src, convert->in_y);
s += (GST_ROUND_UP_2 (convert->in_x) * 2);
gint width = convert->in_width;
gint height = convert->in_height;
guint8 *sy, *su, *sv, *d;
- guint8 alpha = CLAMP (convert->alpha_value, 0, 255);
+ guint8 alpha = MIN (convert->alpha_value, 255);
sy = FRAME_GET_Y_LINE (src, convert->in_y);
sy += convert->in_x;
gint width = convert->in_width;
gint height = convert->in_height;
guint8 *sy, *su, *sv, *d;
- guint8 alpha = CLAMP (convert->alpha_value, 0, 255);
+ guint8 alpha = MIN (convert->alpha_value, 255);
sy = FRAME_GET_Y_LINE (src, convert->in_y);
sy += convert->in_x;