 +}
 +
 +static inline int
-+gst_kate_enc_clamp(int value)
++gst_kate_enc_clamp (int value)
 +{
 +  if (value<0) return 0;
 +  if (value>255) return 255;

+}
+
+static void
+gst_kate_enc_crop_bitmap(GstKateEnc *ke, kate_bitmap *kb,guint16 *dx,guint16 *dy)
+{
+  int top, bottom, left, right;
+  guint8 zero = 0;

+          GST_WARNING_OBJECT (ke, "Failed to set markup type (%d)", ret);
+        }
+        else {
+          const char *text = (const char*) GST_BUFFER_DATA (buf);
+          size_t text_len = GST_BUFFER_SIZE (buf);
+          GST_LOG_OBJECT (ke, "Encoding text: %*.*s (%u bytes) from %f to %f", (int)text_len, (int)text_len, GST_BUFFER_DATA (buf), GST_BUFFER_SIZE (buf), t0, t1);
+          ret = kate_encode_text (&ke->k, t0, t1, text, text_len, &kp);
+          if (ret >= 0)
+            packet_ready = TRUE;
+        }
