initial commit
							
								
								
									
										56
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						| 
						 | 
				
			
			@ -0,0 +1,56 @@
 | 
			
		|||
# C++ objects and libs
 | 
			
		||||
*.slo
 | 
			
		||||
*.lo
 | 
			
		||||
*.o
 | 
			
		||||
*.a
 | 
			
		||||
*.la
 | 
			
		||||
*.lai
 | 
			
		||||
*.so
 | 
			
		||||
*.dll
 | 
			
		||||
*.dylib
 | 
			
		||||
 | 
			
		||||
# Qt-es
 | 
			
		||||
object_script.*.Release
 | 
			
		||||
object_script.*.Debug
 | 
			
		||||
*_plugin_import.cpp
 | 
			
		||||
/.qmake.cache
 | 
			
		||||
/.qmake.stash
 | 
			
		||||
*.pro.user
 | 
			
		||||
*.pro.user.*
 | 
			
		||||
*.qbs.user
 | 
			
		||||
*.qbs.user.*
 | 
			
		||||
*.moc
 | 
			
		||||
moc_*.cpp
 | 
			
		||||
moc_*.h
 | 
			
		||||
qrc_*.cpp
 | 
			
		||||
ui_*.h
 | 
			
		||||
*.qmlc
 | 
			
		||||
*.jsc
 | 
			
		||||
Makefile*
 | 
			
		||||
*build-*
 | 
			
		||||
/build
 | 
			
		||||
/app_dir
 | 
			
		||||
/release
 | 
			
		||||
/debug
 | 
			
		||||
 | 
			
		||||
# Qt unit tests
 | 
			
		||||
target_wrapper.*
 | 
			
		||||
 | 
			
		||||
# QtCreator
 | 
			
		||||
*.autosave
 | 
			
		||||
 | 
			
		||||
# QtCreator Qml
 | 
			
		||||
*.qmlproject.user
 | 
			
		||||
*.qmlproject.user.*
 | 
			
		||||
 | 
			
		||||
# QtCreator CMake
 | 
			
		||||
CMakeLists.txt.user*
 | 
			
		||||
 | 
			
		||||
# QtCreator 4.8< compilation database 
 | 
			
		||||
compile_commands.json
 | 
			
		||||
 | 
			
		||||
# QtCreator local machine specific files for imported projects
 | 
			
		||||
*creator.user*
 | 
			
		||||
 | 
			
		||||
# VSCode
 | 
			
		||||
/.vscode
 | 
			
		||||
							
								
								
									
										50
									
								
								CAS.pro
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
						 | 
				
			
			@ -0,0 +1,50 @@
 | 
			
		|||
#-------------------------------------------------
 | 
			
		||||
#
 | 
			
		||||
# Project created by QtCreator 2018-01-12T17:55:51
 | 
			
		||||
#
 | 
			
		||||
#-------------------------------------------------
 | 
			
		||||
 | 
			
		||||
QT += core gui
 | 
			
		||||
 | 
			
		||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
 | 
			
		||||
 | 
			
		||||
TEMPLATE = app
 | 
			
		||||
 | 
			
		||||
# The following define makes your compiler emit warnings if you use
 | 
			
		||||
# any feature of Qt which has been marked as deprecated (the exact warnings
 | 
			
		||||
# depend on your compiler). Please consult the documentation of the
 | 
			
		||||
# deprecated API in order to know how to port your code away from it.
 | 
			
		||||
DEFINES += QT_DEPRECATED_WARNINGS
 | 
			
		||||
 | 
			
		||||
# You can also make your code fail to compile if you use deprecated APIs.
 | 
			
		||||
# In order to do so, uncomment the following line.
 | 
			
		||||
# You can also select to disable deprecated APIs only up to a certain version of Qt.
 | 
			
		||||
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
 | 
			
		||||
 | 
			
		||||
win32 {
 | 
			
		||||
 | 
			
		||||
  TARGET         = cmdr
 | 
			
		||||
  DESTDIR_TARGET = build\\windows\\cas.exe
 | 
			
		||||
  OBJECTS_DIR    = build\\windows
 | 
			
		||||
  MOC_DIR        = build\\windows
 | 
			
		||||
  RCC_DIR        = build\\windows
 | 
			
		||||
  DESTDIR        = build\\windows
 | 
			
		||||
 | 
			
		||||
} else {
 | 
			
		||||
 | 
			
		||||
  TARGET      = build/linux/cas
 | 
			
		||||
  OBJECTS_DIR = build/linux
 | 
			
		||||
  MOC_DIR     = build/linux
 | 
			
		||||
  RCC_DIR     = build/linux
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
SOURCES += \
 | 
			
		||||
        src/main.cpp \
 | 
			
		||||
        src/ui.cpp \
 | 
			
		||||
        src/cas_codec.cpp
 | 
			
		||||
 | 
			
		||||
HEADERS += \
 | 
			
		||||
        src/ui.h \
 | 
			
		||||
        src/cas_codec.h
 | 
			
		||||
							
								
								
									
										621
									
								
								LICENSE.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
						 | 
				
			
			@ -0,0 +1,621 @@
 | 
			
		|||
                    GNU GENERAL PUBLIC LICENSE
 | 
			
		||||
                       Version 3, 29 June 2007
 | 
			
		||||
 | 
			
		||||
 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
 | 
			
		||||
 Everyone is permitted to copy and distribute verbatim copies
 | 
			
		||||
 of this license document, but changing it is not allowed.
 | 
			
		||||
 | 
			
		||||
                            Preamble
 | 
			
		||||
 | 
			
		||||
  The GNU General Public License is a free, copyleft license for
 | 
			
		||||
software and other kinds of works.
 | 
			
		||||
 | 
			
		||||
  The licenses for most software and other practical works are designed
 | 
			
		||||
to take away your freedom to share and change the works.  By contrast,
 | 
			
		||||
the GNU General Public License is intended to guarantee your freedom to
 | 
			
		||||
share and change all versions of a program--to make sure it remains free
 | 
			
		||||
software for all its users.  We, the Free Software Foundation, use the
 | 
			
		||||
GNU General Public License for most of our software; it applies also to
 | 
			
		||||
any other work released this way by its authors.  You can apply it to
 | 
			
		||||
your programs, too.
 | 
			
		||||
 | 
			
		||||
  When we speak of free software, we are referring to freedom, not
 | 
			
		||||
price.  Our General Public Licenses are designed to make sure that you
 | 
			
		||||
have the freedom to distribute copies of free software (and charge for
 | 
			
		||||
them if you wish), that you receive source code or can get it if you
 | 
			
		||||
want it, that you can change the software or use pieces of it in new
 | 
			
		||||
free programs, and that you know you can do these things.
 | 
			
		||||
 | 
			
		||||
  To protect your rights, we need to prevent others from denying you
 | 
			
		||||
these rights or asking you to surrender the rights.  Therefore, you have
 | 
			
		||||
certain responsibilities if you distribute copies of the software, or if
 | 
			
		||||
you modify it: responsibilities to respect the freedom of others.
 | 
			
		||||
 | 
			
		||||
  For example, if you distribute copies of such a program, whether
 | 
			
		||||
gratis or for a fee, you must pass on to the recipients the same
 | 
			
		||||
freedoms that you received.  You must make sure that they, too, receive
 | 
			
		||||
or can get the source code.  And you must show them these terms so they
 | 
			
		||||
know their rights.
 | 
			
		||||
 | 
			
		||||
  Developers that use the GNU GPL protect your rights with two steps:
 | 
			
		||||
(1) assert copyright on the software, and (2) offer you this License
 | 
			
		||||
giving you legal permission to copy, distribute and/or modify it.
 | 
			
		||||
 | 
			
		||||
  For the developers' and authors' protection, the GPL clearly explains
 | 
			
		||||
that there is no warranty for this free software.  For both users' and
 | 
			
		||||
authors' sake, the GPL requires that modified versions be marked as
 | 
			
		||||
changed, so that their problems will not be attributed erroneously to
 | 
			
		||||
authors of previous versions.
 | 
			
		||||
 | 
			
		||||
  Some devices are designed to deny users access to install or run
 | 
			
		||||
modified versions of the software inside them, although the manufacturer
 | 
			
		||||
can do so.  This is fundamentally incompatible with the aim of
 | 
			
		||||
protecting users' freedom to change the software.  The systematic
 | 
			
		||||
pattern of such abuse occurs in the area of products for individuals to
 | 
			
		||||
use, which is precisely where it is most unacceptable.  Therefore, we
 | 
			
		||||
have designed this version of the GPL to prohibit the practice for those
 | 
			
		||||
products.  If such problems arise substantially in other domains, we
 | 
			
		||||
stand ready to extend this provision to those domains in future versions
 | 
			
		||||
of the GPL, as needed to protect the freedom of users.
 | 
			
		||||
 | 
			
		||||
  Finally, every program is threatened constantly by software patents.
 | 
			
		||||
States should not allow patents to restrict development and use of
 | 
			
		||||
software on general-purpose computers, but in those that do, we wish to
 | 
			
		||||
avoid the special danger that patents applied to a free program could
 | 
			
		||||
make it effectively proprietary.  To prevent this, the GPL assures that
 | 
			
		||||
patents cannot be used to render the program non-free.
 | 
			
		||||
 | 
			
		||||
  The precise terms and conditions for copying, distribution and
 | 
			
		||||
modification follow.
 | 
			
		||||
 | 
			
		||||
                       TERMS AND CONDITIONS
 | 
			
		||||
 | 
			
		||||
  0. Definitions.
 | 
			
		||||
 | 
			
		||||
  "This License" refers to version 3 of the GNU General Public License.
 | 
			
		||||
 | 
			
		||||
  "Copyright" also means copyright-like laws that apply to other kinds of
 | 
			
		||||
works, such as semiconductor masks.
 | 
			
		||||
 | 
			
		||||
  "The Program" refers to any copyrightable work licensed under this
 | 
			
		||||
License.  Each licensee is addressed as "you".  "Licensees" and
 | 
			
		||||
"recipients" may be individuals or organizations.
 | 
			
		||||
 | 
			
		||||
  To "modify" a work means to copy from or adapt all or part of the work
 | 
			
		||||
in a fashion requiring copyright permission, other than the making of an
 | 
			
		||||
exact copy.  The resulting work is called a "modified version" of the
 | 
			
		||||
earlier work or a work "based on" the earlier work.
 | 
			
		||||
 | 
			
		||||
  A "covered work" means either the unmodified Program or a work based
 | 
			
		||||
on the Program.
 | 
			
		||||
 | 
			
		||||
  To "propagate" a work means to do anything with it that, without
 | 
			
		||||
permission, would make you directly or secondarily liable for
 | 
			
		||||
infringement under applicable copyright law, except executing it on a
 | 
			
		||||
computer or modifying a private copy.  Propagation includes copying,
 | 
			
		||||
distribution (with or without modification), making available to the
 | 
			
		||||
public, and in some countries other activities as well.
 | 
			
		||||
 | 
			
		||||
  To "convey" a work means any kind of propagation that enables other
 | 
			
		||||
parties to make or receive copies.  Mere interaction with a user through
 | 
			
		||||
a computer network, with no transfer of a copy, is not conveying.
 | 
			
		||||
 | 
			
		||||
  An interactive user interface displays "Appropriate Legal Notices"
 | 
			
		||||
to the extent that it includes a convenient and prominently visible
 | 
			
		||||
feature that (1) displays an appropriate copyright notice, and (2)
 | 
			
		||||
tells the user that there is no warranty for the work (except to the
 | 
			
		||||
extent that warranties are provided), that licensees may convey the
 | 
			
		||||
work under this License, and how to view a copy of this License.  If
 | 
			
		||||
the interface presents a list of user commands or options, such as a
 | 
			
		||||
menu, a prominent item in the list meets this criterion.
 | 
			
		||||
 | 
			
		||||
  1. Source Code.
 | 
			
		||||
 | 
			
		||||
  The "source code" for a work means the preferred form of the work
 | 
			
		||||
for making modifications to it.  "Object code" means any non-source
 | 
			
		||||
form of a work.
 | 
			
		||||
 | 
			
		||||
  A "Standard Interface" means an interface that either is an official
 | 
			
		||||
standard defined by a recognized standards body, or, in the case of
 | 
			
		||||
interfaces specified for a particular programming language, one that
 | 
			
		||||
is widely used among developers working in that language.
 | 
			
		||||
 | 
			
		||||
  The "System Libraries" of an executable work include anything, other
 | 
			
		||||
than the work as a whole, that (a) is included in the normal form of
 | 
			
		||||
packaging a Major Component, but which is not part of that Major
 | 
			
		||||
Component, and (b) serves only to enable use of the work with that
 | 
			
		||||
Major Component, or to implement a Standard Interface for which an
 | 
			
		||||
implementation is available to the public in source code form.  A
 | 
			
		||||
"Major Component", in this context, means a major essential component
 | 
			
		||||
(kernel, window system, and so on) of the specific operating system
 | 
			
		||||
(if any) on which the executable work runs, or a compiler used to
 | 
			
		||||
produce the work, or an object code interpreter used to run it.
 | 
			
		||||
 | 
			
		||||
  The "Corresponding Source" for a work in object code form means all
 | 
			
		||||
the source code needed to generate, install, and (for an executable
 | 
			
		||||
work) run the object code and to modify the work, including scripts to
 | 
			
		||||
control those activities.  However, it does not include the work's
 | 
			
		||||
System Libraries, or general-purpose tools or generally available free
 | 
			
		||||
programs which are used unmodified in performing those activities but
 | 
			
		||||
which are not part of the work.  For example, Corresponding Source
 | 
			
		||||
includes interface definition files associated with source files for
 | 
			
		||||
the work, and the source code for shared libraries and dynamically
 | 
			
		||||
linked subprograms that the work is specifically designed to require,
 | 
			
		||||
such as by intimate data communication or control flow between those
 | 
			
		||||
subprograms and other parts of the work.
 | 
			
		||||
 | 
			
		||||
  The Corresponding Source need not include anything that users
 | 
			
		||||
can regenerate automatically from other parts of the Corresponding
 | 
			
		||||
Source.
 | 
			
		||||
 | 
			
		||||
  The Corresponding Source for a work in source code form is that
 | 
			
		||||
same work.
 | 
			
		||||
 | 
			
		||||
  2. Basic Permissions.
 | 
			
		||||
 | 
			
		||||
  All rights granted under this License are granted for the term of
 | 
			
		||||
copyright on the Program, and are irrevocable provided the stated
 | 
			
		||||
conditions are met.  This License explicitly affirms your unlimited
 | 
			
		||||
permission to run the unmodified Program.  The output from running a
 | 
			
		||||
covered work is covered by this License only if the output, given its
 | 
			
		||||
content, constitutes a covered work.  This License acknowledges your
 | 
			
		||||
rights of fair use or other equivalent, as provided by copyright law.
 | 
			
		||||
 | 
			
		||||
  You may make, run and propagate covered works that you do not
 | 
			
		||||
convey, without conditions so long as your license otherwise remains
 | 
			
		||||
in force.  You may convey covered works to others for the sole purpose
 | 
			
		||||
of having them make modifications exclusively for you, or provide you
 | 
			
		||||
with facilities for running those works, provided that you comply with
 | 
			
		||||
the terms of this License in conveying all material for which you do
 | 
			
		||||
not control copyright.  Those thus making or running the covered works
 | 
			
		||||
for you must do so exclusively on your behalf, under your direction
 | 
			
		||||
and control, on terms that prohibit them from making any copies of
 | 
			
		||||
your copyrighted material outside their relationship with you.
 | 
			
		||||
 | 
			
		||||
  Conveying under any other circumstances is permitted solely under
 | 
			
		||||
the conditions stated below.  Sublicensing is not allowed; section 10
 | 
			
		||||
makes it unnecessary.
 | 
			
		||||
 | 
			
		||||
  3. Protecting Users' Legal Rights From Anti-Circumvention Law.
 | 
			
		||||
 | 
			
		||||
  No covered work shall be deemed part of an effective technological
 | 
			
		||||
measure under any applicable law fulfilling obligations under article
 | 
			
		||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
 | 
			
		||||
similar laws prohibiting or restricting circumvention of such
 | 
			
		||||
measures.
 | 
			
		||||
 | 
			
		||||
  When you convey a covered work, you waive any legal power to forbid
 | 
			
		||||
circumvention of technological measures to the extent such circumvention
 | 
			
		||||
is effected by exercising rights under this License with respect to
 | 
			
		||||
the covered work, and you disclaim any intention to limit operation or
 | 
			
		||||
modification of the work as a means of enforcing, against the work's
 | 
			
		||||
users, your or third parties' legal rights to forbid circumvention of
 | 
			
		||||
technological measures.
 | 
			
		||||
 | 
			
		||||
  4. Conveying Verbatim Copies.
 | 
			
		||||
 | 
			
		||||
  You may convey verbatim copies of the Program's source code as you
 | 
			
		||||
receive it, in any medium, provided that you conspicuously and
 | 
			
		||||
appropriately publish on each copy an appropriate copyright notice;
 | 
			
		||||
keep intact all notices stating that this License and any
 | 
			
		||||
non-permissive terms added in accord with section 7 apply to the code;
 | 
			
		||||
keep intact all notices of the absence of any warranty; and give all
 | 
			
		||||
recipients a copy of this License along with the Program.
 | 
			
		||||
 | 
			
		||||
  You may charge any price or no price for each copy that you convey,
 | 
			
		||||
and you may offer support or warranty protection for a fee.
 | 
			
		||||
 | 
			
		||||
  5. Conveying Modified Source Versions.
 | 
			
		||||
 | 
			
		||||
  You may convey a work based on the Program, or the modifications to
 | 
			
		||||
produce it from the Program, in the form of source code under the
 | 
			
		||||
terms of section 4, provided that you also meet all of these conditions:
 | 
			
		||||
 | 
			
		||||
    a) The work must carry prominent notices stating that you modified
 | 
			
		||||
    it, and giving a relevant date.
 | 
			
		||||
 | 
			
		||||
    b) The work must carry prominent notices stating that it is
 | 
			
		||||
    released under this License and any conditions added under section
 | 
			
		||||
    7.  This requirement modifies the requirement in section 4 to
 | 
			
		||||
    "keep intact all notices".
 | 
			
		||||
 | 
			
		||||
    c) You must license the entire work, as a whole, under this
 | 
			
		||||
    License to anyone who comes into possession of a copy.  This
 | 
			
		||||
    License will therefore apply, along with any applicable section 7
 | 
			
		||||
    additional terms, to the whole of the work, and all its parts,
 | 
			
		||||
    regardless of how they are packaged.  This License gives no
 | 
			
		||||
    permission to license the work in any other way, but it does not
 | 
			
		||||
    invalidate such permission if you have separately received it.
 | 
			
		||||
 | 
			
		||||
    d) If the work has interactive user interfaces, each must display
 | 
			
		||||
    Appropriate Legal Notices; however, if the Program has interactive
 | 
			
		||||
    interfaces that do not display Appropriate Legal Notices, your
 | 
			
		||||
    work need not make them do so.
 | 
			
		||||
 | 
			
		||||
  A compilation of a covered work with other separate and independent
 | 
			
		||||
works, which are not by their nature extensions of the covered work,
 | 
			
		||||
and which are not combined with it such as to form a larger program,
 | 
			
		||||
in or on a volume of a storage or distribution medium, is called an
 | 
			
		||||
"aggregate" if the compilation and its resulting copyright are not
 | 
			
		||||
used to limit the access or legal rights of the compilation's users
 | 
			
		||||
beyond what the individual works permit.  Inclusion of a covered work
 | 
			
		||||
in an aggregate does not cause this License to apply to the other
 | 
			
		||||
parts of the aggregate.
 | 
			
		||||
 | 
			
		||||
  6. Conveying Non-Source Forms.
 | 
			
		||||
 | 
			
		||||
  You may convey a covered work in object code form under the terms
 | 
			
		||||
of sections 4 and 5, provided that you also convey the
 | 
			
		||||
machine-readable Corresponding Source under the terms of this License,
 | 
			
		||||
in one of these ways:
 | 
			
		||||
 | 
			
		||||
    a) Convey the object code in, or embodied in, a physical product
 | 
			
		||||
    (including a physical distribution medium), accompanied by the
 | 
			
		||||
    Corresponding Source fixed on a durable physical medium
 | 
			
		||||
    customarily used for software interchange.
 | 
			
		||||
 | 
			
		||||
    b) Convey the object code in, or embodied in, a physical product
 | 
			
		||||
    (including a physical distribution medium), accompanied by a
 | 
			
		||||
    written offer, valid for at least three years and valid for as
 | 
			
		||||
    long as you offer spare parts or customer support for that product
 | 
			
		||||
    model, to give anyone who possesses the object code either (1) a
 | 
			
		||||
    copy of the Corresponding Source for all the software in the
 | 
			
		||||
    product that is covered by this License, on a durable physical
 | 
			
		||||
    medium customarily used for software interchange, for a price no
 | 
			
		||||
    more than your reasonable cost of physically performing this
 | 
			
		||||
    conveying of source, or (2) access to copy the
 | 
			
		||||
    Corresponding Source from a network server at no charge.
 | 
			
		||||
 | 
			
		||||
    c) Convey individual copies of the object code with a copy of the
 | 
			
		||||
    written offer to provide the Corresponding Source.  This
 | 
			
		||||
    alternative is allowed only occasionally and noncommercially, and
 | 
			
		||||
    only if you received the object code with such an offer, in accord
 | 
			
		||||
    with subsection 6b.
 | 
			
		||||
 | 
			
		||||
    d) Convey the object code by offering access from a designated
 | 
			
		||||
    place (gratis or for a charge), and offer equivalent access to the
 | 
			
		||||
    Corresponding Source in the same way through the same place at no
 | 
			
		||||
    further charge.  You need not require recipients to copy the
 | 
			
		||||
    Corresponding Source along with the object code.  If the place to
 | 
			
		||||
    copy the object code is a network server, the Corresponding Source
 | 
			
		||||
    may be on a different server (operated by you or a third party)
 | 
			
		||||
    that supports equivalent copying facilities, provided you maintain
 | 
			
		||||
    clear directions next to the object code saying where to find the
 | 
			
		||||
    Corresponding Source.  Regardless of what server hosts the
 | 
			
		||||
    Corresponding Source, you remain obligated to ensure that it is
 | 
			
		||||
    available for as long as needed to satisfy these requirements.
 | 
			
		||||
 | 
			
		||||
    e) Convey the object code using peer-to-peer transmission, provided
 | 
			
		||||
    you inform other peers where the object code and Corresponding
 | 
			
		||||
    Source of the work are being offered to the general public at no
 | 
			
		||||
    charge under subsection 6d.
 | 
			
		||||
 | 
			
		||||
  A separable portion of the object code, whose source code is excluded
 | 
			
		||||
from the Corresponding Source as a System Library, need not be
 | 
			
		||||
included in conveying the object code work.
 | 
			
		||||
 | 
			
		||||
  A "User Product" is either (1) a "consumer product", which means any
 | 
			
		||||
tangible personal property which is normally used for personal, family,
 | 
			
		||||
or household purposes, or (2) anything designed or sold for incorporation
 | 
			
		||||
into a dwelling.  In determining whether a product is a consumer product,
 | 
			
		||||
doubtful cases shall be resolved in favor of coverage.  For a particular
 | 
			
		||||
product received by a particular user, "normally used" refers to a
 | 
			
		||||
typical or common use of that class of product, regardless of the status
 | 
			
		||||
of the particular user or of the way in which the particular user
 | 
			
		||||
actually uses, or expects or is expected to use, the product.  A product
 | 
			
		||||
is a consumer product regardless of whether the product has substantial
 | 
			
		||||
commercial, industrial or non-consumer uses, unless such uses represent
 | 
			
		||||
the only significant mode of use of the product.
 | 
			
		||||
 | 
			
		||||
  "Installation Information" for a User Product means any methods,
 | 
			
		||||
procedures, authorization keys, or other information required to install
 | 
			
		||||
and execute modified versions of a covered work in that User Product from
 | 
			
		||||
a modified version of its Corresponding Source.  The information must
 | 
			
		||||
suffice to ensure that the continued functioning of the modified object
 | 
			
		||||
code is in no case prevented or interfered with solely because
 | 
			
		||||
modification has been made.
 | 
			
		||||
 | 
			
		||||
  If you convey an object code work under this section in, or with, or
 | 
			
		||||
specifically for use in, a User Product, and the conveying occurs as
 | 
			
		||||
part of a transaction in which the right of possession and use of the
 | 
			
		||||
User Product is transferred to the recipient in perpetuity or for a
 | 
			
		||||
fixed term (regardless of how the transaction is characterized), the
 | 
			
		||||
Corresponding Source conveyed under this section must be accompanied
 | 
			
		||||
by the Installation Information.  But this requirement does not apply
 | 
			
		||||
if neither you nor any third party retains the ability to install
 | 
			
		||||
modified object code on the User Product (for example, the work has
 | 
			
		||||
been installed in ROM).
 | 
			
		||||
 | 
			
		||||
  The requirement to provide Installation Information does not include a
 | 
			
		||||
requirement to continue to provide support service, warranty, or updates
 | 
			
		||||
for a work that has been modified or installed by the recipient, or for
 | 
			
		||||
the User Product in which it has been modified or installed.  Access to a
 | 
			
		||||
network may be denied when the modification itself materially and
 | 
			
		||||
adversely affects the operation of the network or violates the rules and
 | 
			
		||||
protocols for communication across the network.
 | 
			
		||||
 | 
			
		||||
  Corresponding Source conveyed, and Installation Information provided,
 | 
			
		||||
in accord with this section must be in a format that is publicly
 | 
			
		||||
documented (and with an implementation available to the public in
 | 
			
		||||
source code form), and must require no special password or key for
 | 
			
		||||
unpacking, reading or copying.
 | 
			
		||||
 | 
			
		||||
  7. Additional Terms.
 | 
			
		||||
 | 
			
		||||
  "Additional permissions" are terms that supplement the terms of this
 | 
			
		||||
License by making exceptions from one or more of its conditions.
 | 
			
		||||
Additional permissions that are applicable to the entire Program shall
 | 
			
		||||
be treated as though they were included in this License, to the extent
 | 
			
		||||
that they are valid under applicable law.  If additional permissions
 | 
			
		||||
apply only to part of the Program, that part may be used separately
 | 
			
		||||
under those permissions, but the entire Program remains governed by
 | 
			
		||||
this License without regard to the additional permissions.
 | 
			
		||||
 | 
			
		||||
  When you convey a copy of a covered work, you may at your option
 | 
			
		||||
remove any additional permissions from that copy, or from any part of
 | 
			
		||||
it.  (Additional permissions may be written to require their own
 | 
			
		||||
removal in certain cases when you modify the work.)  You may place
 | 
			
		||||
additional permissions on material, added by you to a covered work,
 | 
			
		||||
for which you have or can give appropriate copyright permission.
 | 
			
		||||
 | 
			
		||||
  Notwithstanding any other provision of this License, for material you
 | 
			
		||||
add to a covered work, you may (if authorized by the copyright holders of
 | 
			
		||||
that material) supplement the terms of this License with terms:
 | 
			
		||||
 | 
			
		||||
    a) Disclaiming warranty or limiting liability differently from the
 | 
			
		||||
    terms of sections 15 and 16 of this License; or
 | 
			
		||||
 | 
			
		||||
    b) Requiring preservation of specified reasonable legal notices or
 | 
			
		||||
    author attributions in that material or in the Appropriate Legal
 | 
			
		||||
    Notices displayed by works containing it; or
 | 
			
		||||
 | 
			
		||||
    c) Prohibiting misrepresentation of the origin of that material, or
 | 
			
		||||
    requiring that modified versions of such material be marked in
 | 
			
		||||
    reasonable ways as different from the original version; or
 | 
			
		||||
 | 
			
		||||
    d) Limiting the use for publicity purposes of names of licensors or
 | 
			
		||||
    authors of the material; or
 | 
			
		||||
 | 
			
		||||
    e) Declining to grant rights under trademark law for use of some
 | 
			
		||||
    trade names, trademarks, or service marks; or
 | 
			
		||||
 | 
			
		||||
    f) Requiring indemnification of licensors and authors of that
 | 
			
		||||
    material by anyone who conveys the material (or modified versions of
 | 
			
		||||
    it) with contractual assumptions of liability to the recipient, for
 | 
			
		||||
    any liability that these contractual assumptions directly impose on
 | 
			
		||||
    those licensors and authors.
 | 
			
		||||
 | 
			
		||||
  All other non-permissive additional terms are considered "further
 | 
			
		||||
restrictions" within the meaning of section 10.  If the Program as you
 | 
			
		||||
received it, or any part of it, contains a notice stating that it is
 | 
			
		||||
governed by this License along with a term that is a further
 | 
			
		||||
restriction, you may remove that term.  If a license document contains
 | 
			
		||||
a further restriction but permits relicensing or conveying under this
 | 
			
		||||
License, you may add to a covered work material governed by the terms
 | 
			
		||||
of that license document, provided that the further restriction does
 | 
			
		||||
not survive such relicensing or conveying.
 | 
			
		||||
 | 
			
		||||
  If you add terms to a covered work in accord with this section, you
 | 
			
		||||
must place, in the relevant source files, a statement of the
 | 
			
		||||
additional terms that apply to those files, or a notice indicating
 | 
			
		||||
where to find the applicable terms.
 | 
			
		||||
 | 
			
		||||
  Additional terms, permissive or non-permissive, may be stated in the
 | 
			
		||||
form of a separately written license, or stated as exceptions;
 | 
			
		||||
the above requirements apply either way.
 | 
			
		||||
 | 
			
		||||
  8. Termination.
 | 
			
		||||
 | 
			
		||||
  You may not propagate or modify a covered work except as expressly
 | 
			
		||||
provided under this License.  Any attempt otherwise to propagate or
 | 
			
		||||
modify it is void, and will automatically terminate your rights under
 | 
			
		||||
this License (including any patent licenses granted under the third
 | 
			
		||||
paragraph of section 11).
 | 
			
		||||
 | 
			
		||||
  However, if you cease all violation of this License, then your
 | 
			
		||||
license from a particular copyright holder is reinstated (a)
 | 
			
		||||
provisionally, unless and until the copyright holder explicitly and
 | 
			
		||||
finally terminates your license, and (b) permanently, if the copyright
 | 
			
		||||
holder fails to notify you of the violation by some reasonable means
 | 
			
		||||
prior to 60 days after the cessation.
 | 
			
		||||
 | 
			
		||||
  Moreover, your license from a particular copyright holder is
 | 
			
		||||
reinstated permanently if the copyright holder notifies you of the
 | 
			
		||||
violation by some reasonable means, this is the first time you have
 | 
			
		||||
received notice of violation of this License (for any work) from that
 | 
			
		||||
copyright holder, and you cure the violation prior to 30 days after
 | 
			
		||||
your receipt of the notice.
 | 
			
		||||
 | 
			
		||||
  Termination of your rights under this section does not terminate the
 | 
			
		||||
licenses of parties who have received copies or rights from you under
 | 
			
		||||
this License.  If your rights have been terminated and not permanently
 | 
			
		||||
reinstated, you do not qualify to receive new licenses for the same
 | 
			
		||||
material under section 10.
 | 
			
		||||
 | 
			
		||||
  9. Acceptance Not Required for Having Copies.
 | 
			
		||||
 | 
			
		||||
  You are not required to accept this License in order to receive or
 | 
			
		||||
run a copy of the Program.  Ancillary propagation of a covered work
 | 
			
		||||
occurring solely as a consequence of using peer-to-peer transmission
 | 
			
		||||
to receive a copy likewise does not require acceptance.  However,
 | 
			
		||||
nothing other than this License grants you permission to propagate or
 | 
			
		||||
modify any covered work.  These actions infringe copyright if you do
 | 
			
		||||
not accept this License.  Therefore, by modifying or propagating a
 | 
			
		||||
covered work, you indicate your acceptance of this License to do so.
 | 
			
		||||
 | 
			
		||||
  10. Automatic Licensing of Downstream Recipients.
 | 
			
		||||
 | 
			
		||||
  Each time you convey a covered work, the recipient automatically
 | 
			
		||||
receives a license from the original licensors, to run, modify and
 | 
			
		||||
propagate that work, subject to this License.  You are not responsible
 | 
			
		||||
for enforcing compliance by third parties with this License.
 | 
			
		||||
 | 
			
		||||
  An "entity transaction" is a transaction transferring control of an
 | 
			
		||||
organization, or substantially all assets of one, or subdividing an
 | 
			
		||||
organization, or merging organizations.  If propagation of a covered
 | 
			
		||||
work results from an entity transaction, each party to that
 | 
			
		||||
transaction who receives a copy of the work also receives whatever
 | 
			
		||||
licenses to the work the party's predecessor in interest had or could
 | 
			
		||||
give under the previous paragraph, plus a right to possession of the
 | 
			
		||||
Corresponding Source of the work from the predecessor in interest, if
 | 
			
		||||
the predecessor has it or can get it with reasonable efforts.
 | 
			
		||||
 | 
			
		||||
  You may not impose any further restrictions on the exercise of the
 | 
			
		||||
rights granted or affirmed under this License.  For example, you may
 | 
			
		||||
not impose a license fee, royalty, or other charge for exercise of
 | 
			
		||||
rights granted under this License, and you may not initiate litigation
 | 
			
		||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
 | 
			
		||||
any patent claim is infringed by making, using, selling, offering for
 | 
			
		||||
sale, or importing the Program or any portion of it.
 | 
			
		||||
 | 
			
		||||
  11. Patents.
 | 
			
		||||
 | 
			
		||||
  A "contributor" is a copyright holder who authorizes use under this
 | 
			
		||||
License of the Program or a work on which the Program is based.  The
 | 
			
		||||
work thus licensed is called the contributor's "contributor version".
 | 
			
		||||
 | 
			
		||||
  A contributor's "essential patent claims" are all patent claims
 | 
			
		||||
owned or controlled by the contributor, whether already acquired or
 | 
			
		||||
hereafter acquired, that would be infringed by some manner, permitted
 | 
			
		||||
by this License, of making, using, or selling its contributor version,
 | 
			
		||||
but do not include claims that would be infringed only as a
 | 
			
		||||
consequence of further modification of the contributor version.  For
 | 
			
		||||
purposes of this definition, "control" includes the right to grant
 | 
			
		||||
patent sublicenses in a manner consistent with the requirements of
 | 
			
		||||
this License.
 | 
			
		||||
 | 
			
		||||
  Each contributor grants you a non-exclusive, worldwide, royalty-free
 | 
			
		||||
patent license under the contributor's essential patent claims, to
 | 
			
		||||
make, use, sell, offer for sale, import and otherwise run, modify and
 | 
			
		||||
propagate the contents of its contributor version.
 | 
			
		||||
 | 
			
		||||
  In the following three paragraphs, a "patent license" is any express
 | 
			
		||||
agreement or commitment, however denominated, not to enforce a patent
 | 
			
		||||
(such as an express permission to practice a patent or covenant not to
 | 
			
		||||
sue for patent infringement).  To "grant" such a patent license to a
 | 
			
		||||
party means to make such an agreement or commitment not to enforce a
 | 
			
		||||
patent against the party.
 | 
			
		||||
 | 
			
		||||
  If you convey a covered work, knowingly relying on a patent license,
 | 
			
		||||
and the Corresponding Source of the work is not available for anyone
 | 
			
		||||
to copy, free of charge and under the terms of this License, through a
 | 
			
		||||
publicly available network server or other readily accessible means,
 | 
			
		||||
then you must either (1) cause the Corresponding Source to be so
 | 
			
		||||
available, or (2) arrange to deprive yourself of the benefit of the
 | 
			
		||||
patent license for this particular work, or (3) arrange, in a manner
 | 
			
		||||
consistent with the requirements of this License, to extend the patent
 | 
			
		||||
license to downstream recipients.  "Knowingly relying" means you have
 | 
			
		||||
actual knowledge that, but for the patent license, your conveying the
 | 
			
		||||
covered work in a country, or your recipient's use of the covered work
 | 
			
		||||
in a country, would infringe one or more identifiable patents in that
 | 
			
		||||
country that you have reason to believe are valid.
 | 
			
		||||
 | 
			
		||||
  If, pursuant to or in connection with a single transaction or
 | 
			
		||||
arrangement, you convey, or propagate by procuring conveyance of, a
 | 
			
		||||
covered work, and grant a patent license to some of the parties
 | 
			
		||||
receiving the covered work authorizing them to use, propagate, modify
 | 
			
		||||
or convey a specific copy of the covered work, then the patent license
 | 
			
		||||
you grant is automatically extended to all recipients of the covered
 | 
			
		||||
work and works based on it.
 | 
			
		||||
 | 
			
		||||
  A patent license is "discriminatory" if it does not include within
 | 
			
		||||
the scope of its coverage, prohibits the exercise of, or is
 | 
			
		||||
conditioned on the non-exercise of one or more of the rights that are
 | 
			
		||||
specifically granted under this License.  You may not convey a covered
 | 
			
		||||
work if you are a party to an arrangement with a third party that is
 | 
			
		||||
in the business of distributing software, under which you make payment
 | 
			
		||||
to the third party based on the extent of your activity of conveying
 | 
			
		||||
the work, and under which the third party grants, to any of the
 | 
			
		||||
parties who would receive the covered work from you, a discriminatory
 | 
			
		||||
patent license (a) in connection with copies of the covered work
 | 
			
		||||
conveyed by you (or copies made from those copies), or (b) primarily
 | 
			
		||||
for and in connection with specific products or compilations that
 | 
			
		||||
contain the covered work, unless you entered into that arrangement,
 | 
			
		||||
or that patent license was granted, prior to 28 March 2007.
 | 
			
		||||
 | 
			
		||||
  Nothing in this License shall be construed as excluding or limiting
 | 
			
		||||
any implied license or other defenses to infringement that may
 | 
			
		||||
otherwise be available to you under applicable patent law.
 | 
			
		||||
 | 
			
		||||
  12. No Surrender of Others' Freedom.
 | 
			
		||||
 | 
			
		||||
  If conditions are imposed on you (whether by court order, agreement or
 | 
			
		||||
otherwise) that contradict the conditions of this License, they do not
 | 
			
		||||
excuse you from the conditions of this License.  If you cannot convey a
 | 
			
		||||
covered work so as to satisfy simultaneously your obligations under this
 | 
			
		||||
License and any other pertinent obligations, then as a consequence you may
 | 
			
		||||
not convey it at all.  For example, if you agree to terms that obligate you
 | 
			
		||||
to collect a royalty for further conveying from those to whom you convey
 | 
			
		||||
the Program, the only way you could satisfy both those terms and this
 | 
			
		||||
License would be to refrain entirely from conveying the Program.
 | 
			
		||||
 | 
			
		||||
  13. Use with the GNU Affero General Public License.
 | 
			
		||||
 | 
			
		||||
  Notwithstanding any other provision of this License, you have
 | 
			
		||||
permission to link or combine any covered work with a work licensed
 | 
			
		||||
under version 3 of the GNU Affero General Public License into a single
 | 
			
		||||
combined work, and to convey the resulting work.  The terms of this
 | 
			
		||||
License will continue to apply to the part which is the covered work,
 | 
			
		||||
but the special requirements of the GNU Affero General Public License,
 | 
			
		||||
section 13, concerning interaction through a network will apply to the
 | 
			
		||||
combination as such.
 | 
			
		||||
 | 
			
		||||
  14. Revised Versions of this License.
 | 
			
		||||
 | 
			
		||||
  The Free Software Foundation may publish revised and/or new versions of
 | 
			
		||||
the GNU General Public License from time to time.  Such new versions will
 | 
			
		||||
be similar in spirit to the present version, but may differ in detail to
 | 
			
		||||
address new problems or concerns.
 | 
			
		||||
 | 
			
		||||
  Each version is given a distinguishing version number.  If the
 | 
			
		||||
Program specifies that a certain numbered version of the GNU General
 | 
			
		||||
Public License "or any later version" applies to it, you have the
 | 
			
		||||
option of following the terms and conditions either of that numbered
 | 
			
		||||
version or of any later version published by the Free Software
 | 
			
		||||
Foundation.  If the Program does not specify a version number of the
 | 
			
		||||
GNU General Public License, you may choose any version ever published
 | 
			
		||||
by the Free Software Foundation.
 | 
			
		||||
 | 
			
		||||
  If the Program specifies that a proxy can decide which future
 | 
			
		||||
versions of the GNU General Public License can be used, that proxy's
 | 
			
		||||
public statement of acceptance of a version permanently authorizes you
 | 
			
		||||
to choose that version for the Program.
 | 
			
		||||
 | 
			
		||||
  Later license versions may give you additional or different
 | 
			
		||||
permissions.  However, no additional obligations are imposed on any
 | 
			
		||||
author or copyright holder as a result of your choosing to follow a
 | 
			
		||||
later version.
 | 
			
		||||
 | 
			
		||||
  15. Disclaimer of Warranty.
 | 
			
		||||
 | 
			
		||||
  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
 | 
			
		||||
APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
 | 
			
		||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
 | 
			
		||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
 | 
			
		||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 | 
			
		||||
PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
 | 
			
		||||
IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
 | 
			
		||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
 | 
			
		||||
 | 
			
		||||
  16. Limitation of Liability.
 | 
			
		||||
 | 
			
		||||
  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
 | 
			
		||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
 | 
			
		||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
 | 
			
		||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
 | 
			
		||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
 | 
			
		||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
 | 
			
		||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
 | 
			
		||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
 | 
			
		||||
SUCH DAMAGES.
 | 
			
		||||
 | 
			
		||||
  17. Interpretation of Sections 15 and 16.
 | 
			
		||||
 | 
			
		||||
  If the disclaimer of warranty and limitation of liability provided
 | 
			
		||||
above cannot be given local legal effect according to their terms,
 | 
			
		||||
reviewing courts shall apply local law that most closely approximates
 | 
			
		||||
an absolute waiver of all civil liability in connection with the
 | 
			
		||||
Program, unless a warranty or assumption of liability accompanies a
 | 
			
		||||
copy of the Program in return for a fee.
 | 
			
		||||
 | 
			
		||||
                     END OF TERMS AND CONDITIONS
 | 
			
		||||
							
								
								
									
										60
									
								
								README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
						 | 
				
			
			@ -0,0 +1,60 @@
 | 
			
		|||
# CAS #
 | 
			
		||||
 | 
			
		||||
Compressed Audio Signals (CAS) is a lossless compression codec that can compress
 | 
			
		||||
full pcm audio into manageable file sizes or reasonable streaming bit rates with
 | 
			
		||||
0 loss in audio quality. This app was created to encode/decode cas formatted
 | 
			
		||||
files just as a proof of concept.    
 | 
			
		||||
 | 
			
		||||
### Usage ###
 | 
			
		||||
 | 
			
		||||
With encoding selected, you can convert any audio file the Qt's gstreamer module
 | 
			
		||||
supports into a cas formatted file by selecting it on the input file and choosing
 | 
			
		||||
an output file to save (use .cas extension if you like). The other PCM settings
 | 
			
		||||
like bitdepth, channels, sample rate and endianness are coded into the cas
 | 
			
		||||
header and will be used when decoding.
 | 
			
		||||
 | 
			
		||||
When decoding, the file is converted into fully uncompressed PCM audio (use .wav
 | 
			
		||||
as the appropriate extension).
 | 
			
		||||
 | 
			
		||||
### Build Setup ###
 | 
			
		||||
 | 
			
		||||
For Linux you need the following packages to successfully build/install:
 | 
			
		||||
```
 | 
			
		||||
qtbase5-dev
 | 
			
		||||
libgl1-mesa-dev
 | 
			
		||||
libxcb1-dev
 | 
			
		||||
gcc
 | 
			
		||||
make
 | 
			
		||||
python3
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
For Windows support you need to have the following applications installed:
 | 
			
		||||
```
 | 
			
		||||
Qt5.12 or newer
 | 
			
		||||
Python3
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Build ###
 | 
			
		||||
 | 
			
		||||
To build this project from source you just need to run the build.py and then the
 | 
			
		||||
install.py python scripts. While running the build the script, it will try to
 | 
			
		||||
find the Qt API installed in your machine according to the PATH env variable. If
 | 
			
		||||
not found, it will ask you to input where it can find the Qt bin folder where
 | 
			
		||||
the qmake executable exists or you can bypass all of this by passing the -qt_dir
 | 
			
		||||
option on it's command line.
 | 
			
		||||
 | 
			
		||||
while running the install script, it will ask you to input 1 of 3 options:
 | 
			
		||||
 | 
			
		||||
***local machine*** - This option will install the built application onto the
 | 
			
		||||
local machine without creating an installer.
 | 
			
		||||
 | 
			
		||||
***create installer*** - This option creates an installer that can be
 | 
			
		||||
distributed to other machines for installation. The resulting installer is just
 | 
			
		||||
a regular .py script file that the target machine can run if it has Python3
 | 
			
		||||
installed. Only Python3 needs to be installed, an internet connection is not
 | 
			
		||||
required.
 | 
			
		||||
 | 
			
		||||
***exit*** - Cancel the installation.
 | 
			
		||||
 | 
			
		||||
-local or -installer can be passed as command line options for install.py to
 | 
			
		||||
explicitly select one of the above options without pausing for user input.
 | 
			
		||||
							
								
								
									
										300
									
								
								build.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
						 | 
				
			
			@ -0,0 +1,300 @@
 | 
			
		|||
#!/usr/bin/python3
 | 
			
		||||
 | 
			
		||||
import os
 | 
			
		||||
import re
 | 
			
		||||
import subprocess
 | 
			
		||||
import shutil
 | 
			
		||||
import platform
 | 
			
		||||
import sys
 | 
			
		||||
 | 
			
		||||
def get_app_target(text):
 | 
			
		||||
    return re.search(r'(APP_TARGET) +(\"(.*?)\")', text).group(3)
 | 
			
		||||
 | 
			
		||||
def get_app_ver(text):
 | 
			
		||||
    return re.search(r'(APP_VERSION) +(\"(.*?)\")', text).group(3)
 | 
			
		||||
 | 
			
		||||
def get_app_name(text):
 | 
			
		||||
    return re.search(r'(APP_NAME) +(\"(.*?)\")', text).group(3)
 | 
			
		||||
 | 
			
		||||
def get_qt_path():
 | 
			
		||||
    try:
 | 
			
		||||
        return str(subprocess.check_output(["qtpaths", "--binaries-dir"]), 'utf-8').strip()
 | 
			
		||||
        
 | 
			
		||||
    except:
 | 
			
		||||
        print("A direct call to 'qtpaths' has failed so automatic retrieval of the QT bin folder is not possible.")
 | 
			
		||||
        
 | 
			
		||||
        return input("Please enter the QT bin path (leave blank to cancel the build): ")
 | 
			
		||||
 | 
			
		||||
def get_qt_from_cli():
 | 
			
		||||
    for arg in sys.argv:
 | 
			
		||||
        if arg == "-qt_dir":
 | 
			
		||||
            index = sys.argv.index(arg)
 | 
			
		||||
            
 | 
			
		||||
            try:
 | 
			
		||||
                return sys.argv[index + 1]
 | 
			
		||||
            
 | 
			
		||||
            except:
 | 
			
		||||
                return ""
 | 
			
		||||
            
 | 
			
		||||
    return ""
 | 
			
		||||
 | 
			
		||||
def get_ver_header():
 | 
			
		||||
    current_dir = os.path.dirname(__file__)
 | 
			
		||||
    
 | 
			
		||||
    if current_dir == "":
 | 
			
		||||
        return "src" + os.sep + "main.cpp"
 | 
			
		||||
    else:
 | 
			
		||||
        return current_dir + os.sep + "src" + os.sep + "main.cpp"
 | 
			
		||||
 | 
			
		||||
def get_nearest_subdir(path, sub_name):
 | 
			
		||||
    dir_list = os.listdir(path)
 | 
			
		||||
    ret = ""
 | 
			
		||||
 | 
			
		||||
    for entry in dir_list:
 | 
			
		||||
        if sub_name in entry:
 | 
			
		||||
            ret = entry
 | 
			
		||||
 | 
			
		||||
            break
 | 
			
		||||
 | 
			
		||||
    return ret
 | 
			
		||||
 | 
			
		||||
def get_maker(qt_path):
 | 
			
		||||
    ret = ""
 | 
			
		||||
 | 
			
		||||
    if platform.system() == "Linux":
 | 
			
		||||
        ret = "make"
 | 
			
		||||
                                    
 | 
			
		||||
    elif platform.system() == "Windows":
 | 
			
		||||
        path = os.path.abspath(qt_path + "\\..")
 | 
			
		||||
        name = os.path.basename(path)
 | 
			
		||||
 | 
			
		||||
        if "mingw" in name:
 | 
			
		||||
            tools_path = os.path.abspath(qt_path + "\\..\\..\\..\\Tools")
 | 
			
		||||
            mingw_ver = name[5:7]
 | 
			
		||||
            mingw_tool_subdir = get_nearest_subdir(tools_path, "mingw" + mingw_ver)
 | 
			
		||||
            mingw_tool_path = tools_path + "\\" + mingw_tool_subdir + "\\bin"
 | 
			
		||||
 | 
			
		||||
            if not os.environ['PATH'].endswith(";"):
 | 
			
		||||
                os.environ['PATH'] = os.environ['PATH'] + ";"
 | 
			
		||||
            
 | 
			
		||||
            os.environ['PATH'] = os.environ['PATH'] + mingw_tool_path
 | 
			
		||||
            
 | 
			
		||||
            ret = "mingw32-make"
 | 
			
		||||
 | 
			
		||||
        elif "msvc" in name:
 | 
			
		||||
            print("Warning: this script will assume you already ran the VsDevCmd.bat or vsvars32.bat script files")
 | 
			
		||||
            print("         for Microsoft Visual Studio. Either way, a call to 'nmake' should be recognizable as ")
 | 
			
		||||
            print("         a shell command otherwise this script will fail.\n")
 | 
			
		||||
 | 
			
		||||
            ans = input("If that is the case enter 'y' to continue or any other key to cancel the build: ")
 | 
			
		||||
 | 
			
		||||
            if ans == 'y' or ans == 'Y':
 | 
			
		||||
                ret = "nmake"
 | 
			
		||||
            
 | 
			
		||||
            else:
 | 
			
		||||
                exit()
 | 
			
		||||
            
 | 
			
		||||
    else:
 | 
			
		||||
        print("The system platform is unknown. Output from platform.system() = " + platform.system())
 | 
			
		||||
 | 
			
		||||
    return ret 
 | 
			
		||||
    
 | 
			
		||||
def cd():
 | 
			
		||||
    current_dir = os.path.dirname(__file__)
 | 
			
		||||
    
 | 
			
		||||
    if current_dir != "":
 | 
			
		||||
        os.chdir(current_dir)
 | 
			
		||||
        
 | 
			
		||||
def verbose_copy(src, dst):
 | 
			
		||||
    print("cpy: " + src + " --> " + dst)
 | 
			
		||||
    
 | 
			
		||||
    if os.path.isdir(src):
 | 
			
		||||
        if os.path.exists(dst) and os.path.isdir(dst):
 | 
			
		||||
            shutil.rmtree(dst)
 | 
			
		||||
            
 | 
			
		||||
        try:
 | 
			
		||||
            # ignore errors thrown by shutil.copytree()
 | 
			
		||||
            # it's likely not actually failing to copy
 | 
			
		||||
            # the directory but still throws errors if
 | 
			
		||||
            # it fails to apply the same file stats as
 | 
			
		||||
            # the source. this type of errors can be
 | 
			
		||||
            # ignored.
 | 
			
		||||
            shutil.copytree(src, dst)
 | 
			
		||||
            
 | 
			
		||||
        except:
 | 
			
		||||
            pass
 | 
			
		||||
    
 | 
			
		||||
    elif os.path.exists(src):
 | 
			
		||||
        shutil.copyfile(src, dst)
 | 
			
		||||
        
 | 
			
		||||
    else:
 | 
			
		||||
        print("wrn: " + src + " does not exists. skipping.")
 | 
			
		||||
        
 | 
			
		||||
def linux_build_app_dir(app_ver, app_name, app_target, qt_bin):
 | 
			
		||||
    if not os.path.exists("app_dir/linux/platforms"):
 | 
			
		||||
        os.makedirs("app_dir/linux/platforms")
 | 
			
		||||
        
 | 
			
		||||
    if not os.path.exists("app_dir/linux/xcbglintegrations"):
 | 
			
		||||
        os.makedirs("app_dir/linux/xcbglintegrations")
 | 
			
		||||
    
 | 
			
		||||
    if not os.path.exists("app_dir/linux/lib"):
 | 
			
		||||
        os.makedirs("app_dir/linux/lib")
 | 
			
		||||
        
 | 
			
		||||
    if not os.path.exists("app_dir/icons"):
 | 
			
		||||
        os.makedirs("app_dir/icons")
 | 
			
		||||
        
 | 
			
		||||
    verbose_copy(qt_bin + "/../plugins/platforms/libqxcb.so", "app_dir/linux/platforms/libqxcb.so")
 | 
			
		||||
    verbose_copy(qt_bin + "/../plugins/xcbglintegrations/libqxcb-egl-integration.so", "app_dir/linux/xcbglintegrations/libqxcb-egl-integration.so")
 | 
			
		||||
    verbose_copy(qt_bin + "/../plugins/xcbglintegrations/libqxcb-glx-integration.so", "app_dir/linux/xcbglintegrations/libqxcb-glx-integration.so")
 | 
			
		||||
    verbose_copy("build/linux/" + app_target, "app_dir/linux/" + app_target)
 | 
			
		||||
    verbose_copy("icons", "app_dir/icons")
 | 
			
		||||
    
 | 
			
		||||
    shutil.copyfile("build/linux/" + app_target, "/tmp/" + app_target)
 | 
			
		||||
    # copying the executable file from the build folder to
 | 
			
		||||
    # temp bypasses any -noexe retrictions a linux file
 | 
			
		||||
    # system may have. there is a chance temp is also
 | 
			
		||||
    # restricted in this way but that kind of config is
 | 
			
		||||
    # rare. ldd will not run correctly with -noexe 
 | 
			
		||||
    # enabled.
 | 
			
		||||
    
 | 
			
		||||
    lines = str(subprocess.check_output(["ldd", "/tmp/" + app_target]), 'utf-8').split("\n")
 | 
			
		||||
    
 | 
			
		||||
    os.remove("/tmp/" + app_target)
 | 
			
		||||
    
 | 
			
		||||
    for line in lines:
 | 
			
		||||
        if " => " in line:
 | 
			
		||||
            if ("libQt" in line) or ("libicu" in line) or ("libssl" in line) or ("libcrypto" in line) or ("libGL.so" in line) or ("libpcre16.so" in line) or ("libpcre.so" in line):
 | 
			
		||||
                if " (0x0" in line:
 | 
			
		||||
                    start_index = line.index("> ") + 2
 | 
			
		||||
                    end_index = line.index(" (0x0")
 | 
			
		||||
                    src_file = line[start_index:end_index]
 | 
			
		||||
                    file_name = os.path.basename(src_file)
 | 
			
		||||
                    
 | 
			
		||||
                    verbose_copy(src_file, "app_dir/linux/lib/" + file_name)
 | 
			
		||||
                    
 | 
			
		||||
    if "/usr/lib/x86_64-linux-gnu/qt5/bin" == qt_bin:
 | 
			
		||||
        verbose_copy(qt_bin + "/../../libQt5DBus.so.5", "app_dir/linux/lib/libQt5DBus.so.5")
 | 
			
		||||
        verbose_copy(qt_bin + "/../../libQt5XcbQpa.so.5", "app_dir/linux/lib/libQt5XcbQpa.so.5")
 | 
			
		||||
        verbose_copy(qt_bin + "/../../libQt6DBus.so.6", "app_dir/linux/lib/libQt6DBus.so.6")
 | 
			
		||||
        verbose_copy(qt_bin + "/../../libQt6XcbQpa.so.6", "app_dir/linux/lib/libQt6XcbQpa.so.6")
 | 
			
		||||
     
 | 
			
		||||
    else:
 | 
			
		||||
        verbose_copy(qt_bin + "/../lib/libQt5DBus.so.5", "app_dir/linux/lib/libQt5DBus.so.5")
 | 
			
		||||
        verbose_copy(qt_bin + "/../lib/libQt5XcbQpa.so.5", "app_dir/linux/lib/libQt5XcbQpa.so.5")
 | 
			
		||||
        verbose_copy(qt_bin + "/../lib/libQt6DBus.so.6", "app_dir/linux/lib/libQt6DBus.so.6")
 | 
			
		||||
        verbose_copy(qt_bin + "/../lib/libQt6XcbQpa.so.6", "app_dir/linux/lib/libQt6XcbQpa.so.6")
 | 
			
		||||
        verbose_copy(qt_bin + "/../lib/libQt6OpenGL.so.6", "app_dir/linux/lib/libQt6OpenGL.so.6")
 | 
			
		||||
 | 
			
		||||
    verbose_copy("templates/linux_run_script.sh", "app_dir/linux/" + app_target + ".sh")
 | 
			
		||||
    verbose_copy("templates/linux_uninstall.sh", "app_dir/linux/uninstall.sh")
 | 
			
		||||
    verbose_copy("templates/linux_icon.desktop", "app_dir/linux/" + app_target + ".desktop")
 | 
			
		||||
        
 | 
			
		||||
    complete(app_ver, app_target)
 | 
			
		||||
 | 
			
		||||
def windows_build_app_dir(app_ver, app_name, app_target, qt_bin):
 | 
			
		||||
    if os.path.exists("release"):
 | 
			
		||||
        os.removedirs("release")
 | 
			
		||||
 | 
			
		||||
    if os.path.exists("debug"):
 | 
			
		||||
        os.removedirs("debug")
 | 
			
		||||
 | 
			
		||||
    if not os.path.exists("app_dir\\windows"):
 | 
			
		||||
        os.makedirs("app_dir\\windows")
 | 
			
		||||
        
 | 
			
		||||
    if not os.path.exists("app_dir\\icons"):
 | 
			
		||||
        os.makedirs("app_dir\\icons")
 | 
			
		||||
        
 | 
			
		||||
    verbose_copy("icons", "app_dir\\icons")
 | 
			
		||||
    verbose_copy("build\\windows\\" + app_target + ".exe", "app_dir\\windows\\" + app_target + ".exe")
 | 
			
		||||
    verbose_copy("templates\\windows_uninstall.bat", "app_dir\\windows\\uninstall.bat")
 | 
			
		||||
    verbose_copy("templates\\win_icon.vbs", "app_dir\\windows\\icon.vbs")
 | 
			
		||||
    
 | 
			
		||||
    os.chdir("app_dir\\windows\\")
 | 
			
		||||
 | 
			
		||||
    result = subprocess.run([qt_bin + "\\" + "windeployqt", app_target + ".exe"])
 | 
			
		||||
 | 
			
		||||
    cd()
 | 
			
		||||
 | 
			
		||||
    if result.returncode == 0:
 | 
			
		||||
        complete(app_ver, app_target)
 | 
			
		||||
    
 | 
			
		||||
def complete(app_ver, app_target):
 | 
			
		||||
    if os.path.exists("Makefile"):
 | 
			
		||||
        os.remove("Makefile")
 | 
			
		||||
 | 
			
		||||
    if os.path.exists("Makefile.Debug"):
 | 
			
		||||
        os.remove("Makefile.Debug")
 | 
			
		||||
 | 
			
		||||
    if os.path.exists("Makefile.Release"):
 | 
			
		||||
        os.remove("Makefile.Release")
 | 
			
		||||
 | 
			
		||||
    if os.path.exists("object_script." + app_target + ".Debug"):
 | 
			
		||||
        os.remove("object_script." + app_target + ".Debug")
 | 
			
		||||
 | 
			
		||||
    if os.path.exists("object_script." + app_target + ".Release"):
 | 
			
		||||
        os.remove("object_script." + app_target + ".Release")
 | 
			
		||||
 | 
			
		||||
    print("Build complete for version: " + app_ver)
 | 
			
		||||
    print("You can now run the install.py script to install onto this machine or create an installer.")
 | 
			
		||||
    
 | 
			
		||||
def main():
 | 
			
		||||
    with open(get_ver_header()) as file:
 | 
			
		||||
        text = file.read()
 | 
			
		||||
        
 | 
			
		||||
        app_target = get_app_target(text)
 | 
			
		||||
        app_ver = get_app_ver(text)
 | 
			
		||||
        app_name = get_app_name(text)
 | 
			
		||||
        qt_bin = get_qt_from_cli()
 | 
			
		||||
        
 | 
			
		||||
        if qt_bin == "":
 | 
			
		||||
            qt_bin = get_qt_path()
 | 
			
		||||
 | 
			
		||||
        maker = get_maker(qt_bin)
 | 
			
		||||
            
 | 
			
		||||
        if qt_bin != "":
 | 
			
		||||
            print("app_target  = " + app_target)
 | 
			
		||||
            print("app_version = " + app_ver)
 | 
			
		||||
            print("app_name    = " + app_name)
 | 
			
		||||
            print("qt_bin      = " + qt_bin)
 | 
			
		||||
            print("maker       = " + maker + "\n")
 | 
			
		||||
 | 
			
		||||
            if maker == "":
 | 
			
		||||
                print("Could not find a valid maker/compiler on this platform, unable to continue.")
 | 
			
		||||
 | 
			
		||||
            else:
 | 
			
		||||
                cd()
 | 
			
		||||
                
 | 
			
		||||
                if platform.system() == "Linux":
 | 
			
		||||
                    if os.path.exists("build/linux"):
 | 
			
		||||
                        shutil.rmtree("build/linux")
 | 
			
		||||
                                    
 | 
			
		||||
                elif platform.system() == "Windows":
 | 
			
		||||
                    if os.path.exists("build/windows"):
 | 
			
		||||
                        shutil.rmtree("build/windows")
 | 
			
		||||
                
 | 
			
		||||
                result = subprocess.run([qt_bin + os.sep + "qmake", "-config", "release"])
 | 
			
		||||
            
 | 
			
		||||
                if result.returncode == 0:
 | 
			
		||||
                    result = subprocess.run([maker])
 | 
			
		||||
                
 | 
			
		||||
                if result.returncode == 0:
 | 
			
		||||
                    if not os.path.exists("app_dir"):
 | 
			
		||||
                        os.makedirs("app_dir")
 | 
			
		||||
                        
 | 
			
		||||
                    with open("app_dir" + os.sep + "info.txt", "w") as info_file:
 | 
			
		||||
                        info_file.write(app_target + "\n")
 | 
			
		||||
                        info_file.write(app_ver + "\n")
 | 
			
		||||
                        info_file.write(app_name + "\n")
 | 
			
		||||
                
 | 
			
		||||
                    if platform.system() == "Linux":
 | 
			
		||||
                        linux_build_app_dir(app_ver, app_name, app_target, qt_bin)
 | 
			
		||||
                                    
 | 
			
		||||
                    elif platform.system() == "Windows":
 | 
			
		||||
                        windows_build_app_dir(app_ver, app_name, app_target, qt_bin)
 | 
			
		||||
                    
 | 
			
		||||
                    else:
 | 
			
		||||
                        print("The platform you are running in is not compatible with the app_dir build out procedure.")
 | 
			
		||||
                        print("  output from platform.system() = " + platform.system())
 | 
			
		||||
 | 
			
		||||
if __name__ == "__main__":
 | 
			
		||||
    main()
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								icons/128x128.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 18 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								icons/16x16.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 5.9 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								icons/192x192.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 21 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								icons/22x22.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 9.8 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								icons/24x24.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 9.9 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								icons/256x256.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 26 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								icons/32x32.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 8.1 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								icons/36x36.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 12 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								icons/42x42.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 13 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								icons/48x48.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 12 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								icons/512x512.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 27 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								icons/64x64.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 14 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								icons/72x72.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 16 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								icons/8x8.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 5.3 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								icons/96x96.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 16 KiB  | 
							
								
								
									
										531
									
								
								icons/scalable.svg
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
						 | 
				
			
			@ -0,0 +1,531 @@
 | 
			
		|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 | 
			
		||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
 | 
			
		||||
 | 
			
		||||
<svg
 | 
			
		||||
   version="1.1"
 | 
			
		||||
   id="svg69"
 | 
			
		||||
   width="682.66669"
 | 
			
		||||
   height="682.66669"
 | 
			
		||||
   viewBox="0 0 682.66669 682.66669"
 | 
			
		||||
   sodipodi:docname="512x512.png"
 | 
			
		||||
   inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20)"
 | 
			
		||||
   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
 | 
			
		||||
   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
 | 
			
		||||
   xmlns:xlink="http://www.w3.org/1999/xlink"
 | 
			
		||||
   xmlns="http://www.w3.org/2000/svg"
 | 
			
		||||
   xmlns:svg="http://www.w3.org/2000/svg">
 | 
			
		||||
  <defs
 | 
			
		||||
     id="defs73" />
 | 
			
		||||
  <sodipodi:namedview
 | 
			
		||||
     id="namedview71"
 | 
			
		||||
     pagecolor="#ffffff"
 | 
			
		||||
     bordercolor="#666666"
 | 
			
		||||
     borderopacity="1.0"
 | 
			
		||||
     inkscape:pageshadow="2"
 | 
			
		||||
     inkscape:pageopacity="0.0"
 | 
			
		||||
     inkscape:pagecheckerboard="0"
 | 
			
		||||
     showgrid="false"
 | 
			
		||||
     inkscape:zoom="1.2890625"
 | 
			
		||||
     inkscape:cx="341.33334"
 | 
			
		||||
     inkscape:cy="341.33334"
 | 
			
		||||
     inkscape:window-width="1861"
 | 
			
		||||
     inkscape:window-height="1131"
 | 
			
		||||
     inkscape:window-x="59"
 | 
			
		||||
     inkscape:window-y="32"
 | 
			
		||||
     inkscape:window-maximized="1"
 | 
			
		||||
     inkscape:current-layer="g75" />
 | 
			
		||||
  <g
 | 
			
		||||
     inkscape:groupmode="layer"
 | 
			
		||||
     inkscape:label="Image"
 | 
			
		||||
     id="g75">
 | 
			
		||||
    <image
 | 
			
		||||
       width="682.66669"
 | 
			
		||||
       height="682.66669"
 | 
			
		||||
       preserveAspectRatio="none"
 | 
			
		||||
       xlink:href="data:image/png;base64,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
 | 
			
		||||
/wEnX0f3Wh4weAAAAABJRU5ErkJggg==
 | 
			
		||||
"
 | 
			
		||||
       id="image77" />
 | 
			
		||||
  </g>
 | 
			
		||||
</svg>
 | 
			
		||||
| 
		 After Width: | Height: | Size: 38 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								icons/win_icon.ico
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 66 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								icons/win_icon.ico~
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 16 KiB  | 
							
								
								
									
										372
									
								
								install.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
						 | 
				
			
			@ -0,0 +1,372 @@
 | 
			
		|||
#!/usr/bin/python3
 | 
			
		||||
 | 
			
		||||
import os
 | 
			
		||||
import subprocess
 | 
			
		||||
import shutil
 | 
			
		||||
import platform
 | 
			
		||||
import sys
 | 
			
		||||
import zipfile
 | 
			
		||||
import binascii
 | 
			
		||||
import tempfile
 | 
			
		||||
 | 
			
		||||
def cd():
 | 
			
		||||
    current_dir = os.path.dirname(__file__)
 | 
			
		||||
    
 | 
			
		||||
    if current_dir != "":
 | 
			
		||||
        os.chdir(current_dir)
 | 
			
		||||
        
 | 
			
		||||
def get_default_install_dir(app_target, app_name):
 | 
			
		||||
    if platform.system() == "Linux":
 | 
			
		||||
        return "/opt/" + app_target
 | 
			
		||||
    
 | 
			
		||||
    else:
 | 
			
		||||
        return os.environ['ProgramFiles'] + "\\" + app_name
 | 
			
		||||
    
 | 
			
		||||
def get_default_installer_path(app_ver, app_name):
 | 
			
		||||
    return os.path.expanduser("~") + os.sep + app_name + "-" + app_ver + ".py"
 | 
			
		||||
        
 | 
			
		||||
def get_install_dir(app_target, app_name):
 | 
			
		||||
    path = get_default_install_dir(app_target, app_name)
 | 
			
		||||
    
 | 
			
		||||
    print("The default install directory is: " + path)
 | 
			
		||||
    
 | 
			
		||||
    while(True):
 | 
			
		||||
        ans = input("Do you want to change it? (y/n): ")
 | 
			
		||||
        
 | 
			
		||||
        if ans == "y" or ans == "Y":
 | 
			
		||||
            path = input("Enter a new install directory (leave blank to go back to the default): ")
 | 
			
		||||
            path = os.path.normpath(path)
 | 
			
		||||
            break
 | 
			
		||||
            
 | 
			
		||||
        elif ans == "n" or ans == "N":
 | 
			
		||||
            break
 | 
			
		||||
            
 | 
			
		||||
    if path == "":
 | 
			
		||||
        return get_default_install_dir(app_target, app_name)
 | 
			
		||||
    
 | 
			
		||||
    else:
 | 
			
		||||
        return path
 | 
			
		||||
    
 | 
			
		||||
def get_installer_path(app_ver, app_name):
 | 
			
		||||
    path = get_default_installer_path(app_ver, app_name)
 | 
			
		||||
    
 | 
			
		||||
    print("The built .py installer will placed here: " + path)
 | 
			
		||||
    
 | 
			
		||||
    while(True):
 | 
			
		||||
        ans = input("Do you want to change the path? (y/n): ")
 | 
			
		||||
        
 | 
			
		||||
        if ans == "y" or ans == "Y":
 | 
			
		||||
            path = input("Enter a new path (leave blank to go back to the default): ")
 | 
			
		||||
            path = os.path.normpath(path)
 | 
			
		||||
            break
 | 
			
		||||
            
 | 
			
		||||
        elif ans == "n" or ans == "N":
 | 
			
		||||
            break
 | 
			
		||||
            
 | 
			
		||||
    if path == "":
 | 
			
		||||
        return get_default_installer_path(app_ver, app_name)
 | 
			
		||||
    
 | 
			
		||||
    else:
 | 
			
		||||
        return path
 | 
			
		||||
    
 | 
			
		||||
def make_install_dir(path):
 | 
			
		||||
    try:
 | 
			
		||||
        if not os.path.exists(path):
 | 
			
		||||
            os.makedirs(path)
 | 
			
		||||
 | 
			
		||||
        return True
 | 
			
		||||
            
 | 
			
		||||
    except:
 | 
			
		||||
        print("Failed to create the install directory, please make sure you are runnning this script with admin rights.")
 | 
			
		||||
 | 
			
		||||
        return False
 | 
			
		||||
 | 
			
		||||
def replace_bin(binary, old_bin, new_bin, offs):
 | 
			
		||||
    while(True):
 | 
			
		||||
        try:
 | 
			
		||||
            index = binary.index(old_bin, offs)
 | 
			
		||||
            binary = binary[:index] + new_bin + binary[index + len(old_bin):]
 | 
			
		||||
        
 | 
			
		||||
        except ValueError:
 | 
			
		||||
            break
 | 
			
		||||
    
 | 
			
		||||
    return binary
 | 
			
		||||
 | 
			
		||||
def bin_sub_copy_file(src, dst, old_bin, new_bin, offs):
 | 
			
		||||
    binary = bytearray()
 | 
			
		||||
    
 | 
			
		||||
    with open(src, "rb") as rd_file:
 | 
			
		||||
        binary = rd_file.read()
 | 
			
		||||
        binary = replace_bin(binary, old_bin, new_bin, offs)
 | 
			
		||||
        
 | 
			
		||||
    with open(dst, "wb") as wr_file:
 | 
			
		||||
        wr_file.write(binary)
 | 
			
		||||
        
 | 
			
		||||
def text_sub_copy_file(src, dst, old_text, new_text, offs):
 | 
			
		||||
    bin_sub_copy_file(src, dst, old_text.encode("utf-8"), new_text.encode("utf-8"), offs)
 | 
			
		||||
 | 
			
		||||
def text_template_deploy(src, dst, install_dir, app_name, app_target):
 | 
			
		||||
    print("dep: " + dst)
 | 
			
		||||
 | 
			
		||||
    text_sub_copy_file(src, dst, "$install_dir", install_dir, 0)
 | 
			
		||||
    text_sub_copy_file(dst, dst, "$app_name", app_name, 0)
 | 
			
		||||
    text_sub_copy_file(dst, dst, "$app_target", app_target, 0)
 | 
			
		||||
 | 
			
		||||
def verbose_copy(src, dst):
 | 
			
		||||
    print("cpy: " + src + " --> " + dst)
 | 
			
		||||
    
 | 
			
		||||
    if os.path.isdir(src):
 | 
			
		||||
        files = os.listdir(src)
 | 
			
		||||
        
 | 
			
		||||
        if not os.path.exists(dst):
 | 
			
		||||
            os.makedirs(dst)
 | 
			
		||||
        
 | 
			
		||||
        for file in files:
 | 
			
		||||
            tree_src = src + os.path.sep + file
 | 
			
		||||
            tree_dst = dst + os.path.sep + file
 | 
			
		||||
            
 | 
			
		||||
            if os.path.isdir(tree_src):
 | 
			
		||||
                if not os.path.exists(tree_dst):
 | 
			
		||||
                    os.makedirs(tree_dst)
 | 
			
		||||
            
 | 
			
		||||
            verbose_copy(tree_src, tree_dst)
 | 
			
		||||
            
 | 
			
		||||
    else:
 | 
			
		||||
        shutil.copyfile(src, dst)
 | 
			
		||||
        
 | 
			
		||||
def verbose_create_symmlink(src, dst):
 | 
			
		||||
    print("lnk: " + src + " --> " + dst)
 | 
			
		||||
    
 | 
			
		||||
    if os.path.exists(dst):
 | 
			
		||||
        os.remove(dst)
 | 
			
		||||
    
 | 
			
		||||
    os.symlink(src, dst)
 | 
			
		||||
 | 
			
		||||
def local_install(app_target, app_name):
 | 
			
		||||
    if platform.system() == "Linux":
 | 
			
		||||
        if not os.path.exists("app_dir/linux"):
 | 
			
		||||
            print("An app_dir for the Linux platform could not be found.")
 | 
			
		||||
            
 | 
			
		||||
        else:
 | 
			
		||||
            install_dir = get_install_dir(app_target, app_name)
 | 
			
		||||
            
 | 
			
		||||
            if os.path.exists(install_dir + "/uninstall.sh"):
 | 
			
		||||
                subprocess.run([install_dir + "/uninstall.sh"])
 | 
			
		||||
            
 | 
			
		||||
            if make_install_dir(install_dir):
 | 
			
		||||
                if not os.path.exists("/var/opt/" + app_target):
 | 
			
		||||
                    os.makedirs("/var/opt/" + app_target)
 | 
			
		||||
            
 | 
			
		||||
                text_template_deploy("app_dir/linux/" + app_target + ".sh", install_dir + "/" + app_target + ".sh", install_dir, app_name, app_target)
 | 
			
		||||
                text_template_deploy("app_dir/linux/uninstall.sh", install_dir + "/uninstall.sh", install_dir, app_name, app_target)
 | 
			
		||||
                text_template_deploy("app_dir/linux/" + app_target + ".desktop", "/usr/share/applications/" + app_target + ".desktop", install_dir, app_name, app_target)
 | 
			
		||||
            
 | 
			
		||||
                for image_res in ["8x8", "16x16", "22x22", "24x24", "32x32", "36x36", "42x42", "48x48", "64x64", "192x192", "256x256", "512x512"]:
 | 
			
		||||
                    src = "app_dir/icons/" + image_res + ".png"
 | 
			
		||||
                    dst = "/usr/share/icons/hicolor/" + image_res
 | 
			
		||||
                    
 | 
			
		||||
                    if os.path.exists(dst):
 | 
			
		||||
                        verbose_copy(src, dst + "/apps/" + app_target + ".png")
 | 
			
		||||
                        
 | 
			
		||||
                        subprocess.run(["chmod", "644", dst + "/apps/" + app_target + ".png"])
 | 
			
		||||
                        
 | 
			
		||||
                verbose_copy("app_dir/icons/scalable.svg", "/usr/share/icons/hicolor/scalable/apps/" + app_target + ".svg")
 | 
			
		||||
                verbose_copy("app_dir/linux/" + app_target, install_dir + "/" + app_target)
 | 
			
		||||
                verbose_copy("app_dir/linux/lib", install_dir + "/lib")
 | 
			
		||||
                verbose_copy("app_dir/linux/platforms", install_dir + "/platforms")
 | 
			
		||||
                verbose_copy("app_dir/linux/xcbglintegrations", install_dir + "/xcbglintegrations")
 | 
			
		||||
            
 | 
			
		||||
                verbose_create_symmlink(install_dir + "/" + app_target + ".sh", "/usr/bin/" + app_target)
 | 
			
		||||
                
 | 
			
		||||
                subprocess.run(["chmod", "644", "/usr/share/icons/hicolor/scalable/apps/" + app_target + ".svg"])
 | 
			
		||||
                subprocess.run(["chmod", "755", install_dir + "/" + app_target + ".sh"])
 | 
			
		||||
                subprocess.run(["chmod", "755", install_dir + "/" + app_target])
 | 
			
		||||
                subprocess.run(["chmod", "755", install_dir + "/uninstall.sh"])
 | 
			
		||||
            
 | 
			
		||||
                print("Installation finished. If you ever need to uninstall this application, run this command with root rights:")
 | 
			
		||||
                print("    sh " + install_dir + "/uninstall.sh\n")
 | 
			
		||||
            
 | 
			
		||||
    elif platform.system() == "Windows":
 | 
			
		||||
        if not os.path.exists("app_dir\\windows"):
 | 
			
		||||
            print("An app_dir for the Windows platform could not be found.")
 | 
			
		||||
            
 | 
			
		||||
        else:
 | 
			
		||||
            install_dir = get_install_dir(app_target, app_name)
 | 
			
		||||
 | 
			
		||||
            if os.path.exists(install_dir + "\\uninstall.bat"):
 | 
			
		||||
                subprocess.run([install_dir + "\\uninstall.bat"])
 | 
			
		||||
 | 
			
		||||
            if os.path.exists(install_dir):
 | 
			
		||||
                # this block is here to make sure the install_dir is deleted 
 | 
			
		||||
                # if/when the uninstall.bat fails to do so. in my test machine, 
 | 
			
		||||
                # the .bat script will delete install_dir if run directly but 
 | 
			
		||||
                # not when called through subprocess.run() for some reason.
 | 
			
		||||
                shutil.rmtree(install_dir)    
 | 
			
		||||
 | 
			
		||||
            if make_install_dir(install_dir):
 | 
			
		||||
                verbose_copy("app_dir\\windows", install_dir)
 | 
			
		||||
                verbose_copy("app_dir\\icons\\win_icon.ico", install_dir + "\\icon.ico")
 | 
			
		||||
 | 
			
		||||
                text_template_deploy("app_dir\\windows\\uninstall.bat", install_dir + "\\uninstall.bat", install_dir, app_name, app_target)
 | 
			
		||||
                text_template_deploy("app_dir\\windows\\icon.vbs", install_dir + "\\icon.vbs", install_dir, app_name, app_target)
 | 
			
		||||
                text_sub_copy_file(install_dir + "\\icon.vbs", install_dir + "\\icon.vbs", "%SystemDrive%", os.environ['SystemDrive'], 0)
 | 
			
		||||
 | 
			
		||||
                os.system("\"" + install_dir + "\\icon.vbs\"")
 | 
			
		||||
 | 
			
		||||
                print("Installation finished. If you ever need to uninstall this application, run this batch file with admin rights:")
 | 
			
		||||
                print("    " + install_dir + "\\uninstall.bat\n")
 | 
			
		||||
        
 | 
			
		||||
    else:
 | 
			
		||||
        print("The platform you are running in is not compatible.")
 | 
			
		||||
        print("  output from platform.system() = " + platform.system())
 | 
			
		||||
    
 | 
			
		||||
def dir_tree(path):
 | 
			
		||||
    
 | 
			
		||||
    ret = []
 | 
			
		||||
    
 | 
			
		||||
    if os.path.isdir(path):
 | 
			
		||||
        for entry in os.listdir(path):
 | 
			
		||||
            full_path = os.path.join(path, entry)
 | 
			
		||||
            
 | 
			
		||||
            if os.path.isdir(full_path):
 | 
			
		||||
                for sub_dir_file in dir_tree(full_path):
 | 
			
		||||
                    ret.append(sub_dir_file)
 | 
			
		||||
                    
 | 
			
		||||
            else:
 | 
			
		||||
                ret.append(full_path)
 | 
			
		||||
                
 | 
			
		||||
    return ret
 | 
			
		||||
 | 
			
		||||
def to_hex(data):
 | 
			
		||||
    return str(binascii.hexlify(data))[2:-1]
 | 
			
		||||
 | 
			
		||||
def from_hex(text_line):
 | 
			
		||||
    return binascii.unhexlify(text_line)
 | 
			
		||||
        
 | 
			
		||||
def make_install(app_ver, app_name):
 | 
			
		||||
    path = get_installer_path(app_ver, app_name)
 | 
			
		||||
    
 | 
			
		||||
    with zipfile.ZipFile("app_dir.zip", "w", compression=zipfile.ZIP_DEFLATED) as zip_file:
 | 
			
		||||
        print("Compressing app_dir --")
 | 
			
		||||
        
 | 
			
		||||
        for file in dir_tree("app_dir"):
 | 
			
		||||
            print("adding file: " + file)
 | 
			
		||||
            zip_file.write(file)
 | 
			
		||||
            
 | 
			
		||||
    text_sub_copy_file(__file__, path, "main(is_sfx=False)", "main(is_sfx=True)\n\n\n", 7700)
 | 
			
		||||
        
 | 
			
		||||
    with open(path, "a") as dst_file, open("app_dir.zip", "rb") as src_file:
 | 
			
		||||
        print("Packing the compressed app_dir into the sfx script file --")
 | 
			
		||||
        
 | 
			
		||||
        dst_file.write("# APP_DIR\n")
 | 
			
		||||
        
 | 
			
		||||
        stat = os.stat("app_dir.zip")
 | 
			
		||||
        
 | 
			
		||||
        while(True):
 | 
			
		||||
            buffer = src_file.read(4000000)
 | 
			
		||||
            
 | 
			
		||||
            if len(buffer) != 0:
 | 
			
		||||
                dst_file.write("# " + to_hex(buffer) + "\n")
 | 
			
		||||
                
 | 
			
		||||
                print(str(src_file.tell()) + "/" + str(stat.st_size))
 | 
			
		||||
            
 | 
			
		||||
            if len(buffer) < 4000000:
 | 
			
		||||
                break
 | 
			
		||||
                
 | 
			
		||||
    os.remove("app_dir.zip")
 | 
			
		||||
    
 | 
			
		||||
    print("Finished.")
 | 
			
		||||
 | 
			
		||||
def sfx():
 | 
			
		||||
    abs_sfx_path = os.path.abspath(__file__)
 | 
			
		||||
    mark_found = False
 | 
			
		||||
    
 | 
			
		||||
    os.chdir(tempfile.gettempdir())
 | 
			
		||||
    
 | 
			
		||||
    with open(abs_sfx_path) as packed_file, open("app_dir.zip", "wb") as zip_file:
 | 
			
		||||
        stat = os.stat(abs_sfx_path)
 | 
			
		||||
        
 | 
			
		||||
        print("Unpacking the app_dir compressed file from the sfx script.")
 | 
			
		||||
        
 | 
			
		||||
        while(True):
 | 
			
		||||
            line = packed_file.readline()
 | 
			
		||||
            
 | 
			
		||||
            if not line: 
 | 
			
		||||
                break
 | 
			
		||||
            
 | 
			
		||||
            elif mark_found:
 | 
			
		||||
                zip_file.write(from_hex(line[2:-1]))
 | 
			
		||||
                
 | 
			
		||||
                print(str(packed_file.tell()) + "/" + str(stat.st_size))
 | 
			
		||||
            
 | 
			
		||||
            else:
 | 
			
		||||
                if line == "# APP_DIR\n":
 | 
			
		||||
                    mark_found = True
 | 
			
		||||
                    
 | 
			
		||||
        print("Done.")
 | 
			
		||||
    
 | 
			
		||||
    if not mark_found:
 | 
			
		||||
        print("The app_dir mark was not found, unable to continue.")
 | 
			
		||||
        
 | 
			
		||||
    else:
 | 
			
		||||
        with zipfile.ZipFile("app_dir.zip", "r", compression=zipfile.ZIP_DEFLATED) as zip_file:
 | 
			
		||||
            print("De-compressing app_dir --")
 | 
			
		||||
            
 | 
			
		||||
            zip_file.extractall()
 | 
			
		||||
            
 | 
			
		||||
        print("Preparing for installation.")
 | 
			
		||||
        
 | 
			
		||||
        os.remove("app_dir.zip")
 | 
			
		||||
        
 | 
			
		||||
        with open("app_dir" + os.sep + "info.txt") as info_file:
 | 
			
		||||
            info = info_file.read().split("\n")
 | 
			
		||||
            
 | 
			
		||||
            local_install(info[0], info[2])
 | 
			
		||||
            shutil.rmtree("app_dir") 
 | 
			
		||||
 | 
			
		||||
def main(is_sfx):
 | 
			
		||||
    cd()
 | 
			
		||||
    
 | 
			
		||||
    app_target = ""
 | 
			
		||||
    app_ver = ""
 | 
			
		||||
    app_name = ""
 | 
			
		||||
    
 | 
			
		||||
    if not is_sfx:
 | 
			
		||||
        with open("app_dir" + os.sep + "info.txt") as info_file:
 | 
			
		||||
            info = info_file.read().split("\n")
 | 
			
		||||
            
 | 
			
		||||
            app_target = info[0]
 | 
			
		||||
            app_ver = info[1]
 | 
			
		||||
            app_name = info[2]
 | 
			
		||||
 | 
			
		||||
    if is_sfx:
 | 
			
		||||
        sfx()
 | 
			
		||||
    
 | 
			
		||||
    elif "-local" in sys.argv:
 | 
			
		||||
        local_install(app_target, app_name)
 | 
			
		||||
        
 | 
			
		||||
    elif "-installer" in sys.argv:
 | 
			
		||||
        make_install(app_ver, app_name)
 | 
			
		||||
        
 | 
			
		||||
    else:
 | 
			
		||||
        print("Do you want to install onto this machine or create an installer?")
 | 
			
		||||
        print("[1] local machine")
 | 
			
		||||
        print("[2] create installer")
 | 
			
		||||
        print("[3] exit")
 | 
			
		||||
        
 | 
			
		||||
        while(True):
 | 
			
		||||
            opt = input("select an option: ")
 | 
			
		||||
            
 | 
			
		||||
            if opt == "1":
 | 
			
		||||
                local_install(app_target, app_name)
 | 
			
		||||
                break
 | 
			
		||||
                
 | 
			
		||||
            elif opt == "2":
 | 
			
		||||
                make_install(app_ver, app_name)
 | 
			
		||||
                break
 | 
			
		||||
                
 | 
			
		||||
            elif opt == "3":
 | 
			
		||||
                break
 | 
			
		||||
 | 
			
		||||
if __name__ == "__main__":
 | 
			
		||||
    main(is_sfx=False)
 | 
			
		||||
							
								
								
									
										355
									
								
								src/cas_codec.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
						 | 
				
			
			@ -0,0 +1,355 @@
 | 
			
		|||
#include "cas_codec.h"
 | 
			
		||||
 | 
			
		||||
//    This file is part of CAS.
 | 
			
		||||
 | 
			
		||||
//    CAS is free software: you can redistribute it and/or modify
 | 
			
		||||
//    it under the terms of the GNU General Public License as published by
 | 
			
		||||
//    the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
//    (at your option) any later version.
 | 
			
		||||
 | 
			
		||||
//    CAS is distributed in the hope that it will be useful,
 | 
			
		||||
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
//    GNU General Public License for more details.
 | 
			
		||||
 | 
			
		||||
QByteArray wrNum(uchar numOfBits, quint64 value, bool be)
 | 
			
		||||
{
 | 
			
		||||
    QByteArray ret(numOfBits / 8, (char) 0);
 | 
			
		||||
 | 
			
		||||
    if (be) value = qToBigEndian(value);
 | 
			
		||||
    else    value = qToLittleEndian(value);
 | 
			
		||||
 | 
			
		||||
    memcpy(ret.data(), &value, ret.size());
 | 
			
		||||
 | 
			
		||||
    return ret;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
quint64 rdNum(const QByteArray &dataIn, bool be)
 | 
			
		||||
{
 | 
			
		||||
    quint64 ret = 0;
 | 
			
		||||
 | 
			
		||||
    memcpy(&ret, dataIn.data(), dataIn.size());
 | 
			
		||||
 | 
			
		||||
    if (be) return qFromBigEndian(ret);
 | 
			
		||||
    else    return qFromLittleEndian(ret);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
quint64 rdNum(QIODevice *dev, uchar numOfBits, bool be)
 | 
			
		||||
{
 | 
			
		||||
    return rdNum(dev->read(numOfBits / 8), be);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
Channel::Channel(uchar chId, uchar *bits, bool *be, QObject *parent) : QObject(parent)
 | 
			
		||||
{
 | 
			
		||||
    channelId       = chId;
 | 
			
		||||
    pcmBits         = bits;
 | 
			
		||||
    bigE            = be;
 | 
			
		||||
    pcmSample       = 0;
 | 
			
		||||
    xGap            = 0;
 | 
			
		||||
    firstReadSample = true;
 | 
			
		||||
    ramping         = false;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Channel::toCas(uchar id, const QByteArray &pcm, bool forceWr)
 | 
			
		||||
{
 | 
			
		||||
    if (id == channelId)
 | 
			
		||||
    {
 | 
			
		||||
        quint64 currentSample = rdNum(pcm, *bigE);
 | 
			
		||||
        bool    wrCasSample   = false;
 | 
			
		||||
 | 
			
		||||
        if (firstReadSample)
 | 
			
		||||
        {
 | 
			
		||||
            // at the very begining of the PCM stream, the codec does
 | 
			
		||||
            // not know if the signal is ramping or not and xGap is
 | 
			
		||||
            // assumed to be 1 so the first PCM sample is always
 | 
			
		||||
            // written to set a base line.
 | 
			
		||||
 | 
			
		||||
            xGap            = 1;
 | 
			
		||||
            wrCasSample     = true;
 | 
			
		||||
            firstReadSample = false;
 | 
			
		||||
        }
 | 
			
		||||
        else if (ramping)
 | 
			
		||||
        {
 | 
			
		||||
            if (currentSample < pcmSample)
 | 
			
		||||
            {
 | 
			
		||||
                // the currently read pcm sample that reads
 | 
			
		||||
                // a lower value when the loop is expecting
 | 
			
		||||
                // a higher value is considered a peak of a
 | 
			
		||||
                // sinewave signal so a CAS sample needs to
 | 
			
		||||
                // be written at this point.
 | 
			
		||||
 | 
			
		||||
                // doing this captures the upper peak of the
 | 
			
		||||
                // sinewave.
 | 
			
		||||
 | 
			
		||||
                ramping     = false;
 | 
			
		||||
                wrCasSample = true;
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        else
 | 
			
		||||
        {
 | 
			
		||||
            if (currentSample > pcmSample)
 | 
			
		||||
            {
 | 
			
		||||
                // this does the exact opposite of the above.
 | 
			
		||||
                // it captures the lower peak of the sinewave.
 | 
			
		||||
 | 
			
		||||
                ramping     = true;
 | 
			
		||||
                wrCasSample = true;
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (wrCasSample || forceWr || (xGap == 255))
 | 
			
		||||
        {
 | 
			
		||||
            // CAS format: [xGap][PCM_Sample]
 | 
			
		||||
 | 
			
		||||
            emit sampleRdy(channelId, wrNum(8, xGap, *bigE) + wrNum(*pcmBits, pcmSample, *bigE));
 | 
			
		||||
 | 
			
		||||
            xGap = 0;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        xGap++;
 | 
			
		||||
 | 
			
		||||
        pcmSample = currentSample;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Channel::fromCas(uchar id, const QByteArray &cas)
 | 
			
		||||
{
 | 
			
		||||
    if (id == channelId)
 | 
			
		||||
    {
 | 
			
		||||
        xGap = rdNum(cas.left(1), *bigE);
 | 
			
		||||
 | 
			
		||||
        quint64 currentSample = rdNum(cas.mid(1), *bigE);
 | 
			
		||||
        quint64 prevSample    = pcmSample;
 | 
			
		||||
        quint64 yGap          = 0;
 | 
			
		||||
 | 
			
		||||
        if (currentSample > prevSample)
 | 
			
		||||
        {
 | 
			
		||||
            yGap = (currentSample - prevSample) / xGap;
 | 
			
		||||
        }
 | 
			
		||||
        else if (currentSample < prevSample)
 | 
			
		||||
        {
 | 
			
		||||
            yGap = (prevSample - currentSample) / xGap;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        for (; xGap != 0; --xGap)
 | 
			
		||||
        {
 | 
			
		||||
            if (currentSample > prevSample)
 | 
			
		||||
            {
 | 
			
		||||
                // a current sample higher than previously read sample is
 | 
			
		||||
                // assumed to be a ramping up sinewave so it increments
 | 
			
		||||
                // the output pcm samples accordingly.
 | 
			
		||||
 | 
			
		||||
                pcmSample += yGap;
 | 
			
		||||
            }
 | 
			
		||||
            else if (currentSample < prevSample)
 | 
			
		||||
            {
 | 
			
		||||
                // this is the opposite of the above.
 | 
			
		||||
 | 
			
		||||
                pcmSample -= yGap;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            emit sampleRdy(channelId, wrNum(*pcmBits, pcmSample, *bigE));
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
CASCodec::CASCodec(QObject *parent) : QObject(0)
 | 
			
		||||
{
 | 
			
		||||
    QThread *thread = new QThread();
 | 
			
		||||
 | 
			
		||||
    connect(this, SIGNAL(destroyed()), thread, SLOT(quit()));
 | 
			
		||||
    connect(thread, SIGNAL(finished()), thread, SLOT(deleteLater()));
 | 
			
		||||
 | 
			
		||||
    moveToThread(thread);
 | 
			
		||||
 | 
			
		||||
    if (parent)
 | 
			
		||||
    {
 | 
			
		||||
        connect(parent, SIGNAL(destroyed()), this, SLOT(deleteLater()));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    currentChannel = 0;
 | 
			
		||||
    sampleRate     = 0;
 | 
			
		||||
    casRev         = 0;
 | 
			
		||||
    srcIO          = 0;
 | 
			
		||||
    dstIO          = 0;
 | 
			
		||||
 | 
			
		||||
    stop();
 | 
			
		||||
 | 
			
		||||
    thread->start();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool CASCodec::rdCasHeader(QIODevice *rdIO)
 | 
			
		||||
{
 | 
			
		||||
    bool       ret    = false;
 | 
			
		||||
    QByteArray header = rdIO->read(10);
 | 
			
		||||
 | 
			
		||||
    if (header.startsWith(CAS_TAG) && (header.size() == 10))
 | 
			
		||||
    {
 | 
			
		||||
        casRev     = header[3];
 | 
			
		||||
        pcmBits    = header[4];
 | 
			
		||||
        sampleRate = rdNum(header.mid(6, 4), false);
 | 
			
		||||
        ret        = true;
 | 
			
		||||
 | 
			
		||||
        emit updatePCMBits(pcmBits);
 | 
			
		||||
        emit updateNumOfChannels(header[5]);
 | 
			
		||||
        emit updateSampleRate(sampleRate);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return ret;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool CASCodec::wrCasHeader(QIODevice *wrIO)
 | 
			
		||||
{
 | 
			
		||||
    bool       ret = false;
 | 
			
		||||
    QByteArray header;
 | 
			
		||||
 | 
			
		||||
    casRev = CAS_REV;
 | 
			
		||||
 | 
			
		||||
    header.append(CAS_TAG);
 | 
			
		||||
    header.append(CAS_REV);
 | 
			
		||||
    header.append(pcmBits);
 | 
			
		||||
    header.append((uchar) buffer.size());
 | 
			
		||||
    header.append(wrNum(32, sampleRate, false));
 | 
			
		||||
 | 
			
		||||
    if (wrIO->write(header) != -1)
 | 
			
		||||
    {
 | 
			
		||||
        ret = true;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return ret;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CASCodec::setEncodeMode(bool state)    {encode     = state;}
 | 
			
		||||
void CASCodec::setBigEndianMode(bool state) {bigE       = state;}
 | 
			
		||||
void CASCodec::setSampleRate(int rate)      {sampleRate = rate;}
 | 
			
		||||
void CASCodec::setPCMBits(int numOfBits)    {pcmBits    = numOfBits;}
 | 
			
		||||
 | 
			
		||||
void CASCodec::setNumOfChannels(int ch)
 | 
			
		||||
{
 | 
			
		||||
    emit delChannels();
 | 
			
		||||
 | 
			
		||||
    buffer.clear();
 | 
			
		||||
 | 
			
		||||
    for (int i = 0; i < ch; ++i)
 | 
			
		||||
    {
 | 
			
		||||
        Channel *channel = new Channel(i, &pcmBits, &bigE);
 | 
			
		||||
 | 
			
		||||
        connect(this, SIGNAL(delChannels()), channel, SLOT(deleteLater()));
 | 
			
		||||
        connect(this, SIGNAL(encodeSample(uchar,QByteArray,bool)), channel, SLOT(toCas(uchar,QByteArray,bool)));
 | 
			
		||||
        connect(this, SIGNAL(decodeSample(uchar,QByteArray)), channel, SLOT(fromCas(uchar,QByteArray)));
 | 
			
		||||
        connect(channel, SIGNAL(sampleRdy(uchar,QByteArray)), this, SLOT(finishedSample(uchar,QByteArray)));
 | 
			
		||||
 | 
			
		||||
        buffer.append(QList<QByteArray>());
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CASCodec::dataIn()
 | 
			
		||||
{
 | 
			
		||||
    if (srcIO && dstIO)
 | 
			
		||||
    {
 | 
			
		||||
        while (!stopRequested && srcIO->bytesAvailable())
 | 
			
		||||
        {
 | 
			
		||||
            bool forceWr = false;
 | 
			
		||||
 | 
			
		||||
            for (int i = 0; i < buffer.size(); ++i)
 | 
			
		||||
            {
 | 
			
		||||
                if (encode)
 | 
			
		||||
                {
 | 
			
		||||
                    if (!srcIO->isSequential())
 | 
			
		||||
                    {
 | 
			
		||||
                        forceWr = (lastBytes >= srcIO->bytesAvailable());
 | 
			
		||||
                    }
 | 
			
		||||
 | 
			
		||||
                    QByteArray data = srcIO->read(pcmBits / 8);
 | 
			
		||||
 | 
			
		||||
                    emit encodeSample(i, data, forceWr);
 | 
			
		||||
                }
 | 
			
		||||
                else
 | 
			
		||||
                {
 | 
			
		||||
                    QByteArray data = srcIO->read((pcmBits / 8) + 1);
 | 
			
		||||
 | 
			
		||||
                    emit decodeSample(i, data);
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CASCodec::finishedSample(uchar id, const QByteArray &data)
 | 
			
		||||
{
 | 
			
		||||
    buffer[id].append(data);
 | 
			
		||||
 | 
			
		||||
    bool allChannelsPending = true;
 | 
			
		||||
 | 
			
		||||
    for (int i = 0; i < buffer.size(); ++i)
 | 
			
		||||
    {
 | 
			
		||||
        if (buffer[i].isEmpty())
 | 
			
		||||
        {
 | 
			
		||||
            allChannelsPending = false;
 | 
			
		||||
 | 
			
		||||
            break;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (allChannelsPending)
 | 
			
		||||
    {
 | 
			
		||||
        for (int i = 0; i < buffer.size(); ++i)
 | 
			
		||||
        {
 | 
			
		||||
            dstIO->write(buffer[i].takeFirst());
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CASCodec::exec(QIODevice *rdIO, QIODevice *wrIO)
 | 
			
		||||
{
 | 
			
		||||
    if (buffer.size() == 0)
 | 
			
		||||
    {
 | 
			
		||||
        emit stopError(tr("The number of channels cannot be zero."));
 | 
			
		||||
    }
 | 
			
		||||
    else if (!rdIO->isOpen() || !rdIO->isReadable())
 | 
			
		||||
    {
 | 
			
		||||
        emit stopError(tr("Input io device is not open or readable."));
 | 
			
		||||
    }
 | 
			
		||||
    else if (!wrIO->isOpen() || !wrIO->isWritable())
 | 
			
		||||
    {
 | 
			
		||||
        emit stopError(tr("Output io device is not open or writable."));
 | 
			
		||||
    }
 | 
			
		||||
    else
 | 
			
		||||
    {
 | 
			
		||||
        stopRequested = false;
 | 
			
		||||
        lastBytes     = (pcmBits / 8) * buffer.size();
 | 
			
		||||
        srcIO         = rdIO;
 | 
			
		||||
        dstIO         = wrIO;
 | 
			
		||||
 | 
			
		||||
        emit runningState(true);
 | 
			
		||||
 | 
			
		||||
        if (encode) emit codecStatus(tr("Encoding."));
 | 
			
		||||
        else        emit codecStatus(tr("Decoding."));
 | 
			
		||||
 | 
			
		||||
        connect(rdIO, SIGNAL(readyRead()), this, SLOT(dataIn()));
 | 
			
		||||
 | 
			
		||||
        if (!rdIO->isSequential())
 | 
			
		||||
        {
 | 
			
		||||
            emit rdIO->readyRead();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CASCodec::stop()
 | 
			
		||||
{
 | 
			
		||||
    if (srcIO)
 | 
			
		||||
    {
 | 
			
		||||
        disconnect(srcIO, SIGNAL(readyRead()), this, SLOT(dataIn()));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    setNumOfChannels(buffer.size());
 | 
			
		||||
 | 
			
		||||
    stopRequested  = true;
 | 
			
		||||
    currentChannel = 0;
 | 
			
		||||
    lastBytes      = 0;
 | 
			
		||||
    srcIO          = 0;
 | 
			
		||||
    dstIO          = 0;
 | 
			
		||||
 | 
			
		||||
    emit runningState(false);
 | 
			
		||||
    emit codecStatus(tr("Ready."));
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										115
									
								
								src/cas_codec.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
						 | 
				
			
			@ -0,0 +1,115 @@
 | 
			
		|||
#ifndef CAS_CODEC_H
 | 
			
		||||
#define CAS_CODEC_H
 | 
			
		||||
 | 
			
		||||
#include <QObject>
 | 
			
		||||
#include <QtEndian>
 | 
			
		||||
#include <QFile>
 | 
			
		||||
#include <QThread>
 | 
			
		||||
#include <QList>
 | 
			
		||||
#include <QIODevice>
 | 
			
		||||
 | 
			
		||||
//    This file is part of CAS.
 | 
			
		||||
 | 
			
		||||
//    CAS is free software: you can redistribute it and/or modify
 | 
			
		||||
//    it under the terms of the GNU General Public License as published by
 | 
			
		||||
//    the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
//    (at your option) any later version.
 | 
			
		||||
 | 
			
		||||
//    CAS is distributed in the hope that it will be useful,
 | 
			
		||||
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
//    GNU General Public License for more details.
 | 
			
		||||
 | 
			
		||||
#define CAS_TAG "CAS"
 | 
			
		||||
#define CAS_REV 1
 | 
			
		||||
 | 
			
		||||
QByteArray wrNum(uchar numOfBits, quint64 value, bool be);
 | 
			
		||||
quint64    rdNum(const QByteArray &dataIn, bool be);
 | 
			
		||||
quint64    rdNum(QIODevice *dev, uchar numOfBits, bool be);
 | 
			
		||||
 | 
			
		||||
class Channel : public QObject
 | 
			
		||||
{
 | 
			
		||||
    Q_OBJECT
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
 | 
			
		||||
    quint64  pcmSample;
 | 
			
		||||
    quint64  xGap;
 | 
			
		||||
    uchar    channelId;
 | 
			
		||||
    uchar   *pcmBits;
 | 
			
		||||
    bool    *bigE;
 | 
			
		||||
    bool     ramping;
 | 
			
		||||
    bool     firstReadSample;
 | 
			
		||||
 | 
			
		||||
public:
 | 
			
		||||
 | 
			
		||||
    explicit Channel(uchar chId, uchar *bits, bool *be, QObject *parent = nullptr);
 | 
			
		||||
 | 
			
		||||
public slots:
 | 
			
		||||
 | 
			
		||||
    void toCas(uchar id, const QByteArray &pcm, bool forceWr);
 | 
			
		||||
    void fromCas(uchar id, const QByteArray &cas);
 | 
			
		||||
 | 
			
		||||
signals:
 | 
			
		||||
 | 
			
		||||
    void sampleRdy(uchar id, const QByteArray &data);
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
class CASCodec : public QObject
 | 
			
		||||
{
 | 
			
		||||
    Q_OBJECT
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
 | 
			
		||||
    QList<QList<QByteArray> > buffer;
 | 
			
		||||
    QIODevice                *srcIO;
 | 
			
		||||
    QIODevice                *dstIO;
 | 
			
		||||
    QString                   inputFilePath;
 | 
			
		||||
    QString                   outPutFilePath;
 | 
			
		||||
    qint64                    lastBytes;
 | 
			
		||||
    uchar                     currentChannel;
 | 
			
		||||
    uchar                     casRev;
 | 
			
		||||
    uchar                     pcmBits;
 | 
			
		||||
    uint                      sampleRate;
 | 
			
		||||
    bool                      bigE;
 | 
			
		||||
    bool                      encode;
 | 
			
		||||
 | 
			
		||||
private slots:
 | 
			
		||||
 | 
			
		||||
    void dataIn();
 | 
			
		||||
    void finishedSample(uchar id, const QByteArray &data);
 | 
			
		||||
 | 
			
		||||
public:
 | 
			
		||||
 | 
			
		||||
    bool stopRequested;
 | 
			
		||||
 | 
			
		||||
    bool rdCasHeader(QIODevice *rdIO);
 | 
			
		||||
    bool wrCasHeader(QIODevice *wrIO);
 | 
			
		||||
 | 
			
		||||
    explicit CASCodec(QObject *parent = nullptr);
 | 
			
		||||
 | 
			
		||||
public slots:
 | 
			
		||||
 | 
			
		||||
    void setPCMBits(int numOfBits);
 | 
			
		||||
    void setEncodeMode(bool state);
 | 
			
		||||
    void setBigEndianMode(bool state);
 | 
			
		||||
    void setNumOfChannels(int ch);
 | 
			
		||||
    void setSampleRate(int rate);
 | 
			
		||||
    void exec(QIODevice *rdIO, QIODevice *wrIO);
 | 
			
		||||
    void stop();
 | 
			
		||||
 | 
			
		||||
signals:
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    void encodeSample(uchar id, const QByteArray &pcm, bool forceWr);
 | 
			
		||||
    void decodeSample(uchar id, const QByteArray &cas);
 | 
			
		||||
    void delChannels();
 | 
			
		||||
    void updateNumOfChannels(int value);
 | 
			
		||||
    void updatePCMBits(int numOfBits);
 | 
			
		||||
    void updateSampleRate(int rate);
 | 
			
		||||
    void stopError(const QString &msg);
 | 
			
		||||
    void runningState(bool state);
 | 
			
		||||
    void codecStatus(const QString &msg);
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif // CAS_CODEC_H
 | 
			
		||||
							
								
								
									
										33
									
								
								src/main.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
						 | 
				
			
			@ -0,0 +1,33 @@
 | 
			
		|||
#include <QApplication>
 | 
			
		||||
 | 
			
		||||
#include "ui.h"
 | 
			
		||||
#include "cas_codec.h"
 | 
			
		||||
 | 
			
		||||
#define APP_NAME    "CAS"
 | 
			
		||||
#define APP_TARGET  "cas"
 | 
			
		||||
#define APP_VERSION "1.0"
 | 
			
		||||
 | 
			
		||||
//    This file is part of CAS.
 | 
			
		||||
 | 
			
		||||
//    CAS is free software: you can redistribute it and/or modify
 | 
			
		||||
//    it under the terms of the GNU General Public License as published by
 | 
			
		||||
//    the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
//    (at your option) any later version.
 | 
			
		||||
 | 
			
		||||
//    CAS is distributed in the hope that it will be useful,
 | 
			
		||||
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
//    GNU General Public License for more details.
 | 
			
		||||
 | 
			
		||||
int main(int argc, char *argv[])
 | 
			
		||||
{
 | 
			
		||||
    QApplication app(argc, argv);
 | 
			
		||||
    Ui           window;
 | 
			
		||||
 | 
			
		||||
    app.setApplicationName(QObject::tr(APP_NAME));
 | 
			
		||||
    app.setApplicationVersion(QObject::tr(APP_VERSION));
 | 
			
		||||
 | 
			
		||||
    window.show();
 | 
			
		||||
 | 
			
		||||
    return app.exec();
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										232
									
								
								src/ui.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
						 | 
				
			
			@ -0,0 +1,232 @@
 | 
			
		|||
#include "ui.h"
 | 
			
		||||
 | 
			
		||||
//    This file is part of CAS.
 | 
			
		||||
 | 
			
		||||
//    CAS is free software: you can redistribute it and/or modify
 | 
			
		||||
//    it under the terms of the GNU General Public License as published by
 | 
			
		||||
//    the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
//    (at your option) any later version.
 | 
			
		||||
 | 
			
		||||
//    CAS is distributed in the hope that it will be useful,
 | 
			
		||||
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
//    GNU General Public License for more details.
 | 
			
		||||
 | 
			
		||||
Ui::Ui(QWidget *parent) : QMainWindow(parent)
 | 
			
		||||
{
 | 
			
		||||
    QWidget     *mainWid    = new QWidget(this);
 | 
			
		||||
    QGridLayout *mainLayout = new QGridLayout(mainWid);
 | 
			
		||||
    QPushButton *start      = new QPushButton(tr("Start"), mainWid);
 | 
			
		||||
    QLabel      *status     = new QLabel(tr("Ready.\n"), mainWid);
 | 
			
		||||
 | 
			
		||||
    encode        = new QRadioButton(tr("Encode"), mainWid);
 | 
			
		||||
    decode        = new QRadioButton(tr("Decode"), mainWid);
 | 
			
		||||
    bigE          = new QRadioButton(tr("Big"), mainWid);
 | 
			
		||||
    littleE       = new QRadioButton(tr("Little"), mainWid);
 | 
			
		||||
    bits          = new QSpinBox(mainWid);
 | 
			
		||||
    numOfChannels = new QSpinBox(mainWid);
 | 
			
		||||
    sampleRate    = new QSpinBox(mainWid);
 | 
			
		||||
    inFile        = new QLineEdit(mainWid);
 | 
			
		||||
    outFile       = new QLineEdit(mainWid);
 | 
			
		||||
    pickInput     = new QPushButton(tr("Browse"), mainWid);
 | 
			
		||||
    pickOutput    = new QPushButton(tr("Browse"), mainWid);
 | 
			
		||||
    stop          = new QPushButton(tr("Stop"), this);
 | 
			
		||||
    progress      = new QProgressBar(mainWid);
 | 
			
		||||
    codec         = new CASCodec(this);
 | 
			
		||||
    progTimer     = new QTimer(this);
 | 
			
		||||
    inFileIO      = new QFile(this);
 | 
			
		||||
    outFileIO     = new QFile(this);
 | 
			
		||||
 | 
			
		||||
    // radio groups
 | 
			
		||||
 | 
			
		||||
    QButtonGroup *io     = new QButtonGroup(mainWid);
 | 
			
		||||
    QButtonGroup *endian = new QButtonGroup(mainWid);
 | 
			
		||||
 | 
			
		||||
    io->addButton(encode);
 | 
			
		||||
    io->addButton(decode);
 | 
			
		||||
    endian->addButton(bigE);
 | 
			
		||||
    endian->addButton(littleE);
 | 
			
		||||
 | 
			
		||||
    mainLayout->addWidget(encode, 0, 1, 1, 1);
 | 
			
		||||
    mainLayout->addWidget(decode, 0, 2, 1, 1);
 | 
			
		||||
 | 
			
		||||
    // column 0, labels:
 | 
			
		||||
 | 
			
		||||
    mainLayout->addWidget(new QLabel(tr("Input File: "), mainWid), 1, 0, 1, 1);
 | 
			
		||||
    mainLayout->addWidget(new QLabel(tr("Output File: "), mainWid), 2, 0, 1, 1);
 | 
			
		||||
    mainLayout->addWidget(new QLabel(tr("Bit Depth: "), mainWid), 3, 0, 1, 1);
 | 
			
		||||
    mainLayout->addWidget(new QLabel(tr("Channels: "), mainWid), 4, 0, 1, 1);
 | 
			
		||||
    mainLayout->addWidget(new QLabel(tr("Sample Rate: "), mainWid), 5, 0, 1, 1);
 | 
			
		||||
    mainLayout->addWidget(new QLabel(tr("Endianness: "), mainWid), 6, 0, 1, 1);
 | 
			
		||||
 | 
			
		||||
    // column 1, 2 values:
 | 
			
		||||
 | 
			
		||||
    mainLayout->addWidget(inFile, 1, 1, 1, 2);
 | 
			
		||||
    mainLayout->addWidget(outFile, 2, 1, 1, 2);
 | 
			
		||||
    mainLayout->addWidget(bits, 3, 1, 1, 1);
 | 
			
		||||
    mainLayout->addWidget(numOfChannels, 4, 1, 1, 1);
 | 
			
		||||
    mainLayout->addWidget(sampleRate, 5, 1, 1, 1);
 | 
			
		||||
    mainLayout->addWidget(littleE, 6, 1, 1, 1);
 | 
			
		||||
    mainLayout->addWidget(bigE, 6, 2, 1, 1);
 | 
			
		||||
 | 
			
		||||
    // column 3, modifiers:
 | 
			
		||||
 | 
			
		||||
    mainLayout->addWidget(pickInput, 1, 3, 1, 1);
 | 
			
		||||
    mainLayout->addWidget(pickOutput, 2, 3, 1, 1);
 | 
			
		||||
 | 
			
		||||
    status->setWordWrap(true);
 | 
			
		||||
    encode->setChecked(true);
 | 
			
		||||
    littleE->setChecked(true);
 | 
			
		||||
    numOfChannels->setMinimum(1);
 | 
			
		||||
    numOfChannels->setValue(2);
 | 
			
		||||
    sampleRate->setMinimum(1);
 | 
			
		||||
    sampleRate->setMaximum(400000000);
 | 
			
		||||
    sampleRate->setValue(44100);
 | 
			
		||||
    bits->setMinimum(8);
 | 
			
		||||
    bits->setMaximum(64);
 | 
			
		||||
    bits->setValue(16);
 | 
			
		||||
    progress->setMinimum(0);
 | 
			
		||||
    progress->setMaximum(1);
 | 
			
		||||
    progress->setValue(0);
 | 
			
		||||
    progTimer->setSingleShot(false);
 | 
			
		||||
 | 
			
		||||
    mainLayout->addWidget(status, 7, 1, 1, 3);
 | 
			
		||||
    mainLayout->addWidget(progress, 8, 1, 1, 3);
 | 
			
		||||
    mainLayout->addWidget(start, 9, 1, 1, 1);
 | 
			
		||||
    mainLayout->addWidget(stop, 9, 2, 1, 1);
 | 
			
		||||
 | 
			
		||||
    addLockoutWidget(encode);
 | 
			
		||||
    addLockoutWidget(decode);
 | 
			
		||||
    addLockoutWidget(numOfChannels);
 | 
			
		||||
    addLockoutWidget(sampleRate);
 | 
			
		||||
    addLockoutWidget(bigE);
 | 
			
		||||
    addLockoutWidget(littleE);
 | 
			
		||||
    addLockoutWidget(bits);
 | 
			
		||||
    addLockoutWidget(inFile);
 | 
			
		||||
    addLockoutWidget(outFile);
 | 
			
		||||
    addLockoutWidget(pickInput);
 | 
			
		||||
    addLockoutWidget(pickOutput);
 | 
			
		||||
    addLockoutWidget(start);
 | 
			
		||||
    setCentralWidget(mainWid);
 | 
			
		||||
 | 
			
		||||
    connect(start, SIGNAL(clicked()), this, SLOT(startProc()));
 | 
			
		||||
    connect(stop, SIGNAL(clicked()), this, SLOT(stopProc()));
 | 
			
		||||
    connect(this, SIGNAL(runCodec(QIODevice*,QIODevice*)), codec, SLOT(exec(QIODevice*,QIODevice*)));
 | 
			
		||||
    connect(stop, SIGNAL(clicked()), codec, SLOT(stop()));
 | 
			
		||||
    connect(pickInput, SIGNAL(clicked()), this, SLOT(inputFileDialog()));
 | 
			
		||||
    connect(pickOutput, SIGNAL(clicked()), this, SLOT(outputFileDialog()));
 | 
			
		||||
    connect(codec, SIGNAL(runningState(bool)), this, SLOT(codecRunningState(bool)));
 | 
			
		||||
    connect(codec, SIGNAL(stopError(QString)), this, SLOT(codecError(QString)));
 | 
			
		||||
    connect(bits, SIGNAL(valueChanged(int)), codec, SLOT(setPCMBits(int)));
 | 
			
		||||
    connect(codec, SIGNAL(updatePCMBits(int)), bits, SLOT(setValue(int)));
 | 
			
		||||
    connect(encode, SIGNAL(toggled(bool)), codec, SLOT(setEncodeMode(bool)));
 | 
			
		||||
    connect(bigE, SIGNAL(toggled(bool)), codec, SLOT(setBigEndianMode(bool)));
 | 
			
		||||
    connect(numOfChannels, SIGNAL(valueChanged(int)), codec, SLOT(setNumOfChannels(int)));
 | 
			
		||||
    connect(sampleRate, SIGNAL(valueChanged(int)), codec, SLOT(setSampleRate(int)));
 | 
			
		||||
    connect(codec, SIGNAL(updateSampleRate(int)), sampleRate, SLOT(setValue(int)));
 | 
			
		||||
    connect(progTimer, SIGNAL(timeout()), this, SLOT(updateProgress()));
 | 
			
		||||
    connect(codec, SIGNAL(codecStatus(QString)), status, SLOT(setText(QString)));
 | 
			
		||||
 | 
			
		||||
    emit numOfChannels->valueChanged(numOfChannels->value());
 | 
			
		||||
    emit sampleRate->valueChanged(sampleRate->value());
 | 
			
		||||
    emit bits->valueChanged(bits->value());
 | 
			
		||||
    emit encode->toggled(encode->isChecked());
 | 
			
		||||
    emit bigE->toggled(bigE->isChecked());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Ui::addLockoutWidget(QWidget *wid)
 | 
			
		||||
{
 | 
			
		||||
    connect(this, SIGNAL(enableLockWidgets(bool)), wid, SLOT(setEnabled(bool)));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Ui::inputFileDialog()
 | 
			
		||||
{
 | 
			
		||||
    inFile->setText(QFileDialog::getOpenFileName(this, tr("Input file"), QDir::homePath(), tr("*.*")));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Ui::outputFileDialog()
 | 
			
		||||
{
 | 
			
		||||
    outFile->setText(QFileDialog::getSaveFileName(this, tr("Output file"), QDir::homePath()));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Ui::codecRunningState(bool state)
 | 
			
		||||
{
 | 
			
		||||
    if (state)
 | 
			
		||||
    {
 | 
			
		||||
        progress->setMinimum(0);
 | 
			
		||||
        progress->setMaximum(inFileIO->size());
 | 
			
		||||
        progTimer->start(500);
 | 
			
		||||
    }
 | 
			
		||||
    else
 | 
			
		||||
    {
 | 
			
		||||
        progress->setValue(0);
 | 
			
		||||
        progTimer->stop();
 | 
			
		||||
        inFileIO->close();
 | 
			
		||||
        outFileIO->close();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    emit enableLockWidgets(!state);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Ui::stopProc()
 | 
			
		||||
{
 | 
			
		||||
    codec->stopRequested = true;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Ui::startProc()
 | 
			
		||||
{
 | 
			
		||||
    inFileIO->setFileName(inFile->text());
 | 
			
		||||
    outFileIO->setFileName(outFile->text());
 | 
			
		||||
 | 
			
		||||
    if (!inFileIO->open(QFile::ReadOnly))
 | 
			
		||||
    {
 | 
			
		||||
        codecError(tr("Could not open the input file - ") + inFileIO->errorString() + ".");
 | 
			
		||||
    }
 | 
			
		||||
    else if (!outFileIO->open(QFile::WriteOnly | QFile::Truncate))
 | 
			
		||||
    {
 | 
			
		||||
        codecError(tr("Could not open the output file - ") + outFileIO->errorString() + ".");
 | 
			
		||||
    }
 | 
			
		||||
    else
 | 
			
		||||
    {
 | 
			
		||||
        if (encode->isChecked())
 | 
			
		||||
        {
 | 
			
		||||
            if (codec->wrCasHeader(outFileIO))
 | 
			
		||||
            {
 | 
			
		||||
                emit runCodec(inFileIO, outFileIO);
 | 
			
		||||
            }
 | 
			
		||||
            else
 | 
			
		||||
            {
 | 
			
		||||
                codecError(tr("Could not write a new CAS header to the output file."));
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        else
 | 
			
		||||
        {
 | 
			
		||||
            if (codec->rdCasHeader(inFileIO))
 | 
			
		||||
            {
 | 
			
		||||
                emit runCodec(inFileIO, outFileIO);
 | 
			
		||||
            }
 | 
			
		||||
            else
 | 
			
		||||
            {
 | 
			
		||||
                codecError(tr("Could not read the input file's CAS header."));
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Ui::codecError(const QString &msg)
 | 
			
		||||
{
 | 
			
		||||
    inFileIO->close();
 | 
			
		||||
    outFileIO->close();
 | 
			
		||||
 | 
			
		||||
    QMessageBox::critical(this, "", msg);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Ui::updateProgress()
 | 
			
		||||
{
 | 
			
		||||
    progress->setValue(inFileIO->pos());
 | 
			
		||||
 | 
			
		||||
    if (inFileIO->atEnd())
 | 
			
		||||
    {
 | 
			
		||||
        emit stop->click();
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										81
									
								
								src/ui.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
						 | 
				
			
			@ -0,0 +1,81 @@
 | 
			
		|||
#ifndef UI_H
 | 
			
		||||
#define UI_H
 | 
			
		||||
 | 
			
		||||
//    This file is part of CAS.
 | 
			
		||||
 | 
			
		||||
//    CAS is free software: you can redistribute it and/or modify
 | 
			
		||||
//    it under the terms of the GNU General Public License as published by
 | 
			
		||||
//    the Free Software Foundation, either version 3 of the License, or
 | 
			
		||||
//    (at your option) any later version.
 | 
			
		||||
 | 
			
		||||
//    CAS is distributed in the hope that it will be useful,
 | 
			
		||||
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
//    GNU General Public License for more details.
 | 
			
		||||
 | 
			
		||||
#include <QMainWindow>
 | 
			
		||||
#include <QLineEdit>
 | 
			
		||||
#include <QComboBox>
 | 
			
		||||
#include <QGridLayout>
 | 
			
		||||
#include <QWidget>
 | 
			
		||||
#include <QFile>
 | 
			
		||||
#include <QRadioButton>
 | 
			
		||||
#include <QButtonGroup>
 | 
			
		||||
#include <QLabel>
 | 
			
		||||
#include <QPushButton>
 | 
			
		||||
#include <QFileDialog>
 | 
			
		||||
#include <QSpinBox>
 | 
			
		||||
#include <QHBoxLayout>
 | 
			
		||||
#include <QMessageBox>
 | 
			
		||||
#include <QProgressBar>
 | 
			
		||||
#include <QTimer>
 | 
			
		||||
 | 
			
		||||
#include "cas_codec.h"
 | 
			
		||||
 | 
			
		||||
class Ui : public QMainWindow
 | 
			
		||||
{
 | 
			
		||||
    Q_OBJECT
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
 | 
			
		||||
    QLineEdit    *inFile;
 | 
			
		||||
    QLineEdit    *outFile;
 | 
			
		||||
    QFile        *inFileIO;
 | 
			
		||||
    QFile        *outFileIO;
 | 
			
		||||
    QSpinBox     *bits;
 | 
			
		||||
    QSpinBox     *numOfChannels;
 | 
			
		||||
    QSpinBox     *sampleRate;
 | 
			
		||||
    QRadioButton *encode;
 | 
			
		||||
    QRadioButton *decode;
 | 
			
		||||
    QRadioButton *bigE;
 | 
			
		||||
    QRadioButton *littleE;
 | 
			
		||||
    QPushButton  *pickInput;
 | 
			
		||||
    QPushButton  *pickOutput;
 | 
			
		||||
    QPushButton  *stop;
 | 
			
		||||
    QProgressBar *progress;
 | 
			
		||||
    CASCodec     *codec;
 | 
			
		||||
    QTimer       *progTimer;
 | 
			
		||||
 | 
			
		||||
    void addLockoutWidget(QWidget *wid);
 | 
			
		||||
 | 
			
		||||
private slots:
 | 
			
		||||
 | 
			
		||||
    void codecError(const QString &msg);
 | 
			
		||||
    void codecRunningState(bool state);
 | 
			
		||||
    void inputFileDialog();
 | 
			
		||||
    void outputFileDialog();
 | 
			
		||||
    void stopProc();
 | 
			
		||||
    void startProc();
 | 
			
		||||
    void updateProgress();
 | 
			
		||||
 | 
			
		||||
public:
 | 
			
		||||
 | 
			
		||||
    Ui(QWidget *parent = 0);
 | 
			
		||||
 | 
			
		||||
signals:
 | 
			
		||||
 | 
			
		||||
    void enableLockWidgets(bool state);
 | 
			
		||||
    void runCodec(QIODevice *src, QIODevice *dst);
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif // UI_H
 | 
			
		||||
							
								
								
									
										9
									
								
								templates/linux_icon.desktop
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
						 | 
				
			
			@ -0,0 +1,9 @@
 | 
			
		|||
[Desktop Entry]
 | 
			
		||||
Type=Application
 | 
			
		||||
Exec=/usr/bin/$app_target
 | 
			
		||||
Name=$app_name
 | 
			
		||||
GenericName=CAS codec proof of concept
 | 
			
		||||
Icon=$app_target
 | 
			
		||||
StartupWMClass=$app_target
 | 
			
		||||
Terminal=false
 | 
			
		||||
Categories=Media;Audio;CAS;
 | 
			
		||||
							
								
								
									
										5
									
								
								templates/linux_run_script.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
						 | 
				
			
			@ -0,0 +1,5 @@
 | 
			
		|||
#!/bin/sh
 | 
			
		||||
export QTDIR=$install_dir
 | 
			
		||||
export QT_PLUGIN_PATH=$install_dir
 | 
			
		||||
export LD_LIBRARY_PATH="$install_dir/lib:\$LD_LIBRARY_PATH"
 | 
			
		||||
$install_dir/$app_target $1 $2 $3
 | 
			
		||||
							
								
								
									
										21
									
								
								templates/linux_uninstall.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
						 | 
				
			
			@ -0,0 +1,21 @@
 | 
			
		|||
#!/bin/sh
 | 
			
		||||
rm -v /usr/bin/$app_target
 | 
			
		||||
rm -rv $install_dir
 | 
			
		||||
rm -v /usr/share/icons/hicolor/8x8/apps/$app_target.png
 | 
			
		||||
rm -v /usr/share/icons/hicolor/16x16/apps/$app_target.png
 | 
			
		||||
rm -v /usr/share/icons/hicolor/22x22/apps/$app_target.png
 | 
			
		||||
rm -v /usr/share/icons/hicolor/24x24/apps/$app_target.png
 | 
			
		||||
rm -v /usr/share/icons/hicolor/32x32/apps/$app_target.png
 | 
			
		||||
rm -v /usr/share/icons/hicolor/36x36/apps/$app_target.png
 | 
			
		||||
rm -v /usr/share/icons/hicolor/42x42/apps/$app_target.png
 | 
			
		||||
rm -v /usr/share/icons/hicolor/48x48/apps/$app_target.png
 | 
			
		||||
rm -v /usr/share/icons/hicolor/64x64/apps/$app_target.png
 | 
			
		||||
rm -v /usr/share/icons/hicolor/72x72/apps/$app_target.png
 | 
			
		||||
rm -v /usr/share/icons/hicolor/96x96/apps/$app_target.png
 | 
			
		||||
rm -v /usr/share/icons/hicolor/128x128/apps/$app_target.png
 | 
			
		||||
rm -v /usr/share/icons/hicolor/192x192/apps/$app_target.png
 | 
			
		||||
rm -v /usr/share/icons/hicolor/256x256/apps/$app_target.png
 | 
			
		||||
rm -v /usr/share/icons/hicolor/512x512/apps/$app_target.png
 | 
			
		||||
rm -v /usr/share/icons/hicolor/scalable/apps/$app_target.svg
 | 
			
		||||
rm -v /usr/share/applications/$app_target.desktop
 | 
			
		||||
echo "Uninstallation Complete"
 | 
			
		||||
							
								
								
									
										6
									
								
								templates/win_icon.vbs
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
						 | 
				
			
			@ -0,0 +1,6 @@
 | 
			
		|||
set WshShell = CreateObject("Wscript.shell")
 | 
			
		||||
set oMyShortcut = WshShell.CreateShortcut("%SystemDrive%\ProgramData\Microsoft\Windows\Start Menu\Programs\$app_name.lnk")
 | 
			
		||||
 | 
			
		||||
oMyShortcut.IconLocation = "$install_dir\icon.ico"
 | 
			
		||||
OMyShortcut.TargetPath = "$install_dir\$app_target.exe"
 | 
			
		||||
oMyShortCut.Save
 | 
			
		||||
							
								
								
									
										6
									
								
								templates/windows_uninstall.bat
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
						 | 
				
			
			@ -0,0 +1,6 @@
 | 
			
		|||
$app_target -stop
 | 
			
		||||
schtasks /delete /f /tn $app_name
 | 
			
		||||
del /f "%windir%\$app_target.exe"
 | 
			
		||||
del /f "%SystemDrive%\ProgramData\Microsoft\Windows\Start Menu\Programs\$app_name.lnk"
 | 
			
		||||
rd /q /s "$install_dir"
 | 
			
		||||
echo "Uninstallation Complete"
 | 
			
		||||