Skip to content

Commit

Permalink
qar_decode8 update2
Browse files Browse the repository at this point in the history
  • Loading branch information
osnosn committed May 30, 2024
1 parent b59f133 commit 246b599
Show file tree
Hide file tree
Showing 4 changed files with 131 additions and 100 deletions.
10 changes: 0 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions python3/ALL_read_datafile.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def paramlist(self):
point=4
while point < len(self.data_paramtable):
size=struct.unpack('<H',self.data_paramtable[point:point+2])[0]
tmp = self.data_paramtable[point+22:point+size].split(b'\0',3)
tmp = self.data_paramtable[point+22:point+size].split(b'\0',5)
if len(tmp)<3:
print('Parameter Table ERROR.',tmp)
return header,param
Expand All @@ -74,7 +74,7 @@ def getparam(self,pm):
found=False
while point < len(self.data_paramtable):
size=struct.unpack('<H',self.data_paramtable[point:point+2])[0]
tmp = self.data_paramtable[point+22:point+size].split(b'\0',3)
tmp = self.data_paramtable[point+22:point+size].split(b'\0',5)
if len(tmp)<3:
print('Parameter Table ERROR.',tmp)
return data
Expand Down Expand Up @@ -145,7 +145,7 @@ def pick_param(self,PARAM):
point=4
while point < len(self.data_paramtable):
size=struct.unpack('<H',self.data_paramtable[point:point+2])[0]
tmp = self.data_paramtable[point+22:point+size].split(b'\0',3)
tmp = self.data_paramtable[point+22:point+size].split(b'\0',5)
if len(tmp)<3:
print('Parameter Table ERROR.',tmp)
return
Expand Down
1 change: 0 additions & 1 deletion qar_decode/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ description = "Use PRM decode Aligned raw.dat"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
bincode = { version = "1.3.3", registry = "rsproxy" }
bzip2 = { version = "0.4.4", registry = "rsproxy" }
lexopt = { version = "0.3.0", registry = "rsproxy" }
liblzma = { version = "0.3.1", registry = "rsproxy" }
Expand Down
Loading

0 comments on commit 246b599

Please sign in to comment.