daily pastebin goal
29%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     struct upipe_mgr *ft_mgr = upipe_freetype_mgr_alloc();
  2.     struct uref *uref = uref_alloc(uref_mgr);
  3.     uref_flow_set_def(uref, "pic.");
  4.     uref_pic_flow_set_hsize(uref, mode_w / N);
  5.     uref_pic_flow_set_vsize(uref, text_h);
  6.     upipe_ft[x] = upipe_flow_alloc(ft_mgr,
  7.             uprobe_pfx_alloc_va(uprobe_custom_alloc(uprobe_use(uprobe_main), catch_ft, x),
  8.                 loglevel, "freetype %d", x), uref);
  9.  
  10.     assert(upipe_ft[x]);
  11.     upipe_set_option(upipe_ft[x], "font", font);
  12.     uref_flow_set_def(uref, "void.text.");
  13.     upipe_set_flow_def(upipe_ft[x], uref);
  14.     uref_free(uref);
  15.  
  16.     if (u->title) {
  17.         struct uref *uref = uref_alloc(uref_mgr);
  18.         uref_attr_set_string(uref, u->title, UDICT_TYPE_STRING, "text");
  19.         upipe_input(upipe_ft[x], uref, NULL);
  20.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top