VIDEO ABSTRACTIONS
- Allow to decode and display video sequences.
- ``Video decoders'' are Tcl objects able to decode video sources:
- one frame is decoded at each decoder activation,
- stepping, reverse mode and random positioning are offered,
- YCC grabbers and Mpeg decompressors fall in this category.
- ``Video Viewers'' are Tk objects capable of displaying decoded frames:
- in a dedicated window,
- or in a canvas window,
- one frame is displayed at each viewer activation.
Home
Example:
# video_hello: Create a video decoder and viewer,
# map the viewer and enter an activation loop.
proc video_hello {} {
video_decoder vd -in hello.mpg
video_viewer .vw -in vd
pack .vw
while { [vd decode] == 0 } { .vw display; update }
}