]>
vgcfreebox.myrthtech.pt Git - ue-ccd-compressaodeimagensbinarias.git/blob - arithmetic.py
4 _opt_type
= sys
.argv
[1]
5 _file_path
= sys
.argv
[2]
7 _file
= utils
.get_file(_file_path
)
11 _pbm_content
= utils
.BitMapFile(_file
)
12 _
, _result_option_2
= utils
.arithmetic_encode_image(_pbm_content
)
13 print(_result_option_2
)
14 elif _opt_type
== "d":
15 _result
= utils
.arithmetic_decode_file(_file_path
)