示例#1
0
rojline.set_property("gain", 12000)

#---------------------------------------------------------------------------------
rojolsa = Gst.ElementFactory.make("rojolsa", "olsa0")
pipeline.add(rojolsa)

#---------------------------------------------------------------------------------
fakesink = Gst.ElementFactory.make("fakesink", "sink0")
pipeline.add(fakesink)

########################################################################################
#  link...

import groj
groj.link(fakesrc, rojpointer, rojline, rojolsa, fakesink)

########################################################################################


ret = pipeline.set_state(Gst.State.PLAYING)
assert ret != Gst.StateChangeReturn.FAILURE, "error: play"

try:
    import signal
    signal.pause()
except KeyboardInterrupt:
    pipeline.set_state(Gst.State.NULL)
    print("CTRL-C")

示例#2
0
文件: reass.py 项目: dsp-box/gROJ
#rojscreen.set_property("mode", "lin")
rojscreen.set_property("mode", "log")
rojscreen.set_property("wscr", 888)
rojscreen.set_property("hscr", 800)
rojscreen.set_property("update", 10)
rojscreen.set_property("channel", 1)
rojscreen.set_property("oval", -30)

#---------------------------------------------------------------------------------
fakesink = Gst.ElementFactory.make("fakesink", "sink0")
pipeline.add(fakesink)

########################################################################################
#  link...

import groj
groj.link(fakesrc, rojload, rojparcel, rojreass, rojraster, rojkadr, rojscreen, fakesink)

########################################################################################

ret = pipeline.set_state(Gst.State.PLAYING)
assert ret != Gst.StateChangeReturn.FAILURE, "error: play"

try:
    import signal
    signal.pause()
except KeyboardInterrupt:
    pipeline.set_state(Gst.State.NULL)
    print("CTRL-C")

示例#3
0
#rojscreen.set_property("mode", "lin")
rojscreen.set_property("mode", "log")
rojscreen.set_property("wscr", 888)
rojscreen.set_property("hscr", 800)
rojscreen.set_property("update", 10)
rojscreen.set_property("channel", 1)
rojscreen.set_property("oval", -30)

#---------------------------------------------------------------------------------
fakesink = Gst.ElementFactory.make("fakesink", "sink0")
pipeline.add(fakesink)

########################################################################################
#  link...

import groj
groj.link(fakesrc, rojload, rojparcel, rojreass, rojraster, rojkadr, rojscreen,
          fakesink)

########################################################################################

ret = pipeline.set_state(Gst.State.PLAYING)
assert ret != Gst.StateChangeReturn.FAILURE, "error: play"

try:
    import signal
    signal.pause()
except KeyboardInterrupt:
    pipeline.set_state(Gst.State.NULL)
    print("CTRL-C")
示例#4
0
#rojscreen.set_property("mode", "lin")
rojscreen.set_property("mode", "log")
rojscreen.set_property("wscr", 1192)
rojscreen.set_property("hscr", 600)
rojscreen.set_property("update", 10)
rojscreen.set_property("channel", 1)
rojscreen.set_property("oval", -30)

#---------------------------------------------------------------------------------
fakesink = Gst.ElementFactory.make("fakesink", "sink0")
pipeline.add(fakesink)

########################################################################################
#  link...

import groj
groj.link(fakesrc, rojload, rojparcel, rojstft, rojconvert, rojkadr, rojscreen,
          fakesink)

########################################################################################

ret = pipeline.set_state(Gst.State.PLAYING)
assert ret != Gst.StateChangeReturn.FAILURE, "error: play"

try:
    import signal
    signal.pause()
except KeyboardInterrupt:
    pipeline.set_state(Gst.State.NULL)
    print("CTRL-C")
示例#5
0
文件: filter.py 项目: pjkundert/gROJ
#rojscreen.set_property("mode", "lin")
rojscreen.set_property("mode", "log")
#rojscreen.set_property("wscr", 1100)
rojscreen.set_property("hscr", 900)
rojscreen.set_property("update", 3)
rojscreen.set_property("channel", 1)
rojscreen.set_property("oval", -30)

#---------------------------------------------------------------------------------
fakesink = Gst.ElementFactory.make("fakesink", "sink0")
pipeline.add(fakesink)

########################################################################################
#  link...

import groj
groj.link(fakesrc, rojgener, rojnoise, rojfilter, rojparcel, rojstft,
          rojconvert, rojscreen, fakesink)

########################################################################################

ret = pipeline.set_state(Gst.State.PLAYING)
assert ret != Gst.StateChangeReturn.FAILURE, "error: play"

try:
    import signal
    signal.pause()
except KeyboardInterrupt:
    pipeline.set_state(Gst.State.NULL)
    print("CTRL-C")
示例#6
0
文件: filter.py 项目: dsp-box/gROJ
#rojscreen.set_property("wscr", 1100)
rojscreen.set_property("hscr", 900)
rojscreen.set_property("update", 3)
rojscreen.set_property("channel", 1)
rojscreen.set_property("oval", -30)


#---------------------------------------------------------------------------------
fakesink = Gst.ElementFactory.make("fakesink", "sink0")
pipeline.add(fakesink)

########################################################################################
#  link...

import groj
groj.link(fakesrc, rojgener, rojnoise, rojfilter, rojparcel, rojstft, rojconvert, rojscreen, fakesink)

########################################################################################


ret = pipeline.set_state(Gst.State.PLAYING)
assert ret != Gst.StateChangeReturn.FAILURE, "error: play"

try:
    import signal
    signal.pause()
except KeyboardInterrupt:
    pipeline.set_state(Gst.State.NULL)
    print("CTRL-C")

示例#7
0
文件: load.py 项目: pjkundert/gROJ
rojscreen.set_property("mode", "log")
rojscreen.set_property("wscr", 987)
rojscreen.set_property("hscr", 900)
rojscreen.set_property("update", 10)
rojscreen.set_property("channel", 1)
rojscreen.set_property("oval", -30)

#---------------------------------------------------------------------------------
fakesink = Gst.ElementFactory.make("fakesink", "sink0")
pipeline.add(fakesink)

########################################################################################
#  link...

import groj
groj.link(fakesrc, rojload, rojparcel, rojtransform, rojconvert, rojscreen,
          fakesink)

########################################################################################

ret = pipeline.set_state(Gst.State.PLAYING)
assert ret != Gst.StateChangeReturn.FAILURE, "error: play"

try:
    import signal
    signal.pause()
except KeyboardInterrupt:
    pipeline.set_state(Gst.State.NULL)
    print("CTRL-C")
示例#8
0
文件: kadr.py 项目: dsp-box/gROJ
rojscreen.set_property("wscr", 1192)
rojscreen.set_property("hscr", 600)
rojscreen.set_property("update", 10)
rojscreen.set_property("channel", 1)
rojscreen.set_property("oval", -30)

# ---------------------------------------------------------------------------------
fakesink = Gst.ElementFactory.make("fakesink", "sink0")
pipeline.add(fakesink)

########################################################################################
#  link...

import groj

groj.link(fakesrc, rojload, rojparcel, rojstft, rojconvert, rojkadr, rojscreen, fakesink)

########################################################################################


ret = pipeline.set_state(Gst.State.PLAYING)
assert ret != Gst.StateChangeReturn.FAILURE, "error: play"


try:
    import signal

    signal.pause()
except KeyboardInterrupt:
    pipeline.set_state(Gst.State.NULL)
    print("CTRL-C")
示例#9
0
文件: mouse.py 项目: pjkundert/gROJ
#rojscreen.set_property("mode", "lin")
rojscreen.set_property("mode", "log")
#rojscreen.set_property("wscr", 1100)
rojscreen.set_property("hscr", 1024)
rojscreen.set_property("update", 3)
rojscreen.set_property("channel", 1)
rojscreen.set_property("oval", -30)

#---------------------------------------------------------------------------------
fakesink = Gst.ElementFactory.make("fakesink", "sink0")
pipeline.add(fakesink)

########################################################################################
#  link...

import groj
groj.link(fakesrc, rojpointer, rojfilter, rojparcel, rojstft, rojconvert,
          rojscreen, fakesink)

########################################################################################

ret = pipeline.set_state(Gst.State.PLAYING)
assert ret != Gst.StateChangeReturn.FAILURE, "error: play"

try:
    import signal
    signal.pause()
except KeyboardInterrupt:
    pipeline.set_state(Gst.State.NULL)
    print("CTRL-C")
示例#10
0
文件: mouse.py 项目: dsp-box/gROJ
#rojscreen.set_property("wscr", 1100)
rojscreen.set_property("hscr", 1024)
rojscreen.set_property("update", 3)
rojscreen.set_property("channel", 1)
rojscreen.set_property("oval", -30)


#---------------------------------------------------------------------------------
fakesink = Gst.ElementFactory.make("fakesink", "sink0")
pipeline.add(fakesink)

########################################################################################
#  link...

import groj
groj.link(fakesrc, rojpointer, rojfilter, rojparcel, rojstft, rojconvert, rojscreen, fakesink)

########################################################################################


ret = pipeline.set_state(Gst.State.PLAYING)
assert ret != Gst.StateChangeReturn.FAILURE, "error: play"

try:
    import signal
    signal.pause()
except KeyboardInterrupt:
    pipeline.set_state(Gst.State.NULL)
    print("CTRL-C")

示例#11
0
文件: load.py 项目: dsp-box/gROJ
rojscreen.set_property("mode", "log")
rojscreen.set_property("wscr", 987)
rojscreen.set_property("hscr", 900)
rojscreen.set_property("update", 10)
rojscreen.set_property("channel", 1)
rojscreen.set_property("oval", -30)

#---------------------------------------------------------------------------------
fakesink = Gst.ElementFactory.make("fakesink", "sink0")
pipeline.add(fakesink)

########################################################################################
#  link...

import groj
groj.link(fakesrc, rojload, rojparcel, rojtransform, rojconvert, rojscreen, fakesink)

########################################################################################



ret = pipeline.set_state(Gst.State.PLAYING)
assert ret != Gst.StateChangeReturn.FAILURE, "error: play"

try:
    import signal
    signal.pause()
except KeyboardInterrupt:
    pipeline.set_state(Gst.State.NULL)
    print("CTRL-C")
示例#12
0
rojline = Gst.ElementFactory.make("rojline", "line0")
pipeline.add(rojline)

rojline.set_property("gain", 12000)

#---------------------------------------------------------------------------------
rojolsa = Gst.ElementFactory.make("rojolsa", "olsa0")
pipeline.add(rojolsa)

#---------------------------------------------------------------------------------
fakesink = Gst.ElementFactory.make("fakesink", "sink0")
pipeline.add(fakesink)

########################################################################################
#  link...

import groj
groj.link(fakesrc, rojpointer, rojline, rojolsa, fakesink)

########################################################################################

ret = pipeline.set_state(Gst.State.PLAYING)
assert ret != Gst.StateChangeReturn.FAILURE, "error: play"

try:
    import signal
    signal.pause()
except KeyboardInterrupt:
    pipeline.set_state(Gst.State.NULL)
    print("CTRL-C")
示例#13
0
rojline.set_property("gain", 12000)

#---------------------------------------------------------------------------------
rojolsa = Gst.ElementFactory.make("rojolsa", "olsa0")
pipeline.add(rojolsa)

#---------------------------------------------------------------------------------
fakesink = Gst.ElementFactory.make("fakesink", "sink0")
pipeline.add(fakesink)

########################################################################################
#  link...

import groj
groj.link(fakesrc, rojgener, rojline, rojolsa, fakesink)

########################################################################################


ret = pipeline.set_state(Gst.State.PLAYING)
assert ret != Gst.StateChangeReturn.FAILURE, "error: play"

try:
    import signal
    signal.pause()
except KeyboardInterrupt:
    pipeline.set_state(Gst.State.NULL)
    print("CTRL-C")

示例#14
0
rojscreen.set_property("wscr", 1100)
rojscreen.set_property("hscr", 800)
rojscreen.set_property("update", 10)
rojscreen.set_property("channel", 1)
rojscreen.set_property("oval", -30)


#---------------------------------------------------------------------------------
fakesink = Gst.ElementFactory.make("fakesink", "sink0")
pipeline.add(fakesink)

########################################################################################
#  link...

import groj
groj.link(fakesrc, queue, rojgener, rojfilter0, rojline, rojfilter1, rojparcel, rojstft, rojconvert, rojscreen, fakesink)

########################################################################################


ret = pipeline.set_state(Gst.State.PLAYING)
assert ret != Gst.StateChangeReturn.FAILURE, "error: play"

try:
    import signal
    signal.pause()
except KeyboardInterrupt:
    pipeline.set_state(Gst.State.NULL)
    print("CTRL-C")