aboutsummaryrefslogtreecommitdiffstats
path: root/src/gr-fadingui/python/deframer.py
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2021-11-19 21:29:45 +0100
committerNao Pross <np@0hm.ch>2021-11-19 21:29:45 +0100
commitac8ef5f69a69f11fd202470da68709cd3006d547 (patch)
tree89cea172b61703acb728e1937dedec0e909da85b /src/gr-fadingui/python/deframer.py
parentRemove PDF (diff)
downloadFading-ac8ef5f69a69f11fd202470da68709cd3006d547.tar.gz
Fading-ac8ef5f69a69f11fd202470da68709cd3006d547.zip
Frames
Diffstat (limited to '')
-rw-r--r--src/gr-fadingui/python/deframer.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/gr-fadingui/python/deframer.py b/src/gr-fadingui/python/deframer.py
new file mode 100644
index 0000000..b7ee663
--- /dev/null
+++ b/src/gr-fadingui/python/deframer.py
@@ -0,0 +1,26 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+#
+# Copyright 2021 Naoki Pross.
+
+import numpy as np
+from gnuradio import gr
+
+class deframer(gr.sync_block):
+ """
+ docstring for block deframer
+ """
+ def __init__(self):
+ gr.sync_block.__init__(self,
+ name="deframer",
+ in_sig=[np.byte],
+ out_sig=[np.byte])
+
+
+ def work(self, input_items, output_items):
+ in0 = input_items[0]
+ out = output_items[0]
+
+ out[:] = in0
+ return len(output_items[0])
+