Kamaelia docs : Kamaelia.UI.Pygame.VideoOverlay.VideoOverlay

Kamaelia.UI.Pygame.VideoOverlay.VideoOverlay

For examples and more explanations, see the module level docs.


class VideoOverlay(Axon.Component.component)

VideoOverlay() -> new VideoOverlay component

Displays a pygame video overlay using the Pygame Display service component. The overlay is sized and configured by the first frame of (uncompressed) video data is receives.

NB: Currently, the only supported pixel format is "YUV420_planar"

Inboxes

  • control : Shutdown signalling
  • inbox : Receives uncompressed video frames

Outboxes

  • outbox : NOT USED
  • signal : Shutdown signalling
  • yuvdata : Sending yuv video data to overlay display service
  • displayctrl : Sending requests to the Pygame Display service

Methods defined here

__init__(self, **argd)

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

formatChanged(self, frame)

Returns True if frame size or pixel format is new/different for this frame.

main(self)

Main loop.

newOverlay(self, frame)

Request an overlay to suit the supplied frame of data

waitBox(self, boxname)

Generator. yields 1 until data ready on the named inbox.

Feedback

Got a problem with the documentation? Something unclear that could be clearer? Want to help improve it? Constructive criticism is very welcome - especially if you can suggest a better rewording!

Please leave you feedback here in reply to the documentation thread in the Kamaelia blog.

-- Automatic documentation generator, 19 Oct 2008 at 14:29:09 UTC/GMT

This is a page from the Kamaelia website. You can find the original here: