Package flumotion :: Package component :: Package converters :: Package overlay :: Module genimg
[hide private]

Module genimg

source code


Version: $Rev: 7875 $

Functions [hide private]
3 sized tuple of string and 2 booleans
generateOverlay(text, showFlumotion, showCC, showXiph, width, height)
Generate an transparent image with text + logotypes rendered on top of it suitable for mixing into a video stream
source code
Variables [hide private]
  directory = '/home/mandrake/rpm/BUILD/flumotion-0.6.1/flumotio...
  fontpath = '/home/mandrake/rpm/BUILD/flumotion-0.6.1/flumotion...
  logopath = '/home/mandrake/rpm/BUILD/flumotion-0.6.1/flumotion...
  TEXT_XOFFSET = 6
  TEXT_YOFFSET = 6
  WIDTH = 36
  BORDER = 4
  FONT_SIZE = 22
  __package__ = None
hash(x)
Function Details [hide private]

generateOverlay(text, showFlumotion, showCC, showXiph, width, height)

source code 

Generate an transparent image with text + logotypes rendered on top of it suitable for mixing into a video stream

Parameters:
  • text (str) - text to put in the top left corner
  • showFlumotion (bool) - if we should show the flumotion logo
  • showCC (bool) - if we should show the Creative Common logo
  • showXiph (bool) - if we should show the xiph logo
  • width (int) - width of the image to generate
  • height (int) - height of the image to generate
Returns: 3 sized tuple of string and 2 booleans
raw image and if images or if text overflowed

Variables Details [hide private]

directory

Value:
'/home/mandrake/rpm/BUILD/flumotion-0.6.1/flumotion/component/converte\
rs/overlay'

fontpath

Value:
'/home/mandrake/rpm/BUILD/flumotion-0.6.1/flumotion/component/converte\
rs/overlay/Vera.ttf'

logopath

Value:
'/home/mandrake/rpm/BUILD/flumotion-0.6.1/flumotion/component/converte\
rs/overlay'