File: test.py

package info (click to toggle)
freej 0.10git20080824-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 13,504 kB
  • ctags: 19,398
  • sloc: ansic: 135,255; cpp: 32,550; sh: 9,318; perl: 2,932; asm: 2,355; yacc: 1,178; makefile: 1,119; java: 136; lex: 94; python: 16
file content (24 lines) | stat: -rw-r--r-- 393 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import freej
import time

freej.set_debug(3)

# init context
cx = freej.Context()
cx.init(400,300,0,0)
cx.config_check("keyboard.js")
cx.plugger.refresh(cx)

# add a layer
lay = freej.create_layer(cx,"/home/caedes/dvgrab-001.avi")
lay.start()
lay.add_filter(cx.filters["vertigo"])
lay.active = True
cx.add_layer(lay)

# main loop
while True:
	cx.cafudda(1.0)
	time.sleep(0.04)
time.sleep(10)