MythTV  master
vimeo_data.py
Go to the documentation of this file.
1 # -*- coding: utf-8 -*-
2 
3 from string import ascii_uppercase, ascii_lowercase
4 
5 class getData(object):
6  def __init__(self):
7  self.a = b'3530346e36313539393971733336717171323031323134377036356f6f367030'
8  self.s = b'3330373736326f7236716e30323171'
9 
10  def update_old(self, data):
11  total = []
12  for char in bytes.fromhex(data).decode('ascii'):
13  if char in ascii_uppercase:
14  index = (ascii_uppercase.find(char) + 13) % 26
15  total.append(ascii_uppercase[index])
16  elif char in ascii_lowercase:
17  index = (ascii_lowercase.find(char) + 13) % 26
18  total.append(ascii_lowercase[index])
19  else:
20  total.append(char)
21  return "".join(total)
22 
23  def update(self, data):
24  total = []
25  for char in bytes.fromhex(data).decode('ascii'):
26  print(char)
nv_python_libs.vimeo.vimeo_data.getData.s
s
Definition: vimeo_data.py:8
nv_python_libs.vimeo.vimeo_data.getData.__init__
def __init__(self)
Definition: vimeo_data.py:6
decode
static int decode(unsigned char *vbiline, int scale0, int scale1)
Definition: cc.cpp:67
nv_python_libs.vimeo.vimeo_data.getData.a
a
Definition: vimeo_data.py:7
nv_python_libs.vimeo.vimeo_data.getData.update
def update(self, data)
Definition: vimeo_data.py:23
print
static void print(const QList< uint > &raw_minimas, const QList< uint > &raw_maximas, const QList< float > &minimas, const QList< float > &maximas)
Definition: vbi608extractor.cpp:29
nv_python_libs.vimeo.vimeo_data.getData
Definition: vimeo_data.py:5
nv_python_libs.vimeo.vimeo_data.getData.update_old
def update_old(self, data)
Definition: vimeo_data.py:10