Compare commits
176 Commits
upstream/0
...
debian/0.7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f2da0d5640 | ||
|
|
02a85cae19 | ||
|
|
25c3061e39 | ||
|
|
30adf4ea35 | ||
|
|
72e8ebd009 | ||
|
|
1c6804804d | ||
|
|
de50a000bf | ||
|
|
00d42647ef | ||
|
|
1a4b5b62ee | ||
|
|
5197239bfa | ||
|
|
e82528bc0c | ||
|
|
869c56ca37 | ||
|
|
ff8db2fb8b | ||
|
|
765d87e0d3 | ||
|
|
2ef4511927 | ||
|
|
e35c2de208 | ||
|
|
619ee820f3 | ||
|
|
581d7697db | ||
|
|
58e068ff5b | ||
|
|
ccc2d79dd4 | ||
|
|
2388e522b3 | ||
|
|
b3b74e69d9 | ||
|
|
3af39d5b74 | ||
|
|
d813ad385b | ||
|
|
c4d7120860 | ||
|
|
5f5aef550f | ||
|
|
0144e738fb | ||
|
|
5d5e943c51 | ||
|
|
06c675c1fd | ||
|
|
a5f48d91a3 | ||
|
|
f83f9e81b0 | ||
|
|
38a3127d2f | ||
|
|
9f38622429 | ||
|
|
520b4cb8c9 | ||
|
|
af00bbb1cb | ||
|
|
34afe54009 | ||
|
|
a66cebafd3 | ||
|
|
eaa545b89c | ||
|
|
72767c589f | ||
|
|
1a3b3cbfa7 | ||
|
|
1b266ccbde | ||
|
|
7d36061007 | ||
|
|
645178ef92 | ||
|
|
1a6b38f9a5 | ||
|
|
a614f5d1f7 | ||
|
|
52204ec502 | ||
|
|
84716913ad | ||
|
|
f16a9b9c7b | ||
|
|
bb6d3049f5 | ||
|
|
c68a08fb59 | ||
|
|
c71560a5f2 | ||
|
|
a8579f2310 | ||
|
|
89cf9f96be | ||
|
|
1d80dd8d65 | ||
|
|
9ad5d25d65 | ||
|
|
f7d26c5dda | ||
|
|
66e2abac90 | ||
|
|
ba84c34dce | ||
|
|
ce67360bbf | ||
|
|
2f2a3918ee | ||
|
|
71f4bac562 | ||
|
|
5343babeb4 | ||
|
|
f9b03ad387 | ||
|
|
b603c4f5be | ||
|
|
09760e826d | ||
|
|
4f4b91805a | ||
|
|
df576e4510 | ||
|
|
16c1f0cc01 | ||
|
|
5fe15556d7 | ||
|
|
499f5b41ae | ||
|
|
f85bbb920a | ||
|
|
04ce38ec85 | ||
|
|
f8dc3ae4a9 | ||
|
|
367a650129 | ||
|
|
1d134855eb | ||
|
|
352e03e296 | ||
|
|
254a31248c | ||
|
|
0efa890674 | ||
|
|
4a360d1e86 | ||
|
|
df6fe7761f | ||
|
|
c525e2fdf9 | ||
|
|
6715d62989 | ||
|
|
a8f06a0b4d | ||
|
|
5f8bcae4b3 | ||
|
|
5d0bcafecc | ||
|
|
8467adff67 | ||
|
|
e8f1c10d5c | ||
|
|
649f2e6e80 | ||
|
|
37a0c5dacb | ||
|
|
ee5d92b276 | ||
|
|
76b5a1b44b | ||
|
|
53629e2ee7 | ||
|
|
0b5d917bab | ||
|
|
63e31ec0b1 | ||
|
|
d2a8cb357b | ||
|
|
943c49baca | ||
|
|
2b2db42faf | ||
|
|
52734ab081 | ||
|
|
f2faa26920 | ||
|
|
cbea35454b | ||
|
|
beb037c83a | ||
|
|
55e2eceb2f | ||
|
|
66a09cac46 | ||
|
|
35a67aeb62 | ||
|
|
5223f60753 | ||
|
|
e2e5998004 | ||
|
|
ceff546a54 | ||
|
|
a24f411118 | ||
|
|
7757fa7186 | ||
|
|
f754ce1075 | ||
|
|
0a72a11315 | ||
|
|
45af00b78e | ||
|
|
5249b88996 | ||
|
|
ec90405195 | ||
|
|
02429d92bc | ||
|
|
2f23ea4b4a | ||
|
|
e4dd16533b | ||
|
|
86278fbab4 | ||
|
|
638e490827 | ||
|
|
cef31abc8c | ||
|
|
4cebc5af7d | ||
|
|
1af1a99951 | ||
|
|
318f2c2256 | ||
|
|
17aa97679e | ||
|
|
cc2d9f8e3a | ||
|
|
5a462353d1 | ||
|
|
53abce82da | ||
|
|
9876613ba0 | ||
|
|
e3cdc289e4 | ||
|
|
deeb8cc725 | ||
|
|
606d4178ee | ||
|
|
ab070f0354 | ||
|
|
bfe15b23fb | ||
|
|
30255c97b3 | ||
|
|
c3da7b4a44 | ||
|
|
e95352d3f5 | ||
|
|
f18c1018bc | ||
|
|
c63439d879 | ||
|
|
7d95600ddb | ||
|
|
205701b3de | ||
|
|
fb476bac8c | ||
|
|
e4fb88eb2d | ||
|
|
5053ead62f | ||
|
|
95d251f6c4 | ||
|
|
774cba8932 | ||
|
|
09f902b05f | ||
|
|
555c0daf7d | ||
|
|
848b6782bd | ||
|
|
b8f0e626e4 | ||
|
|
96b581bdd0 | ||
|
|
cea78c3862 | ||
|
|
80e291c7e4 | ||
|
|
57e4fab14b | ||
|
|
219494102d | ||
|
|
f51c51aad9 | ||
|
|
7771474ad7 | ||
|
|
65764829ad | ||
|
|
9fe0db45c7 | ||
|
|
70a6efdc89 | ||
|
|
fac6933b94 | ||
|
|
00e19688b4 | ||
|
|
237207698a | ||
|
|
af26379c0c | ||
|
|
3ee8b47d0c | ||
|
|
da276c7fc4 | ||
|
|
d8edfc2ac4 | ||
|
|
0683a48953 | ||
|
|
a6dd6eaf97 | ||
|
|
9e778cc617 | ||
|
|
26207495ec | ||
|
|
487811728e | ||
|
|
1fbaa497e2 | ||
|
|
8f429ba0a8 | ||
|
|
a02e5d8a10 | ||
|
|
294f8623c4 | ||
|
|
8ea2ebcd2a |
4
.cvsignore
Normal file
4
.cvsignore
Normal file
@@ -0,0 +1,4 @@
|
||||
PRIVATE
|
||||
test-cases
|
||||
regtest
|
||||
st
|
||||
843
COPYING
843
COPYING
@@ -1,285 +1,625 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||
59 Temple Place - Suite 330
|
||||
Boston, MA 02111-1307, USA.
|
||||
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 licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Library General Public License instead.) You can apply it to
|
||||
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
|
||||
this service 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.
|
||||
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 make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
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 give the recipients all the rights that
|
||||
you have. 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.
|
||||
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.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
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.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
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.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
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.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
0. Definitions.
|
||||
|
||||
1. You may copy and distribute 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 and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
"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.
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
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.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
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.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
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.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
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.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
1. Source Code.
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
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.
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
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.
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
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 source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
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.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
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.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
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
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
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.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
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.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
14. Revised Versions of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
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 a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
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.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
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.
|
||||
|
||||
NO WARRANTY
|
||||
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.
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, 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.
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE 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.
|
||||
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
|
||||
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
@@ -288,15 +628,15 @@ free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) 19yy <name of author>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
This program 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 2 of the License, or
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
@@ -305,37 +645,30 @@ the "copyright" line and a pointer to where the full notice is found.
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA.
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this
|
||||
when it starts in an interactive mode:
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) 19yy name of author
|
||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, the commands you use may
|
||||
be called something other than `show w' and `show c'; they could even be
|
||||
mouse-clicks or menu items--whatever suits your program.
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<http://www.gnu.org/licenses/>.
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1989
|
||||
Ty Coon, President of Vice
|
||||
|
||||
This General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Library General
|
||||
Public License instead of this License.
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
||||
|
||||
42
CREDITS.cs
42
CREDITS.cs
@@ -1,42 +0,0 @@
|
||||
Mnoho poděkování patří následujícím lidem (v alfabetickém pořadí):
|
||||
|
||||
Harald Bögeholz (hwb@heise.de)
|
||||
poskytl řadu podstatných diskuzí o obnově dat na CD/DVD
|
||||
a opravě chyb Reed-Solomon.
|
||||
"Adaptivní strategie čtení" v programu dvdisaster je založena na
|
||||
na jeho doporučeních a nápadech; implementoval podobnou strategii
|
||||
předtím a publikoval ji v čísle 16/2005 německého periodika "c't".
|
||||
|
||||
Julian Einwag (julian@einwag.de).
|
||||
provides and maintains the Mac OS X / Darwin port.
|
||||
|
||||
Igor Gorbounov (igorbounov@topazelectro.ru)
|
||||
provides and maintains the Russian translation.
|
||||
|
||||
Andrei Grecu (andrei.grecu@aon.at)
|
||||
provided an algorithm for recovering defective CD sectors
|
||||
from multiple incomplete RAW reading attempts.
|
||||
|
||||
Phil Karn
|
||||
napsal vynikající knihovnu pro tvorbu a dekódování kódu Reed-Solomon.
|
||||
Tento projekt si vzal hodně inspirace - a dokonce kódu -
|
||||
z jeho knihovny, kterou lze nalézt na http://www.ka9q.net/code/fec/
|
||||
|
||||
Protože byl kód optimalizován a zkrácen pro speciální potřeby
|
||||
programu dvdisaster, měli byste ziskat originální věc, máte-li
|
||||
zájem na zabudování RS kódů do vaší aplikace.
|
||||
|
||||
Daniel Nylander (info@danielnylander.se)
|
||||
provides and maintains the Swedish translation.
|
||||
|
||||
Andrea Polverini (polve@polve.com)
|
||||
poskytuje a udržuje italský překlad.
|
||||
|
||||
Luboš Staněk (lubek@users.sourceforge.net)
|
||||
poskytuje a udržuje český překlad.
|
||||
|
||||
Sergey Svishchev (svs@ropnet.ru)
|
||||
provided the NetBSD port.
|
||||
|
||||
Mnoho dalších lidí poskytlo další doporučení a chybové zprávy;
|
||||
podrobnosti viz soubor CHANGELOG.
|
||||
@@ -1,4 +1,7 @@
|
||||
Vielen Dank an die folgenden Personen (in alphabetischer Reihenfolge):
|
||||
Vielen Dank an (in alphabetischer Reihenfolge):
|
||||
|
||||
Pablo Almeida (pabloalmeidaff9@gmail.com)
|
||||
erstellt und pflegt die portugiesische Übersetzung.
|
||||
|
||||
Harald Bögeholz (hwb@heise.de)
|
||||
für viele tiefgehende Diskussionen über CD/DVD-Datenrettung
|
||||
@@ -33,6 +36,9 @@ Daniel Nylander (info@danielnylander.se)
|
||||
Andrea Polverini (polve@polve.com)
|
||||
erstellt und pflegt die italienische Übersetzung.
|
||||
|
||||
Jindřich Šesták <khagaroth@users.sourceforge.net>
|
||||
hat die tschechische Übersetzung ab Version 0.79.3 übernommen.
|
||||
|
||||
Luboš Staněk (lubek@users.sourceforge.net)
|
||||
erstellt und pflegt die tschechische Übersetzung.
|
||||
|
||||
|
||||
10
CREDITS.en
10
CREDITS.en
@@ -1,4 +1,7 @@
|
||||
Many thanks to the following people (in alphabetical order):
|
||||
Many thanks to (in alphabetical order):
|
||||
|
||||
Pablo Almeida (pabloalmeidaff9@gmail.com)
|
||||
provides and maintains the Portuguese translation.
|
||||
|
||||
Harald Bögeholz (hwb@heise.de)
|
||||
provided a lot of insightful discussions on CD/DVD data
|
||||
@@ -32,8 +35,11 @@ Daniel Nylander (info@danielnylander.se)
|
||||
Andrea Polverini (polve@polve.com)
|
||||
provides and maintains the Italian translation.
|
||||
|
||||
Jindřich Šesták <khagaroth@users.sourceforge.net>
|
||||
took over the Czech translation since version 0.79.3.
|
||||
|
||||
Luboš Staněk (lubek@users.sourceforge.net)
|
||||
provides and maintains the Czech translation.
|
||||
provided and maintained the Czech translation up to version 0.72.3.
|
||||
|
||||
Sergey Svishchev (svs@ropnet.ru)
|
||||
provided the NetBSD port.
|
||||
|
||||
@@ -4,13 +4,17 @@
|
||||
|
||||
# Currently supported locales
|
||||
|
||||
PO_LOCALES = br_PT cs de it ru sv
|
||||
MAN_LOCALES = cs de it
|
||||
DOC_LOCALES = de en ru
|
||||
PO_LOCALES = pt_BR cs de it ru sv
|
||||
MAN_LOCALES = de
|
||||
|
||||
# Search for TAGS: online-docs
|
||||
# Don't forget edit NODIST for new doc locales
|
||||
|
||||
# Local settings (not changeable from the configure script)
|
||||
|
||||
# Where to put tar archives (arch, srcdist)
|
||||
TAR_PREFIX=/dev/shm
|
||||
|
||||
######################################################################
|
||||
# Take over variables from configure
|
||||
######################################################################
|
||||
@@ -25,8 +29,8 @@ MANDIR = $(CFG_MANDIR)
|
||||
DOCDIR = $(CFG_DOCDIR)
|
||||
DOCSUBDIR = $(CFG_DOCDIR)/$(CFG_DOCSUBDIR)
|
||||
LOCALEDIR = $(CFG_LOCALEDIR)
|
||||
PHPMOUNTDIR = $(CFG_PHPMOUNTDIR)
|
||||
BUILDROOT = $(CFG_BUILDROOT)
|
||||
BUILDTMP = $(CFG_BUILDTMP)
|
||||
|
||||
INTL_INCL = $(CFG_INTL_INCL)
|
||||
INTL_LFLAGS = $(CFG_INTL_LFLAGS)
|
||||
@@ -43,17 +47,18 @@ EFENCE_LFLAGS = $(CFG_EFENCE_LFLAGS)
|
||||
EFENCE_LIBS = $(CFG_EFENCE_LIBS)
|
||||
|
||||
SYS_OPTIONS = $(CFG_SYS_OPTIONS)
|
||||
SYS_NAME = $(CFG_SYS_NAME)
|
||||
HAVE_OPTIONS = $(CFG_HAVE_OPTIONS)
|
||||
WITH_OPTIONS = $(CFG_WITH_OPTIONS)
|
||||
OTHER_OPTIONS = $(CFG_OTHER_OPTIONS) -DVERSION=\"$(VERSION)\"
|
||||
EXE_SUFFIX = $(CFG_EXE_SUFFIX)
|
||||
SSE2_OPTIONS = $(CFG_SSE2_OPTIONS)
|
||||
ALTIVEC_OPTIONS = $(CFG_ALTIVEC_OPTIONS)
|
||||
|
||||
LOCATIONS = -DSRCDIR=\"$(SRCDIR)\" -DBINDIR=\"$(BINDIR)\" -DDOCDIR=\"$(DOCSUBDIR)\" -DLOCALEDIR=\"$(LOCALEDIR)\"
|
||||
COPTS = $(CFLAGS) $(LOCATIONS) $(SYS_OPTIONS) $(HAVE_OPTIONS) $(WITH_OPTIONS) $(OTHER_OPTIONS) $(INTL_INCL) $(CAM_INCL) $(GTK_CFLAGS)
|
||||
LOPTS = $(LDFLAGS) $(INTL_LFLAGS) $(CAM_LFLAGS) $(EFENCE_LFLAGS)
|
||||
COPTS = $(CFLAGS) $(LOCATIONS) $(SYS_OPTIONS) $(SYS_NAME) $(HAVE_OPTIONS) $(WITH_OPTIONS) $(OTHER_OPTIONS) $(INTL_INCL) $(CAM_INCL) $(GTK_CFLAGS) $(MUDFLAP_CFLAGS)
|
||||
LOPTS = $(LDFLAGS) $(INTL_LFLAGS) $(CAM_LFLAGS) $(EFENCE_LFLAGS) $(MUDFLAP_LFLAGS)
|
||||
|
||||
LIBS = $(INTL_LIBS) $(CAM_LIBS) $(GTK_LIBS) $(EFENCE_LIBS) -lm
|
||||
LIBS = $(INTL_LIBS) $(CAM_LIBS) $(GTK_LIBS) $(EFENCE_LIBS) $(MUDFLAP_LIBS) -lm
|
||||
|
||||
CFILES = $(CFG_CFILES)
|
||||
OFILES = $(CFG_OFILES)
|
||||
@@ -64,11 +69,11 @@ OFILES = $(CFG_OFILES)
|
||||
|
||||
.PHONY : all help show locale time-stamp
|
||||
|
||||
.c.o:
|
||||
@echo "Compiling:" $*.c
|
||||
@$(CC) $(COPTS) -c $*.c
|
||||
${BUILDTMP}/%.o : %.c
|
||||
@echo "Compiling:" $?
|
||||
@$(CC) $(COPTS) -c $? -o $@
|
||||
|
||||
all: time-stamp dvdisaster images
|
||||
all: time-stamp dvdisaster
|
||||
|
||||
# Building the dvdisaster binary
|
||||
|
||||
@@ -76,17 +81,8 @@ time-stamp:
|
||||
@$(SRCDIR)/scripts/time-stamper.bash $(SRCDIR)/build.h
|
||||
|
||||
dvdisaster: inlined-icons.h $(OFILES)
|
||||
@if test $(CFG_SYS_OPTIONS) == -DSYS_MINGW; \
|
||||
then echo "Linking : dvdisaster-win, dvdisaster"; \
|
||||
windres -v winres.rc -O coff -o winres.o >/dev/null ; \
|
||||
$(CC) $(COPTS) -c dvdisaster.c ; \
|
||||
$(CC) $(LOPTS) $(OFILES) winres.o $(LIBS) -lole32 -mwindows -o dvdisaster-win; \
|
||||
$(CC) $(COPTS) -DWIN_CONSOLE -c dvdisaster.c ; \
|
||||
$(CC) $(LOPTS) $(OFILES) $(LIBS) -lole32 -o dvdisaster; \
|
||||
if ! test -e signature; then dvdisaster --debug --sign; fi; \
|
||||
else echo "Linking : dvdisaster"; \
|
||||
$(CC) $(LOPTS) $(OFILES) $(LIBS) -o dvdisaster; \
|
||||
fi
|
||||
@echo "Linking : dvdisaster"
|
||||
@$(CC) $(LOPTS) $(OFILES) $(LIBS) -o dvdisaster
|
||||
@if test -e locale/de/LC_MESSAGES/dvdisaster.mo \
|
||||
|| echo $(WITH_OPTIONS) | grep "NLS_NO" >/dev/null; \
|
||||
then echo "not touching locale"; \
|
||||
@@ -101,8 +97,14 @@ inlined-icons.h: icons/read.png icons/create.png icons/scan.png icons/fix.png ic
|
||||
@gdk-pixbuf-csource --raw --name=dvdisaster_verify icons/verify.png >>inlined-icons.h
|
||||
@gdk-pixbuf-csource --raw --name=dvdisaster_open_ecc icons/open-ecc.png >>inlined-icons.h
|
||||
@gdk-pixbuf-csource --raw --name=dvdisaster_open_img icons/open-img.png >>inlined-icons.h
|
||||
@gdk-pixbuf-csource --raw --name=dvdisaster_cd icons/cd.png >>inlined-icons.h
|
||||
@gdk-pixbuf-csource --raw --name=dvdisaster_gtk_help icons/gtk-help.png >>inlined-icons.h
|
||||
@gdk-pixbuf-csource --raw --name=dvdisaster_gtk_index icons/gtk-index.png >>inlined-icons.h
|
||||
@gdk-pixbuf-csource --raw --name=dvdisaster_gtk_preferences icons/gtk-preferences.png >>inlined-icons.h
|
||||
@gdk-pixbuf-csource --raw --name=dvdisaster_gtk_quit icons/gtk-quit.png >>inlined-icons.h
|
||||
@gdk-pixbuf-csource --raw --name=dvdisaster_gtk_stop icons/gtk-stop.png >>inlined-icons.h
|
||||
|
||||
help-dialogs.o: help-dialogs.c simple-md5sum
|
||||
$(BUILDTMP)/help-dialogs.o: help-dialogs.c simple-md5sum
|
||||
@if test -e fingerprints.md5; \
|
||||
then if test -e help-dialogs.h; then rm help-dialogs.h; fi; \
|
||||
mv inlined-icons.h inlined-icons.saved; \
|
||||
@@ -118,122 +120,37 @@ help-dialogs.o: help-dialogs.c simple-md5sum
|
||||
rm tmp.md5 tmp2.md5; \
|
||||
else echo "#define MODIFIED_SOURCE 1" >> help-dialogs.h; \
|
||||
fi
|
||||
@echo "Compiling:" $*.c
|
||||
@$(CC) $(COPTS) -c $*.c
|
||||
@echo "Compiling:" help-dialogs.c
|
||||
@$(CC) $(COPTS) -c help-dialogs.c -o $(BUILDTMP)/help-dialogs.o
|
||||
|
||||
rs-encoder-sse2.o: rs-encoder-sse2.c
|
||||
@echo "Compiling:" $*.c
|
||||
@$(CC) $(SSE2_OPTIONS) $(COPTS) -c $*.c
|
||||
$(BUILDTMP)/rs-encoder-sse2.o: rs-encoder-sse2.c
|
||||
@echo "Compiling:" rs-encoder-sse2.c
|
||||
@$(CC) $(SSE2_OPTIONS) $(COPTS) -c rs-encoder-sse2.c -o $(BUILDTMP)/rs-encoder-sse2.o
|
||||
|
||||
$(BUILDTMP)/rs-encoder-altivec.o: rs-encoder-altivec.c
|
||||
@echo "Compiling:" rs-encoder-altivec.c
|
||||
@$(CC) $(ALTIVEC_OPTIONS) $(COPTS) -c rs-encoder-altivec.c -o $(BUILDTMP)/rs-encoder-altivec.o
|
||||
|
||||
locale:
|
||||
@$(MAKE) --no-print-directory -C locale
|
||||
|
||||
untranslated:
|
||||
@$(MAKE) --no-print-directory -C locale check-untranslated
|
||||
|
||||
simple-md5sum: md5.c
|
||||
@$(CC) $(COPTS) -DSIMPLE_MD5SUM md5.c -o simple-md5sum
|
||||
@$(CC) $(COPTS) $(MUDFLAP_CFLAGS) -DSIMPLE_MD5SUM md5.c $(MUDFLAP_LFLAGS) $(MUDFLAP_LIBS) -o simple-md5sum
|
||||
|
||||
# Stuff needed to generate or prepare the documentation
|
||||
# TAG: online-doc
|
||||
version.tex:
|
||||
@echo "\\newcommand{\\projectversion}{$(VERSION)}" >$(SRCDIR)/documentation/config/version.tex
|
||||
|
||||
.PHONY : images pack-images lock-images mount-php html localhtml thumbnails thumbails-lazy
|
||||
manual: version.tex
|
||||
@echo "Producing user manual... "
|
||||
@$(MAKE) --no-print-directory -C documentation/user-manual manual.pdf
|
||||
|
||||
documentation/images/email.png:
|
||||
@if test -e THESE_ARE_THE_DEVEL_SOURCES; then \
|
||||
echo "not touching images"; \
|
||||
else \
|
||||
$(MAKE) --no-print-directory -C tools; \
|
||||
echo -n "Unpacking images (may take a while) ... "; \
|
||||
cd $(SRCDIR)/documentation/images; \
|
||||
$(SRCDIR)/tools/pngpack -u ../images-common.pngpack >../pngpack.log; \
|
||||
echo -n "common "; \
|
||||
for i in $(DOC_LOCALES); do \
|
||||
(cd $(SRCDIR)/documentation/$$i/images; \
|
||||
$(SRCDIR)/tools/pngpack -u ../../images-$$i.pngpack -t160,../thumbnails >>../../pngpack.log 2>&1); \
|
||||
echo -n "$$i "; \
|
||||
done; \
|
||||
echo "- done"; \
|
||||
fi
|
||||
manualclean:
|
||||
@echo "Removing temporary user manual files... "
|
||||
@$(MAKE) --no-print-directory -C documentation/user-manual clean
|
||||
|
||||
images: documentation/images/email.png
|
||||
|
||||
lock-images:
|
||||
@touch documentation/MAKE_SRCDIST
|
||||
|
||||
|
||||
pack-images: tools/pngpack
|
||||
@echo -n "Packing images (may take a while) ... "
|
||||
@cd documentation/images; $(SRCDIR)/tools/pngpack -p ../images-common.pngpack *.png >../pngpack.log;
|
||||
@for i in $(DOC_LOCALES); do \
|
||||
(cd documentation/$$i/images; \
|
||||
$(SRCDIR)/tools/pngpack -p ../../images-$${i}.pngpack *.png >>../../pngpack.log); \
|
||||
echo -n "$$i "; \
|
||||
done
|
||||
@echo "- done"
|
||||
|
||||
tools/pngpack: tools/pngpack.c
|
||||
@$(MAKE) --no-print-directory -C tools
|
||||
|
||||
thumbnails: pack-images
|
||||
@echo -n "unpacking thumbnails ... "
|
||||
@for i in $(DOC_LOCALES); do \
|
||||
mkdir $(SRCDIR)/documentation/temp; \
|
||||
if ! test -e $(SRCDIR)/documentation/$$i/thumbnails; then mkdir $(SRCDIR)/documentation/$$i/thumbnails; fi; \
|
||||
(cd documentation/temp; \
|
||||
$(SRCDIR)/tools/pngpack -u ../images-$${i}.pngpack *.png -t160,../$$i/thumbnails >>../pngpack.log); \
|
||||
echo -n "$$i "; \
|
||||
rm -rf $(SRCDIR)/documentation/temp; \
|
||||
done
|
||||
@echo "- done"
|
||||
|
||||
version.php:
|
||||
@echo "<?php" >$(SRCDIR)/documentation/include/version.php
|
||||
@echo "\$$version=\"$(VERSION)\";" >>$(SRCDIR)/documentation/include/version.php
|
||||
@echo "\$$pkgname=\"$(PKGNAME)\";" >>$(SRCDIR)/documentation/include/version.php
|
||||
@echo "\$$cooked_version=\""$(CFG_FULL_VERSION)"\";" >>$(SRCDIR)/documentation/include/version.php
|
||||
@if test -e help-dialogs.h && grep UNMODIFIED help-dialogs.h >/dev/null; \
|
||||
then echo "\$$modified_source=0;" >>$(SRCDIR)/documentation/include/version.php; \
|
||||
else echo "\$$modified_source=1;" >>$(SRCDIR)/documentation/include/version.php; \
|
||||
fi
|
||||
@echo "\$$mode=\"www\";" >>$(SRCDIR)/documentation/include/version.php
|
||||
@echo "?>" >>$(SRCDIR)/documentation/include/version.php
|
||||
|
||||
mount-php:
|
||||
@if ! test -e $(PHPMOUNTDIR)/dvdisaster.de.1; then\
|
||||
echo "* In order to create the *.html documentation from the PHP templates";\
|
||||
echo "* we need to bind mount the documentation under your local Web server";\
|
||||
echo "* HTML document directory (as specified by configure --phpmountdir).";\
|
||||
echo "* You need sudo priviledges to execute the command below:";\
|
||||
echo ;\
|
||||
fi
|
||||
if ! test -e $(PHPMOUNTDIR)/dvdisaster.de.1; then\
|
||||
if ! test -e $(PHPMOUNTDIR); then sudo mkdir -p $(PHPMOUNTDIR); fi;\
|
||||
sudo mount -o bind $(SRCDIR)/documentation $(PHPMOUNTDIR) ;\
|
||||
fi
|
||||
make version.php
|
||||
make thumbnails
|
||||
|
||||
html: mount-php version.php
|
||||
@echo -n "Producing html documentation... "
|
||||
@if ! test -e $(SRCDIR)/documentation/wget-tmp; then \
|
||||
mkdir $(SRCDIR)/documentation/wget-tmp; \
|
||||
fi
|
||||
@cd $(SRCDIR)/documentation/wget-tmp; \
|
||||
wget -r -p -l 0 -nH --cut-dirs=1 --html-extension --convert-links -q http://localhost/dvdisaster/index.html
|
||||
@$(SRCDIR)/scripts/convert-wgetted.bash $(SRCDIR)
|
||||
@rm -rf $(SRCDIR)/documentation/wget-tmp
|
||||
@echo "done."
|
||||
|
||||
localhtml: mount-php version.php
|
||||
@sed "s/www/local/" <$(SRCDIR)/documentation/include/version.php >$(SRCDIR)/documentation/include/version1.php
|
||||
@mv $(SRCDIR)/documentation/include/version1.php $(SRCDIR)/documentation/include/version.php
|
||||
@echo -n "Producing html documentation... "
|
||||
@if ! test -e $(SRCDIR)/documentation/wget-tmp; then \
|
||||
mkdir $(SRCDIR)/documentation/wget-tmp; \
|
||||
fi
|
||||
@cd $(SRCDIR)/documentation/wget-tmp; \
|
||||
wget -r -p -l 0 -nH --cut-dirs=1 --html-extension --convert-links -q http://localhost/dvdisaster/index.html
|
||||
@$(SRCDIR)/scripts/convert-wgetted.bash $(SRCDIR)
|
||||
@rm -rf $(SRCDIR)/documentation/wget-tmp
|
||||
@echo "done."
|
||||
|
||||
# Some usage info
|
||||
|
||||
@@ -245,12 +162,11 @@ help:
|
||||
@echo "uninstall - uninstall dvdisaster"
|
||||
@echo
|
||||
@echo "Documentation related:"
|
||||
@echo "mount-php - mount documentation sub directory"
|
||||
@echo "www-images- create package of .php and .png files"
|
||||
@echo "www - create package of .php files only"
|
||||
@echo "html - create html version of internet documentation"
|
||||
@echo "localhtml - create html version for local documentation"
|
||||
@echo "thumbnails- unconditionally recreate all thumbnails"
|
||||
@echo "manual - create the user manual (requires LaTeX)"
|
||||
@echo
|
||||
@echo "Locale related:"
|
||||
@echo "locale - update locale files"
|
||||
@echo "untranslated - show untranslated German strings"
|
||||
@echo
|
||||
@echo "Package maintenance:"
|
||||
@echo "clean - remove all easily rebuildable files"
|
||||
@@ -258,8 +174,6 @@ help:
|
||||
@echo "archclean - remove all files which are rebuildable in an development setup"
|
||||
@echo "arch - distclean and tar the source directory (dirty)"
|
||||
@echo "srcdist - produce the source distribution tarball (polished)"
|
||||
@echo "macdist - produce application bundle for Mac OS X"
|
||||
@echo "windist - produce the binary setup.exe for Windows"
|
||||
|
||||
# Build configuration printing
|
||||
|
||||
@@ -277,8 +191,8 @@ show:
|
||||
@echo "LOCALEDIR = " $(LOCALEDIR)
|
||||
@echo "DOCDIR = " $(DOCDIR)
|
||||
@echo "DOCSUBDIR = " $(DOCSUBDIR)
|
||||
@echo "PHPMOUNTDIR = " $(PHPMOUNTDIR)
|
||||
@echo "BUILDROOT = " $(BUILDROOT)
|
||||
@echo "BUILDTMP = " $(BUILDTMP)
|
||||
@echo
|
||||
@echo "INTL_INCL = " $(INTL_INCL)
|
||||
@echo "INTL_LFLAGS = " $(INTL_LFLAGS)
|
||||
@@ -290,11 +204,12 @@ show:
|
||||
@echo "EFENCE_LIBS = " $(EFENCE_LIBS)
|
||||
@echo
|
||||
@echo "SYS_OPTIONS = " $(SYS_OPTIONS)
|
||||
@echo "EXE_SUFFIX = " $(EXE_SUFFIX)
|
||||
@echo "SYS_NAME = " $(SYS_NAME)
|
||||
@echo "HAVE_OPTIONS = " $(HAVE_OPTIONS)
|
||||
@echo "WITH_OPTIONS = " $(WITH_OPTIONS)
|
||||
@echo "OTHER_OPTIONS= " $(OTHER_OPTIONS)
|
||||
@echo "SSE2_OPTIONS = " $(SSE2_OPTIONS)
|
||||
@echo "ALTIVEC_OPTIONS= " $(ALTIVEC_OPTIONS)
|
||||
@echo
|
||||
@echo "CFLAGS = " $(CFLAGS)
|
||||
@echo "COPTS = " $(COPTS)
|
||||
@@ -306,50 +221,32 @@ show:
|
||||
######################################################################
|
||||
|
||||
.PHONY : install uninstall clean distclean arch
|
||||
.PHONY : www www-images
|
||||
.PHONY : srcdist macdist windist
|
||||
.PHONY : srcdist
|
||||
|
||||
install: dvdisaster images
|
||||
install: dvdisaster manual
|
||||
@echo "Installing package..."
|
||||
install -d $(BUILDROOT)$(BINDIR)
|
||||
install dvdisaster$(EXE_SUFFIX) $(BUILDROOT)$(BINDIR)
|
||||
install dvdisaster $(BUILDROOT)$(BINDIR)
|
||||
install -d $(BUILDROOT)$(DOCSUBDIR)
|
||||
install -m 644 CHANGELOG $(BUILDROOT)$(DOCSUBDIR)
|
||||
install -m 644 COPYING $(BUILDROOT)$(DOCSUBDIR)
|
||||
install -m 644 CREDITS* $(BUILDROOT)$(DOCSUBDIR)
|
||||
install -m 644 README.MODIFYING $(BUILDROOT)$(DOCSUBDIR)
|
||||
install -m 644 TODO $(BUILDROOT)$(DOCSUBDIR)
|
||||
for i in $(DOC_LOCALES); do \
|
||||
install -d $(BUILDROOT)$(DOCSUBDIR)/$$i; \
|
||||
(cd documentation; install -m 644 $$i/*.html $(BUILDROOT)$(DOCSUBDIR)/$$i); \
|
||||
install -d $(BUILDROOT)$(DOCSUBDIR)/$$i/images; \
|
||||
(cd documentation/$$i; install -m 644 images/*.png $(BUILDROOT)$(DOCSUBDIR)/$$i/images); \
|
||||
install -d $(BUILDROOT)$(DOCSUBDIR)/$$i/thumbnails; \
|
||||
(cd documentation/$$i; install -m 644 thumbnails/*.png $(BUILDROOT)$(DOCSUBDIR)/$$i/thumbnails); \
|
||||
done
|
||||
install -d $(BUILDROOT)$(DOCSUBDIR)/images
|
||||
cd documentation; install -m 644 images/*.png $(BUILDROOT)$(DOCSUBDIR)/images
|
||||
# cd documentation; install -m 644 images/*.jpg $(BUILDROOT)$(DOCSUBDIR)/images
|
||||
install -d $(BUILDROOT)$(DOCSUBDIR)/include
|
||||
cd documentation; install -m 644 include/*.css $(BUILDROOT)$(DOCSUBDIR)/include
|
||||
install -d $(BUILDROOT)$(DOCSUBDIR)
|
||||
(cd documentation/user-manual; install -m 644 manual.pdf $(BUILDROOT)$(DOCSUBDIR))
|
||||
install -d $(BUILDROOT)$(MANDIR)/man1
|
||||
install -d $(BUILDROOT)$(MANDIR)/cs/man1
|
||||
install -d $(BUILDROOT)$(MANDIR)/de/man1
|
||||
install -d $(BUILDROOT)$(MANDIR)/it/man1
|
||||
cd documentation; \
|
||||
ESCAPED_DOCSUBDIR=`echo $(DOCSUBDIR) | sed -e 's/\//\\\\\//g'`; \
|
||||
sed "s/%docdir%/$$ESCAPED_DOCSUBDIR\/en/" <dvdisaster.en.1 >dvdisaster.updated; \
|
||||
sed "s/%docdir%/$$ESCAPED_DOCSUBDIR\/html/" <dvdisaster.en.1 >dvdisaster.updated; \
|
||||
install -m 644 dvdisaster.updated $(BUILDROOT)$(MANDIR)/man1/dvdisaster.1; \
|
||||
sed "s/%docdir%/$$ESCAPED_DOCSUBDIR\/cs/" <dvdisaster.cs.1 >dvdisaster.updated; \
|
||||
install -m 644 dvdisaster.updated $(BUILDROOT)$(MANDIR)/cs/man1/dvdisaster.1; \
|
||||
sed "s/%docdir%/$$ESCAPED_DOCSUBDIR\/de/" <dvdisaster.de.1 >dvdisaster.updated; \
|
||||
sed "s/%docdir%/$$ESCAPED_DOCSUBDIR\/html/" <dvdisaster.de.1 >dvdisaster.updated; \
|
||||
install -m 644 dvdisaster.updated $(BUILDROOT)$(MANDIR)/de/man1/dvdisaster.1; \
|
||||
sed "s/%docdir%/$$ESCAPED_DOCSUBDIR\/en/" <dvdisaster.it.1 >dvdisaster.updated; \
|
||||
install -m 644 dvdisaster.updated $(BUILDROOT)$(MANDIR)/it/man1/dvdisaster.1; \
|
||||
rm dvdisaster.updated
|
||||
if echo $(WITH_OPTIONS) | grep "NLS_YES" >/dev/null; then \
|
||||
cd locale; \
|
||||
for i in ??; do\
|
||||
for i in ?? ??_??; do\
|
||||
install -d $(BUILDROOT)$(LOCALEDIR)/$$i/LC_MESSAGES; \
|
||||
install -m 644 $$i/LC_MESSAGES/dvdisaster.mo $(BUILDROOT)$(LOCALEDIR)/$$i/LC_MESSAGES; \
|
||||
done \
|
||||
@@ -357,20 +254,20 @@ install: dvdisaster images
|
||||
@echo "# dvdisaster uninstaller script" > $(BUILDROOT)$(BINDIR)/dvdisaster-uninstall.sh
|
||||
@echo "# Usage: sh dvdisaster-uninstall.sh" >> $(BUILDROOT)$(BINDIR)/dvdisaster-uninstall.sh
|
||||
@echo >> $(BUILDROOT)$(BINDIR)/dvdisaster-uninstall.sh
|
||||
@echo "rm -f $(BINDIR)/dvdisaster $(BINDIR)/dvdisaster.exe $(BINDIR)/dvdisaster-win.exe $(BINDIR)/dvdisaster-uninstall.sh" >> $(BUILDROOT)$(BINDIR)/dvdisaster-uninstall.sh
|
||||
@echo "rm -f $(BINDIR)/dvdisaster $(BINDIR)/dvdisaster-uninstall.sh" >> $(BUILDROOT)$(BINDIR)/dvdisaster-uninstall.sh
|
||||
@echo "rm -rf $(DOCSUBDIR)" >> $(BUILDROOT)$(BINDIR)/dvdisaster-uninstall.sh
|
||||
@echo "rm -f $(MANDIR)/man1/dvdisaster.1" >> $(BUILDROOT)$(BINDIR)/dvdisaster-uninstall.sh
|
||||
@for i in $(PO_LOCALES); do \
|
||||
echo "rm $(LOCALEDIR)/$$i/LC_MESSAGES/dvdisaster.mo" >> $(BUILDROOT)$(BINDIR)/dvdisaster-uninstall.sh ; \
|
||||
done
|
||||
@echo "rm -f $(MANDIR)/man1/dvdisaster.1" >> $(BUILDROOT)$(BINDIR)/dvdisaster-uninstall.sh
|
||||
@for i in $(MAN_LOCALES); do \
|
||||
echo "rm $(MANDIR)/$$i/man1/dvdisaster.1" >> $(BUILDROOT)$(BINDIR)/dvdisaster-uninstall.sh ; \
|
||||
done
|
||||
@echo "echo \"dvdisaster has been uninstalled.\"" >> $(BUILDROOT)$(BINDIR)/dvdisaster-uninstall.sh
|
||||
|
||||
|
||||
uninstall:
|
||||
@echo "Uninstalling package..."
|
||||
rm -f $(BINDIR)/dvdisaster $(BINDIR)/dvdisaster.exe $(BINDIR)/dvdisaster-win.exe $(BINDIR)/dvdisaster-uninstall.sh
|
||||
rm -f $(BINDIR)/dvdisaster $(BINDIR)/dvdisaster-uninstall.sh
|
||||
rm -rf $(DOCSUBDIR)
|
||||
rm -f $(MANDIR)/man1/dvdisaster.1
|
||||
for i in $(PO_LOCALES); do \
|
||||
@@ -382,127 +279,55 @@ uninstall:
|
||||
|
||||
archclean: distclean
|
||||
@echo "Removing rebuildable documentation parts"
|
||||
@for i in $(DOC_LOCALES); do \
|
||||
rm -f documentation/$$i/*.html; \
|
||||
rm -f documentation/$$i/thumbnails/*.png; \
|
||||
done
|
||||
@$(MAKE) --no-print-directory -C $(SRCDIR)/documentation/codec-specs archclean
|
||||
@$(MAKE) --no-print-directory -C $(SRCDIR)/documentation/user-manual archclean
|
||||
|
||||
distclean: clean
|
||||
@echo "Removing configuration files"
|
||||
@rm -f configure.log Makefile.config GNUmakefile locale/Makefile
|
||||
@for i in locale/??; do rm -rf $$i; done
|
||||
@for i in locale/?? locale/??_??; do rm -rf $$i; done
|
||||
@echo "all:" >>GNUmakefile
|
||||
@echo -e "\t@echo" >>GNUmakefile
|
||||
@echo -e "\t@echo \"Please create a Makefile by entering \\\"bash configure\\\" first\"" >>GNUmakefile
|
||||
@echo -e "\t@echo" >>GNUmakefile
|
||||
@if test -e tools/Makefile.config; then $(MAKE) --no-print-directory -C tools distclean; fi
|
||||
|
||||
# There might be a not executable simple-md5sum from a compiler run
|
||||
# under a different architecture, so make sure we have a working binary
|
||||
# in the clean target.
|
||||
|
||||
clean:
|
||||
@echo "Removing rebuildable files"
|
||||
@rm -rf *.o medium.* dvdisaster simple-md5sum *.exe *.zip .dvdisaster core core.* *.core *.stackdump
|
||||
@rm -rf *.o $(BUILDTMP)/*.o medium.* abbild.* dvdisaster .dvdisaster core core.* *.core
|
||||
@rm -f inlined-icons.h help-dialogs.h
|
||||
@rm -f wininst/installer.iss wininst/signature
|
||||
@if test -e win-build-dir; then rm -rf win-build-dir; fi
|
||||
@rm -rf macinst/.dvdisaster.app macinst/dvdisaster.app macinst/dvdisaster.app.zip macinst/dvdisaster.bundle
|
||||
@find . -name \*\~ -print | xargs rm -f;
|
||||
@find . -name \*.mo -print | xargs rm -f;
|
||||
@find . -name \#\*\# -print | xargs rm -f;
|
||||
@if test -e THESE_ARE_THE_DEVEL_SOURCES && ! test -e documentation/MAKE_SRCDIST; then rm -f documentation/images-*.pngpack documentation/thumbnails-*.pngpack; fi
|
||||
@rm -f documentation/pngpack.log
|
||||
@rm -f documentation/include/version.php
|
||||
@rm -rf documentation/wget-tmp
|
||||
@if test -e tools/Makefile.config; then $(MAKE) --no-print-directory -C tools clean; fi
|
||||
@rm -f documentation/config/version.tex
|
||||
@if test -e $(PKGNAME); then rm -rf $(PKGNAME); fi
|
||||
@if test -e ~/.dvdisaster-original-author; then \
|
||||
mv build.h build.saved ;\
|
||||
md5sum -b *.h *.c >fingerprints.md5 ;\
|
||||
if ! test -x simple-md5sum || ! ./simple-md5sum >/dev/null 2>&1; then \
|
||||
rm -f simple-md5sum; \
|
||||
$(MAKE) --no-print-directory simple-md5sum; \
|
||||
echo "[simple-md5sum (re-)built]"; \
|
||||
fi; \
|
||||
./simple-md5sum -b *.h *.c >fingerprints.md5 ;\
|
||||
mv build.saved build.h; \
|
||||
fi
|
||||
@if test -e $(SRCDIR)/papers; then \
|
||||
$(MAKE) --no-print-directory -C papers clean; \
|
||||
fi
|
||||
@rm -f simple-md5sum
|
||||
@$(MAKE) --no-print-directory -C $(SRCDIR)/documentation/codec-specs clean;
|
||||
@$(MAKE) --no-print-directory -C $(SRCDIR)/documentation/user-manual clean;
|
||||
|
||||
BUILD=`grep BUILD $(SRCDIR)/build.h | cut -d ' ' -f 3`
|
||||
arch: archclean time-stamp
|
||||
@cd .. ; tar -c -z -f $(PKGNAME)-$(BUILD).tgz $(PKGNAME)
|
||||
|
||||
# TAG: online-docs
|
||||
www: version.php
|
||||
@cd documentation ; \
|
||||
tar cjf ../../www.tar.bz2 pubkey.asc index.html include/dvdisaster.css include/*.php de/*.php en/*.php ru/*.php
|
||||
|
||||
www-images: thumbnails version.php
|
||||
@cd documentation ; \
|
||||
tar cjf ../../www.tar.bz2 pubkey.asc index.html include/dvdisaster.css include/*.php de/*.php en/*.php ru/*.php images/*.png de/images/*.png de/thumbnails/*.png en/images/*.png en/thumbnails/*.png ru/images/*.png ru/thumbnails/*.png
|
||||
@cd .. ; tar -c -z -f $(TAR_PREFIX)/$(PKGNAME)-$(BUILD).tgz $(PKGNAME)
|
||||
|
||||
INSTALL: documentation/install.template
|
||||
@sed "s/@@PKGNAME/$(PKGNAME)/" <documentation/install.template >INSTALL
|
||||
|
||||
srcdist: INSTALL localhtml lock-images clean distclean
|
||||
@rm -f documentation/MAKE_SRCDIST
|
||||
@cd .. ; tar -c -j -X $(PKGNAME)/NODIST -f $(PKGNAME).tar.bz2 $(PKGNAME)
|
||||
@cd .. ; gpg --default-key 091ad320 --detach-sign --output $(PKGNAME).tar.bz2.gpg --armor $(PKGNAME).tar.bz2
|
||||
@rm -f documentation/images-*.pngpack
|
||||
srcdist: INSTALL distclean manual manualclean
|
||||
@cd .. ; tar -c -j -X $(PKGNAME)/NODIST -f $(TAR_PREFIX)/$(PKGNAME).tar.bz2 $(PKGNAME)
|
||||
@cd .. ; gpg --homedir .gnupg --default-key 758BCC23 --detach-sign --output $(TAR_PREFIX)/$(PKGNAME).tar.bz2.gpg --armor $(TAR_PREFIX)/$(PKGNAME).tar.bz2
|
||||
|
||||
prepare-dist:
|
||||
@if test -e win-build-dir; then rm -rf win-build-dir; fi
|
||||
@mkdir win-build-dir
|
||||
@mkdir win-build-dir/documentation
|
||||
@cp -r CHANGELOG COPYING CREDITS* README.MODIFYING TODO dvdisaster.exe dvdisaster-win.exe win-build-dir
|
||||
@head --bytes=20 dvdisaster.exe >win-build-dir/signature
|
||||
@cp wininst/*.bmp win-build-dir
|
||||
@cp documentation/pubkey.asc win-build-dir/documentation
|
||||
@for i in $(DOC_LOCALES); do \
|
||||
mkdir win-build-dir/documentation/$$i; \
|
||||
cp documentation/$$i/*.html win-build-dir/documentation/$$i; \
|
||||
done
|
||||
@mkdir win-build-dir/documentation/images
|
||||
@mkdir win-build-dir/documentation/include
|
||||
@cp documentation/include/*.css win-build-dir/documentation/include
|
||||
@cp tools/pngpack.exe win-build-dir/documentation
|
||||
@mv documentation/images-*.pngpack win-build-dir/documentation
|
||||
@cp $(GTK_BINDIR)/libglib*.dll win-build-dir
|
||||
@cp $(GTK_BINDIR)/iconv.dll win-build-dir
|
||||
@cp $(GTK_BINDIR)/intl.dll win-build-dir
|
||||
@cp $(GTK_BINDIR)/libatk*.dll win-build-dir
|
||||
@cp $(GTK_BINDIR)/libpango*.dll win-build-dir
|
||||
@cp $(GTK_BINDIR)/libgmodule*.dll win-build-dir
|
||||
@cp $(GTK_BINDIR)/libgobject*.dll win-build-dir
|
||||
@cp $(GTK_BINDIR)/libgthread*.dll win-build-dir
|
||||
@cp $(GTK_BINDIR)/libgdk_pixbuf*.dll win-build-dir
|
||||
@cp $(GTK_BINDIR)/libgdk-win*.dll win-build-dir
|
||||
@cp $(GTK_BINDIR)/libgtk-win*.dll win-build-dir
|
||||
@mkdir win-build-dir/locale
|
||||
@cp -r locale/?? win-build-dir/locale
|
||||
|
||||
@mkdir -p win-build-dir/etc/gtk-2.0
|
||||
@echo "# GdkPixbuf Image Loader Modules file" > win-build-dir/etc/gtk-2.0/gdk-pixbuf.loaders
|
||||
|
||||
@mkdir -p win-build-dir/etc/pango
|
||||
@cp $(GTK_BINDIR)/../etc/pango/pango.aliases win-build-dir/etc/pango
|
||||
@echo "# Pango Modules file" > win-build-dir/etc/pango/pango.modules
|
||||
@echo "#" >> win-build-dir/etc/pango/pango.modules
|
||||
@echo "pango-basic-win32.dll BasicScriptEngineWin32 PangoEngineShape PangoRenderWin32 common:" >> win-build-dir/etc/pango/pango.modules
|
||||
@cp $(GTK_BINDIR)/../lib/pango/1.?.?/modules/pango-basic-win32.dll win-build-dir
|
||||
|
||||
@mkdir -p win-build-dir/lib/locale
|
||||
@for i in $(PO_LOCALES); do \
|
||||
mkdir -p win-build-dir/lib/locale/$$i/LC_MESSAGES; \
|
||||
cp $(GTK_BINDIR)/../lib/locale/$$i/LC_MESSAGES/atk*.mo win-build-dir/lib/locale/$$i/LC_MESSAGES; \
|
||||
cp $(GTK_BINDIR)/../lib/locale/$$i/LC_MESSAGES/glib*.mo win-build-dir/lib/locale/$$i/LC_MESSAGES; \
|
||||
cp $(GTK_BINDIR)/../lib/locale/$$i/LC_MESSAGES/gtk*.mo win-build-dir/lib/locale/$$i/LC_MESSAGES; \
|
||||
done
|
||||
|
||||
windist: dvdisaster pack-images prepare-dist
|
||||
@sed 's/dvdisaster-%version%/$(PKGNAME)/' <wininst/installer.template >wininst/installer.iss
|
||||
@iscc wininst/installer.iss
|
||||
|
||||
macdist:
|
||||
@if test $(JHBUILD_PREFIX)x == "x"; then \
|
||||
echo "Building the app bundle only works in a jhbuild shell."; \
|
||||
exit 1; \
|
||||
fi
|
||||
@rm -rf macinst/dvdisaster.app macinst/.dvdisaster.app
|
||||
@sed 's!%srcdir%!$(SRCDIR)!' <macinst/dvdisaster.bundle.template >macinst/dvdisaster.bundle
|
||||
@ige-mac-bundler macinst/dvdisaster.bundle
|
||||
@(cd macinst; zip -r dvdisaster.app.zip dvdisaster.app)
|
||||
|
||||
186
INSTALL
186
INSTALL
@@ -9,13 +9,10 @@ Contents
|
||||
1.2 Gtk+ and localozation support
|
||||
|
||||
2. Operating system specific issues
|
||||
2.1 Windows
|
||||
2.1.1 Getting the GNU environment for Windows
|
||||
2.2 Mac OS X / Darwin
|
||||
2.3 FreeBSD
|
||||
2.3.1 Loading the atapicam kernel module by hand
|
||||
2.3.2 (Optionally) loading the atapicam kernel module permanently
|
||||
2.3.3 (Optionally) recompiling the kernel
|
||||
2.1 FreeBSD
|
||||
2.1.1 Required packages
|
||||
2.2 NetBSD
|
||||
2.2.1 Required packages
|
||||
|
||||
3. Compiling the source code
|
||||
3.1 Unpacking the source code archive
|
||||
@@ -26,7 +23,10 @@ Contents
|
||||
4.1 Installation of the program
|
||||
4.2 Removing an installation
|
||||
|
||||
5. Program documentation
|
||||
5 Running the program
|
||||
5.1 Program documentation
|
||||
5.2 FreeBSD hints
|
||||
5.3 NetBSD hints
|
||||
|
||||
=======================================================
|
||||
|
||||
@@ -38,100 +38,63 @@ Contents
|
||||
|
||||
dvdisaster requires the usual GNU development tools for compiling
|
||||
C programs. You must have gcc, GNU make, the bash shell and the
|
||||
GNU fileutils and textutils packages installed. Other versions
|
||||
of these tools will not work and patches for them will not be accepted.
|
||||
GNU fileutils and textutils packages installed.
|
||||
Using other compilers and tools is currently not tested,
|
||||
recommended or supported in any way. Patches for them will
|
||||
not be accepted.
|
||||
|
||||
FreeBSD, Linux and NetBSD typically come with suitable packages on
|
||||
their installation media. Sometimes these packages are not installed
|
||||
completely by default; you may need to install their development versions
|
||||
also. The additional packages are usually suffixed with "-devel" or "-dev".
|
||||
|
||||
See Section 3.2 for information on configuring the build process,
|
||||
and for specifying the compiler.
|
||||
|
||||
|
||||
1.2 Gtk+ and localization support
|
||||
---------------------------------
|
||||
|
||||
Depending on your operating system you will also need:
|
||||
|
||||
- The gettext library http://www.gnu.org/software/gettext/
|
||||
- The iconv library (only for Windows) http://www.gnu.org/software/libiconv/
|
||||
- The pkgconfig tool http://www.freedesktop.org/software/pkgconfig/releases
|
||||
- The GTK+ library version 2.2 or better, http://www.gtk.org
|
||||
including all auxiliary libraries.
|
||||
|
||||
Again, the freeware Unices should have suitable packages on their distribution media.
|
||||
Again, the supported Unices should have suitable packages on their distribution media.
|
||||
|
||||
|
||||
2. Operating system specific issues
|
||||
===================================
|
||||
|
||||
2.1 Windows
|
||||
2.1 FreeBSD
|
||||
-----------
|
||||
|
||||
2.1.1 Getting the GNU environment for Windows
|
||||
2.1.1 Required packages
|
||||
|
||||
For Windows the GNU tools are available in the MingW framework:
|
||||
See http://www.mingw.org.
|
||||
Building under Cygwin is not supported.
|
||||
For your convenience, building dvdisaster required
|
||||
the following packages under FreeBSD 10.1:
|
||||
|
||||
The Gtk+ project offers pre-compiled Windows versions of their libraries;
|
||||
see http://www.gimp.org/~tml/gimp/win32/downloads.html for details.
|
||||
You'll need both the normal and "-devel" versions of the libraries.
|
||||
# pkg install bash
|
||||
# pkg install gmake
|
||||
# pkg install gettext
|
||||
# pkg install gcc
|
||||
# pkg install pkgconf
|
||||
# pkg install gtk2
|
||||
|
||||
2.2 NetBSD
|
||||
----------
|
||||
|
||||
2.2 Mac OS X / Darwin
|
||||
---------------------
|
||||
2.2.1 Required packages
|
||||
|
||||
dvdisaster was ported by Julian Einwag to Darwin,
|
||||
the Unix foundation of Mac OS X.
|
||||
For your convenience, building dvdisaster required
|
||||
the following packages under NetBSD 9.0:
|
||||
|
||||
Currently dvdisaster needs to be built and run as an X11 application under Mac OS X;
|
||||
see http://developer.apple.com/opensource/tools/runningX11.html for more information.
|
||||
|
||||
An Aqua compatible version of the Gtk+ library is under development, but not
|
||||
yet stable. As soon as this changes, dvdisaster will be able to run under
|
||||
Mac OS X without using X11.
|
||||
|
||||
|
||||
2.3 FreeBSD
|
||||
-----------
|
||||
|
||||
2.3.1 Loading the atapicam kernel module by hand (tested on FreeBSD 7.1)
|
||||
|
||||
FreeBSD does not pre-install an uniform CD-ROM driver for SCSI and ATAPI drives
|
||||
(as is the case in Linux and Windows). Therefore dvdisaster can not
|
||||
use any ATAPI drives in an out-of-the-box FreeBSD installation.
|
||||
|
||||
To manually load the required kernel module, do:
|
||||
|
||||
root@freebsd# kldload atapicam
|
||||
|
||||
Use the follwing command to see if any CD/DVD/BD drives became
|
||||
available:
|
||||
|
||||
root@freebsd# camcontrol devlist
|
||||
<NAME OF YOUR DRIVE> at scbus1 target 0 lun 0 (pass0,cd0)
|
||||
|
||||
|
||||
2.3.2 (Optionally) loading the atapicam kernel module permanently
|
||||
|
||||
If the above step works you can load the kernel module at boot
|
||||
time by adding the line
|
||||
|
||||
atapicam_load="YES"
|
||||
|
||||
at the end of /boot/loader.conf.local
|
||||
|
||||
|
||||
|
||||
2.3.3 (Optionally) recompiling the kernel
|
||||
|
||||
If the atapicam kernel module is not available (check the contents
|
||||
of /boot/kernel) you will need to recompile the kernel with the following
|
||||
additional device line in the kernel configuration:
|
||||
|
||||
device atapicam
|
||||
|
||||
The devices ata, scbus, cd, and pass are also required,
|
||||
but are included by default in FreeBSD 6.0 and later.
|
||||
# pkg_add bash
|
||||
# pkg_add gmake
|
||||
# pkg_add pkg-config
|
||||
# pkg_add gtk2+
|
||||
|
||||
|
||||
3. Compiling the source code
|
||||
@@ -148,11 +111,11 @@ Please change into a directory which is writeable
|
||||
for you and unpack the source code archive:
|
||||
|
||||
user@host> cd /var/tmp
|
||||
user@host> tar xjf dvdisaster-0.72.rc2.tar.bz2
|
||||
user@host> tar xjf dvdisaster-0.79.6.tar.bz2
|
||||
|
||||
Then change into the newly created directory:
|
||||
|
||||
user@host> cd /var/tmp/dvdisaster-0.72.rc2
|
||||
user@host> cd /var/tmp/dvdisaster-0.79.6
|
||||
|
||||
3.2. Configuring the package
|
||||
----------------------------
|
||||
@@ -172,10 +135,21 @@ The "--help" option will also give information about some
|
||||
options which are useful if you plan to install the package
|
||||
to a certain location.
|
||||
|
||||
Please note that the ==buildroot=DIR option is mainly useful for
|
||||
Please note that the --buildroot=DIR option is mainly useful for
|
||||
package maintainers, but will mess up things when trying a direct
|
||||
install via "make install".
|
||||
|
||||
If your gcc compiler resides in an unusual place, specify it
|
||||
by setting the CC environment variable for the ./configure
|
||||
script. Example (may be helpful for FreeBSD):
|
||||
|
||||
CC=/usr/local/bin/gcc48 ./configure
|
||||
|
||||
Please note that changing CC at a later time, e.g. when doing
|
||||
the make step, has no effect.
|
||||
|
||||
After ./configure has been run, do a "make show" to review
|
||||
the settings obtained by the configuration.
|
||||
|
||||
3.3 Compiling the package
|
||||
-------------------------
|
||||
@@ -190,23 +164,17 @@ On some systems, GNU make must be invoked as "make".
|
||||
Invoke the program for a quick test:
|
||||
|
||||
user@linux> ./dvdisaster
|
||||
user@windows>./dvdisaster-win
|
||||
|
||||
After a short moment the main window should open an the program
|
||||
is ready for use. Working with the program from the current
|
||||
directory (e.g. without installation) is okay.
|
||||
|
||||
On windows two program version are provided as it is not possible
|
||||
to have the same binary operate in command line and window mode
|
||||
there. dvdisaster.exe is the command line version, while
|
||||
dvdisaster-win.exe provides the graphical user interface.
|
||||
|
||||
|
||||
4. Installation
|
||||
===============
|
||||
|
||||
4.1 Installation of the program
|
||||
===============================
|
||||
-------------------------------
|
||||
|
||||
To install the program and documentation permanently
|
||||
on your system, become root and do:
|
||||
@@ -219,7 +187,7 @@ Enter "bash configure --help" to get information on changing the installation
|
||||
paths.
|
||||
|
||||
4.2. Removing an installation
|
||||
=============================
|
||||
-----------------------------
|
||||
|
||||
During the installation process a shell script is created
|
||||
which can be used to remove dvdisaster from your system:
|
||||
@@ -231,17 +199,59 @@ please remove the directory you have created as described
|
||||
in section 3.1:
|
||||
|
||||
user@host> cd /var/tmp
|
||||
user@host> rm -rf dvdisaster-0.72.rc2
|
||||
user@host> rm -rf dvdisaster-0.79.6
|
||||
|
||||
5. Running the program
|
||||
======================
|
||||
|
||||
5. Program documentation
|
||||
========================
|
||||
5.1 Program documentation
|
||||
-------------------------
|
||||
|
||||
The online documentation is located in the
|
||||
sub directory documentation/en.
|
||||
sub directory documentation/manual.pdf
|
||||
You can also press the respective toolbar button
|
||||
in dvdisaster to view the online docs.
|
||||
|
||||
5.2 FreeBSD hints
|
||||
-----------------
|
||||
|
||||
Running as an unpriviledged user
|
||||
|
||||
If you want to run dvdisaster as an unpriviledged
|
||||
user (which is recommended), make sure that the
|
||||
respective user is member of the "operator" group
|
||||
and that he has read _and_ write permission on the
|
||||
optical drive, e.g. /dev/pass1.
|
||||
|
||||
Use camcontrol to find out which passthrough device
|
||||
is assigned to your drive:
|
||||
|
||||
root@freebsd# camcontrol devlist
|
||||
<NAME OF YOUR DRIVE> at scbus1 target 0 lun 0 (pass0,cd0)
|
||||
|
||||
|
||||
Avoid copy-on-write filesystems
|
||||
|
||||
dvdisaster assumes that ISO images are laid out
|
||||
sequentially on the hard disk, and that it can
|
||||
rewrite sectors in place. Therefore avoid
|
||||
processing images on ZFS volumes, as reading and
|
||||
recovering defective images may lead to serious
|
||||
fragmentation and performance hits.
|
||||
|
||||
|
||||
5.3 NetBSD hints
|
||||
----------------
|
||||
|
||||
Running as an unpriviledged user
|
||||
|
||||
If you want to run dvdisaster as an unpriviledged
|
||||
user (which is recommended), make sure that the
|
||||
respective user is member of the "operator" group
|
||||
and that he has read _and_ write permission on the
|
||||
optical drive, e.g. /dev/rcd0d.
|
||||
|
||||
|
||||
|
||||
Enjoy using dvdisaster!
|
||||
|
||||
|
||||
8
README
8
README
@@ -2,9 +2,7 @@ This directory tree contains dvdisaster,
|
||||
a tool providing additional ECC protection for optical media.
|
||||
|
||||
This version of dvdisaster supports the following platforms:
|
||||
Linux, FreeBSD, NetBSD on x86, PowerPC, Sparc;
|
||||
Mac OSX on x86 and PowerPC;
|
||||
Windows 98, ME, 2000, 2003, XP on x86 compatible hardware.
|
||||
Linux, FreeBSD, NetBSD on x86, PowerPC, and Sparc.
|
||||
|
||||
|
||||
Roadmap of contained files
|
||||
@@ -72,7 +70,3 @@ tools
|
||||
Auxiliary programs for the build and packaging process reside
|
||||
in "tools".
|
||||
|
||||
wininst
|
||||
Additional files needed for building the Windows distribution.
|
||||
|
||||
|
||||
|
||||
32
README.CVS
32
README.CVS
@@ -1,32 +0,0 @@
|
||||
Development releases of dvdisaster are made available
|
||||
via CVS on SourceForge.
|
||||
|
||||
You can check them out via anonymous pserver access, e.g.:
|
||||
|
||||
cvs -z3 -d:pserver:anonymous@dvdisaster.cvs.sourceforge.net:/cvsroot/dvdisaster checkout dvdisaster
|
||||
|
||||
WARNING: Development releases must be considered UNSTABLE.
|
||||
|
||||
Especially, development versions may:
|
||||
|
||||
- NOT be downward compatible with past releases
|
||||
- NOT be upward compatible with future releases
|
||||
- NOT correctly recover an image
|
||||
- DAMAGE processed images to a point beyond recoverability
|
||||
|
||||
Do not keep image and/or error correction files created by
|
||||
development releases for permanent storage.
|
||||
|
||||
|
||||
Release name scheme
|
||||
-------------------
|
||||
|
||||
Even numbers (0.70, 0.72, ...) are stable releases.
|
||||
Odd numbers (0.71, 0.73, ...) are development releases.
|
||||
|
||||
CVS releases are tagged using the following scheme:
|
||||
|
||||
release-0-70 : stable releases
|
||||
patch-0-70-1 : minor upgrade, also considered stable
|
||||
devel-0-71-1 : development release, see notes above
|
||||
rc-0-71-1 : release candidate, may still be unstable
|
||||
77
TODO
77
TODO
@@ -1,30 +1,63 @@
|
||||
|
||||
To do/ Release schedule
|
||||
Tentative to do/ release schedule
|
||||
|
||||
Version 0.73/0.74:
|
||||
- update tool chain for Windows version
|
||||
- find workarounds for the GTK+/Mac OS glitches
|
||||
- clean up source code in some places
|
||||
- add pause/resume button
|
||||
- optionally pause after n read errors for drives which
|
||||
need to cool down
|
||||
- add function for stripping RS02 data from image
|
||||
- don't create unusable images when RS02 encoding is aborted
|
||||
- add quiet option for command line mode
|
||||
- display estimated finishing time for encoding/decoding
|
||||
- catch up with many other queued up suggestions
|
||||
|
||||
Version 0.79/0.80: new RS03 codec
|
||||
Version 0.79: new RS03 codec (encoding part)
|
||||
- lots of speed optimizations in error correction data encoding
|
||||
- multithreaded / multicore processor support
|
||||
- add missing functionality, e.g. adaptive reading
|
||||
0.79.5: project re-launch
|
||||
0.79.6: re-introduce CRC and MD5 caching between reading
|
||||
and ecc creation; cosmetical changes
|
||||
0.79.7: re-introduce adaptive reading
|
||||
|
||||
Unspecified / later releases
|
||||
Version 0.80: milestone release
|
||||
- RS03 encoding considered feature complete
|
||||
|
||||
- provide a function for searching directories for suitable .ecc files
|
||||
for the current image
|
||||
Version 0.81:
|
||||
- multithreaded decoding (error correction/repair)
|
||||
for RS01/RS02/RS03
|
||||
- RS01 encoding (not decoding of course) will be
|
||||
removed as RS03 fully replaces it
|
||||
|
||||
- add real UDF parsing to udf.c
|
||||
(currently only the backward compatibility ISO structures are used)
|
||||
Version 0.82: milestone release
|
||||
- RS03 decoding considered feature complete
|
||||
|
||||
- provide a command line only version (without linkage against GTK+);
|
||||
this is non-trivial.
|
||||
Version 0.84:
|
||||
- compile option to create a CLI-only binary
|
||||
(without GTK+ linkage)
|
||||
|
||||
Version 0.86:
|
||||
- maybe upgrade from GTK+ 2 to version 3
|
||||
(not decided yet)
|
||||
|
||||
Version 0.90:
|
||||
- Grand finale: add a new feature which isn't jaw dropping
|
||||
but very convenient to have (sorry - has nothing to do
|
||||
with ripping). Since I'm not sure whether there
|
||||
is prior art to this feature, I won't get into
|
||||
details about it until the first release to fence
|
||||
off IP trolls.
|
||||
|
||||
Version 1.00: maintenance releases
|
||||
The project is considered finished. By the time we reach
|
||||
1.00, optical media should be as extinct as floppy discs
|
||||
are now. That won't obsolete dvdisaster (quite to the
|
||||
contrary!), but we're probably feature complete in this
|
||||
revision and won't need to introduce new features.
|
||||
From time to time maintenance releases will be made
|
||||
to adapt for new operating system and toolkit versions.
|
||||
|
||||
Unspecified schedule / later releases
|
||||
|
||||
- native Windows fork
|
||||
- add pause/resume button
|
||||
- optionally pause after n read errors for drives which
|
||||
need to cool down
|
||||
- add function for stripping RS02 data from image
|
||||
- add quiet option for command line mode
|
||||
- display estimated finishing time for encoding/decoding
|
||||
- catch up with many other queued up suggestions
|
||||
- provide a function for searching directories for suitable .ecc files
|
||||
for the current image
|
||||
- add real UDF parsing to udf.c
|
||||
(currently only the backward compatibility ISO structures are used)
|
||||
|
||||
@@ -9,10 +9,11 @@ dvdisaster uses GNU gettext for internationalization.
|
||||
|
||||
The following languages are currently maintained:
|
||||
|
||||
Czech - Luboš Staněk (lubek@users.sourceforge.net)
|
||||
Czech - Jindřich Šesták (khagaroth@users.sourceforge.net)
|
||||
English - Carsten Gnörlich (program author)
|
||||
German - Carsten Gnörlich (program author)
|
||||
Italian - Andrea Polverini (polve@polve.com)
|
||||
Portuguese - Pablo Almeida (pabloalmeidaff9@gmail.com)
|
||||
Russian - Igor Gorbounov (igorbounov@topazelectro.ru)
|
||||
Swedish - Daniel Nylander (info@danielnylander.se)
|
||||
|
||||
|
||||
25
bitmap.c
25
bitmap.c
@@ -1,22 +1,23 @@
|
||||
/* dvdisaster: Additional error correction for optical media.
|
||||
* Copyright (C) 2004-2009 Carsten Gnoerlich.
|
||||
* Project home page: http://www.dvdisaster.com
|
||||
* Email: carsten@dvdisaster.com -or- cgnoerlich@fsfe.org
|
||||
* Copyright (C) 2004-2017 Carsten Gnoerlich.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* Email: carsten@dvdisaster.org -or- cgnoerlich@fsfe.org
|
||||
* Project homepage: http://www.dvdisaster.org
|
||||
*
|
||||
* This file is part of dvdisaster.
|
||||
*
|
||||
* dvdisaster 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 2 of the License, or
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* dvdisaster 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.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA,
|
||||
* or direct your browser at http://www.gnu.org.
|
||||
* along with dvdisaster. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "dvdisaster.h"
|
||||
@@ -54,9 +55,9 @@ void FreeBitmap(Bitmap *bm)
|
||||
* Count the '1' bits in the bitmap
|
||||
*/
|
||||
|
||||
int CountBits(Bitmap *bm)
|
||||
{ int i;
|
||||
int sum = 0;
|
||||
gint32 CountBits(Bitmap *bm)
|
||||
{ gint32 i;
|
||||
gint32 sum = 0;
|
||||
|
||||
for(i=0; i<bm->size; i++)
|
||||
if(GetBit(bm, i))
|
||||
|
||||
19
build.c
19
build.c
@@ -1,22 +1,23 @@
|
||||
/* dvdisaster: Additional error correction for optical media.
|
||||
* Copyright (C) 2004-2009 Carsten Gnoerlich.
|
||||
* Project home page: http://www.dvdisaster.com
|
||||
* Email: carsten@dvdisaster.com -or- cgnoerlich@fsfe.org
|
||||
* Copyright (C) 2004-2017 Carsten Gnoerlich.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* Email: carsten@dvdisaster.org -or- cgnoerlich@fsfe.org
|
||||
* Project homepage: http://www.dvdisaster.org
|
||||
*
|
||||
* This file is part of dvdisaster.
|
||||
*
|
||||
* dvdisaster 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 2 of the License, or
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* dvdisaster 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.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA,
|
||||
* or direct your browser at http://www.gnu.org.
|
||||
* along with dvdisaster. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "build.h"
|
||||
|
||||
4
build.h
4
build.h
@@ -1,2 +1,2 @@
|
||||
#define BUILD 6
|
||||
#define BDATE "04.07.09 (Samstag, 14:49)"
|
||||
#define BUILD 272
|
||||
#define BDATE "17.11.17 (Freitag, 09:57)"
|
||||
|
||||
80
cacheprobe.c
Normal file
80
cacheprobe.c
Normal file
@@ -0,0 +1,80 @@
|
||||
/* dvdisaster: Additional error correction for optical media.
|
||||
* Copyright (C) 2004-2017 Carsten Gnoerlich.
|
||||
*
|
||||
* Email: carsten@dvdisaster.org -or- cgnoerlich@fsfe.org
|
||||
* Project homepage: http://www.dvdisaster.org
|
||||
*
|
||||
* This file is part of dvdisaster.
|
||||
*
|
||||
* dvdisaster 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.
|
||||
*
|
||||
* dvdisaster 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.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with dvdisaster. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "dvdisaster.h"
|
||||
|
||||
#ifdef SYS_LINUX
|
||||
int ProbeCacheLineSize()
|
||||
{ int cl_size = 0;
|
||||
|
||||
cl_size = sysconf(_SC_LEVEL1_DCACHE_LINESIZE);
|
||||
|
||||
if(!cl_size)
|
||||
cl_size = sysconf(_SC_LEVEL2_CACHE_LINESIZE);
|
||||
|
||||
if(cl_size < 16)
|
||||
cl_size = 64;
|
||||
|
||||
return cl_size;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef SYS_FREEBSD
|
||||
#include <sys/param.h>
|
||||
|
||||
int ProbeCacheLineSize()
|
||||
{ int cl_size = CACHE_LINE_SIZE;
|
||||
|
||||
/* Doing this at compile time may backfire,
|
||||
but let's just hope for the best. */
|
||||
|
||||
if(cl_size < 16)
|
||||
cl_size = 64;
|
||||
|
||||
return cl_size;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef SYS_NETBSD
|
||||
#include <sys/param.h>
|
||||
|
||||
int ProbeCacheLineSize()
|
||||
{ int cl_size = CACHE_LINE_SIZE;
|
||||
|
||||
/* Doing this at compile time may backfire,
|
||||
but let's just hope for the best. */
|
||||
|
||||
if(cl_size < 16)
|
||||
cl_size = 64;
|
||||
|
||||
return cl_size;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef SYS_UNKNOWN
|
||||
int ProbeCacheLineSize()
|
||||
{
|
||||
return 64;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
451
closure.c
451
closure.c
@@ -1,36 +1,27 @@
|
||||
/* dvdisaster: Additional error correction for optical media.
|
||||
* Copyright (C) 2004-2009 Carsten Gnoerlich.
|
||||
* Project home page: http://www.dvdisaster.com
|
||||
* Email: carsten@dvdisaster.com -or- cgnoerlich@fsfe.org
|
||||
* Copyright (C) 2004-2017 Carsten Gnoerlich.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* Email: carsten@dvdisaster.org -or- cgnoerlich@fsfe.org
|
||||
* Project homepage: http://www.dvdisaster.org
|
||||
*
|
||||
* This file is part of dvdisaster.
|
||||
*
|
||||
* dvdisaster 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 2 of the License, or
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* dvdisaster 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.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA,
|
||||
* or direct your browser at http://www.gnu.org.
|
||||
* along with dvdisaster. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "dvdisaster.h"
|
||||
|
||||
#ifdef SYS_MINGW
|
||||
#include <windows.h>
|
||||
#include <tlhelp32.h>
|
||||
#include <psapi.h>
|
||||
#include <shlobj.h>
|
||||
|
||||
/* safety margin in case we're getting UTF path names */
|
||||
#define WIN_MAX_PATH (4*MAX_PATH)
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
#define Verbose g_printf
|
||||
#else
|
||||
@@ -41,163 +32,25 @@
|
||||
*** Locate the binary and documentation directory
|
||||
***/
|
||||
|
||||
/*
|
||||
* Find location of special windows directories.
|
||||
* Copied from glib sources since they have declared it static.
|
||||
* Windows only.
|
||||
* CHECKME: Is it okay to return UTF8?
|
||||
*/
|
||||
|
||||
#ifdef SYS_MINGW
|
||||
static gchar *get_special_folder(int csidl)
|
||||
{
|
||||
union
|
||||
{ char c[WIN_MAX_PATH+1];
|
||||
wchar_t wc[WIN_MAX_PATH+1];
|
||||
} path;
|
||||
|
||||
HRESULT hr;
|
||||
LPITEMIDLIST pidl = NULL;
|
||||
BOOL b;
|
||||
gchar *retval = NULL;
|
||||
|
||||
hr = SHGetSpecialFolderLocation(NULL, csidl, &pidl);
|
||||
if(hr == S_OK)
|
||||
{ if (G_WIN32_HAVE_WIDECHAR_API())
|
||||
{ b = SHGetPathFromIDListW(pidl, path.wc);
|
||||
if(b)
|
||||
retval = g_utf16_to_utf8(path.wc, -1, NULL, NULL, NULL);
|
||||
}
|
||||
else
|
||||
{ b = SHGetPathFromIDListA(pidl, path.c);
|
||||
if(b)
|
||||
retval = g_locale_to_utf8(path.c, -1, NULL, NULL, NULL);
|
||||
}
|
||||
CoTaskMemFree(pidl);
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Find the place of our executable
|
||||
* (Windows only)
|
||||
*/
|
||||
|
||||
#ifdef SYS_MINGW
|
||||
static char* get_exe_path()
|
||||
{ char path[WIN_MAX_PATH];
|
||||
int n = GetModuleFileNameA(NULL, path, WIN_MAX_PATH);
|
||||
|
||||
if(n>0 && n<WIN_MAX_PATH-1)
|
||||
{ char *backslash = strrchr(path, '\\');
|
||||
|
||||
if(backslash) *backslash=0;
|
||||
|
||||
return g_strdup(path);
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Create / compare signatures for our installation directory
|
||||
*/
|
||||
|
||||
#ifdef SYS_MINGW
|
||||
static unsigned char *create_signature()
|
||||
{ struct MD5Context md5ctxt;
|
||||
unsigned char *digest = g_malloc(20);
|
||||
char buf[80];
|
||||
|
||||
sprintf(buf,"dvdisaster %s signature string", Closure->cookedVersion);
|
||||
|
||||
MD5Init(&md5ctxt);
|
||||
MD5Update(&md5ctxt, buf, strlen(buf));
|
||||
MD5Final(digest+2, &md5ctxt);
|
||||
digest[ 0] = digest[ 7]+19;
|
||||
digest[ 1] = digest[ 9]+58;
|
||||
digest[18] = digest[12]+31;
|
||||
digest[19] = digest[15]+5;
|
||||
|
||||
return digest;
|
||||
}
|
||||
|
||||
void WriteSignature()
|
||||
{ char loc[strlen(Closure->binDir) + strlen("\\signature")+ 10];
|
||||
unsigned char *sig = create_signature();
|
||||
FILE *file;
|
||||
|
||||
/* processing of error conditions not necessary */
|
||||
|
||||
sprintf(loc, "%s\\signature", Closure->binDir);
|
||||
if(!(file = portable_fopen(loc, "wb")))
|
||||
return;
|
||||
fwrite(sig, 20, 1, file);
|
||||
fclose(file);
|
||||
g_free(sig);
|
||||
}
|
||||
|
||||
int VerifySignature()
|
||||
{ char loc[strlen(Closure->binDir) + strlen("\\signature")+ 10];
|
||||
unsigned char *sig = create_signature();
|
||||
char buf[20];
|
||||
FILE *file;
|
||||
int result;
|
||||
|
||||
sprintf(loc, "%s\\signature", Closure->binDir);
|
||||
if(!(file = portable_fopen(loc, "rb")))
|
||||
return FALSE;
|
||||
|
||||
fread(buf, 20, 1, file);
|
||||
fclose(file);
|
||||
|
||||
result = !memcmp(sig, buf, 20);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
static void get_base_dirs()
|
||||
{
|
||||
#ifdef SYS_MINGW
|
||||
char *appdata;
|
||||
char *homedir;
|
||||
#endif
|
||||
#ifdef SYS_DARWIN
|
||||
char *resdir;
|
||||
#endif
|
||||
|
||||
/*** Unless completely disabled through a configure option, the
|
||||
source directory is supposed to hold the most recent files,
|
||||
so try this first. Not necessary under Windows as it will always
|
||||
use the directory the binary has been called from. */
|
||||
so try this first. */
|
||||
|
||||
#ifdef WITH_EMBEDDED_SRC_PATH_YES
|
||||
|
||||
#ifndef SYS_MINGW
|
||||
if(DirStat(SRCDIR))
|
||||
{ Closure->binDir = g_strdup(SRCDIR);
|
||||
Closure->docDir = g_strdup_printf("%s/documentation",SRCDIR);
|
||||
Verbose("Using paths from SRCDIR = %s\n", SRCDIR);
|
||||
goto find_dotfile;
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* WITH_EMBEDDED_SRC_PATH_YES */
|
||||
|
||||
/*** Otherwise try the installation directory.
|
||||
On Unices this is a hardcoded directory.
|
||||
Windows has binary distributions with no prior known installation place,
|
||||
but luckily it provides a way for figuring out that location.
|
||||
Darwin is like Unix when installed via make install;
|
||||
but tricky when app bundles are used. In that case we
|
||||
use GTK_PATH to find out our location. */
|
||||
On Unices this is a hardcoded directory. */
|
||||
|
||||
#if defined(SYS_LINUX) || defined(SYS_FREEBSD) || defined(SYS_NETBSD) || defined(SYS_UNKNOWN) || defined(SYS_SOLARIS)
|
||||
#if defined(SYS_LINUX) || defined(SYS_FREEBSD) || defined(SYS_NETBSD) || defined(SYS_UNKNOWN)
|
||||
if(DirStat(BINDIR))
|
||||
Closure->binDir = g_strdup(BINDIR);
|
||||
|
||||
@@ -206,118 +59,25 @@ static void get_base_dirs()
|
||||
Verbose("Using hardcoded BINDIR = %s, DOCDIR = %s\n", BINDIR, DOCDIR);
|
||||
#endif
|
||||
|
||||
#ifdef SYS_DARWIN
|
||||
resdir = (char*)g_getenv("GTK_PATH");
|
||||
if(resdir) /* looks like we are inside an app bundle */
|
||||
{ if(DirStat(resdir))
|
||||
Closure->binDir = g_strdup(resdir);
|
||||
|
||||
Closure->docDir = g_strdup_printf("%s/doc", resdir);
|
||||
if(!DirStat(Closure->docDir))
|
||||
{ g_free(Closure->docDir);
|
||||
Closure->docDir = NULL;
|
||||
}
|
||||
}
|
||||
else /* maybe a normal install */
|
||||
{
|
||||
if(DirStat(BINDIR))
|
||||
Closure->binDir = g_strdup(BINDIR);
|
||||
|
||||
if(DirStat(DOCDIR))
|
||||
Closure->docDir = g_strdup(DOCDIR);
|
||||
}
|
||||
Verbose("Using BINDIR = %s, DOCDIR = %s\n", BINDIR, DOCDIR);
|
||||
#endif
|
||||
|
||||
#ifdef SYS_MINGW
|
||||
Closure->binDir = get_exe_path();
|
||||
|
||||
if(Closure->binDir)
|
||||
Closure->docDir = g_strdup_printf("%s\\documentation", Closure->binDir);
|
||||
Verbose("Using path from get_exe_path() = %s\n", Closure->binDir);
|
||||
#endif
|
||||
|
||||
/*** The location of the dotfile depends on the operating system.
|
||||
Under Unix the users home directory is used. */
|
||||
|
||||
#ifndef SYS_MINGW
|
||||
#ifdef WITH_EMBEDDED_SRC_PATH_YES
|
||||
#ifdef WITH_EMBEDDED_SRC_PATH_YES
|
||||
find_dotfile:
|
||||
#endif /* WITH_EMBEDDED_SRC_PATH_YES */
|
||||
#endif /* WITH_EMBEDDED_SRC_PATH_YES */
|
||||
|
||||
Closure->homeDir = g_strdup(g_getenv("HOME"));
|
||||
Closure->dotFile = g_strdup_printf("%s/.dvdisaster", Closure->homeDir);
|
||||
#endif
|
||||
|
||||
#ifdef SYS_MINGW
|
||||
/* For Windows the user's application directory in the roaming
|
||||
profile is preferred for the dotfile;
|
||||
if it does not exist we use the installation directory. */
|
||||
|
||||
appdata = get_special_folder(CSIDL_APPDATA);
|
||||
homedir = get_special_folder(CSIDL_PERSONAL);
|
||||
Verbose("Windows specific paths:\n"
|
||||
"- CSIDL_APPDATA: %s\n"
|
||||
"- CSIDL_PERSONAL: %s\n",
|
||||
appdata ? appdata : "NULL",
|
||||
homedir ? homedir : "NULL");
|
||||
|
||||
if(homedir && DirStat(homedir))
|
||||
{
|
||||
Closure->homeDir = g_strdup(homedir);
|
||||
Verbose("- homedir path : %s\n", Closure->homeDir);
|
||||
|
||||
g_free(homedir);
|
||||
}
|
||||
|
||||
if(appdata)
|
||||
{ Closure->appData = g_strdup_printf("%s\\dvdisaster", appdata);
|
||||
|
||||
if(DirStat(appdata)) /* CSIDL_APPDATA present? */
|
||||
{
|
||||
Verbose("- dotfile path : %s\n", Closure->appData);
|
||||
|
||||
if(DirStat(Closure->appData))
|
||||
{ Closure->dotFile = g_strdup_printf("%s\\.dvdisaster", Closure->appData);
|
||||
Verbose("- dotfile path : present\n");
|
||||
}
|
||||
else if(!portable_mkdir(Closure->appData)) /* Note: Windows! */
|
||||
{ Closure->dotFile = g_strdup_printf("%s\\.dvdisaster", Closure->appData);
|
||||
Verbose("- dotfile path : - created -\n");
|
||||
}
|
||||
else
|
||||
{ g_free(Closure->appData);
|
||||
Closure->appData = NULL;
|
||||
}
|
||||
}
|
||||
else
|
||||
{ Verbose("- dotfile path : *can not be used*\n");
|
||||
g_free(Closure->appData);
|
||||
Closure->appData = NULL;
|
||||
}
|
||||
|
||||
g_free(appdata);
|
||||
}
|
||||
|
||||
/* Fallbacks: Expect .dvdisaster file in binDir;
|
||||
propose C:\Windows\Temp as working dir */
|
||||
|
||||
if(!Closure->dotFile)
|
||||
Closure->dotFile = g_strdup_printf("%s\\.dvdisaster", Closure->binDir);
|
||||
if(!Closure->homeDir)
|
||||
Closure->homeDir = g_strdup("C:\\Windows\\Temp");
|
||||
#endif
|
||||
if(!Closure->dotFile) /* may have been set by the --resource-file option */
|
||||
Closure->dotFile = g_strdup_printf("%s/.dvdisaster", Closure->homeDir);
|
||||
|
||||
Verbose("\nUsing file locations:\n"
|
||||
"- Homedir: %s\n"
|
||||
"- Bin dir: %s\n"
|
||||
"- Doc dir: %s\n"
|
||||
"- AppData: %s\n"
|
||||
"- dotfile: %s\n\n",
|
||||
Closure->homeDir,
|
||||
Closure->binDir,
|
||||
Closure->docDir,
|
||||
Closure->appData ? Closure->appData : "Null",
|
||||
Closure->dotFile);
|
||||
}
|
||||
|
||||
@@ -465,23 +225,24 @@ void ReadDotfile()
|
||||
if(!strcmp(symbol, "last-image")) { g_free(Closure->imageName);
|
||||
if(!strcmp(value, "none"))
|
||||
Closure->imageName = g_strdup("");
|
||||
else Closure->imageName = g_strdup(value); continue;
|
||||
else Closure->imageName = g_strdup(value);
|
||||
continue;
|
||||
}
|
||||
if(!strcmp(symbol, "last-ecc")) { g_free(Closure->eccName);
|
||||
if(!strcmp(value, "none"))
|
||||
Closure->eccName = g_strdup("");
|
||||
else Closure->eccName = g_strdup(value); continue;
|
||||
else Closure->eccName = g_strdup(value);
|
||||
continue;
|
||||
}
|
||||
if(!strcmp(symbol, "browser")) { g_free(Closure->browser);
|
||||
Closure->browser = g_strdup(value); continue; }
|
||||
|
||||
if(!strcmp(symbol, "adaptive-read")) { Closure->adaptiveRead = atoi(value); continue; }
|
||||
if(!strcmp(symbol, "auto-suffix")) { Closure->autoSuffix = atoi(value); continue; }
|
||||
if(!strcmp(symbol, "bd-size1")) { Closure->bdSize1 = Closure->savedBDSize1 = atoll(value); continue; }
|
||||
if(!strcmp(symbol, "bd-size2")) { Closure->bdSize2 = Closure->savedBDSize2 = atoll(value); continue; }
|
||||
if(!strcmp(symbol, "cache-size")) { Closure->cacheMB = atoi(value); continue; }
|
||||
if(!strcmp(symbol, "bd-size3")) { Closure->bdSize3 = Closure->savedBDSize3 = atoll(value); continue; }
|
||||
if(!strcmp(symbol, "cache-size")) { Closure->cacheMiB = atoi(value); continue; }
|
||||
if(!strcmp(symbol, "cd-size")) { Closure->cdSize = Closure->savedCDSize = atoll(value); continue; }
|
||||
if(!strcmp(symbol, "codec-threads")) { Closure->codecThreads = atoi(value); continue; }
|
||||
if(!strcmp(symbol, "confirm-deletion")){ Closure->confirmDeletion = atoi(value); continue; }
|
||||
if(!strcmp(symbol, "dao")) { Closure->noTruncate = atoi(value); continue; }
|
||||
if(!strcmp(symbol, "defective-dump")) { Closure->defectiveDump = atoi(value); continue; }
|
||||
if(!strcmp(symbol, "defective-dir")) { if(Closure->dDumpDir) g_free(Closure->dDumpDir);
|
||||
@@ -491,9 +252,15 @@ void ReadDotfile()
|
||||
if(!strcmp(symbol, "dotfile-version")) { Closure->dotFileVersion = atoi(value); continue; }
|
||||
if(!strcmp(symbol, "dvd-size1")) { Closure->dvdSize1 = Closure->savedDVDSize1 = atoll(value); continue; }
|
||||
if(!strcmp(symbol, "dvd-size2")) { Closure->dvdSize2 = Closure->savedDVDSize2 = atoll(value); continue; }
|
||||
if(!strcmp(symbol, "ecc-target")) { Closure->eccTarget = atoi(value); continue; }
|
||||
if(!strcmp(symbol, "eject")) { Closure->eject = atoi(value); continue; }
|
||||
if(!strcmp(symbol, "encoding-algorithm")) { Closure->encodingAlgorithm = atoi(value); continue; }
|
||||
if(!strcmp(symbol, "encoding-io-strategy")) { Closure->encodingIOStrategy = atoi(value); continue; }
|
||||
if(!strcmp(symbol, "examine-rs02")) { Closure->examineRS02 = atoi(value); continue; }
|
||||
if(!strcmp(symbol, "examine-rs03")) { Closure->examineRS03 = atoi(value); continue; }
|
||||
if(!strcmp(symbol, "fill-unreadable")) { Closure->fillUnreadable = atoi(value); continue; }
|
||||
if(!strcmp(symbol, "ignore-fatal-sense")) { Closure->ignoreFatalSense = atoi(value); continue; }
|
||||
if(!strcmp(symbol, "ignore-iso-size")) { Closure->ignoreIsoSize = atoi(value); continue; }
|
||||
if(!strcmp(symbol, "internal-attempts")) { Closure->internalAttempts = atoi(value); continue; }
|
||||
if(!strcmp(symbol, "jump")) { Closure->sectorSkip = atoi(value); continue; }
|
||||
if(!strcmp(symbol, "log-file-enabled")){ Closure->logFileEnabled = atoi(value); continue; }
|
||||
@@ -504,8 +271,11 @@ void ReadDotfile()
|
||||
Closure->methodName = g_strdup(value); continue; }
|
||||
if(!strcmp(symbol, "max-read-attempts")) { Closure->maxReadAttempts = atoi(value); continue; }
|
||||
if(!strcmp(symbol, "min-read-attempts")) { Closure->minReadAttempts = atoi(value); continue; }
|
||||
if(!strcmp(symbol, "missing-sector-marker")) { Closure->dsmVersion = atoi(value); continue; }
|
||||
if(!strcmp(symbol, "query-size")) { Closure->querySize = atoi(value); continue; }
|
||||
if(!strcmp(symbol, "old-missing-sector-marker")) { Closure->dsmVersion = !atoi(value); continue; }
|
||||
if(!strcmp(symbol, "pdf-viewer")) { g_free(Closure->viewer);
|
||||
Closure->viewer = g_strdup(value); continue; }
|
||||
|
||||
if(!strcmp(symbol, "prefetch-sectors")){ Closure->prefetchSectors = atoi(value); continue; }
|
||||
if(!strcmp(symbol, "raw-mode")) { Closure->rawMode = atoi(value); continue; }
|
||||
if(!strcmp(symbol, "read-and-create")) { Closure->readAndCreate = atoi(value); continue; }
|
||||
if(!strcmp(symbol, "read-medium")) { Closure->readingPasses = atoi(value); continue; }
|
||||
@@ -514,7 +284,6 @@ void ReadDotfile()
|
||||
Closure->redundancy = g_strdup(value); continue; }
|
||||
if(!strcmp(symbol, "reverse-cancel-ok")) { Closure->reverseCancelOK = atoi(value); continue; }
|
||||
if(!strcmp(symbol, "spinup-delay")) { Closure->spinupDelay = atoi(value); continue; }
|
||||
if(!strcmp(symbol, "split-files")) { Closure->splitFiles = atoi(value); continue; }
|
||||
if(!strcmp(symbol, "unlink")) { Closure->unlinkImage = atoi(value); continue; }
|
||||
if(!strcmp(symbol, "verbose")) { Closure->verbose = atoi(value); continue; }
|
||||
if(!strcmp(symbol, "welcome-msg")) { Closure->welcomeMessage = atoi(value); continue; }
|
||||
@@ -539,8 +308,8 @@ void ReadDotfile()
|
||||
}
|
||||
|
||||
if(fclose(dotfile))
|
||||
g_fprintf(stderr, "Error closing configuration file %s: %s\n",
|
||||
Closure->dotFile, strerror(errno));
|
||||
g_printf("Error closing configuration file %s: %s\n",
|
||||
Closure->dotFile, strerror(errno));
|
||||
}
|
||||
|
||||
static void update_dotfile()
|
||||
@@ -559,7 +328,7 @@ static void update_dotfile()
|
||||
|
||||
dotfile = portable_fopen(Closure->dotFile, "wb");
|
||||
if(!dotfile)
|
||||
{ g_fprintf(stderr, "Could not open configuration file %s: %s\n",
|
||||
{ g_printf("Could not open configuration file %s: %s\n",
|
||||
Closure->dotFile, strerror(errno));
|
||||
return;
|
||||
}
|
||||
@@ -572,16 +341,17 @@ static void update_dotfile()
|
||||
|
||||
g_fprintf(dotfile, "last-device: %s\n", Closure->device);
|
||||
g_fprintf(dotfile, "last-image: %s\n", Closure->imageName);
|
||||
g_fprintf(dotfile, "last-ecc: %s\n", Closure->eccName);
|
||||
g_fprintf(dotfile, "browser: %s\n\n", Closure->browser);
|
||||
g_fprintf(dotfile, "last-ecc: %s\n\n", Closure->eccName);
|
||||
|
||||
g_fprintf(dotfile, "adaptive-read: %d\n", Closure->adaptiveRead);
|
||||
g_fprintf(dotfile, "auto-suffix: %d\n", Closure->autoSuffix);
|
||||
g_fprintf(dotfile, "bd-size1: %lld\n", (long long int)Closure->bdSize1);
|
||||
g_fprintf(dotfile, "bd-size2: %lld\n", (long long int)Closure->bdSize2);
|
||||
g_fprintf(dotfile, "cache-size: %d\n", Closure->cacheMB);
|
||||
g_fprintf(dotfile, "bd-size3: %lld\n", (long long int)Closure->bdSize3);
|
||||
g_fprintf(dotfile, "cache-size: %d\n", Closure->cacheMiB);
|
||||
g_fprintf(dotfile, "cd-size: %lld\n", (long long int)Closure->cdSize);
|
||||
g_fprintf(dotfile, "codec-threads: %d\n", Closure->codecThreads);
|
||||
g_fprintf(dotfile, "confirm-deletion: %d\n", Closure->confirmDeletion);
|
||||
g_fprintf(dotfile, "dao: %d\n", Closure->noTruncate);
|
||||
g_fprintf(dotfile, "defective-dump: %d\n", Closure->defectiveDump);
|
||||
g_fprintf(dotfile, "defective-dir: %s\n", Closure->dDumpDir);
|
||||
@@ -589,9 +359,15 @@ static void update_dotfile()
|
||||
g_fprintf(dotfile, "dotfile-version: %d\n", Closure->dotFileVersion);
|
||||
g_fprintf(dotfile, "dvd-size1: %lld\n", (long long int)Closure->dvdSize1);
|
||||
g_fprintf(dotfile, "dvd-size2: %lld\n", (long long int)Closure->dvdSize2);
|
||||
g_fprintf(dotfile, "ecc-target: %d\n", Closure->eccTarget);
|
||||
g_fprintf(dotfile, "eject: %d\n", Closure->eject);
|
||||
g_fprintf(dotfile, "encoding-algorithm:%d\n", Closure->encodingAlgorithm);
|
||||
g_fprintf(dotfile, "encoding-io-strategy:%d\n", Closure->encodingIOStrategy);
|
||||
g_fprintf(dotfile, "examine-rs02: %d\n", Closure->examineRS02);
|
||||
g_fprintf(dotfile, "examine-rs03: %d\n", Closure->examineRS03);
|
||||
g_fprintf(dotfile, "fill-unreadable: %d\n", Closure->fillUnreadable);
|
||||
g_fprintf(dotfile, "ignore-fatal-sense: %d\n", Closure->ignoreFatalSense);
|
||||
g_fprintf(dotfile, "ignore-iso-size: %d\n", Closure->ignoreIsoSize);
|
||||
g_fprintf(dotfile, "internal-attempts: %d\n", Closure->internalAttempts);
|
||||
g_fprintf(dotfile, "jump: %d\n", Closure->sectorSkip);
|
||||
g_fprintf(dotfile, "log-file-enabled: %d\n", Closure->logFileEnabled);
|
||||
@@ -600,8 +376,9 @@ static void update_dotfile()
|
||||
g_fprintf(dotfile, "method-name: %s\n", Closure->methodName);
|
||||
g_fprintf(dotfile, "max-read-attempts: %d\n", Closure->maxReadAttempts);
|
||||
g_fprintf(dotfile, "min-read-attempts: %d\n", Closure->minReadAttempts);
|
||||
g_fprintf(dotfile, "missing-sector-marker: %d\n", Closure->dsmVersion);
|
||||
g_fprintf(dotfile, "query-size: %d\n", Closure->querySize);
|
||||
g_fprintf(dotfile, "old-missing-sector-marker: %d\n", !Closure->dsmVersion);
|
||||
g_fprintf(dotfile, "pdf-viewer: %s\n", Closure->viewer);
|
||||
g_fprintf(dotfile, "prefetch-sectors: %d\n", Closure->prefetchSectors);
|
||||
g_fprintf(dotfile, "raw-mode: %d\n", Closure->rawMode);
|
||||
g_fprintf(dotfile, "read-and-create: %d\n", Closure->readAndCreate);
|
||||
g_fprintf(dotfile, "read-medium: %d\n", Closure->readingPasses);
|
||||
@@ -610,7 +387,6 @@ static void update_dotfile()
|
||||
g_fprintf(dotfile, "redundancy: %s\n", Closure->redundancy);
|
||||
g_fprintf(dotfile, "reverse-cancel-ok: %d\n", Closure->reverseCancelOK);
|
||||
g_fprintf(dotfile, "spinup-delay: %d\n", Closure->spinupDelay);
|
||||
g_fprintf(dotfile, "split-files: %d\n", Closure->splitFiles);
|
||||
g_fprintf(dotfile, "unlink: %d\n", Closure->unlinkImage);
|
||||
g_fprintf(dotfile, "verbose: %d\n", Closure->verbose);
|
||||
g_fprintf(dotfile, "welcome-msg: %d\n\n", Closure->welcomeMessage);
|
||||
@@ -628,8 +404,8 @@ static void update_dotfile()
|
||||
save_colors(dotfile, "present-sector", Closure->darkSector);
|
||||
|
||||
if(fclose(dotfile))
|
||||
g_fprintf(stderr, "Error closing configuration file %s: %s\n",
|
||||
Closure->dotFile, strerror(errno));
|
||||
g_printf("Error closing configuration file %s: %s\n",
|
||||
Closure->dotFile, strerror(errno));
|
||||
}
|
||||
|
||||
/***
|
||||
@@ -645,19 +421,29 @@ void InitClosure()
|
||||
|
||||
Closure = g_malloc0(sizeof(GlobalClosure));
|
||||
|
||||
/* Give versions with patch levels a nicer formatting */
|
||||
/* Extract the version string */
|
||||
|
||||
if(!strcmp(RELEASE_STATUS, "patch"))
|
||||
Closure->cookedVersion = g_strdup_printf("%s (pl%s)",VERSION,RELEASE_MICRO);
|
||||
else if(!strcmp(RELEASE_STATUS, "devel"))
|
||||
{ Closure->releaseFlags = MFLAG_DEVEL;
|
||||
Closure->cookedVersion = g_strdup_printf("%s (devel-%s)",VERSION,RELEASE_MICRO);
|
||||
}
|
||||
else if(!strcmp(RELEASE_STATUS, "rc"))
|
||||
{ Closure->releaseFlags = MFLAG_RC;
|
||||
Closure->cookedVersion = g_strdup_printf("%s (rc-%s)",VERSION,RELEASE_MICRO);
|
||||
}
|
||||
else Closure->cookedVersion = g_strdup(VERSION);
|
||||
#ifdef HAVE_UNSTABLE_RELEASE
|
||||
Closure->cookedVersion = g_strdup_printf("%s (unstable)", VERSION);
|
||||
Closure->releaseFlags = MFLAG_DEVEL;
|
||||
#else
|
||||
Closure->cookedVersion = g_strdup(VERSION);
|
||||
#endif
|
||||
|
||||
/* Generate a more comprehensive version string */
|
||||
|
||||
#if defined(SYS_LINUX) || defined(SYS_FREEBSD) || defined(SYS_NETBSD)
|
||||
#ifdef HAVE_64BIT
|
||||
#define BITNESS_STRING " 64bit"
|
||||
#else
|
||||
#define BITNESS_STRING " 32bit"
|
||||
#endif
|
||||
#else
|
||||
#define BITNESS_STRING ""
|
||||
#endif
|
||||
|
||||
Closure->versionString = g_strdup_printf("dvdisaster %s build %d, %s%s",
|
||||
Closure->cookedVersion, buildCount, SYS_NAME, BITNESS_STRING);
|
||||
|
||||
/* Replace the dot with a locale-resistant separator */
|
||||
|
||||
@@ -668,22 +454,17 @@ void InitClosure()
|
||||
dots++;
|
||||
}
|
||||
|
||||
if(dots == 1)
|
||||
if(dots == 2)
|
||||
{ v1 = v2 = v3 = 0;
|
||||
sscanf(version,"%dx%d",&v1,&v2);
|
||||
sscanf(version,"%dx%dx%d",&v1,&v2,&v3);
|
||||
}
|
||||
else
|
||||
{ g_printf("Error: malformed version number %s\n",VERSION);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
v3 = atoi(RELEASE_MICRO);
|
||||
Closure->version = 10000*v1 + 100*v2 + v3;
|
||||
|
||||
#if 0
|
||||
printf("Version %s; %d; Flags %d\n", Closure->cookedVersion, Closure->version, Closure->releaseFlags);
|
||||
#endif
|
||||
|
||||
/* Get home and system directories */
|
||||
|
||||
get_base_dirs();
|
||||
@@ -692,21 +473,25 @@ void InitClosure()
|
||||
|
||||
Closure->deviceNames = g_ptr_array_new();
|
||||
Closure->deviceNodes = g_ptr_array_new();
|
||||
Closure->browser = g_strdup("xdg-open");
|
||||
Closure->viewer = g_strdup("xdg-open");
|
||||
Closure->methodList = g_ptr_array_new();
|
||||
Closure->methodName = g_strdup("RS01");
|
||||
Closure->dDumpDir = g_strdup(Closure->homeDir);
|
||||
Closure->cacheMB = 32;
|
||||
Closure->cacheMiB = 32;
|
||||
Closure->prefetchSectors = 128;
|
||||
Closure->codecThreads = 1;
|
||||
Closure->eccTarget = 1;
|
||||
Closure->encodingAlgorithm = ENCODING_ALG_DEFAULT;
|
||||
Closure->minReadAttempts = 1;
|
||||
Closure->maxReadAttempts = 1;
|
||||
Closure->rawMode = 0x20;
|
||||
Closure->internalAttempts = -1;
|
||||
Closure->sectorSkip = 16;
|
||||
Closure->spinupDelay = 5;
|
||||
Closure->querySize = 2;
|
||||
Closure->fillUnreadable = -1;
|
||||
Closure->welcomeMessage = 1;
|
||||
Closure->useSCSIDriver = DRIVER_SG;
|
||||
Closure->dsmVersion = 1;
|
||||
|
||||
/* default sizes for typical CD and DVD media */
|
||||
|
||||
@@ -715,9 +500,11 @@ void InitClosure()
|
||||
Closure->dvdSize2 = Closure->savedDVDSize2 = DVD_DL_SIZE;
|
||||
Closure->bdSize1 = Closure->savedBDSize1 = BD_SL_SIZE;
|
||||
Closure->bdSize2 = Closure->savedBDSize2 = BD_DL_SIZE;
|
||||
Closure->bdSize3 = Closure->savedBDSize3 = BDXL_TL_SIZE;
|
||||
|
||||
Closure->logString = g_string_sized_new(1024);
|
||||
Closure->logLock = g_mutex_new();
|
||||
Closure->logLock = g_malloc0(sizeof(GMutex));
|
||||
g_mutex_init(Closure->logLock);
|
||||
|
||||
Closure->background = g_malloc0(sizeof(GdkColor));
|
||||
Closure->foreground = g_malloc0(sizeof(GdkColor));
|
||||
@@ -738,12 +525,9 @@ void InitClosure()
|
||||
DefaultColors();
|
||||
|
||||
memset(Closure->bs, '\b', 255);
|
||||
memset(Closure->sp, ' ', 255);
|
||||
|
||||
DefaultLogFile();
|
||||
|
||||
#ifdef SYS_MINGW
|
||||
OpenAspi();
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -754,53 +538,11 @@ void InitClosure()
|
||||
|
||||
void LocalizedFileDefaults()
|
||||
{
|
||||
#ifdef SYS_DARWIN
|
||||
/* Darwin uses / as the current working directory when invoked
|
||||
from an app bundle. Not good. */
|
||||
char *buf = getcwd(NULL,0);
|
||||
|
||||
Closure->imageName = NULL;
|
||||
/* Storing the files in the cwd appears to be a sane default. */
|
||||
|
||||
if(buf && !strcmp(buf,"/"))
|
||||
{ free(buf);
|
||||
buf = getenv("HOME");
|
||||
if(buf)
|
||||
{
|
||||
Closure->imageName = g_strdup_printf("%s/%s",buf,_("medium.iso"));
|
||||
Closure->eccName = g_strdup_printf("%s/%s",buf,_("medium.ecc"));
|
||||
Closure->dDumpPrefix = g_strdup_printf("%s/%s",buf,_("sector-"));
|
||||
}
|
||||
}
|
||||
|
||||
if(!Closure->imageName)
|
||||
{
|
||||
Closure->imageName = g_strdup(_("medium.iso"));
|
||||
Closure->eccName = g_strdup(_("medium.ecc"));
|
||||
Closure->dDumpPrefix = g_strdup(_("sector-"));
|
||||
}
|
||||
|
||||
#else
|
||||
/* On all other OS, storing the files in the cwd is a sane default. */
|
||||
Closure->imageName = g_strdup(_("medium.iso"));
|
||||
Closure->eccName = g_strdup(_("medium.ecc"));
|
||||
Closure->dDumpPrefix = g_strdup(_("sector-"));
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Clear the CRC cache
|
||||
*/
|
||||
|
||||
void ClearCrcCache(void)
|
||||
{ if(Closure->crcCache)
|
||||
g_free(Closure->crcCache);
|
||||
if(Closure->crcImageName)
|
||||
g_free(Closure->crcImageName);
|
||||
|
||||
Closure->crcCache = NULL;
|
||||
Closure->crcImageName = NULL;
|
||||
memset(Closure->md5Cache, 0, 16);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -828,9 +570,8 @@ void FreeClosure()
|
||||
if(Closure->guiMode)
|
||||
update_dotfile();
|
||||
|
||||
ClearCrcCache();
|
||||
|
||||
cond_free(Closure->cookedVersion);
|
||||
cond_free(Closure->versionString);
|
||||
cond_free(Closure->device);
|
||||
cond_free_ptr_array(Closure->deviceNames);
|
||||
cond_free_ptr_array(Closure->deviceNodes);
|
||||
@@ -847,9 +588,9 @@ void FreeClosure()
|
||||
cond_free(Closure->logFile);
|
||||
cond_free(Closure->binDir);
|
||||
cond_free(Closure->docDir);
|
||||
cond_free(Closure->appData);
|
||||
cond_free(Closure->browser);
|
||||
cond_free(Closure->viewer);
|
||||
cond_free(Closure->errorTitle);
|
||||
cond_free(Closure->simulateCD);
|
||||
cond_free(Closure->dDumpDir);
|
||||
cond_free(Closure->dDumpPrefix);
|
||||
|
||||
@@ -863,7 +604,9 @@ void FreeClosure()
|
||||
g_string_free(Closure->logString, TRUE);
|
||||
|
||||
if(Closure->logLock)
|
||||
g_mutex_free(Closure->logLock);
|
||||
{ g_mutex_clear(Closure->logLock);
|
||||
g_free(Closure->logLock);
|
||||
}
|
||||
|
||||
if(Closure->drawGC)
|
||||
g_object_unref(Closure->drawGC);
|
||||
@@ -903,8 +646,4 @@ void FreeClosure()
|
||||
g_free(Closure->readAdaptiveErrorMsg);
|
||||
|
||||
g_free(Closure);
|
||||
|
||||
#ifdef SYS_MINGW
|
||||
CloseAspi();
|
||||
#endif
|
||||
}
|
||||
|
||||
76
configure
vendored
76
configure
vendored
@@ -19,24 +19,9 @@ fi
|
||||
|
||||
# Set the package name and version
|
||||
|
||||
PACKAGE dvdisaster 0.72
|
||||
PACKAGE dvdisaster 0.79.6
|
||||
CFG_HAVE_OPTIONS="$CFG_HAVE_OPTIONS -DHAVE_UNSTABLE_RELEASE"
|
||||
|
||||
#REL_MICRO=1
|
||||
#REL_STATUS=patch
|
||||
#REL_STATUS=devel
|
||||
#REL_STATUS=rc
|
||||
|
||||
REL_MICRO=0
|
||||
REL_STATUS="-" # requires MICRO=0
|
||||
|
||||
DEFINE_STRING RELEASE_MICRO $REL_MICRO
|
||||
DEFINE_STRING RELEASE_STATUS $REL_STATUS
|
||||
|
||||
case "$REL_STATUS" in
|
||||
-) DEFINE_VAR FULL_VERSION "$VERSION" ;;
|
||||
patch) DEFINE_VAR FULL_VERSION "\"$VERSION (pl${REL_MICRO})\"" ;;
|
||||
*) DEFINE_VAR FULL_VERSION "\"$VERSION (${REL_STATUS}-${REL_MICRO})\"" ;;
|
||||
esac
|
||||
|
||||
# Check for some essential tools.
|
||||
|
||||
@@ -55,15 +40,14 @@ GET_DOCDIR /usr/share/doc
|
||||
GET_DIR "$PKGNAME" docsub "Documentation sub"\
|
||||
" put documentation into this subdirectory\n under \$DOCDIR "
|
||||
GET_LOCALEDIR /usr/share/locale
|
||||
GET_DIR "/var/www/dvdisaster" phpmount "PHP bind mount"\
|
||||
" place to bind mount our PHP based documentation so that\n a local web server can access it\n "
|
||||
|
||||
GET_BUILDROOT
|
||||
GET_BUILDTMP
|
||||
|
||||
# Look for required libraries
|
||||
|
||||
PRINT_MESSAGE "\nLooking for includes and libraries:"
|
||||
|
||||
REQUIRE_GLIB2 2 32 0
|
||||
REQUIRE_GTK2 2 6 0 WITH_THREADS
|
||||
echo
|
||||
|
||||
@@ -82,6 +66,8 @@ CHECK_LIBRARY cam cam_open_device cam
|
||||
|
||||
PRINT_MESSAGE "\nChecking for functions and symbols..."
|
||||
|
||||
CHECK_FUNCTION mmap
|
||||
|
||||
if ! CHECK_FUNCTION getopt_long ; then
|
||||
if ! test -e getopt.h || ! test -e getopt.c ; then
|
||||
echo " * getopt_long is missing. You can provide one by simply"
|
||||
@@ -107,7 +93,9 @@ CFG_CFLAGS=$SAVE_CFLAGS
|
||||
|
||||
echo
|
||||
CHECK_ENDIAN
|
||||
CHECK_BITNESS
|
||||
CHECK_SSE2
|
||||
CHECK_ALTIVEC
|
||||
|
||||
# Look for required tools
|
||||
|
||||
@@ -128,22 +116,17 @@ if ! EXECUTE_PROGRAM "gdk-pixbuf-csource --help" gdk_pixbuf_csource ; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test $CFG_SYS_OPTIONS == -DSYS_MINGW; then
|
||||
if ! EXECUTE_PROGRAM "dllwrap -version" dllwrap ; then
|
||||
echo "* dllwrap not installed or path to it is missing."
|
||||
echo "* You can build dvdisaster, but not the windows installer."
|
||||
fi
|
||||
fi
|
||||
|
||||
# Evaluate the --with* customization options
|
||||
|
||||
PRINT_MESSAGE "\nAdditional configuration options:"
|
||||
|
||||
WITH_OPTION nls yes "[yes | no]"
|
||||
WITH_OPTION memdebug no "[no | yes]"
|
||||
WITH_OPTION efence no "[no | yes]"
|
||||
WITH_OPTION embedded-src-path yes "[yes | no]"
|
||||
|
||||
PRINT_MESSAGE "\nDebugging options (do not use in production system):"
|
||||
|
||||
WITH_OPTION memdebug no "[no | yes]"
|
||||
|
||||
if test "$cfg_with_efence" == "yes"; then
|
||||
if ! CHECK_LIBRARY efence malloc efence; then
|
||||
exit 1;
|
||||
@@ -165,12 +148,12 @@ PRINT_MESSAGE "\nCollecting source files:"
|
||||
|
||||
rm -f conftest.c method-link.c
|
||||
cfiles="method-link.c"
|
||||
ofiles="method-link.o"
|
||||
ofiles="$BUILDTMP/method-link.o"
|
||||
|
||||
for cfile in *.c; do
|
||||
cfile_prefix=`echo $cfile | sed -e 's/\.c//'`
|
||||
cfiles="$cfiles $cfile"
|
||||
ofiles="$ofiles $cfile_prefix.o"
|
||||
ofiles="$ofiles $BUILDTMP/$cfile_prefix.o"
|
||||
echo -n " $cfile_prefix"
|
||||
done
|
||||
|
||||
@@ -208,35 +191,11 @@ done
|
||||
echo "}" >> method-link.c
|
||||
echo
|
||||
|
||||
# Temporary fix for missing rs03 sources
|
||||
|
||||
if test -e rs03-includes.h; then
|
||||
CFG_HAVE_OPTIONS="$CFG_HAVE_OPTIONS -DHAVE_RS03"
|
||||
fi
|
||||
|
||||
# Okay, hopefully we've got everything together now.
|
||||
|
||||
(cd locale; bash create-makefile)
|
||||
CREATE_MAKEFILES GNUmakefile
|
||||
|
||||
# Now configure the tools directory
|
||||
|
||||
echo
|
||||
echo -n "Configuring the tools ... "
|
||||
if (cd tools; bash configure $@ >tools-configure); then
|
||||
echo "OK"
|
||||
else
|
||||
echo "Failed"
|
||||
echo "Problem encountered configuring the tools:"
|
||||
cat tools/tools-configure
|
||||
echo
|
||||
echo "The above output describes a problem doing ./configure"
|
||||
echo "in the tools directory. Please cd into that directory"
|
||||
echo "and ./configure it manually."
|
||||
exit 1
|
||||
fi
|
||||
rm tools/tools-configure
|
||||
|
||||
# Okay, tell the user we're done and how to proceed.
|
||||
|
||||
echo
|
||||
@@ -270,12 +229,7 @@ if test -n "$BUILDROOT"; then
|
||||
echo
|
||||
fi
|
||||
|
||||
if test $cfg_system == "solaris"; then
|
||||
id_binary="/usr/xpg4/bin/id"
|
||||
else
|
||||
id_binary="id"
|
||||
fi
|
||||
|
||||
id_binary="id"
|
||||
if test `$id_binary -u` -eq 0; then
|
||||
echo "* WARNING: Compiling the project as ROOT USER is not recommended"
|
||||
echo "* and may cause unexpected problems. If compilation fails"
|
||||
|
||||
@@ -10,4 +10,3 @@ Icon=dvdisaster48.png
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Application;System;
|
||||
Encoding=UTF-8
|
||||
|
||||
20
crc32.c
20
crc32.c
@@ -1,24 +1,24 @@
|
||||
/* dvdisaster: Additional error correction for optical media.
|
||||
* Copyright (C) 2004-2009 Carsten Gnoerlich.
|
||||
* Project home page: http://www.dvdisaster.com
|
||||
* Email: carsten@dvdisaster.com -or- cgnoerlich@fsfe.org
|
||||
*
|
||||
* Copyright (C) 2004-2017 Carsten Gnoerlich.
|
||||
* CRC32 code based upon public domain code by Ross Williams (see notes below)
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* Email: carsten@dvdisaster.org -or- cgnoerlich@fsfe.org
|
||||
* Project homepage: http://www.dvdisaster.org
|
||||
*
|
||||
* This file is part of dvdisaster.
|
||||
*
|
||||
* dvdisaster 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 2 of the License, or
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* dvdisaster 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.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA,
|
||||
* or direct your browser at http://www.gnu.org.
|
||||
* along with dvdisaster. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "dvdisaster.h"
|
||||
|
||||
309
crcbuf.c
309
crcbuf.c
@@ -1,22 +1,23 @@
|
||||
/* dvdisaster: Additional error correction for optical media.
|
||||
* Copyright (C) 2004-2009 Carsten Gnoerlich.
|
||||
* Project home page: http://www.dvdisaster.com
|
||||
* Email: carsten@dvdisaster.com -or- cgnoerlich@fsfe.org
|
||||
* Copyright (C) 2004-2017 Carsten Gnoerlich.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* Email: carsten@dvdisaster.org -or- cgnoerlich@fsfe.org
|
||||
* Project homepage: http://www.dvdisaster.org
|
||||
*
|
||||
* This file is part of dvdisaster.
|
||||
*
|
||||
* dvdisaster 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 2 of the License, or
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* dvdisaster 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.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA,
|
||||
* or direct your browser at http://www.gnu.org.
|
||||
* along with dvdisaster. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "dvdisaster.h"
|
||||
@@ -25,142 +26,135 @@
|
||||
#include "rs02-includes.h"
|
||||
|
||||
/***
|
||||
*** Load crc buffer from RS01 error correction file
|
||||
*** Create a CRC buffer ready for accumulating CRC and MD5 sums
|
||||
***/
|
||||
|
||||
CrcBuf *GetCRCFromRS01(EccInfo *ei)
|
||||
{ CrcBuf *cb = g_malloc(sizeof(CrcBuf));
|
||||
guint32 *buf;
|
||||
gint64 crc_sectors,crc_remainder;
|
||||
gint64 i,j,sec_idx;
|
||||
CrcBuf *CreateCrcBuf(Image *image)
|
||||
{ CrcBuf *cb = g_malloc0(sizeof(CrcBuf));
|
||||
|
||||
cb->crcbuf = g_malloc(ei->sectors * sizeof(guint32));
|
||||
cb->size = ei->sectors;
|
||||
cb->valid = CreateBitmap0(ei->sectors);
|
||||
buf = cb->crcbuf;
|
||||
/* MD5 sum related data */
|
||||
|
||||
cb->md5Ctxt = g_malloc(sizeof(struct MD5Context));
|
||||
MD5Init(cb->md5Ctxt);
|
||||
cb->md5State = MD5_BUILDING;
|
||||
cb->lastSector = 0;
|
||||
memset(cb->dataMD5sum, 0, 16);
|
||||
memset(cb->imageMD5sum, 0, 16);
|
||||
|
||||
/* Seek to beginning of CRC sums */
|
||||
/* image identification */
|
||||
|
||||
if(image->type == IMAGE_FILE)
|
||||
cb->imageName = g_strdup(image->file->path);
|
||||
|
||||
if(!LargeSeek(ei->file, (gint64)sizeof(EccHeader)))
|
||||
Stop(_("Failed skipping the ecc header: %s"),strerror(errno));
|
||||
|
||||
/* Read crc sums. A sector of 2048 bytes contains 512 CRC sums. */
|
||||
|
||||
crc_sectors = ei->sectors / 512;
|
||||
sec_idx = 0;
|
||||
|
||||
for(i=0; i<crc_sectors; i++)
|
||||
{ if(LargeRead(ei->file, buf, 2048) != 2048)
|
||||
Stop(_("Error reading CRC information: %s"),strerror(errno));
|
||||
buf += 512;
|
||||
|
||||
for(j=0; j<512; j++, sec_idx++)
|
||||
SetBit(cb->valid, sec_idx);
|
||||
/* For augmented images we need both the pure data size and the full size
|
||||
in order to compute MD5 sums for both. Depending on what the user wants
|
||||
to do with the image (create an ecc file or re-augment the image) we'll
|
||||
need the first or the last version.
|
||||
There's one catch, though: If the augmented image is accompanied with
|
||||
an ecc file, we must treat the image as raw data; e.g. do not set
|
||||
the data size to the portion protected by the augmented ecc.
|
||||
Otherwise, the CRC sums from the ecc file which do also protect
|
||||
the augmented ecc part will become unreachable. */
|
||||
|
||||
if(image->eccHeader && !image->eccFileHeader) /* augmented image, and no ecc file? */
|
||||
{ cb->dataSectors = uchar_to_gint64(image->eccHeader->sectors);
|
||||
if(image->type == IMAGE_FILE)
|
||||
cb->allSectors = image->sectorSize;
|
||||
else cb->allSectors = image->dh->sectors;
|
||||
}
|
||||
else
|
||||
{ if(image->type == IMAGE_FILE)
|
||||
cb->dataSectors = cb->allSectors = image->sectorSize;
|
||||
else cb->dataSectors = cb->allSectors = image->dh->sectors;
|
||||
}
|
||||
|
||||
crc_remainder = sizeof(guint32)*(ei->sectors % 512);
|
||||
if(crc_remainder)
|
||||
{ if(LargeRead(ei->file, buf, crc_remainder) != crc_remainder)
|
||||
Stop(_("Error reading CRC information: %s"),strerror(errno));
|
||||
/* Note: The following statement is not correct for RS03.
|
||||
It does not hurt since RS03 will set the correct value when
|
||||
the CrcBuf is created via RS03GetCrcBuf(), and in all other
|
||||
cases it does currently not matter. Especially, CRC sums
|
||||
created during an image read are not used when subsequently
|
||||
creating new ecc data. */
|
||||
|
||||
cb->coveredSectors = cb->dataSectors;
|
||||
|
||||
for( ; sec_idx<ei->sectors; sec_idx++)
|
||||
SetBit(cb->valid, sec_idx);
|
||||
/* Extract the fingerprint */
|
||||
|
||||
if(image->fpState == FP_PRESENT)
|
||||
{ memcpy(cb->mediumFP, image->imageFP, 16);
|
||||
cb->fpValid = TRUE;
|
||||
}
|
||||
cb->fpSector = image->fpSector;
|
||||
|
||||
/* CRC sum array */
|
||||
|
||||
cb->crcbuf = g_malloc(cb->allSectors * sizeof(guint32));
|
||||
cb->crcSize = cb->allSectors;
|
||||
cb->valid = CreateBitmap0(cb->allSectors);
|
||||
|
||||
image->crcCache = cb;
|
||||
return cb;
|
||||
}
|
||||
|
||||
/***
|
||||
*** Load crc buffer from RS02 error correction data
|
||||
***
|
||||
* Lots of casts from (void*) since we're transporting
|
||||
* nonpublic structs.
|
||||
/*
|
||||
* Add a 2048 byte block into the checksum buffer
|
||||
*/
|
||||
|
||||
CrcBuf *GetCRCFromRS02(void *layv, void *dhv, LargeFile *image)
|
||||
{ RS02Layout *lay = (RS02Layout*)layv;
|
||||
DeviceHandle *dh = (DeviceHandle*)dhv;
|
||||
AlignedBuffer *ab = CreateAlignedBuffer(2048);
|
||||
CrcBuf *cb = g_malloc(sizeof(CrcBuf));
|
||||
gint64 block_idx[256];
|
||||
guint32 *buf;
|
||||
gint64 image_sectors,crc_sector;
|
||||
gint64 s,i;
|
||||
int crc_idx, crc_valid = FALSE;
|
||||
int AddSectorToCrcBuffer(CrcBuf *cb, int mode, guint64 idx, unsigned char *buf, int buf_size)
|
||||
{ guint32 crc;
|
||||
|
||||
image_sectors = lay->eccSectors+lay->dataSectors;
|
||||
|
||||
cb->crcbuf = g_malloc(image_sectors * sizeof(guint32));
|
||||
cb->size = image_sectors;
|
||||
cb->valid = CreateBitmap0(image_sectors);
|
||||
buf = cb->crcbuf;
|
||||
if(idx < 0 || idx >= cb->crcSize)
|
||||
return CRC_OUTSIDE_BOUND;
|
||||
|
||||
/* Initialize ecc block index pointers.
|
||||
The first CRC set (of lay->ndata checksums) relates to
|
||||
ecc block lay->firstCrcLayerIndex + 1. */
|
||||
/* Update the CRC sums */
|
||||
|
||||
for(s=0, i=0; i<lay->ndata; s+=lay->sectorsPerLayer, i++)
|
||||
block_idx[i] = s + lay->firstCrcLayerIndex + 1;
|
||||
if( (mode & CRCBUF_UPDATE_CRC)
|
||||
|| ((mode & CRCBUF_UPDATE_CRC_AFTER_DATA) && idx >= cb->coveredSectors))
|
||||
{ crc = Crc32(buf, 2048); /* should be buf_size, but remains at 2048 for backwards compatibility. */
|
||||
cb->crcbuf[idx] = crc; /* does not harm except that the last sector is padded with the contents */
|
||||
SetBit(cb->valid, idx); /* of the previous sector when reading an image file whole size is not */
|
||||
} /* a multiple of 2048 */
|
||||
|
||||
/* Update the MD5 sums */
|
||||
|
||||
crc_idx = 512; /* force crc buffer reload */
|
||||
crc_sector = lay->dataSectors+2; /* first crc data sector on medium */
|
||||
if(!(mode & CRCBUF_UPDATE_MD5))
|
||||
return CRC_GOOD;
|
||||
|
||||
if(cb->lastSector != idx) /* sector out of order -> md5sum dead */
|
||||
{ cb->md5State = MD5_INVALID;
|
||||
return CRC_BAD;
|
||||
}
|
||||
cb->lastSector++;
|
||||
|
||||
/* Cycle through the ecc blocks and descramble CRC sums in
|
||||
ascending sector numbers. */
|
||||
if(idx <= cb->allSectors-1)
|
||||
MD5Update(cb->md5Ctxt, buf, buf_size);
|
||||
|
||||
for(s=0; s<lay->sectorsPerLayer; s++)
|
||||
{ gint64 si = (s + lay->firstCrcLayerIndex + 1) % lay->sectorsPerLayer;
|
||||
if(idx == cb->dataSectors-1)
|
||||
{ MD5Context *dataCtxt = alloca(sizeof(MD5Context));
|
||||
|
||||
/* Wrap the block_idx[] ptrs at si == 0 */
|
||||
|
||||
if(!si)
|
||||
{ gint64 bs;
|
||||
|
||||
for(bs=0, i=0; i<lay->ndata; bs+=lay->sectorsPerLayer, i++)
|
||||
block_idx[i] = bs;
|
||||
}
|
||||
|
||||
/* Go through all data sectors of current ecc block */
|
||||
|
||||
for(i=0; i<lay->ndata; i++)
|
||||
{ gint64 bidx = block_idx[i];
|
||||
|
||||
if(bidx < lay->dataSectors) /* only data sectors have CRCs */
|
||||
{
|
||||
/* Refill crc cache if needed */
|
||||
|
||||
if(crc_idx >= 512)
|
||||
{ crc_valid = !ReadSectorsFast(dh, ab->buf, crc_sector++, 1);
|
||||
crc_idx = 0;
|
||||
}
|
||||
|
||||
/* Sort crc into appropriate place */
|
||||
|
||||
if(crc_valid)
|
||||
{ cb->crcbuf[bidx] = ((guint32*)ab->buf)[crc_idx];
|
||||
SetBit(cb->valid, bidx);
|
||||
}
|
||||
crc_idx++;
|
||||
block_idx[i]++;
|
||||
}
|
||||
}
|
||||
memcpy(dataCtxt, cb->md5Ctxt, sizeof(MD5Context));
|
||||
MD5Final(cb->dataMD5sum, dataCtxt);
|
||||
cb->md5State |= MD5_DATA_COMPLETE;
|
||||
}
|
||||
|
||||
if(idx == cb->allSectors-1)
|
||||
{ MD5Final(cb->imageMD5sum, cb->md5Ctxt);
|
||||
cb->md5State |= MD5_IMAGE_COMPLETE;
|
||||
cb->md5State &= ~MD5_BUILDING;
|
||||
}
|
||||
|
||||
FreeAlignedBuffer(ab);
|
||||
|
||||
return cb;
|
||||
return CRC_GOOD;
|
||||
}
|
||||
|
||||
/***
|
||||
*** Test a 2048 byte block against the checksum in the buffer
|
||||
***/
|
||||
|
||||
/*
|
||||
* Test a 2048 byte block against the checksum in the buffer
|
||||
*/
|
||||
|
||||
int CheckAgainstCrcBuffer(CrcBuf *cb, gint64 idx, unsigned char *buf)
|
||||
{ guint32 crc;
|
||||
|
||||
if(idx < 0 || idx >= cb->size)
|
||||
Stop("CheckAgainstCrcBuffer: illegal index %ldd\n", idx);
|
||||
|
||||
if(idx < 0 || idx >= cb->crcSize)
|
||||
return CRC_OUTSIDE_BOUND;
|
||||
|
||||
crc = Crc32(buf, 2048);
|
||||
|
||||
if(!GetBit(cb->valid, idx))
|
||||
@@ -172,6 +166,36 @@ int CheckAgainstCrcBuffer(CrcBuf *cb, gint64 idx, unsigned char *buf)
|
||||
return CRC_BAD;
|
||||
}
|
||||
|
||||
/*
|
||||
* Make sure that the current image and ecc file match the
|
||||
* cached CRC and md5 informaton
|
||||
*/
|
||||
|
||||
int CrcBufValid(CrcBuf *crcbuf, Image *image, EccHeader *eh)
|
||||
{
|
||||
if(!crcbuf)
|
||||
{ Verbose("CrcBufValid: crcbuf==NULL\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* if still in building state we do not have all CRC sums */
|
||||
|
||||
if(crcbuf->md5State & MD5_BUILDING)
|
||||
{ Verbose("CrcBufValid: NO, still building\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* presence of one MD5 sum suffices (data md5sum may not be present
|
||||
under some circumstances) */
|
||||
|
||||
if((!(crcbuf->md5State & MD5_COMPLETE)))
|
||||
{ Verbose("CrcBufValid: NOT complete\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
Verbose("CrcBufValid: buffer VALID\n");
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/***
|
||||
*** Clean up
|
||||
@@ -179,7 +203,60 @@ int CheckAgainstCrcBuffer(CrcBuf *cb, gint64 idx, unsigned char *buf)
|
||||
|
||||
void FreeCrcBuf(CrcBuf *cb)
|
||||
{
|
||||
if(!cb)
|
||||
{ Verbose("FreeCrcBuf - nothing to do\n");
|
||||
return;
|
||||
}
|
||||
|
||||
g_free(cb->crcbuf);
|
||||
FreeBitmap(cb->valid);
|
||||
if(cb->imageName)
|
||||
g_free(cb->imageName);
|
||||
if(cb->md5Ctxt)
|
||||
g_free(cb->md5Ctxt);
|
||||
g_free(cb);
|
||||
|
||||
Verbose("FreeCrcBuf - buffer cleared\n");
|
||||
}
|
||||
|
||||
/***
|
||||
*** Debugging output
|
||||
***/
|
||||
|
||||
void PrintCrcBuf(CrcBuf *cb)
|
||||
{ char digest[33];
|
||||
guint64 i,missing=0;
|
||||
|
||||
if(!Closure->verbose)
|
||||
return;
|
||||
|
||||
PrintLog("CrcBuf contents, image path %s:\n", cb->imageName ? cb->imageName : "none (medium)" );
|
||||
PrintLog(" crcSize: %lld, dataSectors: %lld, coveredSectors: %lld, allSectors: %lld\n",
|
||||
cb->crcSize, cb->dataSectors, cb->coveredSectors, cb->allSectors);
|
||||
|
||||
PrintLog(" md5State:");
|
||||
if(cb->md5State)
|
||||
{ if(cb->md5State & MD5_BUILDING) PrintLog(" building");
|
||||
if(cb->md5State & MD5_DATA_COMPLETE) PrintLog(" data_complete");
|
||||
if(cb->md5State & MD5_IMAGE_COMPLETE) PrintLog(" image_complete");
|
||||
}
|
||||
else PrintLog(" invalid");
|
||||
PrintLog("\n");
|
||||
|
||||
if(cb->md5State & MD5_COMPLETE)
|
||||
{ AsciiDigest(digest, cb->dataMD5sum);
|
||||
PrintLog(" data: %s\n", digest);
|
||||
AsciiDigest(digest, cb->imageMD5sum);
|
||||
PrintLog(" full: %s\n", digest);
|
||||
}
|
||||
AsciiDigest(digest, cb->mediumFP);
|
||||
if(cb->fpValid)
|
||||
PrintLog(" fp sector: %d; %s\n", cb->fpSector, digest);
|
||||
else PrintLog(" fp sector: %d; invalid\n", cb->fpSector);
|
||||
|
||||
for(i=0; i<cb->crcSize; i++)
|
||||
if(!GetBit(cb->valid, i))
|
||||
{ missing++;
|
||||
}
|
||||
PrintLog(" missing crcs: %lld\n", missing);
|
||||
}
|
||||
|
||||
21
curve.c
21
curve.c
@@ -1,22 +1,23 @@
|
||||
/* dvdisaster: Additional error correction for optical media.
|
||||
* Copyright (C) 2004-2009 Carsten Gnoerlich.
|
||||
* Project home page: http://www.dvdisaster.com
|
||||
* Email: carsten@dvdisaster.com -or- cgnoerlich@fsfe.org
|
||||
* Copyright (C) 2004-2017 Carsten Gnoerlich.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* Email: carsten@dvdisaster.org -or- cgnoerlich@fsfe.org
|
||||
* Project homepage: http://www.dvdisaster.org
|
||||
*
|
||||
* This file is part of dvdisaster.
|
||||
*
|
||||
* dvdisaster 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 2 of the License, or
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* dvdisaster 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.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA,
|
||||
* or direct your browser at http://www.gnu.org.
|
||||
* along with dvdisaster. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "dvdisaster.h"
|
||||
@@ -122,7 +123,7 @@ int CurveLogY(Curve *curve, gdouble y) /* not really a log */
|
||||
hfact = (gdouble)(curve->bottomLY - curve->topLY);
|
||||
|
||||
if(y==1) return curve->bottomLY - ((log(2)/log(curve->logMaxY)) * hfact)/2;
|
||||
return curve->bottomLY - (log(y)/log(curve->logMaxY)) * hfact;
|
||||
else return curve->bottomLY - (log(y)/log(curve->logMaxY)) * hfact;
|
||||
}
|
||||
|
||||
/***
|
||||
|
||||
471
debian/changelog
vendored
Normal file
471
debian/changelog
vendored
Normal file
@@ -0,0 +1,471 @@
|
||||
dvdisaster (0.79.6-2) experimental; urgency=medium
|
||||
|
||||
[ TANIGUCHI Takaki ]
|
||||
* Update Vcs-* to salsa.debian.org.
|
||||
|
||||
[ Carlos Maddela ]
|
||||
* Build with DH compat level 11.
|
||||
* Indicate compliance with Debian Policy 4.1.4.
|
||||
* Add machine-readable upstream metadata.
|
||||
* Update debian/copyright.
|
||||
* Update location of PDF manual registered with doc-base (required
|
||||
as a result of DH compat level change).
|
||||
|
||||
-- Carlos Maddela <e7appew@gmail.com> Sat, 23 Jun 2018 05:41:03 +1000
|
||||
|
||||
dvdisaster (0.79.6-1) experimental; urgency=medium
|
||||
|
||||
* New upstream development version [0.79.6].
|
||||
* Rebase patches.
|
||||
|
||||
-- Carlos Maddela <e7appew@gmail.com> Thu, 21 Dec 2017 05:51:54 +1100
|
||||
|
||||
dvdisaster (0.79.5-4) unstable; urgency=medium
|
||||
|
||||
* Use complete Debian revision number as build number, instead of
|
||||
just the numeric part.
|
||||
* Re-implement scripts/time-stamper.bash without direct calls to
|
||||
dpkg-parsechangelog.
|
||||
* Call ./configure script directly, instead of relying on debhelper,
|
||||
to resolve incompatibilities with Bash-based script.
|
||||
* Use alternative way of installing icons to remove dependency on
|
||||
dh-exec.
|
||||
* Drop redundant dependency on dpkg-dev.
|
||||
* Reproducibly generate PDF documentation from TeX sources.
|
||||
* Remove trailing white space from debian/changelog.
|
||||
* Remove unnecessary Testsuite header from debian/control.
|
||||
* Indicate compliance with Debian Policy 4.1.2.
|
||||
* Suppress debian-watch-uses-insecure-uri Lintian warning.
|
||||
* Honour LDFLAGS set by dpkg-buildflags in building all binaries.
|
||||
|
||||
-- Carlos Maddela <e7appew@gmail.com> Thu, 21 Dec 2017 03:14:14 +1100
|
||||
|
||||
dvdisaster (0.79.5-3) unstable; urgency=medium
|
||||
|
||||
* Team upload.
|
||||
* Fix another build failure on kFreeBSD.
|
||||
* Bump Standards Version to 4.0.1.
|
||||
* Regenerate patches with git version 2.14.0.
|
||||
* Do not suppress the display of compilation commands,
|
||||
so that build logs may be analysed by blhc.
|
||||
* Update uploaders list.
|
||||
|
||||
-- Carlos Maddela <e7appew@gmail.com> Mon, 14 Aug 2017 14:52:56 +1000
|
||||
|
||||
dvdisaster (0.79.5-2) unstable; urgency=medium
|
||||
|
||||
[ Carlos Maddela ]
|
||||
* Team upload.
|
||||
* Bump Standards Version to 4.0.0.
|
||||
* Remove unnecessary calls to dpkg-parsechangelog from debian/rules.
|
||||
* debian/watch: Avoid repacking upstream tarballs unnecessarily.
|
||||
* Fix more typos in error messages and docs.
|
||||
* Fix FTBFS on Hurd and kFreeBSD.
|
||||
* Remove incorrect use of 'Origin: vendor' from DEP-3 patch headers.
|
||||
* Improve support for Hurd and kFreeBSD systems, although Hurd still
|
||||
builds without SCSI.
|
||||
|
||||
-- TANIGUCHI Takaki <takaki@debian.org> Mon, 07 Aug 2017 17:34:01 +0900
|
||||
|
||||
dvdisaster (0.79.5-1) unstable; urgency=medium
|
||||
|
||||
[ Carlos Maddela ]
|
||||
* Team upload.
|
||||
* New upstream version [0.79.5]
|
||||
* Refresh and drop patches. The following patches have been dropped:
|
||||
+ 01-libpng15.patch
|
||||
+ 06-remove-encoding-from-desktop-file.patch
|
||||
+ 07-fix-spelling-errors-in-binaries.patch
|
||||
+ 09-fix-format-security-warnings.patch
|
||||
+ 21-fix-privacy-breach-in-doco.patch
|
||||
* Update license to GPL-3.
|
||||
* Update clean rule as old files no longer apply.
|
||||
* Update documentation build and install rules.
|
||||
* debian/rules: Update mutable file list.
|
||||
* Fix generated man pages. The generated man pages incorrectly direct
|
||||
users to the directory of the old HTML documentation, which is no
|
||||
longer available.
|
||||
* Fix display of manual.pdf. The PDF file is automatically compressed
|
||||
by Debhelper, so we need to account for this.
|
||||
* Resurrect old code to support opening URLs in a browser.
|
||||
* Ship upstream-generated manual.pdf for the time being, as we can't
|
||||
generate it ourselves reproducibly.
|
||||
|
||||
-- TANIGUCHI Takaki <takaki@debian.org> Thu, 02 Feb 2017 22:28:25 +0900
|
||||
|
||||
dvdisaster (0.72.4-3) unstable; urgency=medium
|
||||
|
||||
[ Carlos Maddela ]
|
||||
* Team upload.
|
||||
* Bump compat level to 10.
|
||||
* debian/watch: Relax upstream version restriction.
|
||||
* Use original name for the duplicate uncompressed upstream CHANGELOG.
|
||||
* Backup and restore mutable files to allow multiple builds.
|
||||
* Fix FTBFS for hurd-i386.
|
||||
|
||||
[ Corey Wright ]
|
||||
* Add support for BD-ROM media-type. (Closes: #849518)
|
||||
|
||||
-- Carlos Maddela <e7appew@gmail.com> Sat, 07 Jan 2017 00:29:19 +1100
|
||||
|
||||
dvdisaster (0.72.4-2) unstable; urgency=medium
|
||||
|
||||
* Team upload.
|
||||
* Make builds reproducible:
|
||||
+ Use the Debian changelog details to derive a build number and date.
|
||||
+ Don't build with source path embedded in binary.
|
||||
* debian/control:
|
||||
+ Update to Standards Version 3.9.8.
|
||||
- Format security warnings required fixing in tools/memory.c as
|
||||
a result.
|
||||
+ Update VCS details.
|
||||
+ Remove obsolete DM-Upload-Alllowed control field.
|
||||
+ Perform wrap and sort.
|
||||
+ Mark dvdisaster-doc as a multi-arch foreign package.
|
||||
* debian/rules:
|
||||
+ Build with all hardening flags set.
|
||||
+ Link required libraries as needed.
|
||||
+ Fix installation of desktop file and icon images.
|
||||
+ Tidy up installation of doc files.
|
||||
+ Fix clean up.
|
||||
+ Separate binary-arch and binary-indep rules.
|
||||
+ Silence deprecated API warnings.
|
||||
* debian/*:
|
||||
+ Update uscan rules.
|
||||
+ Drop debian/dvdisaster.menu file in favour of desktop file.
|
||||
+ Convert copyright file into proper DEP5 format and update.
|
||||
+ Drop no longer required debian/pixmaps/dvdisaster.xpm.
|
||||
+ Add debian/dvdisaster-doc.doc-base file.
|
||||
+ Add link to html docs in dvdisaster-doc package.
|
||||
+ Remove unnecessary duplication of doc files in the two packages.
|
||||
+ Link all duplicate doc files.
|
||||
+ Fix installation of thumbnails for Czech doco.
|
||||
* debian/patches/*:
|
||||
+ Fix headers to work with git-buildpackage, retaining as much
|
||||
meta info as possible.
|
||||
+ Fix GNU Make detection. (Closes: #848811)
|
||||
+ Fix path of GPL-2 license in 05-help-dialog.patch. (Closes: #708384)
|
||||
+ Fix all warnings except for those related to deprecated API.
|
||||
(Closes: #748416)
|
||||
+ Use non-size-specific icon and add keywords to desktop file.
|
||||
+ Fix spelling: upto -> up to
|
||||
+ Fix missing language fields in PO files.
|
||||
+ Update help dialog to show link to the new Debian package tracker.
|
||||
+ Update copyright notice in about dialog.
|
||||
+ Allow ShowTextFile() to work with absolute path names.
|
||||
+ Fix display of changelog, credits and to-do files.
|
||||
+ Remove link to the newsfeed, to fix Lintian privacy-breach-generic
|
||||
warning. The news feed no longer works anyway.
|
||||
|
||||
-- Carlos Maddela <e7appew@gmail.com> Fri, 23 Dec 2016 15:53:13 +1100
|
||||
|
||||
dvdisaster (0.72.4-1) unstable; urgency=low
|
||||
|
||||
* New upstream (Closes: #665522)
|
||||
* debian/paches/04-manpage.patch: Removed (merged by upstream).
|
||||
|
||||
-- TANIGUCHI Takaki <takaki@debian.org> Sun, 08 Apr 2012 22:02:16 +0900
|
||||
|
||||
dvdisaster (0.72.3-2) unstable; urgency=low
|
||||
|
||||
* debian/patches/libpng15: Build with libpng15. (Closes: #649555)
|
||||
|
||||
-- TANIGUCHI Takaki <takaki@debian.org> Mon, 19 Mar 2012 11:08:53 +0900
|
||||
|
||||
dvdisaster (0.72.3-1) unstable; urgency=low
|
||||
|
||||
[ Rogério Brito ]
|
||||
* debian/patches/*: refresh and adapt every patch
|
||||
* debian/patches/04-manpage.patch: escape one hyphen
|
||||
|
||||
[ TANIGUCHI Takaki ]
|
||||
* New upstream 0.72.3 (Closes: #643869)
|
||||
* Bump Standards-Version to 3.9.3
|
||||
* debian/patches/*: Refreshed.
|
||||
* Depend unversion libpng-dev (Closes: #662306)
|
||||
* debian/rules: Rewrite in dh7 style
|
||||
|
||||
-- TANIGUCHI Takaki <takaki@debian.org> Tue, 06 Mar 2012 12:44:08 +0900
|
||||
|
||||
dvdisaster (0.72.1-2) unstable; urgency=low
|
||||
|
||||
* [da276c7] Refresh patches to avoid potential problems with the
|
||||
buildds.
|
||||
* [3ee8b47] Initial migration to format "3.0 (quilt)".
|
||||
* [af26379] Wrap some long lines for legibility.
|
||||
* [2372076] Wrap one extra line.
|
||||
* [00e1968] Don't patch the documentation directly.
|
||||
* [fac6933] Add missing misc-depends on dvdisaster
|
||||
* [70a6efd] Rewrap the build-depends line, for diff-friendliness.
|
||||
* [9fe0db4] Fix incorrect place of misc:depends.
|
||||
* [6576482] Remove unneeded patch
|
||||
* [7771474] Remove duplicate section field for dvdisaster
|
||||
* [f51c51a] Add debian/watch file to more closely follow upstream
|
||||
* [2194941] Remove UTF-8 encoding from desktop file
|
||||
* [57e4fab] Update patch to deal with hyphens used as minus signs
|
||||
* [80e291c] Add description for the patch
|
||||
* [cea78c3] Add patch to fix spelling errors in the binaries
|
||||
* [96b581b] Fix for another typo in the manpage
|
||||
* [b8f0e62] Update standards version with no changes needed
|
||||
|
||||
-- Rogério Brito <rbrito@ime.usp.br> Tue, 24 Aug 2010 12:10:21 -0300
|
||||
|
||||
dvdisaster (0.72.1-1) unstable; urgency=low
|
||||
|
||||
* New maintainer (Closes: 543876)
|
||||
* new upstream version.
|
||||
* debian/control: update Homepage:
|
||||
* debian/README.source: create
|
||||
* debian/control: add Vcs-*.
|
||||
|
||||
-- TANIGUCHI Takaki <takaki@debian.org> Mon, 23 Nov 2009 10:29:09 +0900
|
||||
|
||||
dvdisaster (0.72-2) unstable; urgency=low
|
||||
|
||||
* Updating to standards version 3.8.3.
|
||||
* Removing vcs fields.
|
||||
* Orphaning package.
|
||||
|
||||
-- Daniel Baumann <daniel@debian.org> Thu, 27 Aug 2009 10:24:34 +0200
|
||||
|
||||
dvdisaster (0.72-1) unstable; urgency=low
|
||||
|
||||
* Using correct rfc-2822 date formats in changelog.
|
||||
* Merging upstream version 0.72.
|
||||
* Removing shebang.patch, not required anymore.
|
||||
* Updating standards version to 3.8.2.
|
||||
* Tidy rules file.
|
||||
|
||||
-- Daniel Baumann <daniel@debian.org> Tue, 07 Jul 2009 01:11:52 +0200
|
||||
|
||||
dvdisaster (0.72~rc1-1) unstable; urgency=low
|
||||
|
||||
* Merging upstream version 0.72~rc1.
|
||||
* Upgrading to standards 3.8.1.
|
||||
|
||||
-- Daniel Baumann <daniel@debian.org> Fri, 17 Apr 2009 21:20:00 +0200
|
||||
|
||||
dvdisaster (0.71.28-1) unstable; urgency=medium
|
||||
|
||||
* Merging upstream version 0.71.28:
|
||||
- Fixes "illegal instruction" crashes on x86 machines which do not support
|
||||
SSE2 (Closes: #515950).
|
||||
|
||||
-- Daniel Baumann <daniel@debian.org> Tue, 17 Mar 2009 09:55:00 +0100
|
||||
|
||||
dvdisaster (0.71.27-1) unstable; urgency=low
|
||||
|
||||
* Using patch-stamp rather than patch in rules file.
|
||||
* Replacing obsolete dh_clean -k with dh_prep.
|
||||
* Merging upstream version 0.71.27.
|
||||
* Rediffing help-dialog.dpatch.
|
||||
* Using quilt rather than dpatch.
|
||||
* Updating year in copyright.
|
||||
* Adding longtitle and description in menu file.
|
||||
* Using usual name for pixmaps directory.
|
||||
* Updating rules to current state of the art.
|
||||
|
||||
-- Daniel Baumann <daniel@debian.org> Sun, 25 Jan 2009 14:01:00 +0100
|
||||
|
||||
dvdisaster (0.71.26-2) unstable; urgency=medium
|
||||
|
||||
* Updating to standards 3.8.0.
|
||||
* Updating vcs fields in control file.
|
||||
* Correcting 03-dvdrom.dpatch to not crash when opening a DVD-ROM.
|
||||
Thanks to Tobias Gruetzmacher <tobias-debian@23.gs> (Closes: #498296).
|
||||
|
||||
-- Daniel Baumann <daniel@debian.org> Mon, 08 Sep 2008 22:08:00 +0200
|
||||
|
||||
dvdisaster (0.71.26-1) unstable; urgency=medium
|
||||
|
||||
* Reordering rules file.
|
||||
* Using examples debhelper to install examples.
|
||||
* Removing 08-xdg.dpatch, went upstream.
|
||||
* Removing 07-adaptive-read.dpatch, went upstream.
|
||||
* Rediffing 05-help-dialog.dpatch.
|
||||
* Rediffing 03-dvdrom.dpatch.
|
||||
* Rediffing 02-encryption.dpatch.
|
||||
* Removing watch file.
|
||||
* Removing useless whitespaces at end of debian gmkrs02 example.
|
||||
* Rewriting copyright file in machine-interpretable format.
|
||||
* Adding vcs fields in control file.
|
||||
* Upgrading package to debhelper 7.
|
||||
* Merging upstream version 0.71.26.
|
||||
|
||||
-- Daniel Baumann <daniel@debian.org> Sat, 03 May 2008 11:34:00 +0200
|
||||
|
||||
dvdisaster (0.71~devel23-7) unstable; urgency=low
|
||||
|
||||
* Bumping to new policy.
|
||||
* Updating menu file to new policy.
|
||||
* Don't hide make errors in clean target of rules.
|
||||
|
||||
-- Daniel Baumann <daniel@debian.org> Sun, 23 Dec 2007 13:26:00 +0100
|
||||
|
||||
dvdisaster (0.71~devel23-6) unstable; urgency=low
|
||||
|
||||
* Using xdg-open rather than gnome-open.
|
||||
|
||||
-- Daniel Baumann <daniel@debian.org> Thu, 29 Nov 2007 10:39:00 +0100
|
||||
|
||||
dvdisaster (0.71~devel23-5) unstable; urgency=low
|
||||
|
||||
* Setting configure shebang to bash.
|
||||
|
||||
-- Daniel Baumann <daniel@debian.org> Wed, 24 Oct 2007 06:14:00 +0200
|
||||
|
||||
dvdisaster (0.71~devel23-4) unstable; urgency=low
|
||||
|
||||
* Fixed clean target in rules (Closes: #442559).
|
||||
|
||||
-- Daniel Baumann <daniel@debian.org> Sun, 17 Sep 2007 00:37:00 +0200
|
||||
|
||||
dvdisaster (0.71~devel23-3) unstable; urgency=medium
|
||||
|
||||
* Applied patch from Wolfgang Weisselberg <g35fckt001@sneakemail.com> to fix
|
||||
segfault when reading CD with --adaptive-read (Closes: #427980).
|
||||
* Including example script from Osamu Aoki <osamu@debian.org> to provide a
|
||||
GUI for creating RS02 supplimented ISO images (Closes: #442145).
|
||||
|
||||
-- Daniel Baumann <daniel@debian.org> Fri, 14 Sep 2007 11:13:00 +0200
|
||||
|
||||
dvdisaster (0.71~devel23-2) unstable; urgency=low
|
||||
|
||||
* Fix shebang in configure.
|
||||
|
||||
-- Daniel Baumann <daniel@debian.org> Tue, 04 Sep 2007 22:53:00 +0200
|
||||
|
||||
dvdisaster (0.71~devel23-1) unstable; urgency=low
|
||||
|
||||
* New upstream release.
|
||||
|
||||
-- Daniel Baumann <daniel@debian.org> Mon, 14 May 2007 10:46:00 +0200
|
||||
|
||||
dvdisaster (0.71~devel22-1) unstable; urgency=low
|
||||
|
||||
* New upstream release.
|
||||
|
||||
-- Daniel Baumann <daniel@debian.org> Sun, 29 Apr 2007 16:47:00 +0200
|
||||
|
||||
dvdisaster (0.70.4-2) unstable; urgency=low
|
||||
|
||||
* Uploading to unstable.
|
||||
* Bumped package to debhelper 5.
|
||||
|
||||
-- Daniel Baumann <daniel@debian.org> Thu, 08 Mar 2007 10:35:00 +0100
|
||||
|
||||
dvdisaster (0.70.4-1) experimental; urgency=low
|
||||
|
||||
* New upstream release.
|
||||
|
||||
-- Daniel Baumann <daniel@debian.org> Sat, 27 Jan 2007 18:05:00 +0100
|
||||
|
||||
dvdisaster (0.70.3-2) unstable; urgency=medium
|
||||
|
||||
* Added patch from Carsten Gnoerlich <carsten@dvdisaster.com> to fix issues
|
||||
with glib threading (Closes: #405757).
|
||||
|
||||
-- Daniel Baumann <daniel@debian.org> Wed, 17 Jan 2007 10:42:00 +0100
|
||||
|
||||
dvdisaster (0.70.3-1) unstable; urgency=low
|
||||
|
||||
* New upstream release.
|
||||
|
||||
-- Daniel Baumann <daniel@debian.org> Wed, 13 Dec 2006 11:57:00 +0100
|
||||
|
||||
dvdisaster (0.70.2-2) unstable; urgency=medium
|
||||
|
||||
* Adjusted 05-help-dialog.dpatch as suggested by
|
||||
Corey Wright <undefined@pobox.com> (Closes: #393671).
|
||||
|
||||
-- Daniel Baumann <daniel@debian.org> Tue, 17 Oct 2006 14:01:00 +0200
|
||||
|
||||
dvdisaster (0.70.2-1) unstable; urgency=low
|
||||
|
||||
* New upstream release.
|
||||
* Added patch to customize the help-dialog according to README.MODIFYING.
|
||||
|
||||
-- Daniel Baumann <daniel@debian.org> Tue, 03 Oct 2006 20:58:00 +0200
|
||||
|
||||
dvdisaster (0.70.1-2) unstable; urgency=low
|
||||
|
||||
* Added patch from upstream to fix some code errors (Closes: #388304).
|
||||
|
||||
-- Daniel Baumann <daniel@debian.org> Thu, 21 Sep 2006 01:29:00 +0200
|
||||
|
||||
dvdisaster (0.70.1-1) unstable; urgency=low
|
||||
|
||||
* New upstream release.
|
||||
|
||||
-- Daniel Baumann <daniel@debian.org> Tue, 22 Aug 2006 23:09:00 +0200
|
||||
|
||||
dvdisaster (0.70-1) unstable; urgency=low
|
||||
|
||||
* New upstream release (Closes: #377757).
|
||||
|
||||
-- Daniel Baumann <daniel@debian.org> Tue, 11 Jul 2006 07:19:00 +0200
|
||||
|
||||
dvdisaster (0.66-4) unstable; urgency=low
|
||||
|
||||
* New email address.
|
||||
* Fixed typo in manpage (Closes: #376752).
|
||||
|
||||
-- Daniel Baumann <daniel@debian.org> Fri, 07 Jul 2006 09:01:00 +0200
|
||||
|
||||
dvdisaster (0.66-3) unstable; urgency=low
|
||||
|
||||
* Fixed docsubdir (Closes: #366274).
|
||||
* Disabled skipping of encrypted disks (Closes: #366399).
|
||||
* Added patch for DVD-ROM medias (Closes: #366392).
|
||||
|
||||
-- Daniel Baumann <daniel.baumann@panthera-systems.net> Mon, 15 May 2006 03:17:00 -0500
|
||||
|
||||
dvdisaster (0.66-2) unstable; urgency=low
|
||||
|
||||
* Set dvdisaster-doc to recommends instead of suggests (Closes: #363291).
|
||||
|
||||
-- Daniel Baumann <daniel.baumann@panthera-systems.net> Tue, 18 Apr 2006 16:35:00 +0100
|
||||
|
||||
dvdisaster (0.66-1) unstable; urgency=low
|
||||
|
||||
* New upstream release.
|
||||
* Added pixmap.
|
||||
|
||||
-- Daniel Baumann <daniel.baumann@panthera-systems.net> Tue, 28 Mar 2006 10:13:00 +0100
|
||||
|
||||
dvdisaster (0.65-1) unstable; urgency=low
|
||||
|
||||
* New upstream release.
|
||||
* Removed patch stack buffer patch (went upstream).
|
||||
* Removed manpage patches (went upstream).
|
||||
|
||||
-- Daniel Baumann <daniel.baumann@panthera-systems.net> Tue, 17 Jan 2006 14:32:00 +0100
|
||||
|
||||
dvdisaster (0.64.2-1) unstable; urgency=low
|
||||
|
||||
* New upstream release.
|
||||
* Now using dpatch for updating manpages.
|
||||
* Fixed definitely the documentation path in the manpages (Closes: #333591).
|
||||
* Added patch from Robert Bihlmeyer <robbe@orcus.priv.at> to fix segfault on
|
||||
allocating stack buffer (Closes: #335792).
|
||||
|
||||
-- Daniel Baumann <daniel.baumann@panthera-systems.net> Fri, 25 Nov 2005 11:01:00 +0100
|
||||
|
||||
dvdisaster (0.63.2-1) unstable; urgency=low
|
||||
|
||||
* New upstream release:
|
||||
- no longer needs gawk.
|
||||
- manpage updated and moved to upstream.
|
||||
- manpage now mentions correct documentation-location (Closes: #322187).
|
||||
* Now update config.{guess,sub} via .diff.gz.
|
||||
* Corrected non-ascii chars in the German and Italian manpage.
|
||||
|
||||
-- Daniel Baumann <daniel.baumann@panthera-systems.net> Sat, 06 Aug 2005 20:03:00 +0200
|
||||
|
||||
dvdisaster (0.63-1) unstable; urgency=low
|
||||
|
||||
* Initial release (Closes: #319742).
|
||||
* Fixed Makefile for $(DESTDIR)-use.
|
||||
* Added manpage.
|
||||
|
||||
-- Daniel Baumann <daniel.baumann@panthera-systems.net> Sun, 24 Jul 2005 13:35:00 +0200
|
||||
1
debian/compat
vendored
Normal file
1
debian/compat
vendored
Normal file
@@ -0,0 +1 @@
|
||||
11
|
||||
43
debian/control
vendored
Normal file
43
debian/control
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
Source: dvdisaster
|
||||
Section: otherosfs
|
||||
Priority: optional
|
||||
Maintainer: Optical Media Tools Team <pkg-opt-media-team@lists.alioth.debian.org>
|
||||
Uploaders: TANIGUCHI Takaki <takaki@debian.org>,
|
||||
Rogério Brito <rbrito@ime.usp.br>,
|
||||
Carlos Maddela <e7appew@gmail.com>
|
||||
Build-Depends: debhelper (>= 11),
|
||||
gettext,
|
||||
libbz2-dev,
|
||||
libcam-dev [kfreebsd-any],
|
||||
libgtk2.0-dev,
|
||||
libpng-dev,
|
||||
pkg-config
|
||||
Build-Depends-Indep: texlive-fonts-recommended,
|
||||
texlive-latex-base,
|
||||
texlive-latex-extra
|
||||
Standards-Version: 4.1.4
|
||||
Vcs-Browser: https://salsa.debian.org/optical-media-team/dvdisaster
|
||||
Vcs-Git: https://salsa.debian.org/optical-media-team/dvdisaster.git
|
||||
Homepage: http://dvdisaster.net/
|
||||
|
||||
Package: dvdisaster
|
||||
Architecture: any
|
||||
Depends: xdg-utils, ${misc:Depends}, ${shlibs:Depends}
|
||||
Recommends: dvdisaster-doc
|
||||
Description: data loss/scratch/aging protection for CD/DVD media
|
||||
dvdisaster provides a margin of safety against data loss on CD and DVD media
|
||||
caused by scratches or aging media. It creates error correction data which is
|
||||
used to recover unreadable sectors if the disc becomes damaged at a later time.
|
||||
|
||||
Package: dvdisaster-doc
|
||||
Section: doc
|
||||
Architecture: all
|
||||
Multi-Arch: foreign
|
||||
Depends: ${misc:Depends}
|
||||
Suggests: dvdisaster
|
||||
Description: data loss/scratch/aging protection for CD/DVD media (documentation)
|
||||
dvdisaster provides a margin of safety against data loss on CD and DVD media
|
||||
caused by scratches or aging media. It creates error correction data which is
|
||||
used to recover unreadable sectors if the disc becomes damaged at a later time.
|
||||
.
|
||||
This package contains the documentation.
|
||||
49
debian/copyright
vendored
Normal file
49
debian/copyright
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Contact: Carsten Gnörlich <carsten@dvdisaster.org>
|
||||
Upstream-Name: dvdisaster
|
||||
Source: http://dvdisaster.net/
|
||||
|
||||
Files: *
|
||||
Copyright: 2004–2015, Carsten Gnörlich <carsten@dvdisaster.org>
|
||||
License: GPL-3+
|
||||
|
||||
Files: debian/*
|
||||
Copyright: 2005–2009, Daniel Baumann <daniel@debian.org>
|
||||
2009–2018, TANIGUCHI Takaki <takaki@debian.org>
|
||||
2009–2010, Rogério Brito <rbrito@ime.usp.br>
|
||||
2016–2018, Carlos Maddela <e7appew@gmail.com>
|
||||
License: GPL-2+
|
||||
|
||||
License: GPL-2+
|
||||
This package 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 2 of the License, or
|
||||
(at your option) any later version.
|
||||
.
|
||||
This package 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.
|
||||
.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
.
|
||||
On Debian systems, the complete text of the GNU General
|
||||
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
|
||||
|
||||
License: GPL-3+
|
||||
This program 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.
|
||||
.
|
||||
This package 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.
|
||||
.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
.
|
||||
On Debian systems, the complete text of the GNU General
|
||||
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
|
||||
10
debian/dvdisaster-doc.doc-base
vendored
Normal file
10
debian/dvdisaster-doc.doc-base
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
Document: dvdisaster
|
||||
Title: The dvdisaster User's Manual
|
||||
Author: Carsten Gnörlich
|
||||
Abstract: This manual describes what dvdisaster is and how it can be used
|
||||
to protect optical media (CD/DVD/BD) from data loss, due to scratches
|
||||
and aging.
|
||||
Section: File Management
|
||||
|
||||
Format: PDF
|
||||
Files: /usr/share/doc/dvdisaster/manual.pdf.gz
|
||||
1
debian/dvdisaster-doc.docs
vendored
Normal file
1
debian/dvdisaster-doc.docs
vendored
Normal file
@@ -0,0 +1 @@
|
||||
documentation/user-manual/manual.pdf
|
||||
5
debian/dvdisaster.docs
vendored
Normal file
5
debian/dvdisaster.docs
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
CHANGELOG
|
||||
CREDITS.*
|
||||
README.MODIFYING
|
||||
TODO
|
||||
TRANSLATION.HOWTO
|
||||
1
debian/dvdisaster.examples
vendored
Normal file
1
debian/dvdisaster.examples
vendored
Normal file
@@ -0,0 +1 @@
|
||||
debian/examples/*
|
||||
5
debian/dvdisaster.install
vendored
Normal file
5
debian/dvdisaster.install
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
contrib/dvdisaster.desktop usr/share/applications
|
||||
usr/bin
|
||||
usr/share/icons
|
||||
usr/share/locale
|
||||
usr/share/man
|
||||
41
debian/examples/gmkrs02
vendored
Normal file
41
debian/examples/gmkrs02
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
#!/bin/sh -e
|
||||
# Copyright (C) 2007 Osamu Aoki <osamu@debian.org>, Public Domain
|
||||
set -x
|
||||
# Initialize variables
|
||||
DATA_SRC=""
|
||||
DATA_ISO="$HOME/Desktop/iso-$$.img"
|
||||
LABEL=$(date +%Y%m%d-%H%M%S-%Z)
|
||||
error_exit()
|
||||
{
|
||||
echo "$1" >&2
|
||||
exit 1
|
||||
}
|
||||
# Erase disk image
|
||||
rm -f "$DATA_ISO" || true
|
||||
# Select directory for creating ISO image from folder on desktop
|
||||
DATA_SRC=$(zenity --file-selection --directory \
|
||||
--title="Select the directory tree root to create ISO image") \
|
||||
|| error_exit "Exit on directry selection"
|
||||
# Check size of archive
|
||||
xterm -T "Check size $DATA_SRC" -e du -s $DATA_SRC/*
|
||||
SIZE=$(($(du -s $DATA_SRC | awk '{print $1}')/1024))
|
||||
if [ $SIZE -le 520 ] ; then
|
||||
zenity --info --title="Dvdisaster RS02" --width 640 --height 400 \
|
||||
--text="The data size is good for CD backup:\\n $SIZE MB"
|
||||
elif [ $SIZE -le 3500 ]; then
|
||||
zenity --info --title="Dvdisaster RS02" --width 640 --height 400 \
|
||||
--text="The data size is good for DVD backup :\\n $SIZE MB"
|
||||
else
|
||||
zenity --info --title="Dvdisaster RS02" --width 640 --height 400 \
|
||||
--text="The data size is too big to backup : $SIZE MB"
|
||||
error_exit "The data size is too big to backup :\\n $SIZE MB"
|
||||
fi
|
||||
# only xterm is sure to have working -e option
|
||||
# Create raw ISO image
|
||||
xterm -T "genisoimage $DATA_ISO" \
|
||||
-e genisoimage -r -J -V "$LABEL" -o "$DATA_ISO" "$DATA_SRC"
|
||||
# Create RS02 supplimental redundancy
|
||||
xterm -T "dvdisaster $DATA_ISO" -e dvdisaster -i "$DATA_ISO" -mRS02 -c
|
||||
zenity --info --title="Dvdisaster RS02" --width 640 --height 400 \
|
||||
--text="ISO/RS02 data ($SIZE MB) \\n created at: $DATA_ISO"
|
||||
# EOF
|
||||
32
debian/patches/02-encryption.patch
vendored
Normal file
32
debian/patches/02-encryption.patch
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
From: Optical Media Tools Team <pkg-opt-media-team@lists.alioth.debian.org>
|
||||
Date: Sun, 8 Apr 2012 21:51:29 +0900
|
||||
Subject: Disables to skip on encrypted disks (e.g. DVD with CSS-Encryption).
|
||||
|
||||
Description: Disables to skip on encrypted disks (e.g. DVD with CSS-Encryption).
|
||||
Author: n/a
|
||||
Last-Update: 2012-04-08
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
---
|
||||
scsi-layer.c | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/scsi-layer.c b/scsi-layer.c
|
||||
index cad13d4..866b7ac 100644
|
||||
--- a/scsi-layer.c
|
||||
+++ b/scsi-layer.c
|
||||
@@ -2695,12 +2695,13 @@ Image* OpenImageFromDevice(char *device)
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
-
|
||||
+/*
|
||||
if(dh->mainType == DVD && query_copyright(dh))
|
||||
{ CloseImage(image);
|
||||
Stop(_("This software does not support encrypted media.\n"));
|
||||
return NULL;
|
||||
}
|
||||
+*/
|
||||
|
||||
/* Create the bitmap of simulated defects */
|
||||
|
||||
29
debian/patches/03-dvdrom.patch
vendored
Normal file
29
debian/patches/03-dvdrom.patch
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
From: Corey Wright <undefined@pobox.com>
|
||||
Date: Tue, 6 Mar 2012 11:10:30 +0900
|
||||
Subject: Adds support for DVD-ROM medium-type.
|
||||
|
||||
Description: Adds support for DVD-ROM medium-type.
|
||||
Author: Corey Wright <undefined@pobox.com>
|
||||
Last-Update: 2012-03-06
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
---
|
||||
scsi-layer.c | 5 +++++
|
||||
1 file changed, 5 insertions(+)
|
||||
|
||||
diff --git a/scsi-layer.c b/scsi-layer.c
|
||||
index 866b7ac..b3a9d0e 100644
|
||||
--- a/scsi-layer.c
|
||||
+++ b/scsi-layer.c
|
||||
@@ -908,6 +908,11 @@ static int query_dvd(DeviceHandle *dh, int probe_only)
|
||||
break;
|
||||
}
|
||||
|
||||
+ if(layer_type & 0x01)
|
||||
+ { dh->typeDescr = g_strdup("DVD-ROM");
|
||||
+ break;
|
||||
+ }
|
||||
+
|
||||
if(layer_type & 0x06) /* strange thing: (re-)writeable but neither plus nor dash */
|
||||
{ dh->typeDescr = g_strdup("DVD-ROM (fake)");
|
||||
dh->subType = DVD;
|
||||
55
debian/patches/05-help-dialog.patch
vendored
Normal file
55
debian/patches/05-help-dialog.patch
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
From: Daniel Baumann <daniel@debian.org>
|
||||
Date: Sun, 8 Apr 2012 21:53:29 +0900
|
||||
Subject: Customizes the help-dialog according to README.MODIFYING.
|
||||
|
||||
Description: Customizes the help-dialog according to README.MODIFYING.
|
||||
.
|
||||
* 2016-12-19 - Fixed path:
|
||||
/usr/share/common/licenses/GPL-2 -> /usr/share/common-licenses/GPL-2
|
||||
and restored use of "GPL" label.
|
||||
Author: Daniel Baumann <daniel@debian.org>
|
||||
Last-Update: 2016-12-19
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
---
|
||||
help-dialogs.c | 12 ++++++------
|
||||
1 file changed, 6 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/help-dialogs.c b/help-dialogs.c
|
||||
index c486613..758ac19 100644
|
||||
--- a/help-dialogs.c
|
||||
+++ b/help-dialogs.c
|
||||
@@ -403,7 +403,7 @@ void ShowGPL()
|
||||
ShowTextfile(_("windowtitle|GNU General Public License"),
|
||||
_("<big>GNU General Public License</big>\n"
|
||||
"<i>The license terms of dvdisaster.</i>"),
|
||||
- "COPYING", NULL, NULL);
|
||||
+ "/usr/share/common-licenses/GPL-2", NULL, NULL);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -567,7 +567,7 @@ static void show_modifying(void)
|
||||
{ ShowTextfile(_("windowtitle|Modifying dvdisaster"),
|
||||
_("<big>Modifying dvdisaster</big>\n"
|
||||
"<i>Your changes are not ours.</i>"),
|
||||
- "README.MODIFYING", NULL, NULL);
|
||||
+ "/usr/share/doc/dvdisaster/README.MODIFYING", NULL, NULL);
|
||||
}
|
||||
|
||||
static gint about_cb(GtkWidget *widget, GdkEvent *event, gpointer data)
|
||||
@@ -746,11 +746,11 @@ void AboutDialog()
|
||||
"GPL");
|
||||
|
||||
#ifdef MODIFIED_SOURCE
|
||||
- AboutTextWithLink(vbox, _("\nThis program is <b>not the original</b>. It is based on the\n"
|
||||
- "source code of dvdisaster, but contains third-party changes.\n\n"
|
||||
+ AboutTextWithLink(vbox, _("\nThis version is <b>not the original</b>. It has been patched\n"
|
||||
+ "for Debian to support DVD-ROMs (with and without encryption).\n\n"
|
||||
"Please do not bother the original authors of dvdisaster\n"
|
||||
- "([www.dvdisaster.org]) about issues with this version.\n"),
|
||||
- "http://www.dvdisaster.org");
|
||||
+ "but submit bugreports against the [debian package] instead.\n"),
|
||||
+ "http://packages.qa.debian.org/dvdisaster");
|
||||
|
||||
#else
|
||||
lang = g_getenv("LANG");
|
||||
41
debian/patches/08-fix-gnu-make-detection.patch
vendored
Normal file
41
debian/patches/08-fix-gnu-make-detection.patch
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
From: Carlos Maddela <e7appew@gmail.com>
|
||||
Date: Sun, 18 Dec 2016 23:05:03 +1100
|
||||
Subject: Fix GNU Make detection.
|
||||
|
||||
Description: Fix GNU Make detection.
|
||||
While the previous code works with earlier versions of bash, it doesn't
|
||||
seem to work with bash 4.4.5. The redirection to /dev/null somehow causes
|
||||
grep to return an error code of 2.
|
||||
.
|
||||
This change allows for more predictable behaviour: grep returns an
|
||||
error code of 0 or 1.
|
||||
Author: Carlos Maddela <e7appew@gmail.com>
|
||||
Bug-Debian: https://bugs.debian.org/848811
|
||||
Forwarded: no
|
||||
Last-Update: 2016-12-18
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
---
|
||||
scripts/bash-based-configure | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/scripts/bash-based-configure b/scripts/bash-based-configure
|
||||
index 6baffde..f1a8bd1 100644
|
||||
--- a/scripts/bash-based-configure
|
||||
+++ b/scripts/bash-based-configure
|
||||
@@ -313,13 +313,13 @@ function REQUIRE_GMAKE()
|
||||
|
||||
echo -n "Checking for gmake: "
|
||||
|
||||
- if (gmake -v | grep "GNU Make") > /dev/null 2>&1 ;
|
||||
+ if (gmake -v 2>&1 | grep "GNU Make") > /dev/null 2>&1 ;
|
||||
then echo "yes"
|
||||
echo "MAKE = `which gmake`" >>Makefile.config
|
||||
return 0
|
||||
fi;
|
||||
|
||||
- if (make -v | grep "GNU Make") > /dev/null 2>&1 ;
|
||||
+ if (make -v 2>&1 | grep "GNU Make") > /dev/null 2>&1 ;
|
||||
then echo "yes"
|
||||
echo "MAKE = `which make`" >>Makefile.config
|
||||
return 0
|
||||
28
debian/patches/10-use-non-size-specific-icon-and-add-keywords-to-desktop-file.patch
vendored
Normal file
28
debian/patches/10-use-non-size-specific-icon-and-add-keywords-to-desktop-file.patch
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
From: Carlos Maddela <e7appew@gmail.com>
|
||||
Date: Mon, 19 Dec 2016 03:40:41 +1100
|
||||
Subject: Use non-size-specific icon and add keywords to desktop file.
|
||||
|
||||
Description: Use non-size-specific icon and add keywords to desktop file.
|
||||
Author: Carlos Maddela <e7appew@gmail.com>
|
||||
Forwarded: no
|
||||
Last-Update: 2016-12-19
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
---
|
||||
contrib/dvdisaster.desktop | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/contrib/dvdisaster.desktop b/contrib/dvdisaster.desktop
|
||||
index c7661ec..1f9926b 100644
|
||||
--- a/contrib/dvdisaster.desktop
|
||||
+++ b/contrib/dvdisaster.desktop
|
||||
@@ -6,7 +6,8 @@ Comment=Additional error protection for CD/DVD media
|
||||
Comment[cs]=Přídavná ochrana pro média CD/DVD
|
||||
Comment[de]=Zusätzliche Fehlerkorrektur für CD/DVD
|
||||
Exec=dvdisaster
|
||||
-Icon=dvdisaster48.png
|
||||
+Icon=dvdisaster
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Application;System;
|
||||
+Keywords=CD;DVD;media;data loss;scratch;aging;error;protection;recovery;
|
||||
51
debian/patches/11-no-cruft.patch
vendored
Normal file
51
debian/patches/11-no-cruft.patch
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
From: Carlos Maddela <e7appew@gmail.com>
|
||||
Date: Mon, 19 Dec 2016 05:06:30 +1100
|
||||
Subject: Do not install cruft.
|
||||
|
||||
Description: Do not install cruft.
|
||||
Author: Carlos Maddela <e7appew@gmail.com>
|
||||
Forwarded: not-needed
|
||||
Last-Update: 2017-12-21
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
---
|
||||
GNUmakefile.template | 19 -------------------
|
||||
1 file changed, 19 deletions(-)
|
||||
|
||||
diff --git a/GNUmakefile.template b/GNUmakefile.template
|
||||
index 77a57bf..6fda92b 100644
|
||||
--- a/GNUmakefile.template
|
||||
+++ b/GNUmakefile.template
|
||||
@@ -228,12 +228,6 @@ install: dvdisaster manual
|
||||
install -d $(BUILDROOT)$(BINDIR)
|
||||
install dvdisaster $(BUILDROOT)$(BINDIR)
|
||||
install -d $(BUILDROOT)$(DOCSUBDIR)
|
||||
- install -m 644 CHANGELOG $(BUILDROOT)$(DOCSUBDIR)
|
||||
- install -m 644 COPYING $(BUILDROOT)$(DOCSUBDIR)
|
||||
- install -m 644 CREDITS* $(BUILDROOT)$(DOCSUBDIR)
|
||||
- install -m 644 README.MODIFYING $(BUILDROOT)$(DOCSUBDIR)
|
||||
- install -m 644 TODO $(BUILDROOT)$(DOCSUBDIR)
|
||||
- install -d $(BUILDROOT)$(DOCSUBDIR)
|
||||
(cd documentation/user-manual; install -m 644 manual.pdf $(BUILDROOT)$(DOCSUBDIR))
|
||||
install -d $(BUILDROOT)$(MANDIR)/man1
|
||||
install -d $(BUILDROOT)$(MANDIR)/de/man1
|
||||
@@ -251,19 +245,6 @@ install: dvdisaster manual
|
||||
install -m 644 $$i/LC_MESSAGES/dvdisaster.mo $(BUILDROOT)$(LOCALEDIR)/$$i/LC_MESSAGES; \
|
||||
done \
|
||||
fi
|
||||
- @echo "# dvdisaster uninstaller script" > $(BUILDROOT)$(BINDIR)/dvdisaster-uninstall.sh
|
||||
- @echo "# Usage: sh dvdisaster-uninstall.sh" >> $(BUILDROOT)$(BINDIR)/dvdisaster-uninstall.sh
|
||||
- @echo >> $(BUILDROOT)$(BINDIR)/dvdisaster-uninstall.sh
|
||||
- @echo "rm -f $(BINDIR)/dvdisaster $(BINDIR)/dvdisaster-uninstall.sh" >> $(BUILDROOT)$(BINDIR)/dvdisaster-uninstall.sh
|
||||
- @echo "rm -rf $(DOCSUBDIR)" >> $(BUILDROOT)$(BINDIR)/dvdisaster-uninstall.sh
|
||||
- @for i in $(PO_LOCALES); do \
|
||||
- echo "rm $(LOCALEDIR)/$$i/LC_MESSAGES/dvdisaster.mo" >> $(BUILDROOT)$(BINDIR)/dvdisaster-uninstall.sh ; \
|
||||
- done
|
||||
- @echo "rm -f $(MANDIR)/man1/dvdisaster.1" >> $(BUILDROOT)$(BINDIR)/dvdisaster-uninstall.sh
|
||||
- @for i in $(MAN_LOCALES); do \
|
||||
- echo "rm $(MANDIR)/$$i/man1/dvdisaster.1" >> $(BUILDROOT)$(BINDIR)/dvdisaster-uninstall.sh ; \
|
||||
- done
|
||||
- @echo "echo \"dvdisaster has been uninstalled.\"" >> $(BUILDROOT)$(BINDIR)/dvdisaster-uninstall.sh
|
||||
|
||||
uninstall:
|
||||
@echo "Uninstalling package..."
|
||||
397
debian/patches/12-fix-spelling-of-up-to.patch
vendored
Normal file
397
debian/patches/12-fix-spelling-of-up-to.patch
vendored
Normal file
@@ -0,0 +1,397 @@
|
||||
From: Carlos Maddela <e7appew@gmail.com>
|
||||
Date: Mon, 19 Dec 2016 06:03:48 +1100
|
||||
Subject: Fix spelling: upto -> up to
|
||||
|
||||
Description: Fix spelling: upto -> up to
|
||||
Author: Carlos Maddela <e7appew@gmail.com>
|
||||
Forwarded: no
|
||||
Last-Update: 2017-12-21
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
---
|
||||
debug.c | 2 +-
|
||||
documentation/codec-specs/rs01.tex | 2 +-
|
||||
documentation/codec-specs/rs02.tex | 2 +-
|
||||
documentation/dvdisaster.en.1 | 4 ++--
|
||||
documentation/user-manual/qa.tex | 2 +-
|
||||
dvdisaster.c | 2 +-
|
||||
dvdisaster.h | 4 ++--
|
||||
locale/cs.po | 6 +++---
|
||||
locale/de.po | 6 +++---
|
||||
locale/it.po | 8 ++++----
|
||||
locale/pt_BR.po | 10 +++++-----
|
||||
locale/ru.po | 12 ++++++------
|
||||
locale/sv.po | 6 +++---
|
||||
preferences.c | 4 ++--
|
||||
14 files changed, 35 insertions(+), 35 deletions(-)
|
||||
|
||||
diff --git a/debug.c b/debug.c
|
||||
index b4a96d1..bd725d6 100644
|
||||
--- a/debug.c
|
||||
+++ b/debug.c
|
||||
@@ -1023,7 +1023,7 @@ void RawSector(char *arg)
|
||||
*
|
||||
* ./dvdisaster --debug --send-cdb 12,00,00,00,24,00:24
|
||||
*
|
||||
- * The first six bytes make up the cdb; cdbs with upto 12 bytes are possible.
|
||||
+ * The first six bytes make up the cdb; cdbs with up to 12 bytes are possible.
|
||||
* The :24 arg is the allocation length.
|
||||
* Note that the allocation length must match those specified in the cdb;
|
||||
* differing values may crash the system.
|
||||
diff --git a/documentation/codec-specs/rs01.tex b/documentation/codec-specs/rs01.tex
|
||||
index ebb1ee5..a8c0d90 100644
|
||||
--- a/documentation/codec-specs/rs01.tex
|
||||
+++ b/documentation/codec-specs/rs01.tex
|
||||
@@ -172,7 +172,7 @@ The $d_{i,j}$ denote the $i-th$ byte in the $j-th$ layer.
|
||||
In order to create the first ecc block, bytes $d_{1,1}$ to $d_{1,n}$ are taken from the
|
||||
$n$ layers. Then the RS(255,k) code is calculated (see appendix \ref{rs} for its parameters)
|
||||
and the
|
||||
-resulting $k$ parity bytes $e_{1,1}$ upto $e_{k,1}$ are stored
|
||||
+resulting $k$ parity bytes $e_{1,1}$ up to $e_{k,1}$ are stored
|
||||
in the ecc file. The resulting ecc block is marked grey in the
|
||||
figure. The next ecc blocks are calculated and stored accordingly.
|
||||
In total, the ecc section contains $k*ls$ bytes of parity information,
|
||||
diff --git a/documentation/codec-specs/rs02.tex b/documentation/codec-specs/rs02.tex
|
||||
index 69195a0..fb88384 100644
|
||||
--- a/documentation/codec-specs/rs02.tex
|
||||
+++ b/documentation/codec-specs/rs02.tex
|
||||
@@ -133,7 +133,7 @@ Its format is described in appendix \ref{eh}. For RS02, only the data fields
|
||||
marked with ``all'' or ``RS02'' are relevant; all other fields should be set to zero.
|
||||
|
||||
Data layer $n$ does also contain the CRC32 checksums of each data sector
|
||||
-upto the ecc header. If the .iso image contains $s$ sectors,
|
||||
+up to the ecc header. If the .iso image contains $s$ sectors,
|
||||
then the CRC field contains $4s$ bytes, rounded up
|
||||
to the nearest multiple of 2048.
|
||||
CRC32 checksums are calculated over a whole CD sector comprising 2048 bytes.
|
||||
diff --git a/documentation/dvdisaster.en.1 b/documentation/dvdisaster.en.1
|
||||
index 3472012..d71abec 100644
|
||||
--- a/documentation/dvdisaster.en.1
|
||||
+++ b/documentation/dvdisaster.en.1
|
||||
@@ -279,7 +279,7 @@ Selects between the sg (SG_IO) driver (default setting) and the
|
||||
older cdrom (CDROM_SEND_PACKET) driver for accessing the optical drives.
|
||||
Both drivers should work equally well; however the cdrom driver is known
|
||||
to cause system failures on some ancient SCSI controllers.
|
||||
-The older cdrom driver was the default upto and including dvdisaster 0.72.x;
|
||||
+The older cdrom driver was the default up to and including dvdisaster 0.72.x;
|
||||
if the now pre-selected sg driver changes something to the worse for you
|
||||
please switch back to the older driver using \-\-driver=cdrom.
|
||||
.TP
|
||||
@@ -384,7 +384,7 @@ the uncorrected sector instead.
|
||||
.RE
|
||||
.TP
|
||||
.B \-\-read-attempts n-m
|
||||
-attempts n upto m reads of a defective sector.
|
||||
+attempts n up to m reads of a defective sector.
|
||||
.TP
|
||||
.B \-\-read-medium n
|
||||
read the whole medium up to n times.
|
||||
diff --git a/documentation/user-manual/qa.tex b/documentation/user-manual/qa.tex
|
||||
index a3465a8..d79ca4d 100644
|
||||
--- a/documentation/user-manual/qa.tex
|
||||
+++ b/documentation/user-manual/qa.tex
|
||||
@@ -465,6 +465,6 @@ drive for reading images in these cases.}
|
||||
|
||||
\qa{``Ecc file has been created with version 0.40.7.''}
|
||||
{Some developer versions of dvdisaster mark their ecc files with a special bit.
|
||||
- This causes dvdisaster versions upto 0.65 to falsely display the above error
|
||||
+ This causes dvdisaster versions up to 0.65 to falsely display the above error
|
||||
message. Please use the developer versions only together with dvdisaster
|
||||
0.66 or newer versions. }
|
||||
diff --git a/dvdisaster.c b/dvdisaster.c
|
||||
index 6742d99..6840fd5 100644
|
||||
--- a/dvdisaster.c
|
||||
+++ b/dvdisaster.c
|
||||
@@ -930,7 +930,7 @@ int main(int argc, char *argv[])
|
||||
PrintCLI(_(" --old-ds-marker - mark missing sectors compatible with dvdisaster <= 0.70\n"));
|
||||
PrintCLI(_(" --prefetch-sectors n - prefetch n sectors for RS03 encoding (uses ~nMiB)\n"));
|
||||
PrintCLI(_(" --raw-mode n - mode for raw reading CD media (20 or 21)\n"));
|
||||
- PrintCLI(_(" --read-attempts n-m - attempts n upto m reads of a defective sector\n"));
|
||||
+ PrintCLI(_(" --read-attempts n-m - attempts n up to m reads of a defective sector\n"));
|
||||
PrintCLI(_(" --read-medium n - read the whole medium up to n times\n"));
|
||||
PrintCLI(_(" --read-raw - performs read in raw mode if possible\n"));
|
||||
PrintCLI(_(" --regtest - tweaks output for compatibility with regtests\n"));
|
||||
diff --git a/dvdisaster.h b/dvdisaster.h
|
||||
index 7fb980b..a466450 100644
|
||||
--- a/dvdisaster.h
|
||||
+++ b/dvdisaster.h
|
||||
@@ -112,7 +112,7 @@
|
||||
|
||||
#define MAX_CODEC_THREADS 1024 /* not including IO and GUI */
|
||||
#define MAX_OLD_CACHE_SIZE 8096 /* old cache for RS01/RS02 */
|
||||
-#define MAX_PREFETCH_CACHE_SIZE (512*1024) /* upto 0.5TB RS03 */
|
||||
+#define MAX_PREFETCH_CACHE_SIZE (512*1024) /* up to 0.5TB RS03 */
|
||||
|
||||
/* Choices for I/O strategy */
|
||||
|
||||
@@ -376,7 +376,7 @@ typedef struct _LargeFile
|
||||
#define FINGERPRINT_SECTOR 16 /* Sector currently used to calculate the fingerprint. */
|
||||
/* This is the ISO filesystem root sector which contains */
|
||||
/* the volume label and creation time stamps. */
|
||||
- /* Versions upto 0.64 used sector 257, */
|
||||
+ /* Versions up to 0.64 used sector 257, */
|
||||
/* but that was not a wise choice for CD media.*/
|
||||
|
||||
#define MFLAG_DEVEL (1<<0) /* for methodFlags[3] */
|
||||
diff --git a/locale/cs.po b/locale/cs.po
|
||||
index 3274de9..4f766a3 100644
|
||||
--- a/locale/cs.po
|
||||
+++ b/locale/cs.po
|
||||
@@ -662,7 +662,7 @@ msgid " --raw-mode n - mode for raw reading CD media (20 or 21)\n"
|
||||
msgstr " --raw-mode n - režim přímého čtení pro CD disky (20 nebo 21)\n"
|
||||
|
||||
#: dvdisaster.c:933
|
||||
-msgid " --read-attempts n-m - attempts n upto m reads of a defective sector\n"
|
||||
+msgid " --read-attempts n-m - attempts n up to m reads of a defective sector\n"
|
||||
msgstr " --read-attempts n-m - zkusit n až m opakovaných čtení poškozeného sektoru\n"
|
||||
|
||||
#: dvdisaster.c:934
|
||||
@@ -2014,7 +2014,7 @@ msgstr "Přečtení sektoru nezkoušet více než %d krát"
|
||||
msgid ""
|
||||
"<b>Maximum number of reading attempts</b>\n"
|
||||
"\n"
|
||||
-"When the minimum number of reading attempts is reached without success, dvdisaster might choose to perform additional reading attempts upto this number.\n"
|
||||
+"When the minimum number of reading attempts is reached without success, dvdisaster might choose to perform additional reading attempts up to this number.\n"
|
||||
"\n"
|
||||
"The decision to do more attempts depends on the quality of data gathered so far, which in turn is influenced by the capabilities of your optical drive and the operating system. So depending on your configuration, you may or may not see dvdisaster using the maximum value."
|
||||
msgstr ""
|
||||
@@ -2086,7 +2086,7 @@ msgstr " krát"
|
||||
msgid ""
|
||||
"<b>Media read attempts</b> for the linear reading strategy\n"
|
||||
"\n"
|
||||
-"If unreadable sectors remain after reading the medium from start to end, the medium is read again upto he given number of times.\n"
|
||||
+"If unreadable sectors remain after reading the medium from start to end, the medium is read again up to he given number of times.\n"
|
||||
"\n"
|
||||
"Only the missing sectors will be tried in the additional reading passes."
|
||||
msgstr ""
|
||||
diff --git a/locale/de.po b/locale/de.po
|
||||
index b252c19..5b47778 100644
|
||||
--- a/locale/de.po
|
||||
+++ b/locale/de.po
|
||||
@@ -704,7 +704,7 @@ msgid " --raw-mode n - mode for raw reading CD media (20 or 21)\n"
|
||||
msgstr " --raw-mode n - \"raw-modus\" zum Lesen von CD (20 or 21)\n"
|
||||
|
||||
#: dvdisaster.c:933
|
||||
-msgid " --read-attempts n-m - attempts n upto m reads of a defective sector\n"
|
||||
+msgid " --read-attempts n-m - attempts n up to m reads of a defective sector\n"
|
||||
msgstr " --read-attempts n-m - versucht beschädigten Sektor n bis m-mal zu lesen\n"
|
||||
|
||||
#: dvdisaster.c:934
|
||||
@@ -2073,7 +2073,7 @@ msgstr "Höchstens %d Leseversuche pro Sektor"
|
||||
msgid ""
|
||||
"<b>Maximum number of reading attempts</b>\n"
|
||||
"\n"
|
||||
-"When the minimum number of reading attempts is reached without success, dvdisaster might choose to perform additional reading attempts upto this number.\n"
|
||||
+"When the minimum number of reading attempts is reached without success, dvdisaster might choose to perform additional reading attempts up to this number.\n"
|
||||
"\n"
|
||||
"The decision to do more attempts depends on the quality of data gathered so far, which in turn is influenced by the capabilities of your optical drive and the operating system. So depending on your configuration, you may or may not see dvdisaster using the maximum value."
|
||||
msgstr ""
|
||||
@@ -2145,7 +2145,7 @@ msgstr " mal lesen"
|
||||
msgid ""
|
||||
"<b>Media read attempts</b> for the linear reading strategy\n"
|
||||
"\n"
|
||||
-"If unreadable sectors remain after reading the medium from start to end, the medium is read again upto he given number of times.\n"
|
||||
+"If unreadable sectors remain after reading the medium from start to end, the medium is read again up to he given number of times.\n"
|
||||
"\n"
|
||||
"Only the missing sectors will be tried in the additional reading passes."
|
||||
msgstr ""
|
||||
diff --git a/locale/it.po b/locale/it.po
|
||||
index efd3d27..f6e9dfd 100644
|
||||
--- a/locale/it.po
|
||||
+++ b/locale/it.po
|
||||
@@ -629,7 +629,7 @@ msgid " --raw-mode n - mode for raw reading CD media (20 or 21)\n"
|
||||
msgstr ""
|
||||
|
||||
#: dvdisaster.c:933
|
||||
-msgid " --read-attempts n-m - attempts n upto m reads of a defective sector\n"
|
||||
+msgid " --read-attempts n-m - attempts n up to m reads of a defective sector\n"
|
||||
msgstr ""
|
||||
|
||||
#: dvdisaster.c:934
|
||||
@@ -1838,7 +1838,7 @@ msgstr ""
|
||||
msgid ""
|
||||
"<b>Maximum number of reading attempts</b>\n"
|
||||
"\n"
|
||||
-"When the minimum number of reading attempts is reached without success, dvdisaster might choose to perform additional reading attempts upto this number.\n"
|
||||
+"When the minimum number of reading attempts is reached without success, dvdisaster might choose to perform additional reading attempts up to this number.\n"
|
||||
"\n"
|
||||
"The decision to do more attempts depends on the quality of data gathered so far, which in turn is influenced by the capabilities of your optical drive and the operating system. So depending on your configuration, you may or may not see dvdisaster using the maximum value."
|
||||
msgstr ""
|
||||
@@ -1897,7 +1897,7 @@ msgstr ""
|
||||
msgid ""
|
||||
"<b>Media read attempts</b> for the linear reading strategy\n"
|
||||
"\n"
|
||||
-"If unreadable sectors remain after reading the medium from start to end, the medium is read again upto he given number of times.\n"
|
||||
+"If unreadable sectors remain after reading the medium from start to end, the medium is read again up to he given number of times.\n"
|
||||
"\n"
|
||||
"Only the missing sectors will be tried in the additional reading passes."
|
||||
msgstr ""
|
||||
@@ -6086,7 +6086,7 @@ msgstr ""
|
||||
#~ msgstr "Se potete verificate se la dimensione dell'immagine è corretta,\n"
|
||||
|
||||
#~ msgid ""
|
||||
-#~ "please send in the whole dvdisaster output upto this line\n"
|
||||
+#~ "please send in the whole dvdisaster output up to this line\n"
|
||||
#~ "to have your drive included in the internal data base.\n"
|
||||
#~ msgstr ""
|
||||
#~ "Prego inviare l'intero output di dvdisaster fino a questa linea\n"
|
||||
diff --git a/locale/pt_BR.po b/locale/pt_BR.po
|
||||
index 21ea77b..86eda03 100644
|
||||
--- a/locale/pt_BR.po
|
||||
+++ b/locale/pt_BR.po
|
||||
@@ -645,7 +645,7 @@ msgid " --raw-mode n - mode for raw reading CD media (20 or 21)\n"
|
||||
msgstr " --raw-mode n - modo para leitura de mídia CD em modo raw (20 ou 21)\n"
|
||||
|
||||
#: dvdisaster.c:933
|
||||
-msgid " --read-attempts n-m - attempts n upto m reads of a defective sector\n"
|
||||
+msgid " --read-attempts n-m - attempts n up to m reads of a defective sector\n"
|
||||
msgstr " --read-attempts n-m - tenta de n a m leituras em um setor defeituoso\n"
|
||||
|
||||
#: dvdisaster.c:934
|
||||
@@ -1949,7 +1949,7 @@ msgstr "Máx. de %d tentativas de leitura por setor"
|
||||
msgid ""
|
||||
"<b>Maximum number of reading attempts</b>\n"
|
||||
"\n"
|
||||
-"When the minimum number of reading attempts is reached without success, dvdisaster might choose to perform additional reading attempts upto this number.\n"
|
||||
+"When the minimum number of reading attempts is reached without success, dvdisaster might choose to perform additional reading attempts up to this number.\n"
|
||||
"\n"
|
||||
"The decision to do more attempts depends on the quality of data gathered so far, which in turn is influenced by the capabilities of your optical drive and the operating system. So depending on your configuration, you may or may not see dvdisaster using the maximum value."
|
||||
msgstr ""
|
||||
@@ -2021,7 +2021,7 @@ msgstr " vezes"
|
||||
msgid ""
|
||||
"<b>Media read attempts</b> for the linear reading strategy\n"
|
||||
"\n"
|
||||
-"If unreadable sectors remain after reading the medium from start to end, the medium is read again upto he given number of times.\n"
|
||||
+"If unreadable sectors remain after reading the medium from start to end, the medium is read again up to he given number of times.\n"
|
||||
"\n"
|
||||
"Only the missing sectors will be tried in the additional reading passes."
|
||||
msgstr ""
|
||||
@@ -6482,7 +6482,7 @@ msgstr "<i>Novidades dessa versão:</i>"
|
||||
#~ " --internal-rereads n - drive may attempt n rereads before reporting an error\n"
|
||||
#~ " --query-size n - query drive/udf/ecc for image size (default: ecc)\n"
|
||||
#~ " --raw-mode n - mode for raw reading CD media (20 or 21)\n"
|
||||
-#~ " --read-attempts n-m - attempts n upto m reads of a defective sector\n"
|
||||
+#~ " --read-attempts n-m - attempts n up to m reads of a defective sector\n"
|
||||
#~ " --read-medium n - read the whole medium up to n times\n"
|
||||
#~ " --read-raw - performs read in raw mode if possible\n"
|
||||
#~ " --speed-warning n - print warning if speed changes by more than n percent\n"
|
||||
@@ -6501,7 +6501,7 @@ msgstr "<i>Novidades dessa versão:</i>"
|
||||
#~ msgid ""
|
||||
#~ "<b>File splitting</b>\n"
|
||||
#~ "\n"
|
||||
-#~ "Allows working with file systems which are limited to 2GB per file, e.g. FAT from Windows. Created files are spread over upto 100 segments called \"medium00.iso\", \"medium01.iso\" etc. at the cost of a small performance hit."
|
||||
+#~ "Allows working with file systems which are limited to 2GB per file, e.g. FAT from Windows. Created files are spread over up to 100 segments called \"medium00.iso\", \"medium01.iso\" etc. at the cost of a small performance hit."
|
||||
#~ msgstr ""
|
||||
#~ "<b>Separação de arquivos</b>\n"
|
||||
#~ "\n"
|
||||
diff --git a/locale/ru.po b/locale/ru.po
|
||||
index 767f906..7984c59 100644
|
||||
--- a/locale/ru.po
|
||||
+++ b/locale/ru.po
|
||||
@@ -644,7 +644,7 @@ msgid " --raw-mode n - mode for raw reading CD media (20 or 21)\n"
|
||||
msgstr " --raw-mode n - режим для низкоуровневого чтения CD-носителей (20 или 21)\n"
|
||||
|
||||
#: dvdisaster.c:933
|
||||
-msgid " --read-attempts n-m - attempts n upto m reads of a defective sector\n"
|
||||
+msgid " --read-attempts n-m - attempts n up to m reads of a defective sector\n"
|
||||
msgstr " --read-attempts n-m - делается от n до m попыток чтения поврежденного сектора\n"
|
||||
|
||||
#: dvdisaster.c:934
|
||||
@@ -1952,7 +1952,7 @@ msgstr "Макс. %d попыток чтения на сектор"
|
||||
msgid ""
|
||||
"<b>Maximum number of reading attempts</b>\n"
|
||||
"\n"
|
||||
-"When the minimum number of reading attempts is reached without success, dvdisaster might choose to perform additional reading attempts upto this number.\n"
|
||||
+"When the minimum number of reading attempts is reached without success, dvdisaster might choose to perform additional reading attempts up to this number.\n"
|
||||
"\n"
|
||||
"The decision to do more attempts depends on the quality of data gathered so far, which in turn is influenced by the capabilities of your optical drive and the operating system. So depending on your configuration, you may or may not see dvdisaster using the maximum value."
|
||||
msgstr ""
|
||||
@@ -2024,7 +2024,7 @@ msgstr " раз"
|
||||
msgid ""
|
||||
"<b>Media read attempts</b> for the linear reading strategy\n"
|
||||
"\n"
|
||||
-"If unreadable sectors remain after reading the medium from start to end, the medium is read again upto he given number of times.\n"
|
||||
+"If unreadable sectors remain after reading the medium from start to end, the medium is read again up to he given number of times.\n"
|
||||
"\n"
|
||||
"Only the missing sectors will be tried in the additional reading passes."
|
||||
msgstr ""
|
||||
@@ -6543,7 +6543,7 @@ msgstr "<i>Новое в этой версии:</i>"
|
||||
#~ " --internal-rereads n - drive may attempt n rereads before reporting an error\n"
|
||||
#~ " --query-size n - query drive/udf/ecc for image size (default: ecc)\n"
|
||||
#~ " --raw-mode n - mode for raw reading CD media (20 or 21)\n"
|
||||
-#~ " --read-attempts n-m - attempts n upto m reads of a defective sector\n"
|
||||
+#~ " --read-attempts n-m - attempts n up to m reads of a defective sector\n"
|
||||
#~ " --read-medium n - read the whole medium up to n times\n"
|
||||
#~ " --read-raw - performs read in raw mode if possible\n"
|
||||
#~ " --speed-warning n - print warning if speed changes by more than n percent\n"
|
||||
@@ -6560,7 +6560,7 @@ msgstr "<i>Новое в этой версии:</i>"
|
||||
#~ msgid ""
|
||||
#~ "<b>File splitting</b>\n"
|
||||
#~ "\n"
|
||||
-#~ "Allows working with file systems which are limited to 2GB per file, e.g. FAT from Windows. Created files are spread over upto 100 segments called \"medium00.iso\", \"medium01.iso\" etc. at the cost of a small performance hit."
|
||||
+#~ "Allows working with file systems which are limited to 2GB per file, e.g. FAT from Windows. Created files are spread over up to 100 segments called \"medium00.iso\", \"medium01.iso\" etc. at the cost of a small performance hit."
|
||||
#~ msgstr ""
|
||||
#~ "<b>Разбиение файлов</b>\n"
|
||||
#~ "\n"
|
||||
@@ -6606,7 +6606,7 @@ msgstr "<i>Новое в этой версии:</i>"
|
||||
#~ " --internal-rereads n - drive may attempt n rereads before reporting an error\n"
|
||||
#~ " --query-size n - query drive/udf/ecc for image size (default: ecc)\n"
|
||||
#~ " --raw-mode n - mode for raw reading CD media (20 or 21)\n"
|
||||
-#~ " --read-attempts n-m - attempts n upto m reads of a defective sector\n"
|
||||
+#~ " --read-attempts n-m - attempts n up to m reads of a defective sector\n"
|
||||
#~ " --read-medium n - read the whole medium up to n times\n"
|
||||
#~ " --read-raw - performs read in raw mode if possible\n"
|
||||
#~ " --speed-warning n - print warning if speed changes by more than n percent\n"
|
||||
diff --git a/locale/sv.po b/locale/sv.po
|
||||
index 548e2e5..c74a942 100644
|
||||
--- a/locale/sv.po
|
||||
+++ b/locale/sv.po
|
||||
@@ -630,7 +630,7 @@ msgid " --raw-mode n - mode for raw reading CD media (20 or 21)\n"
|
||||
msgstr ""
|
||||
|
||||
#: dvdisaster.c:933
|
||||
-msgid " --read-attempts n-m - attempts n upto m reads of a defective sector\n"
|
||||
+msgid " --read-attempts n-m - attempts n up to m reads of a defective sector\n"
|
||||
msgstr ""
|
||||
|
||||
#: dvdisaster.c:934
|
||||
@@ -1844,7 +1844,7 @@ msgstr ""
|
||||
msgid ""
|
||||
"<b>Maximum number of reading attempts</b>\n"
|
||||
"\n"
|
||||
-"When the minimum number of reading attempts is reached without success, dvdisaster might choose to perform additional reading attempts upto this number.\n"
|
||||
+"When the minimum number of reading attempts is reached without success, dvdisaster might choose to perform additional reading attempts up to this number.\n"
|
||||
"\n"
|
||||
"The decision to do more attempts depends on the quality of data gathered so far, which in turn is influenced by the capabilities of your optical drive and the operating system. So depending on your configuration, you may or may not see dvdisaster using the maximum value."
|
||||
msgstr ""
|
||||
@@ -1903,7 +1903,7 @@ msgstr ""
|
||||
msgid ""
|
||||
"<b>Media read attempts</b> for the linear reading strategy\n"
|
||||
"\n"
|
||||
-"If unreadable sectors remain after reading the medium from start to end, the medium is read again upto he given number of times.\n"
|
||||
+"If unreadable sectors remain after reading the medium from start to end, the medium is read again up to he given number of times.\n"
|
||||
"\n"
|
||||
"Only the missing sectors will be tried in the additional reading passes."
|
||||
msgstr ""
|
||||
diff --git a/preferences.c b/preferences.c
|
||||
index 70afa02..4899317 100644
|
||||
--- a/preferences.c
|
||||
+++ b/preferences.c
|
||||
@@ -2221,7 +2221,7 @@ void CreatePreferencesWindow(void)
|
||||
_("<b>Maximum number of reading attempts</b>\n\n"
|
||||
"When the minimum number of reading attempts is reached "
|
||||
"without success, dvdisaster might choose to perform additional "
|
||||
- "reading attempts upto this number.\n\n"
|
||||
+ "reading attempts up to this number.\n\n"
|
||||
|
||||
"The decision to do more attempts depends on the quality of "
|
||||
"data gathered so far, which in turn is influenced by the "
|
||||
@@ -2336,7 +2336,7 @@ void CreatePreferencesWindow(void)
|
||||
AddHelpParagraph(lwoh,
|
||||
_("<b>Media read attempts</b> for the linear reading strategy\n\n"
|
||||
"If unreadable sectors remain after reading the medium from start to end, "
|
||||
- "the medium is read again upto he given number of times.\n\n"
|
||||
+ "the medium is read again up to he given number of times.\n\n"
|
||||
"Only the missing sectors will be tried in the additional reading passes."));
|
||||
|
||||
/** Defective sector caching */
|
||||
41
debian/patches/13-fix-missing-language-field-in-po-files.patch
vendored
Normal file
41
debian/patches/13-fix-missing-language-field-in-po-files.patch
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
From: Carlos Maddela <e7appew@gmail.com>
|
||||
Date: Mon, 19 Dec 2016 07:04:02 +1100
|
||||
Subject: Fix missing language fields in PO files.
|
||||
|
||||
Description: Fix missing language fields in PO files.
|
||||
Author: Carlos Maddela <e7appew@gmail.com>
|
||||
Forwarded: no
|
||||
Last-Update: 2017-01-05
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
---
|
||||
locale/pt_BR.po | 2 +-
|
||||
locale/ru.po | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/locale/pt_BR.po b/locale/pt_BR.po
|
||||
index 86eda03..f3437f3 100644
|
||||
--- a/locale/pt_BR.po
|
||||
+++ b/locale/pt_BR.po
|
||||
@@ -11,7 +11,7 @@ msgstr ""
|
||||
"PO-Revision-Date: 2010-06-09 11:13+0200\n"
|
||||
"Last-Translator: cg <cg@dvdisaster.org>\n"
|
||||
"Language-Team: Portuguese\n"
|
||||
-"Language: \n"
|
||||
+"Language: pt_BR\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
diff --git a/locale/ru.po b/locale/ru.po
|
||||
index 7984c59..1bc7324 100644
|
||||
--- a/locale/ru.po
|
||||
+++ b/locale/ru.po
|
||||
@@ -13,7 +13,7 @@ msgstr ""
|
||||
"PO-Revision-Date: 2009-07-23 08:11+0300\n"
|
||||
"Last-Translator: Igor Gorbounov <igor.gorbounov@gmail.com>\n"
|
||||
"Language-Team: Russian\n"
|
||||
-"Language: \n"
|
||||
+"Language: ru\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
128
debian/patches/14-make-builds-reproducible.patch
vendored
Normal file
128
debian/patches/14-make-builds-reproducible.patch
vendored
Normal file
@@ -0,0 +1,128 @@
|
||||
From: Carlos Maddela <e7appew@gmail.com>
|
||||
Date: Mon, 19 Dec 2016 09:39:49 +1100
|
||||
Subject: Make builds reproducible.
|
||||
|
||||
Description: Make builds reproducible.
|
||||
Use the Debian changelog details to derive a build number and date,
|
||||
so that we can make reproducible binaries.
|
||||
Author: Carlos Maddela <e7appew@gmail.com>
|
||||
Forwarded: not-needed
|
||||
Last-Update: 2017-08-14
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
---
|
||||
build.c | 2 +-
|
||||
closure.c | 2 +-
|
||||
dvdisaster.h | 2 +-
|
||||
locale/cs.po | 4 ++--
|
||||
locale/pt_BR.po | 4 ++--
|
||||
locale/ru.po | 4 ++--
|
||||
scripts/time-stamper.bash | 8 ++++----
|
||||
7 files changed, 13 insertions(+), 13 deletions(-)
|
||||
|
||||
diff --git a/build.c b/build.c
|
||||
index 0e99b22..65b17cd 100644
|
||||
--- a/build.c
|
||||
+++ b/build.c
|
||||
@@ -25,4 +25,4 @@
|
||||
/* build is incremented at each make;
|
||||
make recompile of dependent file as fast as possible */
|
||||
|
||||
-int buildCount = BUILD;
|
||||
+const char *const buildCount = BUILD;
|
||||
diff --git a/closure.c b/closure.c
|
||||
index 58ba86f..d633d53 100644
|
||||
--- a/closure.c
|
||||
+++ b/closure.c
|
||||
@@ -442,7 +442,7 @@ void InitClosure()
|
||||
#define BITNESS_STRING ""
|
||||
#endif
|
||||
|
||||
- Closure->versionString = g_strdup_printf("dvdisaster %s build %d, %s%s",
|
||||
+ Closure->versionString = g_strdup_printf("dvdisaster %s build %s, %s%s",
|
||||
Closure->cookedVersion, buildCount, SYS_NAME, BITNESS_STRING);
|
||||
|
||||
/* Replace the dot with a locale-resistant separator */
|
||||
diff --git a/dvdisaster.h b/dvdisaster.h
|
||||
index a466450..9acd094 100644
|
||||
--- a/dvdisaster.h
|
||||
+++ b/dvdisaster.h
|
||||
@@ -463,7 +463,7 @@ void FreeBitmap(Bitmap*);
|
||||
*** build.h
|
||||
***/
|
||||
|
||||
-int buildCount;
|
||||
+extern const char *const buildCount;
|
||||
|
||||
/***
|
||||
*** cacheprobe.h
|
||||
diff --git a/locale/cs.po b/locale/cs.po
|
||||
index 4f766a3..453ec07 100644
|
||||
--- a/locale/cs.po
|
||||
+++ b/locale/cs.po
|
||||
@@ -6511,11 +6511,11 @@ msgstr "<i>Novinky v této verzi:</i>"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "\n"
|
||||
-#~ "dvdisaster version %s build %d\n"
|
||||
+#~ "dvdisaster version %s build %s\n"
|
||||
#~ "\n"
|
||||
#~ msgstr ""
|
||||
#~ "\n"
|
||||
-#~ "dvdisaster verze %s sestavení %d\n"
|
||||
+#~ "dvdisaster verze %s sestavení %s\n"
|
||||
#~ "\n"
|
||||
|
||||
#~ msgid "--prefetch-sectors must be in range 32...8096"
|
||||
diff --git a/locale/pt_BR.po b/locale/pt_BR.po
|
||||
index f3437f3..f7f6af0 100644
|
||||
--- a/locale/pt_BR.po
|
||||
+++ b/locale/pt_BR.po
|
||||
@@ -6232,11 +6232,11 @@ msgstr "<i>Novidades dessa versão:</i>"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "\n"
|
||||
-#~ "dvdisaster version %s build %d\n"
|
||||
+#~ "dvdisaster version %s build %s\n"
|
||||
#~ "\n"
|
||||
#~ msgstr ""
|
||||
#~ "\n"
|
||||
-#~ "dvdisaster, versão %s build %d\n"
|
||||
+#~ "dvdisaster, versão %s build %s\n"
|
||||
|
||||
#~ msgid "--cache-size maximum is 8192MiB."
|
||||
#~ msgstr "--cache-size máximo é 8192MiB."
|
||||
diff --git a/locale/ru.po b/locale/ru.po
|
||||
index 1bc7324..9625a1f 100644
|
||||
--- a/locale/ru.po
|
||||
+++ b/locale/ru.po
|
||||
@@ -6247,11 +6247,11 @@ msgstr "<i>Новое в этой версии:</i>"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "\n"
|
||||
-#~ "dvdisaster version %s build %d\n"
|
||||
+#~ "dvdisaster version %s build %s\n"
|
||||
#~ "\n"
|
||||
#~ msgstr ""
|
||||
#~ "\n"
|
||||
-#~ "dvdisaster версия %s сборка %d\n"
|
||||
+#~ "dvdisaster версия %s сборка %s\n"
|
||||
#~ "\n"
|
||||
|
||||
#~ msgid "--cache-size maximum is 8192MiB."
|
||||
diff --git a/scripts/time-stamper.bash b/scripts/time-stamper.bash
|
||||
index fd28794..4ec3e60 100755
|
||||
--- a/scripts/time-stamper.bash
|
||||
+++ b/scripts/time-stamper.bash
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
-build=$(grep BUILD $1 | cut -d\ -f3)
|
||||
-build=$((build+1))
|
||||
-echo "#define BUILD $build" >$1
|
||||
-date=$(date +"%d.%m.%y (%A, %H:%M)")
|
||||
+# Use Debian changelog details to derive build number and date.
|
||||
+build=$(echo "${DEB_VERSION}" | cut -f2 -d-)
|
||||
+echo "#define BUILD \"$build\"" >$1
|
||||
+date=$(date --date="@${SOURCE_DATE_EPOCH}" --utc +"%d.%m.%y (%A, %H:%M)")
|
||||
echo "#define BDATE \"$date\"" >>$1
|
||||
28
debian/patches/15-show-new-pkg-tracker.patch
vendored
Normal file
28
debian/patches/15-show-new-pkg-tracker.patch
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
From: Carlos Maddela <e7appew@gmail.com>
|
||||
Date: Mon, 19 Dec 2016 12:02:51 +1100
|
||||
Subject: Update help dialog to show link to the new Debian package tracker.
|
||||
|
||||
Description: Update help dialog to show link to the new Debian
|
||||
package tracker.
|
||||
Author: Carlos Maddela <e7appew@gmail.com>
|
||||
Forwarded: not-needed
|
||||
Last-Update: 2016-12-19
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
---
|
||||
help-dialogs.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/help-dialogs.c b/help-dialogs.c
|
||||
index 758ac19..47551f7 100644
|
||||
--- a/help-dialogs.c
|
||||
+++ b/help-dialogs.c
|
||||
@@ -750,7 +750,7 @@ void AboutDialog()
|
||||
"for Debian to support DVD-ROMs (with and without encryption).\n\n"
|
||||
"Please do not bother the original authors of dvdisaster\n"
|
||||
"but submit bugreports against the [debian package] instead.\n"),
|
||||
- "http://packages.qa.debian.org/dvdisaster");
|
||||
+ "https://tracker.debian.org/pkg/dvdisaster");
|
||||
|
||||
#else
|
||||
lang = g_getenv("LANG");
|
||||
33
debian/patches/16-remove-auto-build-of-doco-from-install-rule.patch
vendored
Normal file
33
debian/patches/16-remove-auto-build-of-doco-from-install-rule.patch
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
From: Carlos Maddela <e7appew@gmail.com>
|
||||
Date: Thu, 22 Dec 2016 02:20:30 +1100
|
||||
Subject: Don't build and install documentation automatically.
|
||||
|
||||
Description: Don't build and install documentation automatically.
|
||||
This allows for better control over binary-arch and binary-indep builds.
|
||||
Author: Carlos Maddela <e7appew@gmail.com>
|
||||
Forwarded: not-needed
|
||||
Last-Update: 2017-01-05
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
---
|
||||
GNUmakefile.template | 3 +--
|
||||
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||
|
||||
diff --git a/GNUmakefile.template b/GNUmakefile.template
|
||||
index 6fda92b..d9bef11 100644
|
||||
--- a/GNUmakefile.template
|
||||
+++ b/GNUmakefile.template
|
||||
@@ -223,12 +223,11 @@ show:
|
||||
.PHONY : install uninstall clean distclean arch
|
||||
.PHONY : srcdist
|
||||
|
||||
-install: dvdisaster manual
|
||||
+install: dvdisaster
|
||||
@echo "Installing package..."
|
||||
install -d $(BUILDROOT)$(BINDIR)
|
||||
install dvdisaster $(BUILDROOT)$(BINDIR)
|
||||
install -d $(BUILDROOT)$(DOCSUBDIR)
|
||||
- (cd documentation/user-manual; install -m 644 manual.pdf $(BUILDROOT)$(DOCSUBDIR))
|
||||
install -d $(BUILDROOT)$(MANDIR)/man1
|
||||
install -d $(BUILDROOT)$(MANDIR)/de/man1
|
||||
cd documentation; \
|
||||
244
debian/patches/17-fix-all-but-deprecated-api-warnings.patch
vendored
Normal file
244
debian/patches/17-fix-all-but-deprecated-api-warnings.patch
vendored
Normal file
@@ -0,0 +1,244 @@
|
||||
From: Carlos Maddela <e7appew@gmail.com>
|
||||
Date: Thu, 22 Dec 2016 11:19:20 +1100
|
||||
Subject: Fix all warnings except for those related to deprecated API.
|
||||
|
||||
Description: Fix all warnings except for those related to deprecated API.
|
||||
Author: Carlos Maddela <e7appew@gmail.com>
|
||||
Bug-Debian: https://bugs.debian.org/748416
|
||||
Forwarded: no
|
||||
Last-Update: 2017-12-21
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
---
|
||||
closure.c | 2 +-
|
||||
menubar.c | 2 +-
|
||||
rs03-create.c | 24 ++++++++++++------------
|
||||
rs03-fix.c | 8 ++++----
|
||||
scsi-layer.c | 4 ++++
|
||||
smart-lec.c | 10 +++++-----
|
||||
6 files changed, 27 insertions(+), 23 deletions(-)
|
||||
|
||||
diff --git a/closure.c b/closure.c
|
||||
index d633d53..fa52f09 100644
|
||||
--- a/closure.c
|
||||
+++ b/closure.c
|
||||
@@ -196,7 +196,7 @@ void ReadDotfile()
|
||||
/* Get first MAX_LINE_LEN bytes of line, discard the rest */
|
||||
|
||||
line[MAX_LINE_LEN-1] = 1;
|
||||
- fgets(line, MAX_LINE_LEN, dotfile);
|
||||
+ if(!fgets(line, MAX_LINE_LEN, dotfile)) break;
|
||||
if(!line[MAX_LINE_LEN-1]) /* line longer than buffer */
|
||||
while(!feof(dotfile) && fgetc(dotfile) != '\n')
|
||||
;
|
||||
diff --git a/menubar.c b/menubar.c
|
||||
index 94d462b..ee24ebe 100644
|
||||
--- a/menubar.c
|
||||
+++ b/menubar.c
|
||||
@@ -414,7 +414,7 @@ void set_path(GtkWidget *entry, char *path)
|
||||
else
|
||||
{ char buf[PATH_MAX + strlen(path) + 2];
|
||||
|
||||
- getcwd(buf, PATH_MAX);
|
||||
+ if(!getcwd(buf, PATH_MAX)) return;
|
||||
strcat(buf,"/");
|
||||
|
||||
strcat(buf,path);
|
||||
diff --git a/rs03-create.c b/rs03-create.c
|
||||
index 71460ef..9c7265d 100644
|
||||
--- a/rs03-create.c
|
||||
+++ b/rs03-create.c
|
||||
@@ -31,9 +31,9 @@
|
||||
|
||||
//#define VERBOSE 1
|
||||
#ifdef VERBOSE
|
||||
- #define verbose(format,args...) printf(format, ## args)
|
||||
+ #define verbose(format,...) printf(format, __VA_ARGS__)
|
||||
#else
|
||||
- #define verbose(format,args...)
|
||||
+ #define verbose(format,...)
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_MMAP
|
||||
@@ -714,7 +714,7 @@ static void flush_crc(ecc_closure *ec, LargeFile *file_out)
|
||||
|
||||
/* Write out the CRC layer */
|
||||
|
||||
- verbose("IO: writing CRC layer\n");
|
||||
+ verbose("%s", "IO: writing CRC layer\n");
|
||||
crc_sect = 2048*(ec->encoderChunk+lay->firstCrcPos);
|
||||
if(!LargeSeek(file_out, crc_sect))
|
||||
{ ec->abortImmediately = TRUE;
|
||||
@@ -735,7 +735,7 @@ static void flush_parity(ecc_closure *ec, LargeFile *file_out)
|
||||
|
||||
/* Write out the created parity. */
|
||||
|
||||
- verbose("IO: writing parity...\n");
|
||||
+ verbose("%s", "IO: writing parity...\n");
|
||||
for(k=0; k<lay->nroots; k++)
|
||||
{ gint64 idx=0;
|
||||
|
||||
@@ -752,7 +752,7 @@ static void flush_parity(ecc_closure *ec, LargeFile *file_out)
|
||||
}
|
||||
}
|
||||
}
|
||||
- verbose("IO: parity written.\n");
|
||||
+ verbose("%s", "IO: parity written.\n");
|
||||
}
|
||||
|
||||
static gpointer io_thread(ecc_closure *ec)
|
||||
@@ -767,7 +767,7 @@ static gpointer io_thread(ecc_closure *ec)
|
||||
int parity_available = 0;
|
||||
int i;
|
||||
|
||||
- verbose("Reader thread initializing\n");
|
||||
+ verbose("%s", "Reader thread initializing\n");
|
||||
|
||||
/*** Allocate local parity buffer aligned at 128bit boundary */
|
||||
|
||||
@@ -835,7 +835,7 @@ static gpointer io_thread(ecc_closure *ec)
|
||||
{ read_next_chunk(ec, chunk);
|
||||
// flush_crc(ec, file_out); // FIXME
|
||||
needs_preload = 0;
|
||||
- verbose("IO: first chunk loaded\n");
|
||||
+ verbose("%s", "IO: first chunk loaded\n");
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -882,7 +882,7 @@ static gpointer io_thread(ecc_closure *ec)
|
||||
g_mutex_lock(ec->lock);
|
||||
cpu_bound = ec->buffersToEncode;
|
||||
while(ec->buffersToEncode)
|
||||
- { verbose("IO: Waiting for encoders to finish\n");
|
||||
+ { verbose("%s", "IO: Waiting for encoders to finish\n");
|
||||
g_cond_wait(ec->ioCond, ec->lock);
|
||||
}
|
||||
g_mutex_unlock(ec->lock);
|
||||
@@ -924,7 +924,7 @@ static gpointer io_thread(ecc_closure *ec)
|
||||
ec->slicesFree = TRUE; /* we have saved the slices; go ahead */
|
||||
g_cond_broadcast(ec->ioCond);
|
||||
while(ec->buffersToEncode)
|
||||
- { verbose("IO: Waiting for encoders to finish last chunk\n");
|
||||
+ { verbose("%s", "IO: Waiting for encoders to finish last chunk\n");
|
||||
g_cond_wait(ec->ioCond, ec->lock);
|
||||
}
|
||||
g_mutex_unlock(ec->lock);
|
||||
@@ -937,7 +937,7 @@ static gpointer io_thread(ecc_closure *ec)
|
||||
flush_crc(ec, file_out);
|
||||
flush_parity(ec, file_out);
|
||||
|
||||
- verbose("IO: finished\n"); fflush(stdout);
|
||||
+ verbose("%s", "IO: finished\n"); fflush(stdout);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -1123,7 +1123,7 @@ static gpointer encoder_thread(ecc_closure *ec)
|
||||
ec->buffersToEncode-=enc_size;
|
||||
if(!ec->buffersToEncode)
|
||||
{ g_cond_broadcast(ec->ioCond);
|
||||
- verbose("ENC: processed last buffer; telling IO process.\n");
|
||||
+ verbose("%s", "ENC: processed last buffer; telling IO process.\n");
|
||||
fflush(stdout);
|
||||
}
|
||||
g_mutex_unlock(ec->lock);
|
||||
@@ -1223,7 +1223,7 @@ static void create_reed_solomon(ecc_closure *ec)
|
||||
verbose("SCHED: joined with worker %d\n", i);
|
||||
fflush(stdout);
|
||||
}
|
||||
- verbose("SCHED: scheduler finished.\n");
|
||||
+ verbose("%s", "SCHED: scheduler finished.\n");
|
||||
}
|
||||
|
||||
/***
|
||||
diff --git a/rs03-fix.c b/rs03-fix.c
|
||||
index 7afb6d6..19b9322 100644
|
||||
--- a/rs03-fix.c
|
||||
+++ b/rs03-fix.c
|
||||
@@ -829,10 +829,10 @@ void RS03Fix(Image *image)
|
||||
if we were processing an augmented image. */
|
||||
|
||||
if(lay->target == ECC_FILE && i >= ndata-1)
|
||||
- {
|
||||
- if(!LargeSeek(image->eccFile, (gint64)(2048*sec)))
|
||||
- Stop(_("Failed seeking to sector %lld in ecc file [%s]: %s"),
|
||||
- sec, "FW", strerror(errno));
|
||||
+ {
|
||||
+ if(!LargeSeek(image->eccFile, (gint64)(2048*sec)))
|
||||
+ Stop(_("Failed seeking to sector %lld in ecc file [%s]: %s"),
|
||||
+ sec, "FW", strerror(errno));
|
||||
|
||||
n = LargeWrite(image->eccFile, cache_offset+fc->imgBlock[i], 2048);
|
||||
if(n != 2048)
|
||||
diff --git a/scsi-layer.c b/scsi-layer.c
|
||||
index b3a9d0e..f8d2112 100644
|
||||
--- a/scsi-layer.c
|
||||
+++ b/scsi-layer.c
|
||||
@@ -31,7 +31,9 @@
|
||||
|
||||
static int query_type(DeviceHandle*, int);
|
||||
static gint64 query_size(Image*);
|
||||
+#if 0
|
||||
static int query_copyright(DeviceHandle*);
|
||||
+#endif
|
||||
|
||||
static int read_dvd_sector(DeviceHandle*, unsigned char*, int, int);
|
||||
static int read_cd_sector(DeviceHandle*, unsigned char*, int, int);
|
||||
@@ -1649,6 +1651,7 @@ reset_mode_page:
|
||||
* Find out whether we are allowed to create an image from the DVD.
|
||||
*/
|
||||
|
||||
+#if 0
|
||||
static int query_copyright(DeviceHandle *dh)
|
||||
{ Sense sense;
|
||||
AlignedBuffer *ab = CreateAlignedBuffer(2048);
|
||||
@@ -1709,6 +1712,7 @@ static int query_copyright(DeviceHandle *dh)
|
||||
|
||||
return result;
|
||||
}
|
||||
+#endif
|
||||
|
||||
/*
|
||||
* See whether a sector lies within the user area.
|
||||
diff --git a/smart-lec.c b/smart-lec.c
|
||||
index 02b9c49..944b70d 100644
|
||||
--- a/smart-lec.c
|
||||
+++ b/smart-lec.c
|
||||
@@ -27,9 +27,9 @@
|
||||
|
||||
#define VERBOSE 1
|
||||
#ifdef VERBOSE
|
||||
- #define verbose(format,args...) printf(format, ## args)
|
||||
+ #define verbose(format,...) printf(format, __VA_ARGS__)
|
||||
#else
|
||||
- #define verbose(format,args...)
|
||||
+ #define verbose(format,...)
|
||||
#endif
|
||||
|
||||
/***
|
||||
@@ -432,7 +432,7 @@ static void update_pq_state(sh_context *shc)
|
||||
static void print_pq_state(sh_context *shc)
|
||||
{ int i;
|
||||
|
||||
- verbose("PQ states: \n");
|
||||
+ verbose("%s", "PQ states: \n");
|
||||
|
||||
for(i=0; i<N_P_VECTORS; i++)
|
||||
{ if(shc->pState[i] == 1)
|
||||
@@ -1354,7 +1354,7 @@ static void swap_p_for_new_improvement(sh_context *shc)
|
||||
count++;
|
||||
|
||||
if(count < 2)
|
||||
- { verbose(" pruned");
|
||||
+ { verbose("%s", " pruned");
|
||||
goto decrement;
|
||||
}
|
||||
|
||||
@@ -1417,7 +1417,7 @@ decrement:
|
||||
if(index >= n_q) break;
|
||||
selection[index]=0;
|
||||
|
||||
- verbose("\n");
|
||||
+ verbose("%s", "\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
30
debian/patches/18-update-copyright-in-about-dialog.patch
vendored
Normal file
30
debian/patches/18-update-copyright-in-about-dialog.patch
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
From: Carlos Maddela <e7appew@gmail.com>
|
||||
Date: Wed, 21 Dec 2016 07:25:17 +1100
|
||||
Subject: Update copyright notice in about dialog.
|
||||
|
||||
Description: Update copyright notice in about dialog.
|
||||
Author: Carlos Maddela <e7appew@gmail.com>
|
||||
Forwarded: not-needed
|
||||
Last-Update: 2017-12-21
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
---
|
||||
help-dialogs.c | 5 +++--
|
||||
1 file changed, 3 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/help-dialogs.c b/help-dialogs.c
|
||||
index 47551f7..3f94920 100644
|
||||
--- a/help-dialogs.c
|
||||
+++ b/help-dialogs.c
|
||||
@@ -723,8 +723,9 @@ void AboutDialog()
|
||||
g_free(text);
|
||||
|
||||
#ifdef MODIFIED_SOURCE
|
||||
- AboutTextWithLink(vbox,
|
||||
- _("Modified version Copyright 2017 (please fill in - [directions])\n"
|
||||
+ AboutTextWithLink(vbox,
|
||||
+ _("[Modified version]\n"
|
||||
+ "Copyright 2005-2017 Debian Optical Media Tools Team\n"
|
||||
"Copyright 2004-2017 Carsten Gnoerlich"),
|
||||
"MODIFYING");
|
||||
#else
|
||||
43
debian/patches/19-show-text-files-with-abs-path.patch
vendored
Normal file
43
debian/patches/19-show-text-files-with-abs-path.patch
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
From: Carlos Maddela <e7appew@gmail.com>
|
||||
Date: Wed, 21 Dec 2016 09:08:05 +1100
|
||||
Subject: Allow ShowTextFile() to work with absolute path names.
|
||||
|
||||
Description: Allow ShowTextFile() to work with absolute path names.
|
||||
Author: Carlos Maddela <e7appew@gmail.com>
|
||||
Forwarded: no
|
||||
Last-Update: 2016-12-21
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
---
|
||||
help-dialogs.c | 18 ++++++++++++++++++
|
||||
1 file changed, 18 insertions(+)
|
||||
|
||||
diff --git a/help-dialogs.c b/help-dialogs.c
|
||||
index 3f94920..d893d33 100644
|
||||
--- a/help-dialogs.c
|
||||
+++ b/help-dialogs.c
|
||||
@@ -423,6 +423,24 @@ char *find_file(char *file, size_t *size, char *lang)
|
||||
lang_suffix[1] = lang[1];
|
||||
}
|
||||
|
||||
+ /* Test for absolute path first. */
|
||||
+ if(*file == '/')
|
||||
+ {
|
||||
+ if(lang)
|
||||
+ path = g_strdup_printf("%s.%s", file, lang_suffix);
|
||||
+ else
|
||||
+ path = g_strdup(file);
|
||||
+
|
||||
+ if(LargeStat(path, &stat_size))
|
||||
+ {
|
||||
+ *size = stat_size;
|
||||
+ return path;
|
||||
+ }
|
||||
+
|
||||
+ g_free(path);
|
||||
+ return NULL;
|
||||
+ }
|
||||
+
|
||||
/* Try file in bin dir */
|
||||
|
||||
if(Closure->binDir)
|
||||
46
debian/patches/20-display-changelog-credits-and-todo.patch
vendored
Normal file
46
debian/patches/20-display-changelog-credits-and-todo.patch
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
From: Carlos Maddela <e7appew@gmail.com>
|
||||
Date: Wed, 21 Dec 2016 09:59:58 +1100
|
||||
Subject: Fix display of changelog, credits and to-do files.
|
||||
|
||||
Description: Fix display of changelog, credits and to-do files.
|
||||
Use absolute paths to compensate for the fact that we don't install
|
||||
duplicates in /usr/share/doc/dvdisaster-doc or build with source
|
||||
path embedded anymore.
|
||||
Author: Carlos Maddela <e7appew@gmail.com>
|
||||
Forwarded: not-needed
|
||||
Last-Update: 2017-01-05
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
---
|
||||
menubar.c | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/menubar.c b/menubar.c
|
||||
index ee24ebe..4a9f470 100644
|
||||
--- a/menubar.c
|
||||
+++ b/menubar.c
|
||||
@@ -126,21 +126,21 @@ static void menu_cb(GtkWidget *widget, gpointer data)
|
||||
ShowTextfile(_("windowtitle|Change log"),
|
||||
_("<big>Change log</big>\n"
|
||||
"<i>Major differences from earlier program versions.</i>"),
|
||||
- "CHANGELOG", NULL, NULL);
|
||||
+ "/usr/share/doc/dvdisaster/CHANGELOG", NULL, NULL);
|
||||
break;
|
||||
|
||||
case MENU_HELP_CREDITS:
|
||||
ShowTextfile(_("windowtitle|Credits"),
|
||||
_("<big>Credits</big>\n"
|
||||
"<i>Thanks go out to...</i>"),
|
||||
- "CREDITS", NULL, NULL);
|
||||
+ "/usr/share/doc/dvdisaster/CREDITS", NULL, NULL);
|
||||
break;
|
||||
|
||||
case MENU_HELP_TODO:
|
||||
ShowTextfile(_("windowtitle|To do list"),
|
||||
_("<big>To do list</big>\n"
|
||||
"<i>A sneak preview of coming features ... perhaps ;-)</i>"),
|
||||
- "TODO", NULL, NULL);
|
||||
+ "/usr/share/doc/dvdisaster/TODO", NULL, NULL);
|
||||
break;
|
||||
|
||||
default:
|
||||
31
debian/patches/22-fix-hurd-i386-ftbfs.patch
vendored
Normal file
31
debian/patches/22-fix-hurd-i386-ftbfs.patch
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
From: Carlos Maddela <e7appew@gmail.com>
|
||||
Date: Wed, 4 Jan 2017 03:55:58 +1100
|
||||
Subject: Fix FTBFS for hurd-i386.
|
||||
|
||||
Description: Fix FTBFS for hurd-i386.
|
||||
Hurd does not have path length restrictions, so doesn't define
|
||||
PATH_MAX. Assuming a PATH_MAX of 4096 as a quick workaround.
|
||||
Author: Carlos Maddela <e7appew@gmail.com>
|
||||
Forwarded: no
|
||||
Last-Update: 2017-01-04
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
---
|
||||
menubar.c | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/menubar.c b/menubar.c
|
||||
index 4a9f470..8330edb 100644
|
||||
--- a/menubar.c
|
||||
+++ b/menubar.c
|
||||
@@ -24,6 +24,10 @@
|
||||
|
||||
#include <limits.h>
|
||||
|
||||
+#ifndef PATH_MAX
|
||||
+ #define PATH_MAX 4096
|
||||
+#endif
|
||||
+
|
||||
/***
|
||||
*** Forward declarations
|
||||
***/
|
||||
32
debian/patches/23-add-bdrom-support.patch
vendored
Normal file
32
debian/patches/23-add-bdrom-support.patch
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
From: Corey Wright <undefined@pobox.com>
|
||||
Date: Sat, 24 Sep 2016 14:16:10 -0500
|
||||
Subject: Add support for BD-ROM media-type.
|
||||
|
||||
Description: Add support for BD-ROM media-type.
|
||||
The attached patch adds support to dvdisaster for the BD-ROM
|
||||
media-type. This allows dvdisaster to scan and read (ie create ISO
|
||||
images of) BD-ROM media.
|
||||
Author: Corey Write <undefined@pobox.com>
|
||||
Origin: other, https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=849518;filename=dvdisaster-add_bdrom_support.patch;msg=5
|
||||
Bug-Debian: https://bugs.debian.org/849518
|
||||
Forwarded: no
|
||||
Last-Update: 2016-12-27
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
---
|
||||
scsi-layer.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/scsi-layer.c b/scsi-layer.c
|
||||
index f8d2112..50f6c4c 100644
|
||||
--- a/scsi-layer.c
|
||||
+++ b/scsi-layer.c
|
||||
@@ -1029,7 +1029,7 @@ static int query_bd(DeviceHandle *dh, int probe_only)
|
||||
|
||||
if(!strncmp((char*)&buf[4+8], "BDO", 3))
|
||||
{ dh->typeDescr = g_strdup("BD-ROM");
|
||||
- dh->subType = UNSUPPORTED;
|
||||
+ dh->subType = BD;
|
||||
}
|
||||
|
||||
if(!strncmp((char*)&buf[4+8], "BDW", 3))
|
||||
27
debian/patches/24-show-gpl3-license.patch
vendored
Normal file
27
debian/patches/24-show-gpl3-license.patch
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
From: Carlos Maddela <e7appew@gmail.com>
|
||||
Date: Thu, 5 Jan 2017 14:36:27 +1100
|
||||
Subject: Update help dialog to show GPL-3 license.
|
||||
|
||||
Description: Update help dialog to show GPL-3 license.
|
||||
Author: Carlos Maddela <e7appew@gmail.com>
|
||||
Forwarded: not-needed
|
||||
Last-Update: 2017-01-05
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
---
|
||||
help-dialogs.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/help-dialogs.c b/help-dialogs.c
|
||||
index d893d33..75a615e 100644
|
||||
--- a/help-dialogs.c
|
||||
+++ b/help-dialogs.c
|
||||
@@ -403,7 +403,7 @@ void ShowGPL()
|
||||
ShowTextfile(_("windowtitle|GNU General Public License"),
|
||||
_("<big>GNU General Public License</big>\n"
|
||||
"<i>The license terms of dvdisaster.</i>"),
|
||||
- "/usr/share/common-licenses/GPL-2", NULL, NULL);
|
||||
+ "/usr/share/common-licenses/GPL-3", NULL, NULL);
|
||||
}
|
||||
|
||||
/*
|
||||
32
debian/patches/25-fix-man-pages.patch
vendored
Normal file
32
debian/patches/25-fix-man-pages.patch
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
From: Carlos Maddela <e7appew@gmail.com>
|
||||
Date: Thu, 5 Jan 2017 18:51:49 +1100
|
||||
Subject: Fix generated man pages.
|
||||
|
||||
Description: Fix generated man pages.
|
||||
The generated man pages incorrectly direct users to the directory of
|
||||
the old HTML documentation, which is no longer available.
|
||||
Author: Carlos Maddela <e7appew@gmail.com>
|
||||
Forwarded: no
|
||||
Last-Update: 2016-12-21
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
---
|
||||
GNUmakefile.template | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/GNUmakefile.template b/GNUmakefile.template
|
||||
index d9bef11..d80932d 100644
|
||||
--- a/GNUmakefile.template
|
||||
+++ b/GNUmakefile.template
|
||||
@@ -232,9 +232,9 @@ install: dvdisaster
|
||||
install -d $(BUILDROOT)$(MANDIR)/de/man1
|
||||
cd documentation; \
|
||||
ESCAPED_DOCSUBDIR=`echo $(DOCSUBDIR) | sed -e 's/\//\\\\\//g'`; \
|
||||
- sed "s/%docdir%/$$ESCAPED_DOCSUBDIR\/html/" <dvdisaster.en.1 >dvdisaster.updated; \
|
||||
+ sed "s/%docdir%/$$ESCAPED_DOCSUBDIR/" <dvdisaster.en.1 >dvdisaster.updated; \
|
||||
install -m 644 dvdisaster.updated $(BUILDROOT)$(MANDIR)/man1/dvdisaster.1; \
|
||||
- sed "s/%docdir%/$$ESCAPED_DOCSUBDIR\/html/" <dvdisaster.de.1 >dvdisaster.updated; \
|
||||
+ sed "s/%docdir%/$$ESCAPED_DOCSUBDIR/" <dvdisaster.de.1 >dvdisaster.updated; \
|
||||
install -m 644 dvdisaster.updated $(BUILDROOT)$(MANDIR)/de/man1/dvdisaster.1; \
|
||||
rm dvdisaster.updated
|
||||
if echo $(WITH_OPTIONS) | grep "NLS_YES" >/dev/null; then \
|
||||
47
debian/patches/26-fix-display-of-manual.pdf.patch
vendored
Normal file
47
debian/patches/26-fix-display-of-manual.pdf.patch
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
From: Carlos Maddela <e7appew@gmail.com>
|
||||
Date: Thu, 5 Jan 2017 18:59:30 +1100
|
||||
Subject: Fix display of manual.pdf.
|
||||
|
||||
Description: Fix display of manual.pdf.
|
||||
The PDF file is automatically compressed by Debhelper, so we need to
|
||||
account for this.
|
||||
Author: Carlos Maddela <e7appew@gmail.com>
|
||||
Forwarded: not-needed
|
||||
Last-Update: 2017-01-05
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
---
|
||||
show-manual.c | 4 ++--
|
||||
welcome-window.c | 4 ++--
|
||||
2 files changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/show-manual.c b/show-manual.c
|
||||
index c25342b..4abbe97 100644
|
||||
--- a/show-manual.c
|
||||
+++ b/show-manual.c
|
||||
@@ -287,8 +287,8 @@ void ShowPDF(char *target)
|
||||
|
||||
/* If no target is given, show the manual. */
|
||||
|
||||
- if(!target)
|
||||
- { bi->path = g_strdup_printf("%s/manual.pdf",Closure->docDir);
|
||||
+ if(!target)
|
||||
+ { bi->path = g_strdup_printf("%s/manual.pdf.gz",Closure->docDir);
|
||||
}
|
||||
else
|
||||
if(*target != '/') bi->path = g_strdup_printf("%s/%s",Closure->docDir, target);
|
||||
diff --git a/welcome-window.c b/welcome-window.c
|
||||
index d30ebd9..63ac3df 100644
|
||||
--- a/welcome-window.c
|
||||
+++ b/welcome-window.c
|
||||
@@ -139,8 +139,8 @@ void CreateWelcomePage(GtkNotebook *notebook)
|
||||
AboutText(box, _("\ndvdisaster creates error correction data to protect\n"
|
||||
"optical media (CD,DVD,BD) against data loss.\n"));
|
||||
|
||||
- AboutTextWithLink(box, _("Please see the [manual] for typical uses of dvdisaster.\n\n"),
|
||||
- "manual.pdf");
|
||||
+ AboutTextWithLink(box, _("Please see the [manual] for typical uses of dvdisaster.\n\n"),
|
||||
+ "manual.pdf.gz");
|
||||
|
||||
AboutText(box, _("<i>New in this Version:</i>"));
|
||||
|
||||
485
debian/patches/27-allow-opening-in-browser-again.patch
vendored
Normal file
485
debian/patches/27-allow-opening-in-browser-again.patch
vendored
Normal file
@@ -0,0 +1,485 @@
|
||||
From: Carlos Maddela <e7appew@gmail.com>
|
||||
Date: Thu, 5 Jan 2017 19:11:38 +1100
|
||||
Subject: Resurrect old code to support opening URLs in a browser.
|
||||
|
||||
Description: Resurrect old code to support opening URLs in a browser.
|
||||
Author: Carlos Maddela <e7appew@gmail.com>
|
||||
Forwarded: not-needed
|
||||
Last-Update: 2016-12-21
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
---
|
||||
closure.c | 2 +
|
||||
dvdisaster.h | 7 +
|
||||
help-dialogs.c | 3 +-
|
||||
show-html.c | 402 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
4 files changed, 413 insertions(+), 1 deletion(-)
|
||||
create mode 100644 show-html.c
|
||||
|
||||
diff --git a/closure.c b/closure.c
|
||||
index fa52f09..24c1e8c 100644
|
||||
--- a/closure.c
|
||||
+++ b/closure.c
|
||||
@@ -474,6 +474,7 @@ void InitClosure()
|
||||
Closure->deviceNames = g_ptr_array_new();
|
||||
Closure->deviceNodes = g_ptr_array_new();
|
||||
Closure->viewer = g_strdup("xdg-open");
|
||||
+ Closure->browser = g_strdup("xdg-open");
|
||||
Closure->methodList = g_ptr_array_new();
|
||||
Closure->methodName = g_strdup("RS01");
|
||||
Closure->dDumpDir = g_strdup(Closure->homeDir);
|
||||
@@ -589,6 +590,7 @@ void FreeClosure()
|
||||
cond_free(Closure->binDir);
|
||||
cond_free(Closure->docDir);
|
||||
cond_free(Closure->viewer);
|
||||
+ cond_free(Closure->browser);
|
||||
cond_free(Closure->errorTitle);
|
||||
cond_free(Closure->simulateCD);
|
||||
cond_free(Closure->dDumpDir);
|
||||
diff --git a/dvdisaster.h b/dvdisaster.h
|
||||
index 9acd094..f536040 100644
|
||||
--- a/dvdisaster.h
|
||||
+++ b/dvdisaster.h
|
||||
@@ -229,6 +229,7 @@ typedef struct _GlobalClosure
|
||||
char *binDir; /* place where the binary resides */
|
||||
char *docDir; /* place where our documentation resides */
|
||||
char *viewer; /* Name of preferred PDF viewer */
|
||||
+ char *browser; /* Name of preferred browser */
|
||||
|
||||
GMutex progressLock; /* A mutex protected the stuff below */
|
||||
char bs[256]; /* A string of 255 backspace characters */
|
||||
@@ -1348,6 +1349,12 @@ int ProbeAltiVec(void);
|
||||
|
||||
void ShowPDF(char*);
|
||||
|
||||
+/***
|
||||
+ *** show-html.c
|
||||
+ ***/
|
||||
+
|
||||
+void ShowHTML(char*);
|
||||
+
|
||||
/***
|
||||
*** smart-lec.c
|
||||
***/
|
||||
diff --git a/help-dialogs.c b/help-dialogs.c
|
||||
index 75a615e..dc5b440 100644
|
||||
--- a/help-dialogs.c
|
||||
+++ b/help-dialogs.c
|
||||
@@ -599,7 +599,8 @@ static gint about_cb(GtkWidget *widget, GdkEvent *event, gpointer data)
|
||||
{ case GDK_BUTTON_PRESS:
|
||||
if(!inside) return FALSE; /* Defect in certain Gtk versions? */
|
||||
if(!strcmp(label,"GPL")) ShowGPL();
|
||||
- else if(!strcmp(label,"MODIFYING")) show_modifying();
|
||||
+ else if(!strcmp(label,"MODIFYING")) show_modifying();
|
||||
+ else if(strlen(label) > 4 && !strncmp(label, "http", 4)) ShowHTML(g_strdup(label));
|
||||
else ShowPDF(g_strdup(label));
|
||||
break;
|
||||
case GDK_ENTER_NOTIFY:
|
||||
diff --git a/show-html.c b/show-html.c
|
||||
new file mode 100644
|
||||
index 0000000..608e8ec
|
||||
--- /dev/null
|
||||
+++ b/show-html.c
|
||||
@@ -0,0 +1,402 @@
|
||||
+/* dvdisaster: Additional error correction for optical media.
|
||||
+ * Copyright (C) 2004-2012 Carsten Gnoerlich.
|
||||
+ * Project home page: http://www.dvdisaster.com
|
||||
+ * Email: carsten@dvdisaster.com -or- cgnoerlich@fsfe.org
|
||||
+ *
|
||||
+ * This program 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 2 of the License, or
|
||||
+ * (at your option) any later version.
|
||||
+ *
|
||||
+ * This program 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.
|
||||
+ *
|
||||
+ * You should have received a copy of the GNU General Public License
|
||||
+ * along with this program; if not, write to the Free Software
|
||||
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA,
|
||||
+ * or direct your browser at http://www.gnu.org.
|
||||
+ */
|
||||
+
|
||||
+#include "dvdisaster.h"
|
||||
+
|
||||
+#if defined(SYS_LINUX) || defined(SYS_FREEBSD) || defined(SYS_NETBSD)
|
||||
+#include <sys/wait.h>
|
||||
+#endif
|
||||
+
|
||||
+#ifdef SYS_MINGW
|
||||
+#include "windows.h"
|
||||
+#include "shellapi.h"
|
||||
+#endif
|
||||
+
|
||||
+/***
|
||||
+ *** Ask user to specify his browser
|
||||
+ ***/
|
||||
+
|
||||
+#if defined(SYS_LINUX) || defined(SYS_FREEBSD) || defined(SYS_NETBSD)
|
||||
+
|
||||
+#define SEARCH_BUTTON 1
|
||||
+
|
||||
+typedef struct
|
||||
+{ GtkWidget *dialog;
|
||||
+ GtkWidget *entry;
|
||||
+ GtkWidget *search;
|
||||
+ GtkWidget *filesel;
|
||||
+ GtkWidget *fileok;
|
||||
+ GtkWidget *filecancel;
|
||||
+ char *url;
|
||||
+} browser_dialog_info;
|
||||
+
|
||||
+static void response_cb(GtkWidget *widget, int response, gpointer data)
|
||||
+{ browser_dialog_info *bdi = (browser_dialog_info*)data;
|
||||
+
|
||||
+ switch(response)
|
||||
+ { case GTK_RESPONSE_ACCEPT:
|
||||
+ if(Closure->browser) g_free(Closure->browser);
|
||||
+ Closure->browser = g_strdup(gtk_entry_get_text(GTK_ENTRY(bdi->entry)));
|
||||
+ ShowHTML(bdi->url);
|
||||
+ break;
|
||||
+
|
||||
+ case GTK_RESPONSE_REJECT:
|
||||
+ if(bdi->url) g_free(bdi->url);
|
||||
+ break;
|
||||
+ }
|
||||
+ gtk_widget_destroy(widget);
|
||||
+ if(bdi->filesel)
|
||||
+ gtk_widget_destroy(bdi->filesel);
|
||||
+ g_free(bdi);
|
||||
+}
|
||||
+
|
||||
+static void search_cb(GtkWidget *widget, gpointer data)
|
||||
+{ browser_dialog_info *bdi = (browser_dialog_info*)data;
|
||||
+
|
||||
+ if(widget == bdi->search)
|
||||
+ { bdi->filesel = gtk_file_selection_new(_utf("windowtitle|Choose a browser"));
|
||||
+ bdi->fileok = GTK_FILE_SELECTION(bdi->filesel)->ok_button;
|
||||
+ bdi->filecancel = GTK_FILE_SELECTION(bdi->filesel)->cancel_button;
|
||||
+ ReverseCancelOK(GTK_DIALOG(bdi->filesel));
|
||||
+ gtk_file_selection_hide_fileop_buttons(GTK_FILE_SELECTION(bdi->filesel));
|
||||
+ g_signal_connect(G_OBJECT(GTK_FILE_SELECTION(bdi->filesel)->ok_button), "clicked",
|
||||
+ G_CALLBACK(search_cb), bdi);
|
||||
+
|
||||
+ g_signal_connect(G_OBJECT(GTK_FILE_SELECTION(bdi->filesel)->cancel_button), "clicked",
|
||||
+ G_CALLBACK(search_cb), bdi);
|
||||
+
|
||||
+ gtk_widget_show(bdi->filesel);
|
||||
+ }
|
||||
+
|
||||
+ if(widget == bdi->fileok)
|
||||
+ {
|
||||
+ if(Closure->browser) g_free(Closure->browser);
|
||||
+ Closure->browser = g_strdup(gtk_file_selection_get_filename(GTK_FILE_SELECTION(bdi->filesel)));
|
||||
+ ShowHTML(bdi->url);
|
||||
+ gtk_widget_destroy(bdi->filesel);
|
||||
+ gtk_widget_destroy(bdi->dialog);
|
||||
+ g_free(bdi);
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
+ if(widget == bdi->filecancel)
|
||||
+ { gtk_widget_destroy(bdi->filesel);
|
||||
+ bdi->filesel = NULL;
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
+static void browser_dialog(char *url)
|
||||
+{ GtkWidget *dialog, *vbox, *hbox, *label, *entry, *button;
|
||||
+ browser_dialog_info *bdi = g_malloc0(sizeof(browser_dialog_info));
|
||||
+
|
||||
+ /* Create the dialog */
|
||||
+
|
||||
+ dialog = gtk_dialog_new_with_buttons(_utf("windowtitle|Browser required"),
|
||||
+ Closure->window, GTK_DIALOG_DESTROY_WITH_PARENT,
|
||||
+ GTK_STOCK_OK, GTK_RESPONSE_ACCEPT,
|
||||
+ GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT, NULL);
|
||||
+ bdi->dialog = dialog;
|
||||
+ if(url)
|
||||
+ { bdi->url = g_strdup(url);
|
||||
+ }
|
||||
+
|
||||
+ vbox = gtk_vbox_new(FALSE, 0);
|
||||
+ gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), vbox, FALSE, FALSE, 0);
|
||||
+ gtk_container_set_border_width(GTK_CONTAINER(vbox), 10);
|
||||
+
|
||||
+ /* Insert the contents */
|
||||
+
|
||||
+ label = gtk_label_new(NULL);
|
||||
+ gtk_label_set_markup(GTK_LABEL(label), _utf("<b>Could not find a suitable browser.</b>\n\n"
|
||||
+ "Which browser would you like to use\n"
|
||||
+ "for reading the online documentation?\n\n"
|
||||
+ "Please enter its name (e.g. mozilla) or\n"
|
||||
+ "use the \"Search\" button for a file dialog.\n")),
|
||||
+ gtk_box_pack_start(GTK_BOX(vbox), label, TRUE, TRUE, 10);
|
||||
+
|
||||
+ hbox = gtk_hbox_new(FALSE, 0);
|
||||
+ gtk_box_pack_start(GTK_BOX(vbox), hbox, TRUE, TRUE, 10);
|
||||
+
|
||||
+ bdi->entry = entry = gtk_entry_new();
|
||||
+ gtk_box_pack_start(GTK_BOX(hbox), entry, FALSE, FALSE, 10);
|
||||
+
|
||||
+ bdi->search = button = gtk_button_new_with_label(_utf("Search"));
|
||||
+ g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(search_cb), bdi);
|
||||
+ gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 10);
|
||||
+
|
||||
+ /* Show it */
|
||||
+
|
||||
+ g_signal_connect(dialog, "response", G_CALLBACK(response_cb), bdi);
|
||||
+
|
||||
+ gtk_widget_show_all(dialog);
|
||||
+}
|
||||
+#endif /* SYS_ unix-like */
|
||||
+
|
||||
+/***
|
||||
+ *** Show the manual in an external browser
|
||||
+ ***/
|
||||
+
|
||||
+/*
|
||||
+ * Check the child processes exit status
|
||||
+ * to find whether the browser could be invoked.
|
||||
+ */
|
||||
+
|
||||
+typedef struct
|
||||
+{ pid_t pid;
|
||||
+ char *url;
|
||||
+ GtkWidget *msg;
|
||||
+ int seconds;
|
||||
+} browser_info;
|
||||
+
|
||||
+
|
||||
+static void msg_destroy_cb(GtkWidget *widget, gpointer data)
|
||||
+{ browser_info *bi = (browser_info*)data;
|
||||
+
|
||||
+ bi->msg = NULL;
|
||||
+}
|
||||
+
|
||||
+#if defined(SYS_LINUX) || defined(SYS_FREEBSD) || defined(SYS_NETBSD)
|
||||
+
|
||||
+/*
|
||||
+ * The following list of browsers and html wrappers
|
||||
+ * will be tried one at a time until one entry succeeds by:
|
||||
+ * - returning zero
|
||||
+ * - not returning within 60 seconds
|
||||
+ */
|
||||
+
|
||||
+static int browser_index;
|
||||
+static void try_browser(browser_info*);
|
||||
+
|
||||
+static char *browsers[] =
|
||||
+{ "user-selection",
|
||||
+ "xdg-open",
|
||||
+ "gnome-open",
|
||||
+ "htmlview",
|
||||
+ "firefox",
|
||||
+ "mozilla",
|
||||
+ "konqueror",
|
||||
+ "epiphany",
|
||||
+ "opera",
|
||||
+ "/Applications/Safari.app/Contents/MacOS/Safari", /* better way to do this? */
|
||||
+ NULL
|
||||
+};
|
||||
+
|
||||
+static gboolean browser_timeout_func(gpointer data)
|
||||
+{ browser_info *bi = (browser_info*)data;
|
||||
+ int status;
|
||||
+
|
||||
+ waitpid(bi->pid, &status, WNOHANG);
|
||||
+
|
||||
+ /* At least mozilla returns random values under FreeBSD on success,
|
||||
+ so we can't rely on the return value exept our own 110 one. */
|
||||
+
|
||||
+ if(WIFEXITED(status))
|
||||
+ {
|
||||
+ switch(WEXITSTATUS(status))
|
||||
+ { case 110: /* browser did not execute */
|
||||
+ browser_index++;
|
||||
+ if(!browsers[browser_index]) /* all browsers from the list failed */
|
||||
+ { browser_dialog(bi->url);
|
||||
+
|
||||
+ if(bi->msg)
|
||||
+ gtk_widget_destroy(bi->msg);
|
||||
+ if(bi->url)
|
||||
+ g_free(bi->url);
|
||||
+ g_free(bi);
|
||||
+ }
|
||||
+ else /* try next browser from list */
|
||||
+ { bi->seconds = 0;
|
||||
+ try_browser(bi);
|
||||
+ }
|
||||
+ return FALSE;
|
||||
+
|
||||
+ case 0: /* browser assumed to be successful */
|
||||
+ default:
|
||||
+ if(bi->msg)
|
||||
+ gtk_widget_destroy(bi->msg);
|
||||
+ if(bi->url)
|
||||
+ g_free(bi->url);
|
||||
+ g_free(bi);
|
||||
+ return FALSE;
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ bi->seconds++;
|
||||
+ if(bi->seconds == 10 && bi->msg)
|
||||
+ { gtk_widget_destroy(bi->msg);
|
||||
+ bi->msg = NULL;
|
||||
+ }
|
||||
+
|
||||
+ return bi->seconds > 60 ? FALSE : TRUE;
|
||||
+}
|
||||
+#endif /* SYS_ unix-like */
|
||||
+
|
||||
+#ifdef SYS_MINGW
|
||||
+static gboolean browser_timeout_func(gpointer data)
|
||||
+{ browser_info *bi = (browser_info*)data;
|
||||
+
|
||||
+ bi->seconds++;
|
||||
+
|
||||
+ if(bi->seconds >= 10)
|
||||
+ { if(bi->msg)
|
||||
+ { gtk_widget_destroy(bi->msg);
|
||||
+ bi->msg = NULL;
|
||||
+ }
|
||||
+ if(bi->url) g_free(bi->url);
|
||||
+ g_free(bi);
|
||||
+ return FALSE;
|
||||
+ }
|
||||
+
|
||||
+ return TRUE;
|
||||
+}
|
||||
+#endif /* SYS_MINGW */
|
||||
+
|
||||
+/*
|
||||
+ * Invoke the browser
|
||||
+ */
|
||||
+
|
||||
+#if defined(SYS_LINUX) || defined(SYS_FREEBSD) || defined(SYS_NETBSD)
|
||||
+static void try_browser(browser_info *bi)
|
||||
+{ pid_t pid;
|
||||
+
|
||||
+ bi->pid = pid = fork();
|
||||
+
|
||||
+ if(pid == -1)
|
||||
+ { printf("fork failed\n");
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
+ /* make the parent remember and wait() for the browser */
|
||||
+
|
||||
+ if(pid > 0)
|
||||
+ { g_timeout_add(1000, browser_timeout_func, (gpointer)bi);
|
||||
+
|
||||
+ if(browser_index)
|
||||
+ { g_free(Closure->browser);
|
||||
+ Closure->browser = g_strdup(browsers[browser_index]);
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ /* try calling the browser */
|
||||
+
|
||||
+ if(pid == 0)
|
||||
+ { char *argv[10];
|
||||
+ int argc = 0;
|
||||
+
|
||||
+ argv[argc++] = browser_index ? browsers[browser_index] : Closure->browser;
|
||||
+ argv[argc++] = bi->url;
|
||||
+ argv[argc++] = NULL;
|
||||
+ execvp(argv[0], argv);
|
||||
+
|
||||
+ _exit(110); /* couldn't execute */
|
||||
+ }
|
||||
+}
|
||||
+#endif /* SYS_ unix-like */
|
||||
+
|
||||
+
|
||||
+void ShowHTML(char *target)
|
||||
+{ browser_info *bi = g_malloc0(sizeof(browser_info));
|
||||
+ guint64 ignore;
|
||||
+ const char *lang;
|
||||
+ char *path = NULL;
|
||||
+ int http_url;
|
||||
+
|
||||
+ /* If no target is given, select between translations of the manual. */
|
||||
+
|
||||
+ if(!target) target = g_strdup("index.html");
|
||||
+
|
||||
+ http_url = strlen(target) > 4 && !strncmp(target, "http", 4);
|
||||
+
|
||||
+ if(!http_url && !strchr(target, '/')) /* create full path */
|
||||
+ {
|
||||
+ if(!Closure->docDir)
|
||||
+ {
|
||||
+ CreateMessage(_("Documentation not installed."), GTK_MESSAGE_ERROR);
|
||||
+ g_free(bi);
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
+ lang = g_getenv("LANG");
|
||||
+
|
||||
+ if(lang)
|
||||
+ { if(!strncmp(lang, "ru", 2))
|
||||
+#ifdef SYS_MINGW
|
||||
+ path = g_strdup_printf("%s\\ru\\%s",Closure->docDir,target);
|
||||
+#else
|
||||
+ path = g_strdup_printf("%s/ru/%s",Closure->docDir,target);
|
||||
+#endif
|
||||
+ else if(!strncmp(lang, "de", 2))
|
||||
+#ifdef SYS_MINGW
|
||||
+ path = g_strdup_printf("%s\\de\\%s",Closure->docDir,target);
|
||||
+#else
|
||||
+ path = g_strdup_printf("%s/de/%s",Closure->docDir,target);
|
||||
+#endif
|
||||
+ }
|
||||
+
|
||||
+ if(!path)
|
||||
+ {
|
||||
+#ifdef SYS_MINGW
|
||||
+ path = g_strdup_printf("%s\\en\\%s",Closure->docDir,target);
|
||||
+#else
|
||||
+ path = g_strdup_printf("%s/en/%s",Closure->docDir,target);
|
||||
+#endif
|
||||
+ }
|
||||
+
|
||||
+#ifdef SYS_MINGW
|
||||
+ if(!LargeStat(path, &ignore))
|
||||
+ {
|
||||
+ g_free(path); /* the local dir is Windows specific */
|
||||
+ path = g_strdup_printf("%s\\local\\%s",Closure->docDir,target);
|
||||
+ }
|
||||
+#endif
|
||||
+ g_free(target);
|
||||
+ bi->url = path;
|
||||
+ }
|
||||
+ else bi->url = target;
|
||||
+
|
||||
+ if(!http_url && !LargeStat(bi->url, &ignore))
|
||||
+ {
|
||||
+ CreateMessage(_("Documentation file\n%s\nnot found.\n"), GTK_MESSAGE_ERROR, bi->url);
|
||||
+ g_free(bi);
|
||||
+ g_free(bi->url);
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
+ /* Lock the help button and show a message for 10 seconds. */
|
||||
+
|
||||
+ TimedInsensitive(Closure->helpButton, 10000);
|
||||
+ bi->msg = CreateMessage(_("Please hang on until the browser comes up!"), GTK_MESSAGE_INFO);
|
||||
+ g_signal_connect(G_OBJECT(bi->msg), "destroy", G_CALLBACK(msg_destroy_cb), bi);
|
||||
+
|
||||
+#ifdef SYS_MINGW
|
||||
+ /* Okay, Billy wins big time here ;-) */
|
||||
+
|
||||
+ ShellExecute(NULL, "open", bi->url, NULL, NULL, SW_SHOWNORMAL);
|
||||
+ g_timeout_add(1000, browser_timeout_func, (gpointer)bi);
|
||||
+#endif
|
||||
+
|
||||
+#if defined(SYS_LINUX) || defined(SYS_FREEBSD) || defined(SYS_NETBSD)
|
||||
+ /* Try the first browser */
|
||||
+
|
||||
+ browser_index = 0;
|
||||
+ try_browser(bi);
|
||||
+#endif
|
||||
+}
|
||||
29
debian/patches/28-pdftex-reproducibility.patch
vendored
Normal file
29
debian/patches/28-pdftex-reproducibility.patch
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
From: Carlos Maddela <e7appew@gmail.com>
|
||||
Date: Thu, 5 Jan 2017 19:14:35 +1100
|
||||
Subject: Apply pdftex workarounds for build reproducibility.
|
||||
|
||||
Description: Apply pdftex workarounds for build reproducibility.
|
||||
* Generate the same PDF IDs.
|
||||
* Suppress additional metadata for included images.
|
||||
Author: Carlos Maddela <e7appew@gmail.com>
|
||||
Forwarded: not-needed
|
||||
Last-Update: 2017-08-15
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
---
|
||||
documentation/user-manual/manual.tex | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/documentation/user-manual/manual.tex b/documentation/user-manual/manual.tex
|
||||
index 3024f3a..d943232 100644
|
||||
--- a/documentation/user-manual/manual.tex
|
||||
+++ b/documentation/user-manual/manual.tex
|
||||
@@ -65,6 +65,8 @@
|
||||
\fancyfoot{}
|
||||
\fancyfoot[LE,RO]{page \thepage\ of \pageref{LastPage}}
|
||||
|
||||
+\pdftrailerid{dvdisaster}
|
||||
+\pdfsuppressptexinfo=-1
|
||||
\begin{document}
|
||||
|
||||
\definecolor{lightorange}{RGB}{255,224,150}
|
||||
173
debian/patches/29-fix-more-typos.patch
vendored
Normal file
173
debian/patches/29-fix-more-typos.patch
vendored
Normal file
@@ -0,0 +1,173 @@
|
||||
From: Carlos Maddela <e7appew@gmail.com>
|
||||
Date: Sun, 6 Aug 2017 02:16:17 +1000
|
||||
Subject: Fix more typos in error messages and docs.
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Description: Fix more typos in error messages and docs.
|
||||
'sucessful' → 'successful'
|
||||
'improvment' → 'improvement'
|
||||
Author: Carlos Maddela <e7appew@gmail.com>
|
||||
Last-Update: 2017-12-21
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
---
|
||||
documentation/user-manual/howtos.tex | 2 +-
|
||||
locale/cs.po | 2 +-
|
||||
locale/de.po | 2 +-
|
||||
locale/it.po | 2 +-
|
||||
locale/pt_BR.po | 2 +-
|
||||
locale/ru.po | 2 +-
|
||||
locale/sv.po | 2 +-
|
||||
preferences.c | 4 ++--
|
||||
regtest/rs01.bash | 2 +-
|
||||
scsi-layer.c | 2 +-
|
||||
smart-lec.c | 2 +-
|
||||
11 files changed, 12 insertions(+), 12 deletions(-)
|
||||
|
||||
diff --git a/documentation/user-manual/howtos.tex b/documentation/user-manual/howtos.tex
|
||||
index 51ff827..80fe9d3 100644
|
||||
--- a/documentation/user-manual/howtos.tex
|
||||
+++ b/documentation/user-manual/howtos.tex
|
||||
@@ -1822,7 +1822,7 @@ process of creating error correction files using these options. The
|
||||
first option marked green lets dvdisaster create the error correction
|
||||
file immediately after the medium has been (completely) read.
|
||||
The second option marked green deletes the image when the error correction
|
||||
-file has been sucessfully created.
|
||||
+file has been successfully created.
|
||||
|
||||
\bigskip
|
||||
|
||||
diff --git a/locale/cs.po b/locale/cs.po
|
||||
index 453ec07..d89ff4a 100644
|
||||
--- a/locale/cs.po
|
||||
+++ b/locale/cs.po
|
||||
@@ -1917,7 +1917,7 @@ msgid "Media ejection"
|
||||
msgstr "Vysunutí disku"
|
||||
|
||||
#: preferences.c:2064 preferences.c:2065
|
||||
-msgid "Eject medium after sucessful read"
|
||||
+msgid "Eject medium after successful read"
|
||||
msgstr "Po úspěšném načtení vysunout disk"
|
||||
|
||||
#: preferences.c:2091
|
||||
diff --git a/locale/de.po b/locale/de.po
|
||||
index 5b47778..8112b13 100644
|
||||
--- a/locale/de.po
|
||||
+++ b/locale/de.po
|
||||
@@ -1975,7 +1975,7 @@ msgid "Media ejection"
|
||||
msgstr "Datenträger auswerfen"
|
||||
|
||||
#: preferences.c:2064 preferences.c:2065
|
||||
-msgid "Eject medium after sucessful read"
|
||||
+msgid "Eject medium after successful read"
|
||||
msgstr "Datenträger nach erfolgreichem Lesen auswerfen"
|
||||
|
||||
#: preferences.c:2091
|
||||
diff --git a/locale/it.po b/locale/it.po
|
||||
index f6e9dfd..b98f8d3 100644
|
||||
--- a/locale/it.po
|
||||
+++ b/locale/it.po
|
||||
@@ -1763,7 +1763,7 @@ msgid "Media ejection"
|
||||
msgstr ""
|
||||
|
||||
#: preferences.c:2064 preferences.c:2065
|
||||
-msgid "Eject medium after sucessful read"
|
||||
+msgid "Eject medium after successful read"
|
||||
msgstr ""
|
||||
|
||||
#: preferences.c:2091
|
||||
diff --git a/locale/pt_BR.po b/locale/pt_BR.po
|
||||
index f7f6af0..81ee14d 100644
|
||||
--- a/locale/pt_BR.po
|
||||
+++ b/locale/pt_BR.po
|
||||
@@ -1853,7 +1853,7 @@ msgid "Media ejection"
|
||||
msgstr "Ejeção da mídia"
|
||||
|
||||
#: preferences.c:2064 preferences.c:2065
|
||||
-msgid "Eject medium after sucessful read"
|
||||
+msgid "Eject medium after successful read"
|
||||
msgstr "Ejetar mídia após uma leitura completa"
|
||||
|
||||
#: preferences.c:2091
|
||||
diff --git a/locale/ru.po b/locale/ru.po
|
||||
index 9625a1f..6e980b9 100644
|
||||
--- a/locale/ru.po
|
||||
+++ b/locale/ru.po
|
||||
@@ -1855,7 +1855,7 @@ msgid "Media ejection"
|
||||
msgstr "Извлечь носитель"
|
||||
|
||||
#: preferences.c:2064 preferences.c:2065
|
||||
-msgid "Eject medium after sucessful read"
|
||||
+msgid "Eject medium after successful read"
|
||||
msgstr "Извлечь носитель после успешного чтения"
|
||||
|
||||
#: preferences.c:2091
|
||||
diff --git a/locale/sv.po b/locale/sv.po
|
||||
index c74a942..3011969 100644
|
||||
--- a/locale/sv.po
|
||||
+++ b/locale/sv.po
|
||||
@@ -1769,7 +1769,7 @@ msgid "Media ejection"
|
||||
msgstr ""
|
||||
|
||||
#: preferences.c:2064 preferences.c:2065
|
||||
-msgid "Eject medium after sucessful read"
|
||||
+msgid "Eject medium after successful read"
|
||||
msgstr ""
|
||||
|
||||
#: preferences.c:2091
|
||||
diff --git a/preferences.c b/preferences.c
|
||||
index 4899317..4309809 100644
|
||||
--- a/preferences.c
|
||||
+++ b/preferences.c
|
||||
@@ -2061,8 +2061,8 @@ void CreatePreferencesWindow(void)
|
||||
frame = gtk_frame_new(_utf("Media ejection"));
|
||||
gtk_box_pack_start(GTK_BOX(vbox), frame, FALSE, FALSE, 0);
|
||||
|
||||
- lwoh = CreateLabelWithOnlineHelp(_("Eject medium after sucessful read"),
|
||||
- _("Eject medium after sucessful read"));
|
||||
+ lwoh = CreateLabelWithOnlineHelp(_("Eject medium after successful read"),
|
||||
+ _("Eject medium after successful read"));
|
||||
RegisterPreferencesHelpWindow(lwoh);
|
||||
|
||||
for(i=0; i<2; i++)
|
||||
diff --git a/regtest/rs01.bash b/regtest/rs01.bash
|
||||
index 3c03f61..cc11f6e 100755
|
||||
--- a/regtest/rs01.bash
|
||||
+++ b/regtest/rs01.bash
|
||||
@@ -1323,7 +1323,7 @@ if try "reading medium w/ ecc in 3 passes; 3rd pass recovers some" read_multipas
|
||||
run_regtest read_multipass_ecc_partial_success "--read-medium=3 --spinup-delay=0 -r" $TMPISO $TMPECC
|
||||
fi
|
||||
|
||||
-# Do a second sucessful read attempt at an incomplete image;
|
||||
+# Do a second successful read attempt at an incomplete image;
|
||||
# see whether correct results are reported when ecc data is present
|
||||
# since CRC caching is a bit complicated in this case.
|
||||
|
||||
diff --git a/scsi-layer.c b/scsi-layer.c
|
||||
index 50f6c4c..22e825d 100644
|
||||
--- a/scsi-layer.c
|
||||
+++ b/scsi-layer.c
|
||||
@@ -2458,7 +2458,7 @@ int ReadSectors(DeviceHandle *dh, unsigned char *buf, gint64 s, int nsectors)
|
||||
if(Closure->readRaw && dh->rawBuffer)
|
||||
recommended_attempts = dh->rawBuffer->recommendedAttempts;
|
||||
|
||||
- if(status) /* current try was unsucessful */
|
||||
+ if(status) /* current try was unsuccessful */
|
||||
{ int last_key, last_asc, last_ascq;
|
||||
|
||||
if(Closure->stopActions) /* user break */
|
||||
diff --git a/smart-lec.c b/smart-lec.c
|
||||
index 944b70d..534dd65 100644
|
||||
--- a/smart-lec.c
|
||||
+++ b/smart-lec.c
|
||||
@@ -1609,7 +1609,7 @@ static int smart_lec_iteration(sh_context *shc, char *message)
|
||||
shc->bestBonus = 0;
|
||||
shc->bestMalus = 100000;
|
||||
memcpy(shc->bestFrame, rb->recovered, rb->sampleSize);
|
||||
- sprintf(shc->msg, "smart_lec: no further improvment");
|
||||
+ sprintf(shc->msg, "smart_lec: no further improvement");
|
||||
|
||||
update_pq_state(shc);
|
||||
print_pq_state(shc);
|
||||
46
debian/patches/30-hurd-kfreebsd-ftbfs.patch
vendored
Normal file
46
debian/patches/30-hurd-kfreebsd-ftbfs.patch
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
From: Carlos Maddela <e7appew@gmail.com>
|
||||
Date: Sun, 6 Aug 2017 02:40:33 +1000
|
||||
Subject: Fix FTBFS on Hurd and kFreeBSD.
|
||||
|
||||
Description: Fix FTBFS on Hurd and kFreeBSD.
|
||||
Make sure MMAP_FLAGS gets defined.
|
||||
Author: Carlos Maddela <e7appew@gmail.com>
|
||||
Last-Update: 2017-08-06
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
---
|
||||
rs03-create.c | 19 +++++++++++--------
|
||||
1 file changed, 11 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/rs03-create.c b/rs03-create.c
|
||||
index 9c7265d..678644c 100644
|
||||
--- a/rs03-create.c
|
||||
+++ b/rs03-create.c
|
||||
@@ -39,16 +39,19 @@
|
||||
#ifdef HAVE_MMAP
|
||||
#include <sys/mman.h>
|
||||
|
||||
-#ifdef SYS_LINUX
|
||||
- #define MMAP_FLAGS (MAP_SHARED | MAP_POPULATE | MAP_NORESERVE)
|
||||
-#endif
|
||||
+#if defined(SYS_LINUX)
|
||||
|
||||
-#ifdef SYS_FREEBSD
|
||||
- #define MMAP_FLAGS (MAP_SHARED | MAP_PREFAULT_READ)
|
||||
-#endif
|
||||
+ #define MMAP_FLAGS (MAP_SHARED | MAP_POPULATE | MAP_NORESERVE)
|
||||
+
|
||||
+#elif defined(SYS_FREEBSD)
|
||||
+
|
||||
+ #define MMAP_FLAGS (MAP_SHARED | MAP_PREFAULT_READ)
|
||||
+
|
||||
+#else
|
||||
+
|
||||
+ /* SYS_NETBSD and others. */
|
||||
+ #define MMAP_FLAGS (MAP_SHARED)
|
||||
|
||||
-#ifdef SYS_NETBSD
|
||||
- #define MMAP_FLAGS (MAP_SHARED)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
308
debian/patches/31-improve-hurd-and-kfreebsd-support.patch
vendored
Normal file
308
debian/patches/31-improve-hurd-and-kfreebsd-support.patch
vendored
Normal file
@@ -0,0 +1,308 @@
|
||||
From: Carlos Maddela <e7appew@gmail.com>
|
||||
Date: Sun, 6 Aug 2017 10:37:18 +1000
|
||||
Subject: Add better support for HURD and kFreeBSD systems.
|
||||
|
||||
Description: Add better support for HURD and kFreeBSD systems.
|
||||
Hurd still compiles without SCSI layer, however.
|
||||
Author: Carlos Maddela <e7appew@gmail.com>
|
||||
Last-Update: 2017-08-06
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
---
|
||||
cacheprobe.c | 16 +++++++++-------
|
||||
closure.c | 6 ++++--
|
||||
scripts/bash-based-configure | 18 ++++++++++++++++++
|
||||
scsi-freebsd.c | 4 ++--
|
||||
scsi-layer.c | 10 ++++++----
|
||||
scsi-layer.h | 17 +++++++++--------
|
||||
scsi-unknown.c | 4 ++--
|
||||
show-html.c | 15 ++++++++++-----
|
||||
8 files changed, 60 insertions(+), 30 deletions(-)
|
||||
|
||||
diff --git a/cacheprobe.c b/cacheprobe.c
|
||||
index 545c690..9f754dd 100644
|
||||
--- a/cacheprobe.c
|
||||
+++ b/cacheprobe.c
|
||||
@@ -22,7 +22,8 @@
|
||||
|
||||
#include "dvdisaster.h"
|
||||
|
||||
-#ifdef SYS_LINUX
|
||||
+#if defined(SYS_LINUX)
|
||||
+
|
||||
int ProbeCacheLineSize()
|
||||
{ int cl_size = 0;
|
||||
|
||||
@@ -36,9 +37,9 @@ int ProbeCacheLineSize()
|
||||
|
||||
return cl_size;
|
||||
}
|
||||
-#endif
|
||||
|
||||
-#ifdef SYS_FREEBSD
|
||||
+#elif defined(SYS_FREEBSD) || defined(SYS_KFREEBSD)
|
||||
+
|
||||
#include <sys/param.h>
|
||||
|
||||
int ProbeCacheLineSize()
|
||||
@@ -52,9 +53,9 @@ int ProbeCacheLineSize()
|
||||
|
||||
return cl_size;
|
||||
}
|
||||
-#endif
|
||||
|
||||
-#ifdef SYS_NETBSD
|
||||
+#elif defined(SYS_NETBSD)
|
||||
+
|
||||
#include <sys/param.h>
|
||||
|
||||
int ProbeCacheLineSize()
|
||||
@@ -68,13 +69,14 @@ int ProbeCacheLineSize()
|
||||
|
||||
return cl_size;
|
||||
}
|
||||
-#endif
|
||||
|
||||
-#ifdef SYS_UNKNOWN
|
||||
+#else /* SYS_UNKNOWN and others. */
|
||||
+
|
||||
int ProbeCacheLineSize()
|
||||
{
|
||||
return 64;
|
||||
}
|
||||
+
|
||||
#endif
|
||||
|
||||
|
||||
diff --git a/closure.c b/closure.c
|
||||
index 24c1e8c..26ee13b 100644
|
||||
--- a/closure.c
|
||||
+++ b/closure.c
|
||||
@@ -50,7 +50,8 @@ static void get_base_dirs()
|
||||
/*** Otherwise try the installation directory.
|
||||
On Unices this is a hardcoded directory. */
|
||||
|
||||
-#if defined(SYS_LINUX) || defined(SYS_FREEBSD) || defined(SYS_NETBSD) || defined(SYS_UNKNOWN)
|
||||
+#if defined(SYS_LINUX) || defined(SYS_FREEBSD) || defined(SYS_KFREEBSD) || \
|
||||
+ defined(SYS_NETBSD) || defined(SYS_HURD) || defined(SYS_UNKNOWN)
|
||||
if(DirStat(BINDIR))
|
||||
Closure->binDir = g_strdup(BINDIR);
|
||||
|
||||
@@ -432,7 +433,8 @@ void InitClosure()
|
||||
|
||||
/* Generate a more comprehensive version string */
|
||||
|
||||
-#if defined(SYS_LINUX) || defined(SYS_FREEBSD) || defined(SYS_NETBSD)
|
||||
+#if defined(SYS_LINUX) || defined(SYS_FREEBSD) || defined(SYS_KFREEBSD) || \
|
||||
+ defined(SYS_NETBSD) || defined(SYS_HURD)
|
||||
#ifdef HAVE_64BIT
|
||||
#define BITNESS_STRING " 64bit"
|
||||
#else
|
||||
diff --git a/scripts/bash-based-configure b/scripts/bash-based-configure
|
||||
index f1a8bd1..487a50b 100644
|
||||
--- a/scripts/bash-based-configure
|
||||
+++ b/scripts/bash-based-configure
|
||||
@@ -136,6 +136,15 @@ case "$cfg_uname" in
|
||||
}
|
||||
;;
|
||||
|
||||
+ GNU/kFreeBSD*) cfg_system=kfreebsd
|
||||
+ CFG_SYS_OPTIONS="-DSYS_KFREEBSD"
|
||||
+ CFG_SYS_NAME="-DSYS_NAME=\\\"GNU/kFreeBSD\\\""
|
||||
+ CFG_EXE_SUFFIX=""
|
||||
+ function add_linker_flags()
|
||||
+ { lflags_return="-L$1 -Wl,-rpath,$1 $2"
|
||||
+ }
|
||||
+ ;;
|
||||
+
|
||||
NetBSD*) cfg_system=netbsd
|
||||
CFG_SYS_OPTIONS="-DSYS_NETBSD"
|
||||
CFG_SYS_NAME="-DSYS_NAME=\\\"NetBSD\\\""
|
||||
@@ -146,6 +155,15 @@ case "$cfg_uname" in
|
||||
}
|
||||
;;
|
||||
|
||||
+ GNU*) cfg_system=hurd
|
||||
+ CFG_SYS_OPTIONS="-DSYS_HURD"
|
||||
+ CFG_SYS_NAME="-DSYS_NAME=\\\"GNU/Hurd\\\""
|
||||
+ CFG_EXE_SUFFIX=""
|
||||
+ function add_linker_flags()
|
||||
+ { lflags_return="-L$1 -Wl,-rpath,$1 $2"
|
||||
+ }
|
||||
+ ;;
|
||||
+
|
||||
*) cfg_system=unknown-system
|
||||
CFG_SYS_OPTIONS="-DSYS_UNKNOWN"
|
||||
CFG_SYS_NAME="-DSYS_NAME=\\\"Unknown\\\""
|
||||
diff --git a/scsi-freebsd.c b/scsi-freebsd.c
|
||||
index 0e3397a..bbfb913 100644
|
||||
--- a/scsi-freebsd.c
|
||||
+++ b/scsi-freebsd.c
|
||||
@@ -25,7 +25,7 @@
|
||||
#include "scsi-layer.h"
|
||||
#include "udf.h"
|
||||
|
||||
-#ifdef SYS_FREEBSD
|
||||
+#if defined(SYS_FREEBSD) || defined(SYS_KFREEBSD)
|
||||
|
||||
/* SCSI wrappers for FreeBSD are still work in progress. */
|
||||
|
||||
@@ -241,4 +241,4 @@ int SendPacket(DeviceHandle *dh, unsigned char *cmd, int cdb_size, unsigned char
|
||||
return -1;
|
||||
}
|
||||
|
||||
-#endif /* SYS_FREEBSD */
|
||||
+#endif /* defined(SYS_FREEBSD) || defined(SYS_KFREEBSD) */
|
||||
diff --git a/scsi-layer.c b/scsi-layer.c
|
||||
index 22e825d..eaecc5c 100644
|
||||
--- a/scsi-layer.c
|
||||
+++ b/scsi-layer.c
|
||||
@@ -2005,12 +2005,13 @@ static gint64 query_size(Image *image)
|
||||
*/
|
||||
|
||||
gint64 CurrentMediumSize(int get_blank_size)
|
||||
-{ Image *image;
|
||||
+{
|
||||
+#if defined(SYS_UNKNOWN) || defined(SYS_HURD)
|
||||
+ return 0;
|
||||
+#else
|
||||
+ Image *image;
|
||||
gint64 size;
|
||||
|
||||
-#ifdef SYS_UNKNOWN
|
||||
- return 0;
|
||||
-#endif
|
||||
|
||||
image = OpenImageFromDevice(Closure->device);
|
||||
if(!image) return 0;
|
||||
@@ -2051,6 +2052,7 @@ gint64 CurrentMediumSize(int get_blank_size)
|
||||
CloseImage(image);
|
||||
|
||||
return size;
|
||||
+#endif
|
||||
}
|
||||
|
||||
/***
|
||||
diff --git a/scsi-layer.h b/scsi-layer.h
|
||||
index cb5c559..6169508 100644
|
||||
--- a/scsi-layer.h
|
||||
+++ b/scsi-layer.h
|
||||
@@ -28,7 +28,7 @@
|
||||
#include <linux/cdrom.h>
|
||||
#endif
|
||||
|
||||
-#ifdef SYS_FREEBSD
|
||||
+#if defined(SYS_FREEBSD) || defined(SYS_KFREEBSD)
|
||||
#include <camlib.h>
|
||||
#endif
|
||||
|
||||
@@ -49,19 +49,21 @@
|
||||
* Linux already has one
|
||||
*/
|
||||
|
||||
-#ifdef SYS_LINUX
|
||||
+#if defined(SYS_LINUX)
|
||||
+
|
||||
#define MAX_CDB_SIZE CDROM_PACKET_SIZE
|
||||
|
||||
/* Now globally defined for all OSes here */
|
||||
//typedef struct request_sense Sense;
|
||||
-#endif
|
||||
|
||||
-#ifdef SYS_FREEBSD
|
||||
+#elif defined(SYS_FREEBSD) || defined(SYS_KFREEBSD)
|
||||
+
|
||||
#define MAX_CDB_SIZE SCSI_MAX_CDBLEN
|
||||
-#endif
|
||||
|
||||
-#if defined(SYS_UNKNOWN) || defined(SYS_NETBSD)
|
||||
+#else /* SYS_UNKNOWN and others. */
|
||||
+
|
||||
#define MAX_CDB_SIZE 16 /* longest possible SCSI command */
|
||||
+
|
||||
#endif
|
||||
|
||||
/*
|
||||
@@ -101,8 +103,7 @@ typedef struct _DeviceHandle
|
||||
*/
|
||||
#if defined(SYS_LINUX) || defined(SYS_NETBSD)
|
||||
int fd; /* device file descriptor */
|
||||
-#endif
|
||||
-#ifdef SYS_FREEBSD
|
||||
+#elif defined(SYS_FREEBSD) || defined(SYS_KFREEBSD)
|
||||
struct cam_device *camdev; /* camlib device handle */
|
||||
union ccb *ccb;
|
||||
#endif
|
||||
diff --git a/scsi-unknown.c b/scsi-unknown.c
|
||||
index f5f1072..7b2ccdb 100644
|
||||
--- a/scsi-unknown.c
|
||||
+++ b/scsi-unknown.c
|
||||
@@ -25,7 +25,7 @@
|
||||
#include "scsi-layer.h"
|
||||
#include "udf.h"
|
||||
|
||||
-#ifdef SYS_UNKNOWN
|
||||
+#if defined(SYS_UNKNOWN) || defined(SYS_HURD)
|
||||
|
||||
/* Dummy routines so that we can compile on unknown architectures
|
||||
for which we don't have SCSI support yet. */
|
||||
@@ -51,4 +51,4 @@ int SendPacket(DeviceHandle *dh, unsigned char *cmd, int cdb_size, unsigned char
|
||||
return -1;
|
||||
}
|
||||
|
||||
-#endif /* SYS_UNKNOWN */
|
||||
+#endif /* defined(SYS_UNKNOWN) || defined(SYS_HURD) */
|
||||
diff --git a/show-html.c b/show-html.c
|
||||
index 608e8ec..20715f4 100644
|
||||
--- a/show-html.c
|
||||
+++ b/show-html.c
|
||||
@@ -21,7 +21,8 @@
|
||||
|
||||
#include "dvdisaster.h"
|
||||
|
||||
-#if defined(SYS_LINUX) || defined(SYS_FREEBSD) || defined(SYS_NETBSD)
|
||||
+#if defined(SYS_LINUX) || defined(SYS_FREEBSD) || defined(SYS_KFREEBSD) || \
|
||||
+ defined(SYS_NETBSD) || defined(SYS_HURD)
|
||||
#include <sys/wait.h>
|
||||
#endif
|
||||
|
||||
@@ -34,7 +35,8 @@
|
||||
*** Ask user to specify his browser
|
||||
***/
|
||||
|
||||
-#if defined(SYS_LINUX) || defined(SYS_FREEBSD) || defined(SYS_NETBSD)
|
||||
+#if defined(SYS_LINUX) || defined(SYS_FREEBSD) || defined(SYS_KFREEBSD) || \
|
||||
+ defined(SYS_NETBSD) || defined(SYS_HURD)
|
||||
|
||||
#define SEARCH_BUTTON 1
|
||||
|
||||
@@ -173,7 +175,8 @@ static void msg_destroy_cb(GtkWidget *widget, gpointer data)
|
||||
bi->msg = NULL;
|
||||
}
|
||||
|
||||
-#if defined(SYS_LINUX) || defined(SYS_FREEBSD) || defined(SYS_NETBSD)
|
||||
+#if defined(SYS_LINUX) || defined(SYS_FREEBSD) || defined(SYS_KFREEBSD) || \
|
||||
+ defined(SYS_NETBSD) || defined(SYS_HURD)
|
||||
|
||||
/*
|
||||
* The following list of browsers and html wrappers
|
||||
@@ -273,7 +276,8 @@ static gboolean browser_timeout_func(gpointer data)
|
||||
* Invoke the browser
|
||||
*/
|
||||
|
||||
-#if defined(SYS_LINUX) || defined(SYS_FREEBSD) || defined(SYS_NETBSD)
|
||||
+#if defined(SYS_LINUX) || defined(SYS_FREEBSD) || defined(SYS_KFREEBSD) || \
|
||||
+ defined(SYS_NETBSD) || defined(SYS_HURD)
|
||||
static void try_browser(browser_info *bi)
|
||||
{ pid_t pid;
|
||||
|
||||
@@ -393,7 +397,8 @@ void ShowHTML(char *target)
|
||||
g_timeout_add(1000, browser_timeout_func, (gpointer)bi);
|
||||
#endif
|
||||
|
||||
-#if defined(SYS_LINUX) || defined(SYS_FREEBSD) || defined(SYS_NETBSD)
|
||||
+#if defined(SYS_LINUX) || defined(SYS_FREEBSD) || defined(SYS_KFREEBSD) || \
|
||||
+ defined(SYS_NETBSD) || defined(SYS_HURD)
|
||||
/* Try the first browser */
|
||||
|
||||
browser_index = 0;
|
||||
192
debian/patches/32-display-compilation-commands.patch
vendored
Normal file
192
debian/patches/32-display-compilation-commands.patch
vendored
Normal file
@@ -0,0 +1,192 @@
|
||||
From: Carlos Maddela <e7appew@gmail.com>
|
||||
Date: Wed, 9 Aug 2017 20:49:31 +1000
|
||||
Subject: Do not suppress the display of compilation commands
|
||||
|
||||
Description: Do not suppress the display of compilation commands,
|
||||
so that build logs may be analysed by blhc.
|
||||
Author: Carlos Maddela <e7appew@gmail.com>
|
||||
Forwarded: not-needed
|
||||
Last-Update: 2017-08-9
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
---
|
||||
GNUmakefile.template | 93 +++++++++++++++++++++++++---------------------------
|
||||
1 file changed, 45 insertions(+), 48 deletions(-)
|
||||
|
||||
diff --git a/GNUmakefile.template b/GNUmakefile.template
|
||||
index d80932d..ac1f597 100644
|
||||
--- a/GNUmakefile.template
|
||||
+++ b/GNUmakefile.template
|
||||
@@ -71,41 +71,41 @@ OFILES = $(CFG_OFILES)
|
||||
|
||||
${BUILDTMP}/%.o : %.c
|
||||
@echo "Compiling:" $?
|
||||
- @$(CC) $(COPTS) -c $? -o $@
|
||||
+ $(CC) $(COPTS) -c $? -o $@
|
||||
|
||||
all: time-stamp dvdisaster
|
||||
|
||||
# Building the dvdisaster binary
|
||||
|
||||
time-stamp:
|
||||
- @$(SRCDIR)/scripts/time-stamper.bash $(SRCDIR)/build.h
|
||||
+ $(SRCDIR)/scripts/time-stamper.bash $(SRCDIR)/build.h
|
||||
|
||||
dvdisaster: inlined-icons.h $(OFILES)
|
||||
@echo "Linking : dvdisaster"
|
||||
- @$(CC) $(LOPTS) $(OFILES) $(LIBS) -o dvdisaster
|
||||
- @if test -e locale/de/LC_MESSAGES/dvdisaster.mo \
|
||||
+ $(CC) $(LOPTS) $(OFILES) $(LIBS) -o dvdisaster
|
||||
+ if test -e locale/de/LC_MESSAGES/dvdisaster.mo \
|
||||
|| echo $(WITH_OPTIONS) | grep "NLS_NO" >/dev/null; \
|
||||
then echo "not touching locale"; \
|
||||
else $(MAKE) --no-print-directory -C locale; \
|
||||
fi
|
||||
|
||||
inlined-icons.h: icons/read.png icons/create.png icons/scan.png icons/fix.png icons/verify.png
|
||||
- @gdk-pixbuf-csource --raw --name=dvdisaster_read icons/read.png >inlined-icons.h
|
||||
- @gdk-pixbuf-csource --raw --name=dvdisaster_create icons/create.png >>inlined-icons.h
|
||||
- @gdk-pixbuf-csource --raw --name=dvdisaster_scan icons/scan.png >>inlined-icons.h
|
||||
- @gdk-pixbuf-csource --raw --name=dvdisaster_fix icons/fix.png >>inlined-icons.h
|
||||
- @gdk-pixbuf-csource --raw --name=dvdisaster_verify icons/verify.png >>inlined-icons.h
|
||||
- @gdk-pixbuf-csource --raw --name=dvdisaster_open_ecc icons/open-ecc.png >>inlined-icons.h
|
||||
- @gdk-pixbuf-csource --raw --name=dvdisaster_open_img icons/open-img.png >>inlined-icons.h
|
||||
- @gdk-pixbuf-csource --raw --name=dvdisaster_cd icons/cd.png >>inlined-icons.h
|
||||
- @gdk-pixbuf-csource --raw --name=dvdisaster_gtk_help icons/gtk-help.png >>inlined-icons.h
|
||||
- @gdk-pixbuf-csource --raw --name=dvdisaster_gtk_index icons/gtk-index.png >>inlined-icons.h
|
||||
- @gdk-pixbuf-csource --raw --name=dvdisaster_gtk_preferences icons/gtk-preferences.png >>inlined-icons.h
|
||||
- @gdk-pixbuf-csource --raw --name=dvdisaster_gtk_quit icons/gtk-quit.png >>inlined-icons.h
|
||||
- @gdk-pixbuf-csource --raw --name=dvdisaster_gtk_stop icons/gtk-stop.png >>inlined-icons.h
|
||||
+ gdk-pixbuf-csource --raw --name=dvdisaster_read icons/read.png >inlined-icons.h
|
||||
+ gdk-pixbuf-csource --raw --name=dvdisaster_create icons/create.png >>inlined-icons.h
|
||||
+ gdk-pixbuf-csource --raw --name=dvdisaster_scan icons/scan.png >>inlined-icons.h
|
||||
+ gdk-pixbuf-csource --raw --name=dvdisaster_fix icons/fix.png >>inlined-icons.h
|
||||
+ gdk-pixbuf-csource --raw --name=dvdisaster_verify icons/verify.png >>inlined-icons.h
|
||||
+ gdk-pixbuf-csource --raw --name=dvdisaster_open_ecc icons/open-ecc.png >>inlined-icons.h
|
||||
+ gdk-pixbuf-csource --raw --name=dvdisaster_open_img icons/open-img.png >>inlined-icons.h
|
||||
+ gdk-pixbuf-csource --raw --name=dvdisaster_cd icons/cd.png >>inlined-icons.h
|
||||
+ gdk-pixbuf-csource --raw --name=dvdisaster_gtk_help icons/gtk-help.png >>inlined-icons.h
|
||||
+ gdk-pixbuf-csource --raw --name=dvdisaster_gtk_index icons/gtk-index.png >>inlined-icons.h
|
||||
+ gdk-pixbuf-csource --raw --name=dvdisaster_gtk_preferences icons/gtk-preferences.png >>inlined-icons.h
|
||||
+ gdk-pixbuf-csource --raw --name=dvdisaster_gtk_quit icons/gtk-quit.png >>inlined-icons.h
|
||||
+ gdk-pixbuf-csource --raw --name=dvdisaster_gtk_stop icons/gtk-stop.png >>inlined-icons.h
|
||||
|
||||
$(BUILDTMP)/help-dialogs.o: help-dialogs.c simple-md5sum
|
||||
- @if test -e fingerprints.md5; \
|
||||
+ if test -e fingerprints.md5; \
|
||||
then if test -e help-dialogs.h; then rm help-dialogs.h; fi; \
|
||||
mv inlined-icons.h inlined-icons.saved; \
|
||||
mv build.h build.saved; \
|
||||
@@ -121,35 +121,35 @@ $(BUILDTMP)/help-dialogs.o: help-dialogs.c simple-md5sum
|
||||
else echo "#define MODIFIED_SOURCE 1" >> help-dialogs.h; \
|
||||
fi
|
||||
@echo "Compiling:" help-dialogs.c
|
||||
- @$(CC) $(COPTS) -c help-dialogs.c -o $(BUILDTMP)/help-dialogs.o
|
||||
+ $(CC) $(COPTS) -c help-dialogs.c -o $(BUILDTMP)/help-dialogs.o
|
||||
|
||||
$(BUILDTMP)/rs-encoder-sse2.o: rs-encoder-sse2.c
|
||||
@echo "Compiling:" rs-encoder-sse2.c
|
||||
- @$(CC) $(SSE2_OPTIONS) $(COPTS) -c rs-encoder-sse2.c -o $(BUILDTMP)/rs-encoder-sse2.o
|
||||
+ $(CC) $(SSE2_OPTIONS) $(COPTS) -c rs-encoder-sse2.c -o $(BUILDTMP)/rs-encoder-sse2.o
|
||||
|
||||
$(BUILDTMP)/rs-encoder-altivec.o: rs-encoder-altivec.c
|
||||
@echo "Compiling:" rs-encoder-altivec.c
|
||||
- @$(CC) $(ALTIVEC_OPTIONS) $(COPTS) -c rs-encoder-altivec.c -o $(BUILDTMP)/rs-encoder-altivec.o
|
||||
+ $(CC) $(ALTIVEC_OPTIONS) $(COPTS) -c rs-encoder-altivec.c -o $(BUILDTMP)/rs-encoder-altivec.o
|
||||
|
||||
locale:
|
||||
- @$(MAKE) --no-print-directory -C locale
|
||||
+ $(MAKE) --no-print-directory -C locale
|
||||
|
||||
untranslated:
|
||||
- @$(MAKE) --no-print-directory -C locale check-untranslated
|
||||
+ $(MAKE) --no-print-directory -C locale check-untranslated
|
||||
|
||||
simple-md5sum: md5.c
|
||||
- @$(CC) $(COPTS) $(MUDFLAP_CFLAGS) -DSIMPLE_MD5SUM md5.c $(MUDFLAP_LFLAGS) $(MUDFLAP_LIBS) -o simple-md5sum
|
||||
+ $(CC) $(COPTS) $(MUDFLAP_CFLAGS) -DSIMPLE_MD5SUM md5.c $(MUDFLAP_LFLAGS) $(MUDFLAP_LIBS) -o simple-md5sum
|
||||
|
||||
version.tex:
|
||||
@echo "\\newcommand{\\projectversion}{$(VERSION)}" >$(SRCDIR)/documentation/config/version.tex
|
||||
|
||||
manual: version.tex
|
||||
@echo "Producing user manual... "
|
||||
- @$(MAKE) --no-print-directory -C documentation/user-manual manual.pdf
|
||||
+ $(MAKE) --no-print-directory -C documentation/user-manual manual.pdf
|
||||
|
||||
manualclean:
|
||||
@echo "Removing temporary user manual files... "
|
||||
- @$(MAKE) --no-print-directory -C documentation/user-manual clean
|
||||
+ $(MAKE) --no-print-directory -C documentation/user-manual clean
|
||||
|
||||
|
||||
# Some usage info
|
||||
@@ -259,13 +259,13 @@ uninstall:
|
||||
|
||||
archclean: distclean
|
||||
@echo "Removing rebuildable documentation parts"
|
||||
- @$(MAKE) --no-print-directory -C $(SRCDIR)/documentation/codec-specs archclean
|
||||
- @$(MAKE) --no-print-directory -C $(SRCDIR)/documentation/user-manual archclean
|
||||
+ $(MAKE) --no-print-directory -C $(SRCDIR)/documentation/codec-specs archclean
|
||||
+ $(MAKE) --no-print-directory -C $(SRCDIR)/documentation/user-manual archclean
|
||||
|
||||
distclean: clean
|
||||
@echo "Removing configuration files"
|
||||
- @rm -f configure.log Makefile.config GNUmakefile locale/Makefile
|
||||
- @for i in locale/?? locale/??_??; do rm -rf $$i; done
|
||||
+ rm -f configure.log Makefile.config GNUmakefile locale/Makefile
|
||||
+ for i in locale/?? locale/??_??; do rm -rf $$i; done
|
||||
@echo "all:" >>GNUmakefile
|
||||
@echo -e "\t@echo" >>GNUmakefile
|
||||
@echo -e "\t@echo \"Please create a Makefile by entering \\\"bash configure\\\" first\"" >>GNUmakefile
|
||||
@@ -277,14 +277,14 @@ distclean: clean
|
||||
|
||||
clean:
|
||||
@echo "Removing rebuildable files"
|
||||
- @rm -rf *.o $(BUILDTMP)/*.o medium.* abbild.* dvdisaster .dvdisaster core core.* *.core
|
||||
- @rm -f inlined-icons.h help-dialogs.h
|
||||
- @find . -name \*\~ -print | xargs rm -f;
|
||||
- @find . -name \*.mo -print | xargs rm -f;
|
||||
- @find . -name \#\*\# -print | xargs rm -f;
|
||||
- @rm -f documentation/config/version.tex
|
||||
- @if test -e $(PKGNAME); then rm -rf $(PKGNAME); fi
|
||||
- @if test -e ~/.dvdisaster-original-author; then \
|
||||
+ rm -rf *.o $(BUILDTMP)/*.o medium.* abbild.* dvdisaster .dvdisaster core core.* *.core
|
||||
+ rm -f inlined-icons.h help-dialogs.h
|
||||
+ find . -name \*\~ -print | xargs rm -f;
|
||||
+ find . -name \*.mo -print | xargs rm -f;
|
||||
+ find . -name \#\*\# -print | xargs rm -f;
|
||||
+ rm -f documentation/config/version.tex
|
||||
+ if test -e $(PKGNAME); then rm -rf $(PKGNAME); fi
|
||||
+ if test -e ~/.dvdisaster-original-author; then \
|
||||
mv build.h build.saved ;\
|
||||
if ! test -x simple-md5sum || ! ./simple-md5sum >/dev/null 2>&1; then \
|
||||
rm -f simple-md5sum; \
|
||||
@@ -294,20 +294,17 @@ clean:
|
||||
./simple-md5sum -b *.h *.c >fingerprints.md5 ;\
|
||||
mv build.saved build.h; \
|
||||
fi
|
||||
- @rm -f simple-md5sum
|
||||
- @$(MAKE) --no-print-directory -C $(SRCDIR)/documentation/codec-specs clean;
|
||||
- @$(MAKE) --no-print-directory -C $(SRCDIR)/documentation/user-manual clean;
|
||||
+ rm -f simple-md5sum
|
||||
+ $(MAKE) --no-print-directory -C $(SRCDIR)/documentation/codec-specs clean;
|
||||
+ $(MAKE) --no-print-directory -C $(SRCDIR)/documentation/user-manual clean;
|
||||
|
||||
BUILD=`grep BUILD $(SRCDIR)/build.h | cut -d ' ' -f 3`
|
||||
arch: archclean time-stamp
|
||||
- @cd .. ; tar -c -z -f $(TAR_PREFIX)/$(PKGNAME)-$(BUILD).tgz $(PKGNAME)
|
||||
+ cd .. ; tar -c -z -f $(TAR_PREFIX)/$(PKGNAME)-$(BUILD).tgz $(PKGNAME)
|
||||
|
||||
INSTALL: documentation/install.template
|
||||
- @sed "s/@@PKGNAME/$(PKGNAME)/" <documentation/install.template >INSTALL
|
||||
+ sed "s/@@PKGNAME/$(PKGNAME)/" <documentation/install.template >INSTALL
|
||||
|
||||
srcdist: INSTALL distclean manual manualclean
|
||||
- @cd .. ; tar -c -j -X $(PKGNAME)/NODIST -f $(TAR_PREFIX)/$(PKGNAME).tar.bz2 $(PKGNAME)
|
||||
- @cd .. ; gpg --homedir .gnupg --default-key 758BCC23 --detach-sign --output $(TAR_PREFIX)/$(PKGNAME).tar.bz2.gpg --armor $(TAR_PREFIX)/$(PKGNAME).tar.bz2
|
||||
-
|
||||
-
|
||||
-
|
||||
+ cd .. ; tar -c -j -X $(PKGNAME)/NODIST -f $(TAR_PREFIX)/$(PKGNAME).tar.bz2 $(PKGNAME)
|
||||
+ cd .. ; gpg --homedir .gnupg --default-key 758BCC23 --detach-sign --output $(TAR_PREFIX)/$(PKGNAME).tar.bz2.gpg --armor $(TAR_PREFIX)/$(PKGNAME).tar.bz2
|
||||
28
debian/patches/33-honour-LDFLAGS.patch
vendored
Normal file
28
debian/patches/33-honour-LDFLAGS.patch
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
From: Carlos Maddela <e7appew@gmail.com>
|
||||
Date: Thu, 21 Dec 2017 02:44:53 +1100
|
||||
Subject: Honour LDFLAGS set by dpkg-buildflags in building all binaries.
|
||||
|
||||
Description: Honour LDFLAGS set by dpkg-buildflags in building all binaries.
|
||||
Unpackaged simple-md5sum utility must do so as well, to keep blhc happy.
|
||||
Author: Carlos Maddela <e7appew@gmail.com>
|
||||
Forwarded: no
|
||||
Last-Update: 2017-12-21
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
---
|
||||
GNUmakefile.template | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/GNUmakefile.template b/GNUmakefile.template
|
||||
index ac1f597..4509c48 100644
|
||||
--- a/GNUmakefile.template
|
||||
+++ b/GNUmakefile.template
|
||||
@@ -138,7 +138,7 @@ untranslated:
|
||||
$(MAKE) --no-print-directory -C locale check-untranslated
|
||||
|
||||
simple-md5sum: md5.c
|
||||
- $(CC) $(COPTS) $(MUDFLAP_CFLAGS) -DSIMPLE_MD5SUM md5.c $(MUDFLAP_LFLAGS) $(MUDFLAP_LIBS) -o simple-md5sum
|
||||
+ $(CC) $(COPTS) $(MUDFLAP_CFLAGS) -DSIMPLE_MD5SUM md5.c $(LDFLAGS) $(MUDFLAP_LFLAGS) $(MUDFLAP_LIBS) -o simple-md5sum
|
||||
|
||||
version.tex:
|
||||
@echo "\\newcommand{\\projectversion}{$(VERSION)}" >$(SRCDIR)/documentation/config/version.tex
|
||||
27
debian/patches/series
vendored
Normal file
27
debian/patches/series
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
02-encryption.patch
|
||||
03-dvdrom.patch
|
||||
05-help-dialog.patch
|
||||
08-fix-gnu-make-detection.patch
|
||||
10-use-non-size-specific-icon-and-add-keywords-to-desktop-file.patch
|
||||
11-no-cruft.patch
|
||||
12-fix-spelling-of-up-to.patch
|
||||
13-fix-missing-language-field-in-po-files.patch
|
||||
14-make-builds-reproducible.patch
|
||||
15-show-new-pkg-tracker.patch
|
||||
16-remove-auto-build-of-doco-from-install-rule.patch
|
||||
17-fix-all-but-deprecated-api-warnings.patch
|
||||
18-update-copyright-in-about-dialog.patch
|
||||
19-show-text-files-with-abs-path.patch
|
||||
20-display-changelog-credits-and-todo.patch
|
||||
22-fix-hurd-i386-ftbfs.patch
|
||||
23-add-bdrom-support.patch
|
||||
24-show-gpl3-license.patch
|
||||
25-fix-man-pages.patch
|
||||
26-fix-display-of-manual.pdf.patch
|
||||
27-allow-opening-in-browser-again.patch
|
||||
28-pdftex-reproducibility.patch
|
||||
29-fix-more-typos.patch
|
||||
30-hurd-kfreebsd-ftbfs.patch
|
||||
31-improve-hurd-and-kfreebsd-support.patch
|
||||
32-display-compilation-commands.patch
|
||||
33-honour-LDFLAGS.patch
|
||||
65
debian/rules
vendored
Executable file
65
debian/rules
vendored
Executable file
@@ -0,0 +1,65 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
||||
DPKG_EXPORT_BUILDFLAGS = 1
|
||||
include /usr/share/dpkg/buildflags.mk
|
||||
export DEB_CFLAGS_MAINT_APPEND = $(CPPFLAGS) -Wall -Wno-deprecated-declarations -pedantic
|
||||
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
|
||||
|
||||
include /usr/share/dpkg/pkg-info.mk
|
||||
export DEB_VERSION
|
||||
export FORCE_SOURCE_DATE = 1
|
||||
|
||||
MUTABLE_FILES := build.h $(wildcard locale/*.po) \
|
||||
documentation/config/version.tex \
|
||||
documentation/user-manual/manual.pdf
|
||||
|
||||
BUILDROOT := $(CURDIR)/debian/tmp
|
||||
ICONS := $(wildcard contrib/dvdisaster*.png)
|
||||
ICON_SIZES := $(patsubst contrib/dvdisaster%.png,%,$(ICONS))
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
||||
override_dh_auto_configure:
|
||||
for f in $(MUTABLE_FILES); do \
|
||||
cp -an $$f $$f.orig; \
|
||||
done
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--mandir=share/man \
|
||||
--localedir=share/locale \
|
||||
--docdir=share/doc \
|
||||
--docsubdir=dvdisaster-doc \
|
||||
--with-embedded-src-path=no
|
||||
|
||||
override_dh_clean:
|
||||
dh_clean -X.orig
|
||||
for f in $(MUTABLE_FILES); do \
|
||||
test ! -f $$f.orig || mv -f $$f.orig $$f; \
|
||||
done
|
||||
|
||||
override_dh_auto_build-arch:
|
||||
make all
|
||||
|
||||
override_dh_auto_build-indep:
|
||||
make manual
|
||||
|
||||
override_dh_auto_install-arch:
|
||||
dh_auto_install -a -- BUILDROOT=$(BUILDROOT)
|
||||
set -e; \
|
||||
for S in $(ICON_SIZES); do \
|
||||
D="$(BUILDROOT)/usr/share/icons/hicolor/$${S}x$${S}/apps"; \
|
||||
install -d "$${D}"; \
|
||||
install -T "contrib/dvdisaster$${S}.png" "$${D}/dvdisaster.png"; \
|
||||
done
|
||||
|
||||
override_dh_auto_install-indep:
|
||||
true
|
||||
|
||||
# Ensure that none of the text files that the application
|
||||
# tries to display directly are compressed, as it doesn't
|
||||
# automatically decompress text files.
|
||||
override_dh_compress-arch:
|
||||
dh_compress -p dvdisaster \
|
||||
-XCHANGELOG -XCREDITS -XREADME.MODIFYING -XTODO
|
||||
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
@@ -0,0 +1 @@
|
||||
3.0 (quilt)
|
||||
1
debian/source/lintian-overrides
vendored
Normal file
1
debian/source/lintian-overrides
vendored
Normal file
@@ -0,0 +1 @@
|
||||
dvdisaster source: debian-watch-uses-insecure-uri http://dvdisaster.net/en/index.html
|
||||
1
debian/source/options
vendored
Normal file
1
debian/source/options
vendored
Normal file
@@ -0,0 +1 @@
|
||||
no-unapply-patches
|
||||
2
debian/tests/control
vendored
Normal file
2
debian/tests/control
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
Tests: unknown-system
|
||||
Depends: dvdisaster
|
||||
6
debian/tests/unknown-system
vendored
Executable file
6
debian/tests/unknown-system
vendored
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
# Make sure we haven't built for an unknown system.
|
||||
! (dvdisaster --version | grep -qiw unknown)
|
||||
6
debian/upstream/metadata
vendored
Normal file
6
debian/upstream/metadata
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
%YAML 1.1
|
||||
---
|
||||
# https://wiki.debian.org/UpstreamMetadata
|
||||
Contact: Carsten Gnörlich <carsten@dvdisaster.org>
|
||||
Name: dvdisaster
|
||||
Homepage: http://dvdisaster.net/
|
||||
73
debian/upstream/signing-key.asc
vendored
Normal file
73
debian/upstream/signing-key.asc
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
|
||||
mQGiBD9GYJcRBACXa6CzZ0WPqUvit1d7LvnSOqLDxYQiiphnzjQc+ssJvScNxv9+
|
||||
ThELKXHxaKfDpL9/C4+5qh1pfrsEEpuQ7m+RfXFqz5UPZITgza5Ko/5WPhhVRxkh
|
||||
8b8ux7DIeFlbgmd5YSFPoYIwGWCAtI5OiUC6qa149gAq7k0vtgb+hbxn2wCg0lTu
|
||||
XGNjX7qMNggbnx3aBVVd9SMD/RYWIr2c66w6Kt/EYLLgYGqgZL9MkmocuUoJVgiI
|
||||
Y2pi3SPbIvX3enk1OIRBCFbweEgXiVw+FWu6aK09eZrJcDv2Uns4ecTvzz1d83RH
|
||||
gssV7ulB6P5mU3u6NT39CHW6fJ5Xi1HPkw380+y3dbaRxh/1htmk5Ao0DmDGRohL
|
||||
vzgIA/9P/bdqh0WG0j4qY+8pcsNn0/ymiJXPZzvyr2cEc56AaHgLAVZHMUyE3Rd9
|
||||
9rSZjVS+x/oGbkzVOd8IySUSRx7f2Sxve1sxoaNlwdqcE0vq16PH1iMBQ6KJAvUA
|
||||
NAM4QZhAI7Lav9yB/tXblGrHHjll+fwFB/9t6G0hO9JoJDaEgbQmQ2Fyc3RlbiBH
|
||||
bsO2cmxpY2ggKHBrZyBzaWduaW5nIGtleSAjMSmIXgQTEQIAHgUCQCvkqQIbAwYL
|
||||
CQgHAwIDFQIDAxYCAQIeAQIXgAAKCRBaWQ7+9fbEbGfsAJ9NrkdlRobMhtWpAyeW
|
||||
wPUe8XHzsACfYbMooS0D/UmRGo7wW7rBnrVqLxy5AQ0EP0ZgmBAEAKJos9WBWgw1
|
||||
sGFFM/1eKEzZqGYMt8qk2r/djPyZYEIzqT47aR7P9gPIXDTplOmBgL43hU8MlE9K
|
||||
Q92s4RVP/x/OvMWF04vSO3vBEmeR3HncpbIk4AP17MZGuqEGtyAe1e5hcGiho1CL
|
||||
/6fSanYydC2iciKbfyyfzL9oISHedad7AAMFA/4wtrdqwTI2p05NAGxRA2r4egYI
|
||||
m7x+ixyYuHGkzZzHMdos5zDg/dzNRnarib98JgAkZR+EVT6K0Ez6ykz57oteCt6f
|
||||
jyGjOwI9bUyOFa+LyGJ+QRaeVozhqLLu/b4wgKCuBcKNt2ebpKFHi9JKiGE9hOJz
|
||||
4nanjCbtihUJaf1DLIhJBBgRAgAJBQI/RmCYAhsMAAoJEFpZDv719sRsbk4An2JZ
|
||||
q/8GBvugzgfu5AxacsuiZzfgAKCwzLAuoUTw/Sz6bYaAUfec362gFw==
|
||||
=Sidz
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
|
||||
mQINBFYS0XkBEACxsIQ1dI0k1TiybBztU6BC3DeQsDGC9TeaGBgYDo+62B8U5uiJ
|
||||
AD9ofBXglj0/DOweAIoLdcVsvFzU0sxk4tUnb84plk09qG+UfU2227DWeKTP3YPv
|
||||
E8A6uWopr6Yoc8WGG9mKl9L1CCiqQmNB4L4Um2/yDPrhtN3TxzpMLBoNUo/f271Q
|
||||
yLxQZMEsUDTZq7JxbEQ9hLbBn69zIptsZHyNJwCerqXqhzQcB11BVqZyLrRC+0ZT
|
||||
eUtO1o10Y/EAEi86ivi1upLsgVi5u2LcP9ICIhTVv6MQ+turhThFOIcEvbw/15Hp
|
||||
4Vlb0yZlBx2j4Hr4tDSrWeQ1lmBNA1qhrLkPOIQv+scXhcyzY5nKIjRDKYS1v8OM
|
||||
uMhfVakK/YS+flN5nyS4Ku0x99sae75+PArMjbLNfP738Zw4ywC4i+i958SEIcky
|
||||
4Bia+kyTCPRZWZ5BJe3+GAPDdI1XntS0D1uXPiwi8u91jg1cAEChwjwe2pr0RG+h
|
||||
8ft5BTezJyAeZ9haU8OyrW5GZNddhyBH4QxdRYvMTdmQIbjxNuTYGpBXl4qgTqKn
|
||||
A7Gxbr24hgdUHKIe//AlDQ41VbBTdyBmgyORGCL+uaSpDerADPXh+bwE2vQsKs13
|
||||
+HcVldLBJmL9tYeRZvpvR/vwFBvfkrgAN8+NdPnSzwvLI0JMrL50DOhapwARAQAB
|
||||
tB9kdmRpc2FzdGVyIChwa2cgc2lnbmluZyBrZXkgIzIpiQI4BBMBAgAiBQJWEtF5
|
||||
AhsDBgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgAAKCRCw28p9ZPdwsivVD/4wiomj
|
||||
IFNUG0lb4sIvXHZR2sv0rVz1eN74B+Ngefp3viZvjvmXji2cbzPhTsoAq4ys5/nD
|
||||
m9fLnm+mG2TfLKTqXBNRDeEDmknK0aXlFVbdUfgeExvU9Tj1giOORTvTiNPdJpkF
|
||||
qKMrjvtB4t2sHuuL/SNwQAWlWfDUuK52yf1SAZasdFPTAvAuzo+lqfYbi5tnjIY/
|
||||
GkR9e3ZjMEaWvxc0N5CJg7ibKpuX476eo+04oKkNvSbyE7Lpcho4AHy6e4UoJ9e+
|
||||
UBL3o84MtChwrlP5HmMPan1hIL5iyswDUrxUfL36GqAEcAM8tIbZ6A6CfQT+FgnI
|
||||
e/E1dm3FWEje8F7uD2xkCGRBYTN8BG5+UMTF9MaQGU3kxBMPt8xvHmCNZHR6QrdL
|
||||
+vysa+02QmSM1jZz4J37yctM69WY1x3JDC+HGHMxCX3G+BrDntLG3yQkox1nBi2l
|
||||
8JiKTdoX7LhRn1xCijIpYdbszMao0lN/XEiOgx2eygG9a3fQDOqR/yi9tTqmKQM4
|
||||
H/il88tkdsaioWXspWEhrS+8MhiUdr8yz3LA9+DawddnW8ZbTee2R4ARMlKhfXBE
|
||||
kvXO2L37Ub2sX97S9qbKkwaYIs2PHn7NFNRB6OP8Oz0scMuritvUZrNfNjaGba3e
|
||||
YNgR36NFvroM3R2a+Yr0zjbY+rqjJSdNSfcsxLkCDQRWEtF5ARAA3KvEpeB7vbCx
|
||||
olIlzxuF/RHJ770GUYSfTVbYIKSl4HbywrDak7uXlDWIJ/u1lunu5+albUEHIadu
|
||||
YolrzaTG6A/sslXHgk8RUxZonzAw2/8C0fQCBAPjs2nlwzt61g75/EPJlESocapd
|
||||
Ri97EleGmGGK5L6N2CyTX8pjj1DkXwiWX95EOcgWRoLXpf/bpThqFCsRjoJfHO7z
|
||||
cA0b5iIR7LQenMG/3AeGFRr1Oh2UzAL60MuPypu8NBv3IUXZ6mXdFTNM4bQc/Rlm
|
||||
VDoB8B8mz4M1IL0fP98LN+b9ZfUUDz1zk9W8H+OCvfdOVj1srDq+uhaSwDC6jDu7
|
||||
wTaFlaJaPBoqCXCk7xGbVxKdZot6oN5ZrAvMMnD0Jc+QX+MKSodMk5LQRFB+WGI8
|
||||
2IwgeS7kqQX2Bt0w7d4xL/3AKTNgQQAGzXRi7dzXR//diKEmESSmaRccVpLZYtR4
|
||||
PdUuY6ZXyayEvZCosV6B7P+lV842lN9Q/KgrZjH09SYKK8pzqRPoAIvPJNT4fP8F
|
||||
eTztnKu9gfS0Zs2MnkKjEK85E8OMSidpISqn0xgHeuldMPL7gGxJKj95BF4jFUs4
|
||||
fQa8nD1jnnUbKdAsGd5ujpEAjAfV+kkGZPUyVrJokhGlCLLt2dG4PrgZ4tNXdEQw
|
||||
VGNskHYjs6YU+CGYjzfopvrUPast+cUAEQEAAYkCHwQYAQIACQUCVhLReQIbDAAK
|
||||
CRCw28p9ZPdwsrmqD/sFsulD6nl5DRznofkqBJwwl6zdtNN9OKsEi8UKc10iuq+Z
|
||||
vynWFbcARqW9sgbBCoCM5KuA5zMIQ0hvrvlb+HOt8v7DA2D0d/IPU1BPnxoEuMDq
|
||||
5g+a3MYzmP+4Wmp8r6NNAW0ArWhazQsNdIhAVv4ItUCos7+S7q8srsflpEVG78/f
|
||||
C4Fw4sRjAaCd1NsP6D3vHwENtbuoQaT63kyfPK+r6EADTxmeFe7anovQo6MirRCn
|
||||
Loo3NdPVfQlgXkdL3wiBpwm7W/PYY+9Z6HIfE2AIBs+C5SdxYPR+tVz3+3QC9998
|
||||
egxTRnJMaKkDQ+nG/ROSVpCqXwhzob6HlrKhoe7H7GKVZyl/IVllpUQHKi5C03S8
|
||||
JQxpaJoB85/C5ZlcMtb0e1YUYeVhTKWIREFsx5FlxXcJh5CLVplZKxfn0oiIgnyK
|
||||
HtCOeNcXP2mOYClN8RmhW+/Z198bTmzMrB2jq7a3xbLGWKJqfgfZ6EPwCEu/jZTB
|
||||
SQgyssrrGahyyOIDadEcyfYV+r5pUm1++1YxSe0/hZ89RjGAIneWmo6sDLwPd44G
|
||||
LKAAb/E/yS/320bu031426gU8Zdw7bK1dVNVQxWOpRc/RTRjmVjrO9NIN+7DSNOF
|
||||
nvep13/48UEDSFXkNnh+VgxGpvpOouw2xUBVNZuhjPr589pvAEQFUyxCTI0uwQ==
|
||||
=mXsc
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
||||
4
debian/watch
vendored
Normal file
4
debian/watch
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
version=3
|
||||
opts="pgpsigurlmangle=s/$/.gpg/" \
|
||||
http://dvdisaster.net/en/index.html \
|
||||
(?:.*?/)?dvdisaster-(.*)\.tar\.bz2 debian uupdate
|
||||
542
debug.c
542
debug.c
@@ -1,30 +1,29 @@
|
||||
/* dvdisaster: Additional error correction for optical media.
|
||||
* Copyright (C) 2004-2009 Carsten Gnoerlich.
|
||||
* Project home page: http://www.dvdisaster.com
|
||||
* Email: carsten@dvdisaster.com -or- cgnoerlich@fsfe.org
|
||||
* Copyright (C) 2004-2017 Carsten Gnoerlich.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* Email: carsten@dvdisaster.org -or- cgnoerlich@fsfe.org
|
||||
* Project homepage: http://www.dvdisaster.org
|
||||
*
|
||||
* This file is part of dvdisaster.
|
||||
*
|
||||
* dvdisaster 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 2 of the License, or
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* dvdisaster 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.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA,
|
||||
* or direct your browser at http://www.gnu.org.
|
||||
* along with dvdisaster. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "dvdisaster.h"
|
||||
|
||||
#include "rs02-includes.h"
|
||||
#ifdef HAVE_RS03
|
||||
#include "rs03-includes.h"
|
||||
#endif
|
||||
#include "rs03-includes.h"
|
||||
#include "udf.h"
|
||||
|
||||
#include <time.h>
|
||||
@@ -39,46 +38,37 @@
|
||||
|
||||
/* RS01-style files */
|
||||
|
||||
static void random_error1(char *prefix, char *arg)
|
||||
{ ImageInfo *ii;
|
||||
gint64 block_idx[255];
|
||||
static void random_error1(Image *image, char *arg)
|
||||
{ EccHeader *eh;
|
||||
gint64 block_idx[255];
|
||||
gint64 s,si;
|
||||
int block_sel[255];
|
||||
int i,percent,last_percent = 0;
|
||||
int n_data,n_eras,n_errors;
|
||||
int n_data,n_errors;
|
||||
double eras_scale, blk_scale;
|
||||
char *cpos = NULL;
|
||||
|
||||
SRandom(Closure->randomSeed);
|
||||
eh = image->eccFileHeader;
|
||||
|
||||
n_errors = atoi(arg);
|
||||
|
||||
cpos = strchr(arg,',');
|
||||
if(!cpos) Stop(_("2nd argument is missing"));
|
||||
*cpos = 0;
|
||||
if(n_errors < 1|| n_errors > eh->eccBytes)
|
||||
Stop(_("Number of erasures must be > 0 and <= %d\n"), eh->eccBytes);
|
||||
|
||||
n_eras = atoi(arg);
|
||||
n_errors = atoi(cpos+1);
|
||||
|
||||
if(n_eras < 8 || n_eras > 100 || n_errors < 1|| n_errors > n_eras)
|
||||
Stop(_("Number of roots must be 8..100;\n"
|
||||
"the number of erasures must be > 0 and less than the number of roots.\n"));
|
||||
|
||||
n_data = 255-n_eras;
|
||||
n_data = 255-eh->eccBytes;
|
||||
eras_scale = (n_errors+1)/((double)MY_RAND_MAX+1.0);
|
||||
blk_scale = (double)n_data/((double)MY_RAND_MAX+1.0);
|
||||
|
||||
|
||||
/*** Open the image file */
|
||||
|
||||
ii = OpenImageFile(NULL, WRITEABLE_IMAGE);
|
||||
|
||||
/*** Setup block pointers */
|
||||
|
||||
s = (ii->sectors+n_data-1)/n_data;
|
||||
s = (image->sectorSize+n_data-1)/n_data;
|
||||
|
||||
for(si=0, i=0; i<n_data; si+=s, i++)
|
||||
block_idx[i] = si;
|
||||
|
||||
PrintLog(_("\nGenerating random correctable erasures (for %d roots, max erasures = %d).\n"),n_eras, n_errors);
|
||||
PrintLog(_("\nGenerating random correctable erasures (%s; for %d roots, max erasures = %d).\n"),
|
||||
"RS01", eh->eccBytes, n_errors);
|
||||
|
||||
/*** Randomly delete the blocks */
|
||||
|
||||
@@ -106,14 +96,18 @@ static void random_error1(char *prefix, char *arg)
|
||||
|
||||
for(i=0; i<n_data; i++)
|
||||
{ unsigned char missing[2048];
|
||||
int write_size = 2048;
|
||||
|
||||
if(block_sel[i] && block_idx[i]<ii->sectors)
|
||||
{ if(!LargeSeek(ii->file, (gint64)(2048*block_idx[i])))
|
||||
if(block_sel[i] && block_idx[i]<image->sectorSize)
|
||||
{ if(!LargeSeek(image->file, (gint64)(2048*block_idx[i])))
|
||||
Stop(_("Failed seeking to sector %lld in image: %s"),block_idx[i],strerror(errno));
|
||||
|
||||
CreateMissingSector(missing, block_idx[i], ii->mediumFP, FINGERPRINT_SECTOR, NULL);
|
||||
CreateMissingSector(missing, block_idx[i], image->imageFP, FINGERPRINT_SECTOR, NULL);
|
||||
|
||||
if(LargeWrite(ii->file, missing, 2048) != 2048)
|
||||
if(block_idx[i] == image->sectorSize - 1 && image->inLast < 2048)
|
||||
write_size = image->inLast;
|
||||
|
||||
if(LargeWrite(image->file, missing, write_size) != write_size)
|
||||
Stop(_("Failed writing to sector %lld in image: %s"),block_idx[i],strerror(errno));
|
||||
}
|
||||
|
||||
@@ -131,15 +125,13 @@ static void random_error1(char *prefix, char *arg)
|
||||
"Recover the image using the --fix option before doing another --random-errors run.\n"
|
||||
"Otherwise you'll accumulate >= %d erasures/ECC block and the image will be lost.\n"),
|
||||
n_errors);
|
||||
|
||||
FreeImageInfo(ii);
|
||||
}
|
||||
|
||||
/* RS02 ecc images */
|
||||
|
||||
static void random_error2(EccHeader *eh, char *prefix, char *arg)
|
||||
{ RS02Layout *lay;
|
||||
ImageInfo *ii;
|
||||
static void random_error2(Image *image, char *arg)
|
||||
{ EccHeader *eh = image->eccHeader;
|
||||
RS02Layout *lay;
|
||||
gint64 si;
|
||||
guint64 hpos;
|
||||
guint64 end;
|
||||
@@ -150,7 +142,7 @@ static void random_error2(EccHeader *eh, char *prefix, char *arg)
|
||||
double eras_scale, blk_scale, hdr_scale;
|
||||
|
||||
SRandom(Closure->randomSeed);
|
||||
lay = CalcRS02Layout(uchar_to_gint64(eh->sectors), eh->eccBytes);
|
||||
lay = RS02LayoutFromImage(image);
|
||||
|
||||
n_errors = atoi(arg);
|
||||
|
||||
@@ -165,11 +157,8 @@ static void random_error2(EccHeader *eh, char *prefix, char *arg)
|
||||
eras_scale = (n_errors+1)/((double)MY_RAND_MAX+1.0);
|
||||
blk_scale = (double)255.0/((double)MY_RAND_MAX+1.0);
|
||||
|
||||
/*** Open the image file */
|
||||
|
||||
ii = OpenImageFile(NULL, WRITEABLE_IMAGE);
|
||||
|
||||
PrintLog(_("\nGenerating random correctable erasures (for %d roots, max erasures = %d).\n"), eh->eccBytes, n_errors);
|
||||
PrintLog(_("\nGenerating random correctable erasures (%s; for %d roots, max erasures = %d).\n"),
|
||||
"RS02", eh->eccBytes, n_errors);
|
||||
|
||||
/*** Randomly delete some ecc headers */
|
||||
|
||||
@@ -198,12 +187,12 @@ static void random_error2(EccHeader *eh, char *prefix, char *arg)
|
||||
if(s>0)
|
||||
{ unsigned char missing[2048];
|
||||
|
||||
if(!LargeSeek(ii->file, (gint64)(2048*s)))
|
||||
if(!LargeSeek(image->file, (gint64)(2048*s)))
|
||||
Stop(_("Failed seeking to sector %lld in image: %s"), s, strerror(errno));
|
||||
|
||||
CreateMissingSector(missing, s, ii->mediumFP, FINGERPRINT_SECTOR, NULL);
|
||||
CreateMissingSector(missing, s, image->imageFP, image->fpSector, NULL);
|
||||
|
||||
if(LargeWrite(ii->file, missing, 2048) != 2048)
|
||||
if(LargeWrite(image->file, missing, 2048) != 2048)
|
||||
Stop(_("Failed writing to sector %lld in image: %s"), s, strerror(errno));
|
||||
}
|
||||
}
|
||||
@@ -246,16 +235,15 @@ static void random_error2(EccHeader *eh, char *prefix, char *arg)
|
||||
}
|
||||
else s = RS02EccSectorIndex(lay, i-eh->dataBytes, si);
|
||||
|
||||
if(!LargeSeek(ii->file, (gint64)(2048*s)))
|
||||
if(!LargeSeek(image->file, (gint64)(2048*s)))
|
||||
Stop(_("Failed seeking to sector %lld in image: %s"), s, strerror(errno));
|
||||
|
||||
CreateMissingSector(missing, s, ii->mediumFP, FINGERPRINT_SECTOR, NULL);
|
||||
|
||||
if(LargeWrite(ii->file, missing, 2048) != 2048)
|
||||
CreateMissingSector(missing, s, image->imageFP, image->fpSector, NULL);
|
||||
if(LargeWrite(image->file, missing, 2048) != 2048)
|
||||
Stop(_("Failed writing to sector %lld in image: %s"), s, strerror(errno));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
percent = (100*si)/lay->sectorsPerLayer;
|
||||
if(last_percent != percent)
|
||||
{ PrintProgress(_("Progress: %3d%%"),percent);
|
||||
@@ -268,28 +256,32 @@ static void random_error2(EccHeader *eh, char *prefix, char *arg)
|
||||
"Otherwise you'll accumulate >= %d erasures/ECC block and the image will be lost.\n"),
|
||||
n_errors);
|
||||
|
||||
FreeImageInfo(ii);
|
||||
g_free(lay);
|
||||
}
|
||||
|
||||
/* RS03 ecc images */
|
||||
|
||||
#ifdef HAVE_RS03
|
||||
static void random_error3(EccHeader *eh, char *prefix, char *arg)
|
||||
{ RS03Layout *lay;
|
||||
ImageInfo *ii;
|
||||
static void random_error3(Image *image, char *arg)
|
||||
{ EccHeader *eh;
|
||||
RS03Layout *lay;
|
||||
gint64 si;
|
||||
guint64 hpos;
|
||||
guint64 end;
|
||||
guint64 header[42];
|
||||
int block_sel[255];
|
||||
int i,percent,last_percent = 0;
|
||||
int hidx,n_errors,erase_max = 0;
|
||||
double eras_scale, blk_scale, hdr_scale;
|
||||
int n_errors,erase_max = 0;
|
||||
double eras_scale, blk_scale;
|
||||
|
||||
SRandom(Closure->randomSeed);
|
||||
lay = CalcRS03Layout(uchar_to_gint64(eh->sectors), eh->eccBytes);
|
||||
|
||||
/*** Calculate the layout */
|
||||
|
||||
if(image->eccFileState == ECCFILE_PRESENT)
|
||||
{ eh = image->eccFileHeader;
|
||||
lay = CalcRS03Layout(image, ECC_FILE);
|
||||
}
|
||||
else
|
||||
{ eh = image->eccHeader;
|
||||
lay = CalcRS03Layout(image, ECC_IMAGE);
|
||||
}
|
||||
n_errors = atoi(arg);
|
||||
|
||||
if(n_errors < 0)
|
||||
@@ -303,49 +295,10 @@ static void random_error3(EccHeader *eh, char *prefix, char *arg)
|
||||
eras_scale = (n_errors+1)/((double)MY_RAND_MAX+1.0);
|
||||
blk_scale = (double)255.0/((double)MY_RAND_MAX+1.0);
|
||||
|
||||
/*** Open the image file */
|
||||
|
||||
ii = OpenImageFile(NULL, WRITEABLE_IMAGE);
|
||||
|
||||
PrintLog(_("\nGenerating random correctable erasures (for %d roots, max erasures = %d).\n"), eh->eccBytes, n_errors);
|
||||
|
||||
/*** Randomly delete some ecc headers */
|
||||
|
||||
header[0] = lay->firstEccHeader;
|
||||
hidx = 1;
|
||||
|
||||
hpos = (lay->lastCrcSector + lay->headerModulo - 1) / lay->headerModulo;
|
||||
hpos *= lay->headerModulo;
|
||||
|
||||
end = lay->eccSectors+lay->dataSectors;
|
||||
|
||||
while(hpos < end) /* Calculate positions of all headers */
|
||||
{
|
||||
header[hidx++] = hpos;
|
||||
hpos += lay->headerModulo;
|
||||
|
||||
}
|
||||
|
||||
/* Pick one header to remain intact.
|
||||
Currently this must be one of the repeated headers */
|
||||
|
||||
hdr_scale = (double)(hidx-1)/((double)MY_RAND_MAX+1.0);
|
||||
header[(int)(hdr_scale*(double)Random())+1] = 0;
|
||||
|
||||
for(i=0; i<hidx; i++)
|
||||
{ gint64 s = header[i];
|
||||
if(s>0)
|
||||
{ unsigned char missing[2048];
|
||||
|
||||
if(!LargeSeek(ii->file, (gint64)(2048*s)))
|
||||
Stop(_("Failed seeking to sector %lld in image: %s"), s, strerror(errno));
|
||||
|
||||
CreateMissingSector(missing, s, ii->mediumFP, FINGERPRINT_SECTOR, NULL);
|
||||
|
||||
if(LargeWrite(ii->file, missing, 2048) != 2048)
|
||||
Stop(_("Failed writing to sector %lld in image: %s"), s, strerror(errno));
|
||||
}
|
||||
}
|
||||
if(lay->target == ECC_FILE)
|
||||
PrintLog(_("\nRS03 error correction file with %d roots.\n"), eh->eccBytes);
|
||||
else PrintLog(_("\nRS03 augmented image with %d roots.\n"), eh->eccBytes);
|
||||
PrintLog(_("Generating at most %d random correctable erasures.\n"), n_errors);
|
||||
|
||||
/*** Randomly delete the blocks */
|
||||
|
||||
@@ -375,18 +328,43 @@ static void random_error3(EccHeader *eh, char *prefix, char *arg)
|
||||
|
||||
for(i=0; i<255; i++)
|
||||
{ if(block_sel[i])
|
||||
{ unsigned char missing[2048];
|
||||
gint64 s;
|
||||
{ LargeFile *file;
|
||||
unsigned char missing[2048];
|
||||
gint64 s,file_s;
|
||||
|
||||
s = RS03SectorIndex(lay, i, si);
|
||||
if(s<0) continue; /* non-existing padding sector */
|
||||
|
||||
if(!LargeSeek(ii->file, (gint64)(2048*s)))
|
||||
if(s == 16) /* FIXME: not implemented */
|
||||
continue;
|
||||
|
||||
if(s == lay->eccHeaderPos || s == lay->eccHeaderPos+1)
|
||||
continue; /* FIXME: not implemented */
|
||||
|
||||
/* Do not write out the virtual padding sectors
|
||||
in ecc file case */
|
||||
|
||||
if(lay->target == ECC_FILE
|
||||
&& i<=lay->ndata-1
|
||||
&& s>=lay->dataSectors)
|
||||
continue;
|
||||
|
||||
if(lay->target == ECC_FILE && i>=lay->ndata-1)
|
||||
{ file = image->eccFile;
|
||||
if(i == lay->ndata-1)
|
||||
file_s = lay->firstCrcPos + si;
|
||||
else file_s = lay->firstEccPos + (i-lay->ndata)*lay->sectorsPerLayer + si;
|
||||
}
|
||||
else
|
||||
{ file = image->file;
|
||||
file_s = s;
|
||||
}
|
||||
|
||||
if(!LargeSeek(file, (gint64)(2048*file_s))) // FIXME: wrong for ecc files
|
||||
Stop(_("Failed seeking to sector %lld in image: %s"), s, strerror(errno));
|
||||
|
||||
CreateMissingSector(missing, s, ii->mediumFP, FINGERPRINT_SECTOR, NULL);
|
||||
CreateMissingSector(missing, s, image->imageFP, image->fpSector, NULL);
|
||||
|
||||
if(LargeWrite(ii->file, missing, 2048) != 2048)
|
||||
if(LargeWrite(file, missing, 2048) != 2048)
|
||||
Stop(_("Failed writing to sector %lld in image: %s"), s, strerror(errno));
|
||||
}
|
||||
}
|
||||
@@ -403,35 +381,46 @@ static void random_error3(EccHeader *eh, char *prefix, char *arg)
|
||||
"Otherwise you'll accumulate >= %d erasures/ECC block and the image will be lost.\n"),
|
||||
n_errors);
|
||||
|
||||
FreeImageInfo(ii);
|
||||
g_free(lay);
|
||||
}
|
||||
#endif
|
||||
|
||||
void RandomError(char *prefix, char *arg)
|
||||
{ Method *method = EccFileMethod(TRUE);
|
||||
void RandomError(char *arg)
|
||||
{ Image *image;
|
||||
Method *method = NULL;
|
||||
char buf[5];
|
||||
|
||||
image = OpenImageFromFile(Closure->imageName, O_RDWR, IMG_PERMS);
|
||||
image = OpenEccFileForImage(image, Closure->eccName, O_RDWR, IMG_PERMS);
|
||||
ReportImageEccInconsistencies(image);
|
||||
|
||||
/* Determine method. Ecc files win over augmented ecc. */
|
||||
|
||||
if(image && image->eccFileMethod) method = image->eccFileMethod;
|
||||
else if(image && image->eccMethod) method = image->eccMethod;
|
||||
else Stop("Internal error: No ecc method identified.");
|
||||
|
||||
if(!strncmp(method->name, "RS01", 4))
|
||||
{ random_error1(prefix, arg);
|
||||
{ random_error1(image, arg);
|
||||
CloseImage(image);
|
||||
return;
|
||||
}
|
||||
|
||||
if(!strncmp(method->name, "RS02", 4))
|
||||
{ random_error2(method->lastEh, prefix, arg);
|
||||
{ random_error2(image, arg);
|
||||
CloseImage(image);
|
||||
return;
|
||||
}
|
||||
|
||||
/* FIXME: currently only handles augmented images */
|
||||
#ifdef HAVE_RS03
|
||||
if(!strncmp(method->name, "RS03", 4))
|
||||
{ random_error3(method->lastEh, prefix, arg);
|
||||
{ random_error3(image, arg);
|
||||
CloseImage(image);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
CloseImage(image);
|
||||
strncpy(buf, method->name, 4); buf[4] = 0;
|
||||
Stop("Don't know how to handle codec %s\n", buf);
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -441,14 +430,17 @@ void RandomError(char *prefix, char *arg)
|
||||
*/
|
||||
|
||||
void Byteset(char *arg)
|
||||
{ ImageInfo *ii;
|
||||
{ Image *image;
|
||||
gint64 s;
|
||||
int i,byte;
|
||||
char *cpos = NULL;
|
||||
unsigned char buf[1];
|
||||
|
||||
/*** Open the image file */
|
||||
|
||||
ii = OpenImageFile(NULL, WRITEABLE_IMAGE);
|
||||
image = OpenImageFromFile(Closure->imageName, O_RDWR, IMG_PERMS);
|
||||
if(!image)
|
||||
Stop(_("Can't open %s:\n%s"), Closure->imageName, strerror(errno));
|
||||
|
||||
/*** See which byte to set */
|
||||
|
||||
@@ -466,8 +458,8 @@ void Byteset(char *arg)
|
||||
i = atoi(arg);
|
||||
byte = atoi(cpos+1);
|
||||
|
||||
if(s<0 || s>ii->sectors-1)
|
||||
Stop(_("Sector must be in range [0..%lld]\n"),ii->sectors-1);
|
||||
if(s<0 || s>=image->sectorSize)
|
||||
Stop(_("Sector must be in range [0..%lld]\n"),image->sectorSize-1);
|
||||
|
||||
if(i<0 || i>=2048)
|
||||
Stop(_("Byte position must be in range [0..2047]"));
|
||||
@@ -481,13 +473,14 @@ void Byteset(char *arg)
|
||||
|
||||
s = 2048*s + i;
|
||||
|
||||
if(!LargeSeek(ii->file, (gint64)s))
|
||||
if(!LargeSeek(image->file, (gint64)s))
|
||||
Stop(_("Failed seeking to start of image: %s\n"),strerror(errno));
|
||||
|
||||
if(LargeWrite(ii->file, &byte, 1) != 1)
|
||||
buf[0] = byte;
|
||||
if(LargeWrite(image->file, buf, 1) != 1)
|
||||
Stop(_("Could not write the new byte value"));
|
||||
|
||||
FreeImageInfo(ii);
|
||||
CloseImage(image);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -495,14 +488,28 @@ void Byteset(char *arg)
|
||||
*/
|
||||
|
||||
void Erase(char *arg)
|
||||
{ ImageInfo *ii;
|
||||
{ Image *image;
|
||||
gint64 start,end,s;
|
||||
char *dashpos = NULL;
|
||||
|
||||
char *colonpos = NULL;
|
||||
char *simulation_hint = NULL;
|
||||
|
||||
/*** Open the image file */
|
||||
|
||||
ii = OpenImageFile(NULL, WRITEABLE_IMAGE);
|
||||
image = OpenImageFromFile(Closure->imageName, O_RDWR, IMG_PERMS);
|
||||
if(!image)
|
||||
Stop(_("Can't open %s:\n%s"), Closure->imageName, strerror(errno));
|
||||
ExamineUDF(image); /* get the volume label */
|
||||
|
||||
/** See if there is a special debugging option following
|
||||
the sector range. This is intentionally an undocumented feature. */
|
||||
|
||||
colonpos = strchr(arg,':');
|
||||
if(colonpos)
|
||||
{ *colonpos = 0;
|
||||
simulation_hint=colonpos+1;
|
||||
}
|
||||
|
||||
/*** See which sectors to erase */
|
||||
|
||||
dashpos = strchr(arg,'-');
|
||||
@@ -513,24 +520,26 @@ void Erase(char *arg)
|
||||
}
|
||||
else start = end = atoi(arg);
|
||||
|
||||
if(start>end || start < 0 || end >= ii->sectors)
|
||||
Stop(_("Sectors must be in range [0..%lld].\n"),ii->sectors-1);
|
||||
if(start>end || start < 0 || end >= image->sectorSize)
|
||||
Stop(_("Sectors must be in range [0..%lld].\n"),image->sectorSize-1);
|
||||
|
||||
PrintLog(_("Erasing sectors [%lld,%lld]\n"),start,end);
|
||||
|
||||
/*** Erase them. */
|
||||
|
||||
if(!LargeSeek(ii->file, (gint64)(2048*start)))
|
||||
if(!LargeSeek(image->file, (gint64)(2048*start)))
|
||||
Stop(_("Failed seeking to start of image: %s\n"),strerror(errno));
|
||||
|
||||
for(s=start; s<=end; s++)
|
||||
{ unsigned char missing[2048];
|
||||
int m = (end == ii->sectors-1) ? ii->inLast : 2048;
|
||||
int m = (end == image->sectorSize-1) ? image->inLast : 2048;
|
||||
int n;
|
||||
|
||||
CreateMissingSector(missing, s, ii->mediumFP, FINGERPRINT_SECTOR, NULL);
|
||||
CreateDebuggingSector(missing, s, image->imageFP, FINGERPRINT_SECTOR,
|
||||
image->isoInfo ? image->isoInfo->volumeLabel : NULL,
|
||||
simulation_hint);
|
||||
|
||||
n = LargeWrite(ii->file, missing, m);
|
||||
n = LargeWrite(image->file, missing, m);
|
||||
|
||||
if(n != m)
|
||||
Stop(_("Failed writing to sector %lld in image: %s"),s,strerror(errno));
|
||||
@@ -538,38 +547,40 @@ void Erase(char *arg)
|
||||
|
||||
/*** Clean up */
|
||||
|
||||
FreeImageInfo(ii);
|
||||
CloseImage(image);
|
||||
}
|
||||
|
||||
/*
|
||||
* Debugging function for truncating images
|
||||
*/
|
||||
|
||||
void TruncateImage(char *arg)
|
||||
{ ImageInfo *ii;
|
||||
void TruncateImageFile(char *arg)
|
||||
{ Image *image;
|
||||
gint64 end;
|
||||
|
||||
/*** Open the image file */
|
||||
|
||||
ii = OpenImageFile(NULL, WRITEABLE_IMAGE);
|
||||
image = OpenImageFromFile(Closure->imageName, O_RDWR, IMG_PERMS);
|
||||
if(!image)
|
||||
Stop(_("Can't open %s:\n%s"), Closure->imageName, strerror(errno));
|
||||
|
||||
/*** Determine last sector */
|
||||
|
||||
end = atoi(arg);
|
||||
|
||||
if(end >= ii->sectors)
|
||||
Stop(_("New length must be in range [0..%lld].\n"),ii->sectors-1);
|
||||
if(end >= image->sectorSize)
|
||||
Stop(_("New length must be in range [0..%lld].\n"),image->sectorSize-1);
|
||||
|
||||
PrintLog(_("Truncating image to %lld sectors.\n"),end);
|
||||
|
||||
/*** Truncate it. */
|
||||
|
||||
if(!LargeTruncate(ii->file, (gint64)(2048*end)))
|
||||
if(!LargeTruncate(image->file, (gint64)(2048*end)))
|
||||
Stop(_("Could not truncate %s: %s\n"),Closure->imageName,strerror(errno));
|
||||
|
||||
/*** Clean up */
|
||||
|
||||
FreeImageInfo(ii);
|
||||
CloseImage(image);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -579,9 +590,10 @@ void TruncateImage(char *arg)
|
||||
void RandomImage(char *image_name, char *n_sectors, int mark)
|
||||
{ LargeFile *image;
|
||||
IsoHeader *ih;
|
||||
gint64 sectors,s = 0;
|
||||
gint64 sectors;
|
||||
gint64 s = 25; /* number of ISO headers */
|
||||
int percent, last_percent = 0;
|
||||
guint32 invert;
|
||||
guint32 size,invert;
|
||||
|
||||
sectors = atoi(n_sectors);
|
||||
if(sectors < 64) sectors = 64;
|
||||
@@ -616,21 +628,13 @@ void RandomImage(char *image_name, char *n_sectors, int mark)
|
||||
Otherwise some writing software will not recognize the image. */
|
||||
|
||||
ih = InitIsoHeader();
|
||||
for(s=25; s<sectors; s+=524288)
|
||||
{ int size = 524288;
|
||||
char name[40];
|
||||
|
||||
if(s+size >= sectors)
|
||||
size = sectors-s;
|
||||
|
||||
sprintf(name, "random%02d.data", (int)(s/524288)+1);
|
||||
AddFile(ih, name, 2048*size);
|
||||
}
|
||||
size = sectors-s;
|
||||
if(size>=2048*1024)
|
||||
size=2048*1024-1;
|
||||
AddFile(ih, "random.data", 2048*size);
|
||||
WriteIsoHeader(ih, image);
|
||||
FreeIsoHeader(ih);
|
||||
|
||||
s = 25; /* number of ISO headers */
|
||||
|
||||
/*** Create it */
|
||||
|
||||
while(s<sectors)
|
||||
@@ -675,37 +679,43 @@ void RandomImage(char *image_name, char *n_sectors, int mark)
|
||||
*/
|
||||
|
||||
void ZeroUnreadable(void)
|
||||
{ ImageInfo *ii;
|
||||
{ Image *image;
|
||||
unsigned char buf[2048],zeros[2048];
|
||||
gint64 s,cnt=0;
|
||||
int percent, last_percent = 0;
|
||||
|
||||
ii = OpenImageFile(NULL, WRITEABLE_IMAGE);
|
||||
image = OpenImageFromFile(Closure->imageName, O_RDWR, IMG_PERMS);
|
||||
if(!image)
|
||||
Stop(_("Can't open %s:\n%s"), Closure->imageName, strerror(errno));
|
||||
PrintLog(_("Replacing the \"unreadable sector\" markers with zeros.\n"));
|
||||
memset(zeros, 0, 2048);
|
||||
|
||||
for(s=0; s<ii->sectors; s++)
|
||||
{ int n = LargeRead(ii->file, buf, 2048);
|
||||
if(!LargeSeek(image->file, (gint64)0))
|
||||
Stop(_("Failed seeking to start of image: %s\n"),strerror(errno));
|
||||
|
||||
for(s=0; s<image->sectorSize; s++)
|
||||
{ int n = LargeRead(image->file, buf, 2048);
|
||||
|
||||
if(n != 2048)
|
||||
Stop(_("Could not read image sector %lld:\n%s\n"),s,strerror(errno));
|
||||
|
||||
/* Replace the dead sector marker */
|
||||
|
||||
if(CheckForMissingSector(buf, s, ii->mediumFP, FINGERPRINT_SECTOR) != SECTOR_PRESENT)
|
||||
if(CheckForMissingSector(buf, s, image->imageFP, FINGERPRINT_SECTOR) != SECTOR_PRESENT)
|
||||
{
|
||||
if(!LargeSeek(ii->file, (gint64)(2048*s)))
|
||||
if(!LargeSeek(image->file, (gint64)(2048*s)))
|
||||
Stop(_("Failed seeking to sector %lld in image: %s"),s,strerror(errno));
|
||||
|
||||
n = LargeWrite(ii->file, zeros, 2048);
|
||||
|
||||
n = LargeWrite(image->file, zeros, 2048);
|
||||
n=2048;
|
||||
|
||||
if(n != 2048)
|
||||
Stop(_("Failed writing to sector %lld in image: %s"),s,strerror(errno));
|
||||
|
||||
cnt++;
|
||||
}
|
||||
|
||||
percent = (100*s)/ii->sectors;
|
||||
percent = (100*s)/image->sectorSize;
|
||||
if(last_percent != percent)
|
||||
{ PrintProgress(_("Progress: %3d%%"),percent);
|
||||
last_percent = percent;
|
||||
@@ -714,7 +724,7 @@ void ZeroUnreadable(void)
|
||||
|
||||
PrintProgress(_("%lld \"unreadable sector\" markers replaced.\n"), cnt);
|
||||
|
||||
FreeImageInfo(ii);
|
||||
CloseImage(image);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -768,36 +778,78 @@ void CDump(unsigned char *buf, int lba, int len, int step)
|
||||
printf("};\n");
|
||||
}
|
||||
|
||||
/*
|
||||
* Show Ecc header from image file
|
||||
*/
|
||||
|
||||
void ShowHeader(char *arg)
|
||||
{ Image *image;
|
||||
gint64 sector;
|
||||
int n;
|
||||
EccHeader *eh = alloca(4096);
|
||||
|
||||
/*** Open the image file */
|
||||
|
||||
image = OpenImageFromFile(Closure->imageName, O_RDONLY, IMG_PERMS);
|
||||
if(!image)
|
||||
Stop(_("Can't open %s:\n%s"), Closure->imageName, strerror(errno));
|
||||
|
||||
/*** Determine sector to show */
|
||||
|
||||
sector = atoi(arg);
|
||||
|
||||
if(sector < 0 || sector >= image->sectorSize)
|
||||
Stop(_("Sector must be in range [0..%lld]\n"),image->sectorSize-1);
|
||||
|
||||
/*** Load it. */
|
||||
|
||||
if(!LargeSeek(image->file, (gint64)(2048*sector)))
|
||||
Stop(_("Failed seeking to sector %lld in image: %s"),sector,strerror(errno));
|
||||
|
||||
n = LargeRead(image->file, eh, 2048);
|
||||
if(n != 2048)
|
||||
Stop(_("Failed reading sector %lld in image: %s"),sector,strerror(errno));
|
||||
|
||||
/*** Clean up */
|
||||
|
||||
CloseImage(image);
|
||||
|
||||
/*** Show it */
|
||||
|
||||
PrintEccHeader(eh);
|
||||
}
|
||||
|
||||
/*
|
||||
* Show sector from image file
|
||||
*/
|
||||
|
||||
void ShowSector(char *arg)
|
||||
{ ImageInfo *ii;
|
||||
{ Image *image;
|
||||
gint64 sector;
|
||||
int n;
|
||||
unsigned char buf[2048];
|
||||
|
||||
/*** Open the image file */
|
||||
|
||||
ii = OpenImageFile(NULL, READABLE_IMAGE);
|
||||
image = OpenImageFromFile(Closure->imageName, O_RDONLY, IMG_PERMS);
|
||||
if(!image)
|
||||
Stop(_("Can't open %s:\n%s"), Closure->imageName, strerror(errno));
|
||||
|
||||
/*** Determine sector to show */
|
||||
|
||||
sector = atoi(arg);
|
||||
|
||||
if(sector < 0 || sector >= ii->sectors)
|
||||
Stop(_("Sector must be in range [0..%lld]\n"),ii->sectors-1);
|
||||
if(sector < 0 || sector >= image->sectorSize)
|
||||
Stop(_("Sector must be in range [0..%lld]\n"),image->sectorSize-1);
|
||||
|
||||
PrintLog(_("Contents of sector %lld:\n\n"),sector);
|
||||
|
||||
/*** Show it. */
|
||||
|
||||
if(!LargeSeek(ii->file, (gint64)(2048*sector)))
|
||||
if(!LargeSeek(image->file, (gint64)(2048*sector)))
|
||||
Stop(_("Failed seeking to sector %lld in image: %s"),sector,strerror(errno));
|
||||
|
||||
n = LargeRead(ii->file, buf, 2048);
|
||||
n = LargeRead(image->file, buf, 2048);
|
||||
if(n != 2048)
|
||||
Stop(_("Failed reading sector %lld in image: %s"),sector,strerror(errno));
|
||||
|
||||
@@ -810,7 +862,7 @@ void ShowSector(char *arg)
|
||||
|
||||
/*** Clean up */
|
||||
|
||||
FreeImageInfo(ii);
|
||||
CloseImage(image);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -819,34 +871,36 @@ void ShowSector(char *arg)
|
||||
|
||||
void ReadSector(char *arg)
|
||||
{ AlignedBuffer *ab = CreateAlignedBuffer(2048);
|
||||
DeviceHandle *dh;
|
||||
Image *image;
|
||||
gint64 sector;
|
||||
int status;
|
||||
|
||||
/*** Open the device */
|
||||
|
||||
dh = OpenAndQueryDevice(Closure->device);
|
||||
image = OpenImageFromDevice(Closure->device);
|
||||
if(!image)
|
||||
Stop(_("Can't open %s:\n%s"), Closure->imageName, strerror(errno));
|
||||
|
||||
/*** Determine sector to show */
|
||||
|
||||
sector = atoi(arg);
|
||||
|
||||
if(sector < 0 || sector >= dh->sectors)
|
||||
{ CloseDevice(dh);
|
||||
if(sector < 0 || sector >= image->dh->sectors)
|
||||
{ CloseImage(image);
|
||||
FreeAlignedBuffer(ab);
|
||||
Stop(_("Sector must be in range [0..%lld]\n"),dh->sectors-1);
|
||||
Stop(_("Sector must be in range [0..%lld]\n"),image->dh->sectors-1);
|
||||
}
|
||||
|
||||
PrintLog(_("Contents of sector %lld:\n\n"),sector);
|
||||
|
||||
/*** Read it. */
|
||||
|
||||
status = ReadSectors(dh, ab->buf, sector, 1);
|
||||
status = ReadSectors(image->dh, ab->buf, sector, 1);
|
||||
|
||||
/*** Print results */
|
||||
|
||||
if(status)
|
||||
{ CloseDevice(dh);
|
||||
{ CloseImage(image);
|
||||
FreeAlignedBuffer(ab);
|
||||
Stop(_("Failed reading sector %lld: %s"),sector,strerror(errno));
|
||||
}
|
||||
@@ -858,7 +912,7 @@ void ReadSector(char *arg)
|
||||
g_printf("CRC32 = %04x\n", Crc32(ab->buf, 2048));
|
||||
}
|
||||
|
||||
CloseDevice(dh);
|
||||
CloseImage(image);
|
||||
FreeAlignedBuffer(ab);
|
||||
}
|
||||
|
||||
@@ -870,20 +924,22 @@ void RawSector(char *arg)
|
||||
{ AlignedBuffer *ab = CreateAlignedBuffer(4096);
|
||||
Sense *sense;
|
||||
unsigned char cdb[MAX_CDB_SIZE];
|
||||
DeviceHandle *dh;
|
||||
Image *image;
|
||||
gint64 lba;
|
||||
int length=0,status;
|
||||
int offset=16;
|
||||
|
||||
/*** Open the device */
|
||||
|
||||
dh = OpenAndQueryDevice(Closure->device);
|
||||
sense = &dh->sense;
|
||||
image = OpenImageFromDevice(Closure->device);
|
||||
if(!image)
|
||||
Stop(_("Can't open %s:\n%s"), Closure->imageName, strerror(errno));
|
||||
sense = &image->dh->sense;
|
||||
|
||||
/*** Only CD can be read in raw mode */
|
||||
|
||||
if(dh->mainType != CD)
|
||||
{ CloseDevice(dh);
|
||||
if(image->dh->mainType != CD)
|
||||
{ CloseImage(image);
|
||||
FreeAlignedBuffer(ab);
|
||||
Stop(_("Raw reading only possible on CD media\n"));
|
||||
}
|
||||
@@ -892,10 +948,10 @@ void RawSector(char *arg)
|
||||
|
||||
lba = atoi(arg);
|
||||
|
||||
if(lba < 0 || lba >= dh->sectors)
|
||||
{ CloseDevice(dh);
|
||||
if(lba < 0 || lba >= image->dh->sectors)
|
||||
{ CloseImage(image);
|
||||
FreeAlignedBuffer(ab);
|
||||
Stop(_("Sector must be in range [0..%lld]\n"),dh->sectors-1);
|
||||
Stop(_("Sector must be in range [0..%lld]\n"),image->dh->sectors-1);
|
||||
}
|
||||
|
||||
PrintLog(_("Contents of sector %lld:\n\n"),lba);
|
||||
@@ -904,7 +960,7 @@ void RawSector(char *arg)
|
||||
|
||||
memset(cdb, 0, MAX_CDB_SIZE);
|
||||
cdb[0] = 0xbe; /* READ CD */
|
||||
switch(dh->subType) /* Expected sector type */
|
||||
switch(image->dh->subType) /* Expected sector type */
|
||||
{ case DATA1: /* data mode 1 */
|
||||
cdb[1] = 2<<2;
|
||||
#if 1
|
||||
@@ -937,11 +993,11 @@ void RawSector(char *arg)
|
||||
cdb[11] = 0; /* no special wishes for the control byte */
|
||||
|
||||
CreateMissingSector(ab->buf, lba, NULL, 0, NULL);
|
||||
status = SendPacket(dh, cdb, 12, ab->buf, length, sense, DATA_READ);
|
||||
status = SendPacket(image->dh, cdb, 12, ab->buf, length, sense, DATA_READ);
|
||||
|
||||
if(status<0) /* Read failed */
|
||||
{ RememberSense(sense->sense_key, sense->asc, sense->ascq);
|
||||
CloseDevice(dh);
|
||||
CloseImage(image);
|
||||
FreeAlignedBuffer(ab);
|
||||
Stop("Sector read failed: %s\n", GetLastSenseString(FALSE));
|
||||
}
|
||||
@@ -1074,7 +1130,7 @@ Bitmap* SimulateDefects(gint64 size)
|
||||
void CopySector(char *arg)
|
||||
{ LargeFile *from, *to;
|
||||
char *from_path, *to_path;
|
||||
gint64 from_sector, to_sector, sectors;
|
||||
guint64 from_sector, to_sector, sectors;
|
||||
unsigned char buf[2048];
|
||||
char *cpos = NULL;
|
||||
|
||||
@@ -1150,9 +1206,8 @@ void CopySector(char *arg)
|
||||
void MergeImages(char *arg, int mode)
|
||||
{ LargeFile *left, *right;
|
||||
char *left_path, *right_path;
|
||||
gint64 left_sectors, right_sectors,min_sectors,s;
|
||||
guint64 left_sectors, right_sectors,min_sectors,s;
|
||||
int percent,last_percent = 0;
|
||||
gint64 left_missing, right_missing, mismatch;
|
||||
char *cpos = NULL;
|
||||
|
||||
/*** Evaluate arguments */
|
||||
@@ -1185,7 +1240,6 @@ void MergeImages(char *arg, int mode)
|
||||
|
||||
/*** Compare them */
|
||||
|
||||
left_missing = right_missing = mismatch = 0;
|
||||
if(left_sectors < right_sectors)
|
||||
min_sectors = left_sectors;
|
||||
else min_sectors = right_sectors;
|
||||
@@ -1208,35 +1262,7 @@ void MergeImages(char *arg, int mode)
|
||||
{ if(!mode) PrintLog("< Sector %lld missing\n", s);
|
||||
else
|
||||
{ PrintLog("< Sector %lld missing; copied from %s.\n", s, right_path);
|
||||
#if 0 /* Remove this */
|
||||
int dbl = FALSE;
|
||||
{ LargeFile *file;
|
||||
gint64 si;
|
||||
unsigned char buf[2048];
|
||||
|
||||
file = LargeOpen(right_path, O_RDONLY, IMG_PERMS);
|
||||
for(si=0; si<right_sectors; si++)
|
||||
{ LargeRead(file, buf, 2048);
|
||||
if(s!=si && !memcmp(right_buf, buf, 2048))
|
||||
{ PrintLog("... double sector in %s at %lld\n", right_path, si);
|
||||
dbl = TRUE;
|
||||
}
|
||||
}
|
||||
LargeClose(file);
|
||||
|
||||
file = LargeOpen(left_path, O_RDONLY, IMG_PERMS);
|
||||
for(si=0; si<left_sectors; si++)
|
||||
{ LargeRead(file, buf, 2048);
|
||||
if(s!=si && !memcmp(right_buf, buf, 2048))
|
||||
{ PrintLog("... double sector in %s at %lld\n", left_path, si);
|
||||
dbl = TRUE;
|
||||
}
|
||||
}
|
||||
LargeClose(file);
|
||||
}
|
||||
if(dbl) { PrintLog("NOT copying sector\n"); continue; }
|
||||
#endif
|
||||
if(!LargeSeek(left, (gint64)(2048*s)))
|
||||
if(!LargeSeek(left, (2048*s)))
|
||||
Stop(_("Failed seeking to sector %lld in image: %s"),
|
||||
s, strerror(errno));
|
||||
|
||||
@@ -1292,3 +1318,51 @@ void MergeImages(char *arg, int mode)
|
||||
LargeClose(left);
|
||||
LargeClose(right);
|
||||
}
|
||||
|
||||
/*
|
||||
* Print LaTeX'ed table of Galois fields and other matrices
|
||||
*/
|
||||
|
||||
void LaTeXify(gint32 *table , int rows, int columns)
|
||||
{ int x,y;
|
||||
|
||||
printf("\\begin{tabular}{|l||");
|
||||
for(x=0; x<columns; x++)
|
||||
printf("c|");
|
||||
printf("}\n\\hline\n");
|
||||
|
||||
printf("&");
|
||||
for(x=0; x<columns; x++)
|
||||
printf("%c %02x ", x==0?' ':'&', x);
|
||||
printf("\\\\\n\\hline\n\\hline\n");
|
||||
|
||||
for(y=0; y<rows; y++)
|
||||
{ printf("%02x &",16*y);
|
||||
for(x=0; x<columns; x++)
|
||||
printf("%c %02x ", x==0?' ':'&', *table++);
|
||||
printf("\\\\\n\\hline\n");
|
||||
}
|
||||
|
||||
printf("\\end{tabular}\n");
|
||||
}
|
||||
|
||||
/*
|
||||
* Append a text to a file in printf() manner,
|
||||
* not keeping it open.
|
||||
*/
|
||||
|
||||
void AppendToTextFile(char* filename, char *format, ...)
|
||||
{ va_list argp;
|
||||
FILE *file;
|
||||
|
||||
file = fopen(filename, "a");
|
||||
if(!file)
|
||||
Stop("Could not open %s: %s\n", filename, strerror(errno));
|
||||
|
||||
va_start(argp, format);
|
||||
g_vfprintf(file, format, argp);
|
||||
va_end(argp);
|
||||
|
||||
if(fclose(file))
|
||||
Stop("Could not close %s: %s\n", filename, strerror(errno));
|
||||
}
|
||||
|
||||
14
documentation/codec-specs/Makefile
Normal file
14
documentation/codec-specs/Makefile
Normal file
@@ -0,0 +1,14 @@
|
||||
.PHONY : all codecs clean
|
||||
|
||||
all: codecs
|
||||
|
||||
clean:
|
||||
@rm -f *~ *.aux *.log *.bak *.out *.toc *.dvi *.ps
|
||||
|
||||
archclean: clean
|
||||
@rm -f *.pdf
|
||||
|
||||
codecs:
|
||||
latex codecs
|
||||
dvips codecs.dvi
|
||||
ps2pdf codecs.ps
|
||||
37
documentation/codec-specs/changelog.tex
Normal file
37
documentation/codec-specs/changelog.tex
Normal file
@@ -0,0 +1,37 @@
|
||||
\section{Changelog}
|
||||
|
||||
Clarifications of specifications (without actual changes of implementations)
|
||||
are numbered with lowercase letters, e.g. {\em V1.00a}, {\em V1.00b} etc.
|
||||
|
||||
\smallskip
|
||||
|
||||
Changes which affect the implementation of codecs are indicated by increasing
|
||||
version numbers, e.g. {\em V1.00}, {\em V1.01}. Version numbering is independent
|
||||
for each codec.
|
||||
|
||||
\subsection{RS03 codec}
|
||||
|
||||
\begin{tabular}{lp{14cm}}
|
||||
V1.00 & {\em supported since dvdisaster version V0.79.4} \\
|
||||
& Clarified: RS03 header does not contain copy of first CRC sector (appendix \ref{eh}). \\
|
||||
& Added $sectorsPerLayer$ field in Ecc header and CRC block format.\\
|
||||
& Added ecc file specification.\\
|
||||
\end{tabular}
|
||||
|
||||
\subsection{RS02 codec}
|
||||
|
||||
\begin{tabular}{lp{14cm}}
|
||||
V1.01 & {\em supported since dvdisaster version V0.79.5} \\
|
||||
& Added the {\em sectorsAddedByEcc} field in the {\em EccHeader}. \\
|
||||
V1.00 & {\em supported since dvdisaster version V0.66} \\
|
||||
& First draft of specification, open for review for missing parts and errors. \\
|
||||
\end{tabular}
|
||||
|
||||
\subsection{RS01 codec}
|
||||
|
||||
\begin{tabular}{lp{14cm}}
|
||||
V1.00 & {\em supported since dvdisaster version V0.66} \\
|
||||
& First release of specification. \\
|
||||
\end{tabular}
|
||||
|
||||
\newpage
|
||||
BIN
documentation/codec-specs/codecs.pdf
Normal file
BIN
documentation/codec-specs/codecs.pdf
Normal file
Binary file not shown.
118
documentation/codec-specs/codecs.tex
Normal file
118
documentation/codec-specs/codecs.tex
Normal file
@@ -0,0 +1,118 @@
|
||||
\documentclass[12pt,a4paper,twoside]{article}
|
||||
\usepackage{times} % Skalierbarer und lesbarer Zeichensatz
|
||||
\usepackage{ucs} % Benötigt für Eingabe von unicode-Zeichensätzen
|
||||
\usepackage[utf8x]{inputenc} % Aktiviert Eingabe von unicode-Zeichensätzen
|
||||
\usepackage{epsfig} % Makros zum Einfügen von Grafiken
|
||||
\usepackage{anysize} % Makros zum Einstellen der Seitenränder
|
||||
%\usepackage{makeidx} % Makros zum Erstellen des Indexes
|
||||
\usepackage{url}
|
||||
\usepackage{hyperref}
|
||||
\usepackage{fancyhdr}
|
||||
\usepackage{listings}
|
||||
\usepackage{color}
|
||||
\usepackage{comment}
|
||||
|
||||
\marginsize{30mm}{20mm}{20mm}{20mm} % Seitenränder links, rechts, oben, unten
|
||||
\parindent0em % Keine amerikanische Einrückung am Anfang von Paragraphen
|
||||
\renewcommand{\floatpagefraction}{.99}
|
||||
|
||||
\pagestyle{fancy} % Seitenstil
|
||||
%\makeindex % wird für Erstellung von Stichwortverzeichnissen benötigt
|
||||
|
||||
% Ende der Voreinstellungen
|
||||
|
||||
\newcommand{\paperversion}{{\em Version 1.01}}
|
||||
|
||||
\fancyhead{}
|
||||
\fancyhead[LE,RO]{page \thepage\ of \pageref{LastPage}}
|
||||
\fancyhead[LO,RE]{\nouppercase{\rightmark}}
|
||||
\renewcommand{\sectionmark}[1]{\markboth{#1}{#1}}
|
||||
\renewcommand{\subsectionmark}[1]{}
|
||||
|
||||
\renewcommand{\footrulewidth}{0.4pt}
|
||||
\fancyfoot{}
|
||||
\fancyfoot[LE,RO]{dvdisaster codec specification}
|
||||
\fancyfoot[LO]{created: \today}
|
||||
\fancyfoot[RE]{\paperversion}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\definecolor{lightblue}{RGB}{224,224,255}
|
||||
\pagecolor{lightblue}
|
||||
\title{The dvdisaster Reed-Solomon Codec specification}
|
||||
\author{Carsten Gnörlich\\carsten@dvdisaster.org}
|
||||
\date{}
|
||||
\maketitle
|
||||
\thispagestyle{empty}
|
||||
|
||||
\centerline{\includegraphics[width=32mm]{title.eps}}
|
||||
|
||||
\begin{center}
|
||||
\paperversion
|
||||
\end{center}
|
||||
|
||||
\bigskip
|
||||
|
||||
\begin{abstract}
|
||||
This is the {\em blue manual}, describing the data formats of the dvdisaster
|
||||
Reed-Solomon codecs which are currently called RS01, RS02 and RS03.
|
||||
The codecs create Reed-Solomon parity data to protect data stored on optical media.
|
||||
Depending on the codec, parity data can either be stored in a separate file
|
||||
or be integrated with the .iso image on the same medium.
|
||||
See \url{http://dvdisaster.org} for additional resources on the dvdisaster project,
|
||||
e.g. for the {\em orange manual} (manual.pdf) containing information for end users.
|
||||
\end{abstract}
|
||||
|
||||
\bigskip
|
||||
|
||||
{\bf Target audience.} This paper is primarily intended as a working base for the
|
||||
dvdisaster developers and, when the final version has been crafted, as an implementation
|
||||
guide for third party developers who wish to create and process dvdisaster error correction data.
|
||||
It is {\bf neither intended nor suitable} as end-user documentation; for usage information
|
||||
please refer to the online documentation at \url{http://dvdisaster.org}.
|
||||
|
||||
\bigskip
|
||||
|
||||
{\bf Prerequisites.} This paper assumes profound knowledge of coding theory and the
|
||||
underlying math. The reader is assumed to have a thorough understanding of Reed-Solomon
|
||||
codes, both in theory and from an implementation viewpoint. A basic understanding
|
||||
of programming in C is also assumed.
|
||||
|
||||
\vfill
|
||||
\begin{center}
|
||||
{\em
|
||||
Copyright 2008-2015 Carsten Gnörlich.
|
||||
Verbatim copying and distribution of this entire article is permitted in any medium,
|
||||
provided this notice is preserved.}
|
||||
\end{center}
|
||||
|
||||
\newpage
|
||||
\nopagecolor
|
||||
|
||||
% Changelog
|
||||
|
||||
\input{changelog}
|
||||
|
||||
% Table of Contents
|
||||
|
||||
\tableofcontents
|
||||
\newpage
|
||||
|
||||
% Reed-Solomon encoding details
|
||||
|
||||
\input{rs03}
|
||||
|
||||
\input{rs02}
|
||||
|
||||
\input{rs01}
|
||||
|
||||
% Header formats
|
||||
|
||||
\appendix
|
||||
|
||||
\input{ecc-header}
|
||||
|
||||
\input{crc-block}
|
||||
|
||||
\input{rs-params}
|
||||
\end{document}
|
||||
113
documentation/codec-specs/crc-block.tex
Normal file
113
documentation/codec-specs/crc-block.tex
Normal file
@@ -0,0 +1,113 @@
|
||||
|
||||
\newpage
|
||||
\section{RS03 CRC block format}
|
||||
\label{crc-block}
|
||||
|
||||
The crc layer contains 2048 byte blocks containing the data structure
|
||||
described below. Except for the CRC32 checksums most of the information
|
||||
contained in this data structure is copied from the Ecc Header described
|
||||
in appendix \ref{eh}. The crc block format is defined in the include
|
||||
file {\em dvdisaster.h} and has the following C definition:
|
||||
|
||||
\begin{tabbing}
|
||||
xxx \= xxxxxxxxxxxxxxxxxxxxxxx \= xxx \kill
|
||||
typedef struct \_CrcBlock \\
|
||||
\{\>guint32 crc[256]; \>{\em /* Checksum for the data sectors */}\\
|
||||
\> gint8 cookie[12]; \>{\em /* "*dvdisaster*" */}\\
|
||||
\> gint8 method[4]; \>{\em /* e.g. "RS03" */}\\
|
||||
\> gint8 methodFlags[4]; \>{\em /* 0-2 for free use by the respective methods; 3 see above */}\\
|
||||
\> gint32 creatorVersion; \>{\em /* which dvdisaster version created this */}\\
|
||||
\> gint32 neededVersion; \>{\em /* oldest version which can decode this file */}\\
|
||||
\> gint32 fpSector; \>{\em /* sector used to calculate mediumFP */}\\
|
||||
\> guint8 mediumFP[16]; \>{\em /* fingerprint of FINGERPRINT SECTOR */}\\
|
||||
\> guint8 mediumSum[16]; \>{\em /* complete md5sum of whole medium */}\\
|
||||
\> guint64 dataSectors; \>{\em /* number of sectors of the payload (e.g. iso file sys) */}\\
|
||||
\> gint32 inLast; \>{\em /* bytes contained in last sector */}\\
|
||||
\> gint32 dataBytes; \>{\em /* data bytes per ecc block */}\\
|
||||
\> gint32 eccBytes; \>{\em /* ecc bytes per ecc block */}\\
|
||||
\> guint64 sectorsPerLayer; \>{\em /* for recalculation of layout */}\\
|
||||
\> guint32 selfCRC; \>{\em /* CRC32 of ourself, zero padded to 2048 bytes */}\\
|
||||
\} CrcBlock;
|
||||
\end{tabbing}
|
||||
|
||||
\bigskip
|
||||
|
||||
The CrcBlock data structure is used in the CRC layer of RS03 augmented images
|
||||
only. RS02 has a similar CRC layer but uses a different concept for retrieving
|
||||
layout information from the image. The following table describes the meaning
|
||||
and usage of the CrcBlock fields:
|
||||
\medskip
|
||||
|
||||
\begin{tabular}{|l|p{12cm}|}
|
||||
\hline
|
||||
Field & Usage \\
|
||||
\hline
|
||||
crc & If this data structure is found in the {\em i-th} sector of the CRC layer,
|
||||
it contains the CRC32 checksum for data sectors $d_{j,1}, \ldots, d_{j,n}$, with
|
||||
$j = (i+1) \bmod\ layer\ size$. See figure \ref{layout-logical} for details.
|
||||
Please note that the crc[] array is filled starting from crc[0], and unused field
|
||||
are left zero. \\
|
||||
\hline
|
||||
$cookie$ & Magic byte sequence for recognizing the header.\newline
|
||||
Contains the string {\tt *dvdisaster*}. \\
|
||||
\hline
|
||||
$method$ & 4 characters describing the format; currently only ``RS03''
|
||||
may appear here.\\
|
||||
\hline
|
||||
\end{tabular}
|
||||
|
||||
{\footnotesize (continued on next page)}
|
||||
\vfill
|
||||
\newpage
|
||||
|
||||
\begin{tabular}{|l|p{12cm}|}
|
||||
\hline
|
||||
$methodFlags$ & 4 bytes for further specification of the format.\newline
|
||||
Byte 0 contains the following flags:\newline
|
||||
Bit 0 - The {\em mediumSum} field is valid.\newline
|
||||
Bit 1 - Set to 1 in ecc files.\newline
|
||||
Bytes 1-2 are unused in the current methods.\newline
|
||||
Byte 3 contains the following flags:\newline
|
||||
Bit 0 - ecc data was created by a development release.\newline
|
||||
Bit 1 - ecc data was created by a release candidate.\newline
|
||||
If these bits are present, the user will be hinted that he is using
|
||||
ecc data from a non-stable dvdisaster version. \\
|
||||
\hline
|
||||
$creatorVersion$ & The dvdisaster version used for creating this ecc data.
|
||||
A decimal value 102345 would mean dvdisaster version 10.23.45.\\
|
||||
\hline
|
||||
$neededVersion$ & The minimum dvdisaster version required for
|
||||
processing this ecc data. Version encoding as above. \\
|
||||
\hline
|
||||
$fpSector$ & The sector used for calculating $mediumFP$. \\
|
||||
\hline
|
||||
$mediumFP$ & The md5sum of the sector specified by the {\em fpSector}.
|
||||
The sector should be chosen to have a huge probability being unique to the medium;
|
||||
currently sector 16 (the ISO filesystem root sector) is used. \\
|
||||
\hline
|
||||
$mediumSum$ & The md5sum of the original ISO image if the first bit
|
||||
in the {\em methodFlags} field is set. Since md5sum generation can not be
|
||||
parallelized, the user may opt not to calculate this checksum if multi core
|
||||
encoding is used. \\
|
||||
\hline
|
||||
$dataSectors$ & For error correction files this is the number of sectors in the
|
||||
protected medium. If augmented images are used, this denotes the number of
|
||||
sectors in the original ISO image (without the added padding and RS03 sectors). \\
|
||||
\hline
|
||||
$inLast$ & The number of Bytes contained in the last image sector. This allows for
|
||||
encoding of files with arbitrary length, not just ISO images.\\
|
||||
\hline
|
||||
$dataBytes$ & The number of data layers, including the CRC layer. \\
|
||||
\hline
|
||||
$eccBytes$ & The number of ecc layers (= number of roots) for the parity. \newline
|
||||
$dataBytes + eccBytes = 255$. \\
|
||||
\hline
|
||||
$sectorsPerLayer$ & The number of sectors per layer. \\
|
||||
\hline
|
||||
$selfCRC$ & A CRC32 checksum of the ecc header itself. Not used fields are
|
||||
set to zero and the selfCRC field is initialized to the
|
||||
value 0x4c5047 (little endian). \\
|
||||
\hline
|
||||
remaining bytes & The CrcBlock is zero padded to a size of 2048 bytes.\\
|
||||
\hline
|
||||
\end{tabular}
|
||||
123
documentation/codec-specs/ecc-header.tex
Normal file
123
documentation/codec-specs/ecc-header.tex
Normal file
@@ -0,0 +1,123 @@
|
||||
\appendix
|
||||
\newpage
|
||||
\section{The common Ecc header format}
|
||||
\label{eh}
|
||||
|
||||
The ecc header is defined in the include file {\em dvdisaster.h}.
|
||||
Its C definition is as follows:
|
||||
|
||||
\begin{tabbing}
|
||||
xxx \= xxxxxxxxxxxxxxxxxxxxxxx \= xxx \kill
|
||||
typedef struct \_EccHeader \\
|
||||
\{\>gint8 cookie[12]; \>{\em /* "*dvdisaster*" */}\\
|
||||
\>gint8 method[4]; \>{\em /* e.g. "RS01" */}\\
|
||||
\>gint8 methodFlags[4]; \>{\em /* 0-2 for free use by the respective methods; 3 see above */}\\
|
||||
\>guint8 mediumFP[16]; \>{\em /* fingerprint of FINGERPRINT SECTOR */}\\
|
||||
\>guint8 mediumSum[16]; \>{\em /* complete md5sum of whole medium */}\\
|
||||
\>guint8 eccSum[16]; \>{\em /* md5sum of ecc code section of .ecc file */}\\
|
||||
\>guint8 sectors[8]; \>{\em /* number of sectors medium is supposed to have w/o ecc*/}\\
|
||||
\>gint32 dataBytes; \>{\em /* data bytes per ecc block */}\\
|
||||
\>gint32 eccBytes; \>{\em /* ecc bytes per ecc block */}\\
|
||||
\>gint32 creatorVersion; \>{\em /* which dvdisaster version created this */}\\
|
||||
\>gint32 neededVersion; \>{\em /* oldest version which can decode this file */}\\
|
||||
\>gint32 fpSector; \>{\em /* sector used to calculate mediumFP */}\\
|
||||
\>guint32 selfCRC; \>{\em /* CRC32 of EccHeader (currently RS02 only) -- since V0.66 --*/}\\
|
||||
\>guint8 crcSum[16]; \>{\em /* md5sum of crc code section of RS02 .iso file */}\\
|
||||
\>gint32 inLast; \>{\em /* bytes contained in last sector */}\\
|
||||
\>guint64 sectorsPerLayer; \>{\em /* layer size for RS03 */}\\
|
||||
\>guint64 sectorsAddedByEcc; \>{\em /* sectors added by RS02 */}\\
|
||||
\>gint8 padding[3960]; \>{\em /* pad to 4096 bytes: room for future expansion */}\\
|
||||
\} EccHeader;
|
||||
\end{tabbing}
|
||||
|
||||
\bigskip
|
||||
|
||||
The ecc header is used in all ecc formats (RS01, RS02, RS03) of dvdisaster,
|
||||
but not all fields apply to all formats. See the following table for the meaning
|
||||
and usage of the fields:
|
||||
\bigskip
|
||||
|
||||
\begin{tabular}{|l|p{10cm}|c|}
|
||||
\hline
|
||||
Field & Usage & Format(s) \\
|
||||
\hline
|
||||
$cookie$ & Magic byte sequence for recognizing the header.\newline
|
||||
Contains the string {\tt *dvdisaster*}. & all \\
|
||||
\hline
|
||||
$method$ & 4 characters describing the format; currently allowed:\newline
|
||||
{\tt RS01}, {\tt RS02}, {\tt RS03}. & all \\
|
||||
\hline
|
||||
$methodFlags$ & 4 bytes for further specification of the format. &\\
|
||||
\cline{2-3}
|
||||
& Byte 0 contains the following flag: &\\
|
||||
& Bit 0 - The {\em mediumSum} field is valid. & RS03 \\
|
||||
& Bit 1 - Set to 1 in ecc files. & RS03 \\
|
||||
\cline{2-3}
|
||||
& Bytes 1-2 are unused in the current methods. & \\
|
||||
\cline{2-3}
|
||||
& Byte 3 contains the following flags:\newline
|
||||
Bit 0 - ecc data was created by a development release.\newline
|
||||
Bit 1 - ecc data was created by a release candidate.\newline
|
||||
If these bits are present, the user will be hinted that he is using
|
||||
ecc data from a non-stable dvdisaster version. & all \\
|
||||
\hline
|
||||
\end{tabular}
|
||||
|
||||
{\footnotesize (continued on next page)}
|
||||
\vfill
|
||||
\newpage
|
||||
|
||||
\begin{tabular}{|l|p{10cm}|c|}
|
||||
\hline
|
||||
$mediumFP$ & The md5sum of the sector specified by the {\em fpSector}.
|
||||
The sector should be chosen to have a huge probability being unique to the medium;
|
||||
currently sector 16 (the ISO filesystem root sector) is used. & all \\
|
||||
\hline
|
||||
$mediumSum$ & The md5sum of the ISO image. For RS01 this is the md5sum of the
|
||||
whole image; for RS02 it is calculated for the original ISO image (without
|
||||
the added RS02 sectors). RS03 uses this value only when bit 1 in
|
||||
{\em methodFlags} is set. & all \\
|
||||
\hline
|
||||
$eccSum$ & On RS01 this is the md5sum of the ecc file excluding the first 4096
|
||||
bytes. For RS02 this is the md5sum calculated over the md5sums of the $nroots$
|
||||
ecc layers. RS03 does not use this value. & RS01, RS02 \\
|
||||
\hline
|
||||
$sectors$ & For error correction files this is the number of sectors in the
|
||||
protected medium. If augmented images are used, this denotes the number of
|
||||
sectors in the original ISO image (without the added RS02/RS03 sectors). & all \\
|
||||
\hline
|
||||
$dataBytes$ & The number of data layers, including the CRC layer. & all \\
|
||||
\hline
|
||||
$eccBytes$ & The number of ecc layers (= number of roots) for the parity.
|
||||
$dataBytes + eccBytes = 255$. & all\\
|
||||
\hline
|
||||
$creatorVersion$ & The dvdisaster version used for creating this ecc data.
|
||||
A decimal value 102345 would mean dvdisaster version 10.23.45. & all \\
|
||||
\hline
|
||||
$neededVersion$ & The minimum dvdisaster version required for
|
||||
processing this ecc data. Version encoding as above. & all \\
|
||||
\hline
|
||||
$fpSector$ & The sector used for calculating $mediumFP$. & all \\
|
||||
\hline
|
||||
$selfCRC$ & A CRC32 checksum of the ecc header itself. Not used
|
||||
header fields are set to zero and the selfCRC field is initialized to the
|
||||
value 0x4c5047 (little endian). & \\
|
||||
\hline
|
||||
$crcSum$ & md5sum of the CRC layer in RS02 encoded images. & RS02 \\
|
||||
\hline
|
||||
$inLast$ & The number of Bytes contained in the last image sector. This allows for
|
||||
encoding of files with arbitrary length, not just ISO images.
|
||||
dvdisaster versions prior to V0.66 do not use this field and always assume it
|
||||
to be 2048 which is the default for iso images. & all \\
|
||||
\hline
|
||||
$sectorsPerLayer$ & The number of sectors per layer. & RS03 \\
|
||||
\hline
|
||||
$sectorsAddedByEcc$ & The total number of sectors (Headers, CRC, ECC) added. & RS02 \\
|
||||
\hline
|
||||
$padding$ & The ecc header is zero padded to a length of 4096 bytes. Future codes
|
||||
may allocate additional space for the zero padding. See the note below for
|
||||
usage of the upper 2048 bytes on RS02/RS03. & all \\
|
||||
\hline
|
||||
Byte 2048-4096 & A copy of the first CRC layer sector. & RS02 \\
|
||||
\hline
|
||||
\end{tabular}
|
||||
373
documentation/codec-specs/layer.eps
Normal file
373
documentation/codec-specs/layer.eps
Normal file
@@ -0,0 +1,373 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: layer.fig
|
||||
%%Creator: fig2dev Version 3.2 Patchlevel 5
|
||||
%%CreationDate: Thu Oct 29 11:27:42 2009
|
||||
%%For: cg@wanderer (Carsten Gnoerlich)
|
||||
%%BoundingBox: 0 0 609 385
|
||||
%Magnification: 1.0000
|
||||
%%EndComments
|
||||
%%BeginProlog
|
||||
/$F2psDict 200 dict def
|
||||
$F2psDict begin
|
||||
$F2psDict /mtrx matrix put
|
||||
/col-1 {0 setgray} bind def
|
||||
/col0 {0.000 0.000 0.000 srgb} bind def
|
||||
/col1 {0.000 0.000 1.000 srgb} bind def
|
||||
/col2 {0.000 1.000 0.000 srgb} bind def
|
||||
/col3 {0.000 1.000 1.000 srgb} bind def
|
||||
/col4 {1.000 0.000 0.000 srgb} bind def
|
||||
/col5 {1.000 0.000 1.000 srgb} bind def
|
||||
/col6 {1.000 1.000 0.000 srgb} bind def
|
||||
/col7 {1.000 1.000 1.000 srgb} bind def
|
||||
/col8 {0.000 0.000 0.560 srgb} bind def
|
||||
/col9 {0.000 0.000 0.690 srgb} bind def
|
||||
/col10 {0.000 0.000 0.820 srgb} bind def
|
||||
/col11 {0.530 0.810 1.000 srgb} bind def
|
||||
/col12 {0.000 0.560 0.000 srgb} bind def
|
||||
/col13 {0.000 0.690 0.000 srgb} bind def
|
||||
/col14 {0.000 0.820 0.000 srgb} bind def
|
||||
/col15 {0.000 0.560 0.560 srgb} bind def
|
||||
/col16 {0.000 0.690 0.690 srgb} bind def
|
||||
/col17 {0.000 0.820 0.820 srgb} bind def
|
||||
/col18 {0.560 0.000 0.000 srgb} bind def
|
||||
/col19 {0.690 0.000 0.000 srgb} bind def
|
||||
/col20 {0.820 0.000 0.000 srgb} bind def
|
||||
/col21 {0.560 0.000 0.560 srgb} bind def
|
||||
/col22 {0.690 0.000 0.690 srgb} bind def
|
||||
/col23 {0.820 0.000 0.820 srgb} bind def
|
||||
/col24 {0.500 0.190 0.000 srgb} bind def
|
||||
/col25 {0.630 0.250 0.000 srgb} bind def
|
||||
/col26 {0.750 0.380 0.000 srgb} bind def
|
||||
/col27 {1.000 0.500 0.500 srgb} bind def
|
||||
/col28 {1.000 0.630 0.630 srgb} bind def
|
||||
/col29 {1.000 0.750 0.750 srgb} bind def
|
||||
/col30 {1.000 0.880 0.880 srgb} bind def
|
||||
/col31 {1.000 0.840 0.000 srgb} bind def
|
||||
|
||||
end
|
||||
|
||||
/cp {closepath} bind def
|
||||
/ef {eofill} bind def
|
||||
/gr {grestore} bind def
|
||||
/gs {gsave} bind def
|
||||
/sa {save} bind def
|
||||
/rs {restore} bind def
|
||||
/l {lineto} bind def
|
||||
/m {moveto} bind def
|
||||
/rm {rmoveto} bind def
|
||||
/n {newpath} bind def
|
||||
/s {stroke} bind def
|
||||
/sh {show} bind def
|
||||
/slc {setlinecap} bind def
|
||||
/slj {setlinejoin} bind def
|
||||
/slw {setlinewidth} bind def
|
||||
/srgb {setrgbcolor} bind def
|
||||
/rot {rotate} bind def
|
||||
/sc {scale} bind def
|
||||
/sd {setdash} bind def
|
||||
/ff {findfont} bind def
|
||||
/sf {setfont} bind def
|
||||
/scf {scalefont} bind def
|
||||
/sw {stringwidth} bind def
|
||||
/tr {translate} bind def
|
||||
/tnt {dup dup currentrgbcolor
|
||||
4 -2 roll dup 1 exch sub 3 -1 roll mul add
|
||||
4 -2 roll dup 1 exch sub 3 -1 roll mul add
|
||||
4 -2 roll dup 1 exch sub 3 -1 roll mul add srgb}
|
||||
bind def
|
||||
/shd {dup dup currentrgbcolor 4 -2 roll mul 4 -2 roll mul
|
||||
4 -2 roll mul srgb} bind def
|
||||
/reencdict 12 dict def /ReEncode { reencdict begin
|
||||
/newcodesandnames exch def /newfontname exch def /basefontname exch def
|
||||
/basefontdict basefontname findfont def /newfont basefontdict maxlength dict def
|
||||
basefontdict { exch dup /FID ne { dup /Encoding eq
|
||||
{ exch dup length array copy newfont 3 1 roll put }
|
||||
{ exch newfont 3 1 roll put } ifelse } { pop pop } ifelse } forall
|
||||
newfont /FontName newfontname put newcodesandnames aload pop
|
||||
128 1 255 { newfont /Encoding get exch /.notdef put } for
|
||||
newcodesandnames length 2 idiv { newfont /Encoding get 3 1 roll put } repeat
|
||||
newfontname newfont definefont pop end } def
|
||||
/isovec [
|
||||
8#055 /minus 8#200 /grave 8#201 /acute 8#202 /circumflex 8#203 /tilde
|
||||
8#204 /macron 8#205 /breve 8#206 /dotaccent 8#207 /dieresis
|
||||
8#210 /ring 8#211 /cedilla 8#212 /hungarumlaut 8#213 /ogonek 8#214 /caron
|
||||
8#220 /dotlessi 8#230 /oe 8#231 /OE
|
||||
8#240 /space 8#241 /exclamdown 8#242 /cent 8#243 /sterling
|
||||
8#244 /currency 8#245 /yen 8#246 /brokenbar 8#247 /section 8#250 /dieresis
|
||||
8#251 /copyright 8#252 /ordfeminine 8#253 /guillemotleft 8#254 /logicalnot
|
||||
8#255 /hyphen 8#256 /registered 8#257 /macron 8#260 /degree 8#261 /plusminus
|
||||
8#262 /twosuperior 8#263 /threesuperior 8#264 /acute 8#265 /mu 8#266 /paragraph
|
||||
8#267 /periodcentered 8#270 /cedilla 8#271 /onesuperior 8#272 /ordmasculine
|
||||
8#273 /guillemotright 8#274 /onequarter 8#275 /onehalf
|
||||
8#276 /threequarters 8#277 /questiondown 8#300 /Agrave 8#301 /Aacute
|
||||
8#302 /Acircumflex 8#303 /Atilde 8#304 /Adieresis 8#305 /Aring
|
||||
8#306 /AE 8#307 /Ccedilla 8#310 /Egrave 8#311 /Eacute
|
||||
8#312 /Ecircumflex 8#313 /Edieresis 8#314 /Igrave 8#315 /Iacute
|
||||
8#316 /Icircumflex 8#317 /Idieresis 8#320 /Eth 8#321 /Ntilde 8#322 /Ograve
|
||||
8#323 /Oacute 8#324 /Ocircumflex 8#325 /Otilde 8#326 /Odieresis 8#327 /multiply
|
||||
8#330 /Oslash 8#331 /Ugrave 8#332 /Uacute 8#333 /Ucircumflex
|
||||
8#334 /Udieresis 8#335 /Yacute 8#336 /Thorn 8#337 /germandbls 8#340 /agrave
|
||||
8#341 /aacute 8#342 /acircumflex 8#343 /atilde 8#344 /adieresis 8#345 /aring
|
||||
8#346 /ae 8#347 /ccedilla 8#350 /egrave 8#351 /eacute
|
||||
8#352 /ecircumflex 8#353 /edieresis 8#354 /igrave 8#355 /iacute
|
||||
8#356 /icircumflex 8#357 /idieresis 8#360 /eth 8#361 /ntilde 8#362 /ograve
|
||||
8#363 /oacute 8#364 /ocircumflex 8#365 /otilde 8#366 /odieresis 8#367 /divide
|
||||
8#370 /oslash 8#371 /ugrave 8#372 /uacute 8#373 /ucircumflex
|
||||
8#374 /udieresis 8#375 /yacute 8#376 /thorn 8#377 /ydieresis] def
|
||||
/Helvetica-Bold /Helvetica-Bold-iso isovec ReEncode
|
||||
/$F2psBegin {$F2psDict begin /$F2psEnteredState save def} def
|
||||
/$F2psEnd {$F2psEnteredState restore end} def
|
||||
|
||||
/pageheader {
|
||||
save
|
||||
newpath 0 385 moveto 0 0 lineto 609 0 lineto 609 385 lineto closepath clip newpath
|
||||
-87.1 383.6 translate
|
||||
1 -1 scale
|
||||
$F2psBegin
|
||||
10 setmiterlimit
|
||||
0 slj 0 slc
|
||||
0.06299 0.06299 sc
|
||||
} bind def
|
||||
/pagefooter {
|
||||
$F2psEnd
|
||||
restore
|
||||
} bind def
|
||||
%%EndProlog
|
||||
pageheader
|
||||
%
|
||||
% Fig objects follow
|
||||
%
|
||||
%
|
||||
% here starts figure with depth 51
|
||||
% Polyline
|
||||
0 slj
|
||||
0 slc
|
||||
7.500 slw
|
||||
n 8295 0 m 8190 0 8190 5610 105 arcto 4 {pop} repeat
|
||||
8190 5715 9030 5715 105 arcto 4 {pop} repeat
|
||||
9135 5715 9135 105 105 arcto 4 {pop} repeat
|
||||
9135 0 8295 0 105 arcto 4 {pop} repeat
|
||||
cp gs col7 0.80 shd ef gr gs col7 s gr
|
||||
% Polyline
|
||||
n 1395 3375 m 11025 3375 l 11025 4050 l 1395 4050 l
|
||||
cp gs col0 s gr
|
||||
% Polyline
|
||||
n 1395 2475 m 11025 2475 l 11025 3150 l 1395 3150 l
|
||||
cp gs col0 s gr
|
||||
% Polyline
|
||||
n 9045 225 m
|
||||
9045 900 l gs col0 s gr
|
||||
% Polyline
|
||||
n 9045 4725 m
|
||||
9045 5400 l gs col0 s gr
|
||||
% Polyline
|
||||
n 9045 3375 m
|
||||
9045 4050 l gs col0 s gr
|
||||
% Polyline
|
||||
n 9045 2475 m
|
||||
9045 3150 l gs col0 s gr
|
||||
% Polyline
|
||||
n 9045 1575 m
|
||||
9045 2250 l gs col0 s gr
|
||||
% Polyline
|
||||
n 1395 225 m 11025 225 l 11025 900 l 1395 900 l
|
||||
cp gs col0 s gr
|
||||
% Polyline
|
||||
n 9765 225 m
|
||||
9765 900 l gs col0 s gr
|
||||
% Polyline
|
||||
n 9765 4725 m
|
||||
9765 5400 l gs col0 s gr
|
||||
% Polyline
|
||||
n 9765 3375 m
|
||||
9765 4050 l gs col0 s gr
|
||||
% Polyline
|
||||
n 9765 2475 m
|
||||
9765 3150 l gs col0 s gr
|
||||
% Polyline
|
||||
n 8280 225 m
|
||||
8280 900 l gs col0 s gr
|
||||
% Polyline
|
||||
n 8280 4725 m
|
||||
8280 5400 l gs col0 s gr
|
||||
% Polyline
|
||||
n 8280 3375 m
|
||||
8280 4050 l gs col0 s gr
|
||||
% Polyline
|
||||
n 8280 2475 m
|
||||
8280 3150 l gs col0 s gr
|
||||
% Polyline
|
||||
n 8280 1575 m
|
||||
8280 2250 l gs col0 s gr
|
||||
% Polyline
|
||||
n 1395 4725 m 11025 4725 l 11025 5400 l 1395 5400 l
|
||||
cp gs col0 s gr
|
||||
% Polyline
|
||||
n 7515 225 m
|
||||
7515 900 l gs col0 s gr
|
||||
% Polyline
|
||||
n 7515 4725 m
|
||||
7515 5400 l gs col0 s gr
|
||||
% Polyline
|
||||
n 7515 3375 m
|
||||
7515 4050 l gs col0 s gr
|
||||
% Polyline
|
||||
n 7515 2475 m
|
||||
7515 3150 l gs col0 s gr
|
||||
% Polyline
|
||||
n 7515 1575 m
|
||||
7515 2250 l gs col0 s gr
|
||||
% Polyline
|
||||
n 1395 1575 m 9045 1575 l 9045 2250 l 1395 2250 l
|
||||
cp gs col0 s gr
|
||||
% Polyline
|
||||
[15 45] 45 sd
|
||||
n 9090 1575 m 11025 1575 l 11025 2250 l 9090 2250 l
|
||||
cp gs col0 s gr [] 0 sd
|
||||
% Polyline
|
||||
[15 45] 45 sd
|
||||
n 9765 1575 m
|
||||
9765 2250 l gs col0 s gr [] 0 sd
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
1575 675 m
|
||||
gs 1 -1 sc (Data 1) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
8460 675 m
|
||||
gs 1 -1 sc (d) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
8640 765 m
|
||||
gs 1 -1 sc (i, 1) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
1845 1350 m
|
||||
gs 1 -1 sc (...) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
1575 5175 m
|
||||
gs 1 -1 sc (ECC m) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
8460 5175 m
|
||||
gs 1 -1 sc (e) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
8640 5265 m
|
||||
gs 1 -1 sc (i, m) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
1575 3825 m
|
||||
gs 1 -1 sc (ECC 1) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
8460 3825 m
|
||||
gs 1 -1 sc (e) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
8640 3915 m
|
||||
gs 1 -1 sc (i, 1) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
1575 2925 m
|
||||
gs 1 -1 sc (CRC) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
8460 2925 m
|
||||
gs 1 -1 sc (c) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
8640 3015 m
|
||||
gs 1 -1 sc (i) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
1575 2025 m
|
||||
gs 1 -1 sc (Data n) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
8460 2025 m
|
||||
gs 1 -1 sc (d) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
8640 2115 m
|
||||
gs 1 -1 sc (i, n) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
1845 4500 m
|
||||
gs 1 -1 sc (...) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
9090 675 m
|
||||
gs 1 -1 sc (d) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
9090 5175 m
|
||||
gs 1 -1 sc (e) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
9090 3825 m
|
||||
gs 1 -1 sc (e) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
9090 2925 m
|
||||
gs 1 -1 sc (c) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
9270 765 m
|
||||
gs 1 -1 sc (i+1, 1) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
9270 5265 m
|
||||
gs 1 -1 sc (i+1, m) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
9270 3915 m
|
||||
gs 1 -1 sc (i+1, 1) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
9270 3015 m
|
||||
gs 1 -1 sc (i+1) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
9945 675 m
|
||||
gs 1 -1 sc (...) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
9945 5175 m
|
||||
gs 1 -1 sc (...) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
9945 3825 m
|
||||
gs 1 -1 sc (...) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
9945 2925 m
|
||||
gs 1 -1 sc (...) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
7560 675 m
|
||||
gs 1 -1 sc (d) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
7155 675 m
|
||||
gs 1 -1 sc (...) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
7560 5175 m
|
||||
gs 1 -1 sc (e) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
7155 5175 m
|
||||
gs 1 -1 sc (...) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
7560 3825 m
|
||||
gs 1 -1 sc (e) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
7155 3825 m
|
||||
gs 1 -1 sc (...) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
7560 2925 m
|
||||
gs 1 -1 sc (c) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
7740 3015 m
|
||||
gs 1 -1 sc (i-1) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
7155 2925 m
|
||||
gs 1 -1 sc (...) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
7560 2025 m
|
||||
gs 1 -1 sc (d) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
7155 2025 m
|
||||
gs 1 -1 sc (...) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
7785 5265 m
|
||||
gs 1 -1 sc (i-1, m) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
7785 3915 m
|
||||
gs 1 -1 sc (i-1, 1) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
7785 2115 m
|
||||
gs 1 -1 sc (i-1, n) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
7785 765 m
|
||||
gs 1 -1 sc (i-1, 1) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
7785 6075 m
|
||||
gs 1 -1 sc (ECC block i) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
9495 1980 m
|
||||
gs 1 -1 sc (padding) col0 sh gr
|
||||
% here ends figure;
|
||||
pagefooter
|
||||
showpage
|
||||
%%Trailer
|
||||
%EOF
|
||||
109
documentation/codec-specs/layer.fig
Normal file
109
documentation/codec-specs/layer.fig
Normal file
@@ -0,0 +1,109 @@
|
||||
#FIG 3.2 Produced by xfig version 3.2.5
|
||||
Landscape
|
||||
Center
|
||||
Metric
|
||||
A4
|
||||
100.00
|
||||
Single
|
||||
-2
|
||||
1200 2
|
||||
2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
|
||||
1395 3375 11025 3375 11025 4050 1395 4050 1395 3375
|
||||
2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
|
||||
1395 2475 11025 2475 11025 3150 1395 3150 1395 2475
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
9045 225 9045 900
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
9045 4725 9045 5400
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
9045 3375 9045 4050
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
9045 2475 9045 3150
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
9045 1575 9045 2250
|
||||
2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
|
||||
1395 225 11025 225 11025 900 1395 900 1395 225
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
9765 225 9765 900
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
9765 4725 9765 5400
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
9765 3375 9765 4050
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
9765 2475 9765 3150
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
8280 225 8280 900
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
8280 4725 8280 5400
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
8280 3375 8280 4050
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
8280 2475 8280 3150
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
8280 1575 8280 2250
|
||||
2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
|
||||
1395 4725 11025 4725 11025 5400 1395 5400 1395 4725
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
7515 225 7515 900
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
7515 4725 7515 5400
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
7515 3375 7515 4050
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
7515 2475 7515 3150
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
7515 1575 7515 2250
|
||||
2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
|
||||
1395 1575 9045 1575 9045 2250 1395 2250 1395 1575
|
||||
2 2 2 1 0 7 50 -1 -1 3.000 0 0 -1 0 0 5
|
||||
9090 1575 11025 1575 11025 2250 9090 2250 9090 1575
|
||||
2 4 0 1 7 7 51 -1 16 0.000 0 0 7 0 0 5
|
||||
9135 5715 8190 5715 8190 0 9135 0 9135 5715
|
||||
2 1 2 1 0 7 50 -1 -1 3.000 0 0 -1 0 0 2
|
||||
9765 1575 9765 2250
|
||||
4 0 0 50 -1 18 20 0.0000 4 240 975 1575 675 Data 1\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 210 180 8460 675 d\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 285 8640 765 i, 1\001
|
||||
4 0 0 50 -1 18 20 0.0000 4 45 270 1845 1350 ...\001
|
||||
4 0 0 50 -1 18 20 0.0000 4 240 1095 1575 5175 ECC m\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 150 165 8460 5175 e\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 360 8640 5265 i, m\001
|
||||
4 0 0 50 -1 18 20 0.0000 4 240 975 1575 3825 ECC 1\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 150 165 8460 3825 e\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 285 8640 3915 i, 1\001
|
||||
4 0 0 50 -1 18 20 0.0000 4 240 720 1575 2925 CRC\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 150 165 8460 2925 c\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 150 60 8640 3015 i\001
|
||||
4 0 0 50 -1 18 20 0.0000 4 240 1005 1575 2025 Data n\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 210 180 8460 2025 d\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 300 8640 2115 i, n\001
|
||||
4 0 0 50 -1 18 20 0.0000 4 45 270 1845 4500 ...\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 210 180 9090 675 d\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 150 165 9090 5175 e\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 150 165 9090 3825 e\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 150 165 9090 2925 c\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 510 9270 765 i+1, 1\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 585 9270 5265 i+1, m\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 510 9270 3915 i+1, 1\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 150 285 9270 3015 i+1\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 45 225 9945 675 ...\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 45 225 9945 5175 ...\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 45 225 9945 3825 ...\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 45 225 9945 2925 ...\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 210 180 7560 675 d\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 45 225 7155 675 ...\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 150 165 7560 5175 e\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 45 225 7155 5175 ...\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 150 165 7560 3825 e\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 45 225 7155 3825 ...\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 150 165 7560 2925 c\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 150 225 7740 3015 i-1\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 45 225 7155 2925 ...\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 210 180 7560 2025 d\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 45 225 7155 2025 ...\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 525 7785 5265 i-1, m\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 450 7785 3915 i-1, 1\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 465 7785 2115 i-1, n\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 450 7785 765 i-1, 1\001
|
||||
4 0 0 50 -1 18 20 0.0000 4 240 1845 7785 6075 ECC block i\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 270 1125 9495 1980 padding\001
|
||||
126
documentation/codec-specs/rs-params.tex
Normal file
126
documentation/codec-specs/rs-params.tex
Normal file
@@ -0,0 +1,126 @@
|
||||
\newpage
|
||||
\section{RS(255,k) encoding parameters and examples}
|
||||
\label{rs}
|
||||
|
||||
dvdisaster uses a standard, non-shortened Reed-Solomon code
|
||||
with the following commonly used parameters: \smallskip
|
||||
|
||||
The Galois field tables are generated by the field
|
||||
generator polynomial 0x187 ($1 + X + X^2 + X^7 + X^8$).
|
||||
The Reed-Solomon code generator polynomial is created using element
|
||||
0x70 as first consecutive root and the primitive element 0x0b. \medskip
|
||||
|
||||
As a starting point for testing your own implementation, some
|
||||
values and tables are shown below. The logarithm
|
||||
and anti-logarithm tables in the Galois field are shown in tables
|
||||
\ref{log-table} and \ref{anti-log-table}. Please note that there is no need for hard-coding
|
||||
these tables as their contents can be enumerated by using
|
||||
the field generator polynomial. \medskip
|
||||
|
||||
When encoding for 32 roots, the RS code generator polynomial will be:
|
||||
|
||||
{\small 01 5b 7f 56 10 1e 0d eb 61 a5 08 2a 36 56 ab 20 71 20 ab 56 36 2a 08 a5 61 eb 0d 1e 10 56 7f 5b 01}
|
||||
|
||||
or in index form:
|
||||
|
||||
{\small 00 f9 3b 42 04 2b 7e fb 61 1e 03 d5 32 42 aa 05 18 05 aa 42 32 d5 03 1e 61 fb 7e 2b 04 42 3b f9 00} \medskip
|
||||
|
||||
Using the above generator polynomial for encoding the data byte
|
||||
sequence $\{0,1,\ldots,222\}$ produces the following parity bytes:
|
||||
|
||||
{\small 2f bd 4f b4 74 84 94 b9 ac d5 54 62 72 12 ee b3 eb ed 41 19 1d e1 d3 63 20 ea 49 29 0b 25 ab cf}
|
||||
|
||||
\newpage
|
||||
|
||||
\begin{table}
|
||||
\begin{center}
|
||||
\begin{tabular}{|l||c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|}
|
||||
\hline
|
||||
& 00 & 01 & 02 & 03 & 04 & 05 & 06 & 07 & 08 & 09 & 0a & 0b & 0c & 0d & 0e & 0f \\
|
||||
\hline
|
||||
\hline
|
||||
00 & ff & 00 & 01 & 63 & 02 & c6 & 64 & 6a & 03 & cd & c7 & bc & 65 & 7e & 6b & 2a \\
|
||||
\hline
|
||||
10 & 04 & 8d & ce & 4e & c8 & d4 & bd & e1 & 66 & dd & 7f & 31 & 6c & 20 & 2b & f3 \\
|
||||
\hline
|
||||
20 & 05 & 57 & 8e & e8 & cf & ac & 4f & 83 & c9 & d9 & d5 & 41 & be & 94 & e2 & b4 \\
|
||||
\hline
|
||||
30 & 67 & 27 & de & f0 & 80 & b1 & 32 & 35 & 6d & 45 & 21 & 12 & 2c & 0d & f4 & 38 \\
|
||||
\hline
|
||||
40 & 06 & 9b & 58 & 1a & 8f & 79 & e9 & 70 & d0 & c2 & ad & a8 & 50 & 75 & 84 & 48 \\
|
||||
\hline
|
||||
50 & ca & fc & da & 8a & d6 & 54 & 42 & 24 & bf & 98 & 95 & f9 & e3 & 5e & b5 & 15 \\
|
||||
\hline
|
||||
60 & 68 & 61 & 28 & ba & df & 4c & f1 & 2f & 81 & e6 & b2 & 3f & 33 & ee & 36 & 10 \\
|
||||
\hline
|
||||
70 & 6e & 18 & 46 & a6 & 22 & 88 & 13 & f7 & 2d & b8 & 0e & 3d & f5 & a4 & 39 & 3b \\
|
||||
\hline
|
||||
80 & 07 & 9e & 9c & 9d & 59 & 9f & 1b & 08 & 90 & 09 & 7a & 1c & ea & a0 & 71 & 5a \\
|
||||
\hline
|
||||
90 & d1 & 1d & c3 & 7b & ae & 0a & a9 & 91 & 51 & 5b & 76 & 72 & 85 & a1 & 49 & eb \\
|
||||
\hline
|
||||
a0 & cb & 7c & fd & c4 & db & 1e & 8b & d2 & d7 & 92 & 55 & aa & 43 & 0b & 25 & af \\
|
||||
\hline
|
||||
b0 & c0 & 73 & 99 & 77 & 96 & 5c & fa & 52 & e4 & ec & 5f & 4a & b6 & a2 & 16 & 86 \\
|
||||
\hline
|
||||
c0 & 69 & c5 & 62 & fe & 29 & 7d & bb & cc & e0 & d3 & 4d & 8c & f2 & 1f & 30 & dc \\
|
||||
\hline
|
||||
d0 & 82 & ab & e7 & 56 & b3 & 93 & 40 & d8 & 34 & b0 & ef & 26 & 37 & 0c & 11 & 44 \\
|
||||
\hline
|
||||
e0 & 6f & 78 & 19 & 9a & 47 & 74 & a7 & c1 & 23 & 53 & 89 & fb & 14 & 5d & f8 & 97 \\
|
||||
\hline
|
||||
f0 & 2e & 4b & b9 & 60 & 0f & ed & 3e & e5 & f6 & 87 & a5 & 17 & 3a & a3 & 3c & b7 \\
|
||||
\hline
|
||||
\end{tabular}
|
||||
\end{center}
|
||||
\caption{Galois field logarithm table}
|
||||
\label{log-table}
|
||||
\end{table}
|
||||
|
||||
\bigskip
|
||||
|
||||
\begin{table}
|
||||
\begin{center}
|
||||
\begin{tabular}{|l||c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|}
|
||||
\hline
|
||||
& 00 & 01 & 02 & 03 & 04 & 05 & 06 & 07 & 08 & 09 & 0a & 0b & 0c & 0d & 0e & 0f \\
|
||||
\hline
|
||||
\hline
|
||||
00 & 01 & 02 & 04 & 08 & 10 & 20 & 40 & 80 & 87 & 89 & 95 & ad & dd & 3d & 7a & f4 \\
|
||||
\hline
|
||||
10 & 6f & de & 3b & 76 & ec & 5f & be & fb & 71 & e2 & 43 & 86 & 8b & 91 & a5 & cd \\
|
||||
\hline
|
||||
20 & 1d & 3a & 74 & e8 & 57 & ae & db & 31 & 62 & c4 & 0f & 1e & 3c & 78 & f0 & 67 \\
|
||||
\hline
|
||||
30 & ce & 1b & 36 & 6c & d8 & 37 & 6e & dc & 3f & 7e & fc & 7f & fe & 7b & f6 & 6b \\
|
||||
\hline
|
||||
40 & d6 & 2b & 56 & ac & df & 39 & 72 & e4 & 4f & 9e & bb & f1 & 65 & ca & 13 & 26 \\
|
||||
\hline
|
||||
50 & 4c & 98 & b7 & e9 & 55 & aa & d3 & 21 & 42 & 84 & 8f & 99 & b5 & ed & 5d & ba \\
|
||||
\hline
|
||||
60 & f3 & 61 & c2 & 03 & 06 & 0c & 18 & 30 & 60 & c0 & 07 & 0e & 1c & 38 & 70 & e0 \\
|
||||
\hline
|
||||
70 & 47 & 8e & 9b & b1 & e5 & 4d & 9a & b3 & e1 & 45 & 8a & 93 & a1 & c5 & 0d & 1a \\
|
||||
\hline
|
||||
80 & 34 & 68 & d0 & 27 & 4e & 9c & bf & f9 & 75 & ea & 53 & a6 & cb & 11 & 22 & 44 \\
|
||||
\hline
|
||||
90 & 88 & 97 & a9 & d5 & 2d & 5a & b4 & ef & 59 & b2 & e3 & 41 & 82 & 83 & 81 & 85 \\
|
||||
\hline
|
||||
a0 & 8d & 9d & bd & fd & 7d & fa & 73 & e6 & 4b & 96 & ab & d1 & 25 & 4a & 94 & af \\
|
||||
\hline
|
||||
b0 & d9 & 35 & 6a & d4 & 2f & 5e & bc & ff & 79 & f2 & 63 & c6 & 0b & 16 & 2c & 58 \\
|
||||
\hline
|
||||
c0 & b0 & e7 & 49 & 92 & a3 & c1 & 05 & 0a & 14 & 28 & 50 & a0 & c7 & 09 & 12 & 24 \\
|
||||
\hline
|
||||
d0 & 48 & 90 & a7 & c9 & 15 & 2a & 54 & a8 & d7 & 29 & 52 & a4 & cf & 19 & 32 & 64 \\
|
||||
\hline
|
||||
e0 & c8 & 17 & 2e & 5c & b8 & f7 & 69 & d2 & 23 & 46 & 8c & 9f & b9 & f5 & 6d & da \\
|
||||
\hline
|
||||
f0 & 33 & 66 & cc & 1f & 3e & 7c & f8 & 77 & ee & 5b & b6 & eb & 51 & a2 & c3 & 00 \\
|
||||
\hline
|
||||
\end{tabular}
|
||||
\end{center}
|
||||
\caption{Galois field anti-logarithm table}
|
||||
\label{anti-log-table}
|
||||
\label{LastPage}
|
||||
\end{table}
|
||||
353
documentation/codec-specs/rs01-layout.eps
Normal file
353
documentation/codec-specs/rs01-layout.eps
Normal file
@@ -0,0 +1,353 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: rs01-layout.fig
|
||||
%%Creator: fig2dev Version 3.2 Patchlevel 5c
|
||||
%%CreationDate: Sat May 12 18:48:22 2012
|
||||
%%BoundingBox: 0 0 714 413
|
||||
%Magnification: 1.0000
|
||||
%%EndComments
|
||||
%%BeginProlog
|
||||
/$F2psDict 200 dict def
|
||||
$F2psDict begin
|
||||
$F2psDict /mtrx matrix put
|
||||
/col-1 {0 setgray} bind def
|
||||
/col0 {0.000 0.000 0.000 srgb} bind def
|
||||
/col1 {0.000 0.000 1.000 srgb} bind def
|
||||
/col2 {0.000 1.000 0.000 srgb} bind def
|
||||
/col3 {0.000 1.000 1.000 srgb} bind def
|
||||
/col4 {1.000 0.000 0.000 srgb} bind def
|
||||
/col5 {1.000 0.000 1.000 srgb} bind def
|
||||
/col6 {1.000 1.000 0.000 srgb} bind def
|
||||
/col7 {1.000 1.000 1.000 srgb} bind def
|
||||
/col8 {0.000 0.000 0.560 srgb} bind def
|
||||
/col9 {0.000 0.000 0.690 srgb} bind def
|
||||
/col10 {0.000 0.000 0.820 srgb} bind def
|
||||
/col11 {0.530 0.810 1.000 srgb} bind def
|
||||
/col12 {0.000 0.560 0.000 srgb} bind def
|
||||
/col13 {0.000 0.690 0.000 srgb} bind def
|
||||
/col14 {0.000 0.820 0.000 srgb} bind def
|
||||
/col15 {0.000 0.560 0.560 srgb} bind def
|
||||
/col16 {0.000 0.690 0.690 srgb} bind def
|
||||
/col17 {0.000 0.820 0.820 srgb} bind def
|
||||
/col18 {0.560 0.000 0.000 srgb} bind def
|
||||
/col19 {0.690 0.000 0.000 srgb} bind def
|
||||
/col20 {0.820 0.000 0.000 srgb} bind def
|
||||
/col21 {0.560 0.000 0.560 srgb} bind def
|
||||
/col22 {0.690 0.000 0.690 srgb} bind def
|
||||
/col23 {0.820 0.000 0.820 srgb} bind def
|
||||
/col24 {0.500 0.190 0.000 srgb} bind def
|
||||
/col25 {0.630 0.250 0.000 srgb} bind def
|
||||
/col26 {0.750 0.380 0.000 srgb} bind def
|
||||
/col27 {1.000 0.500 0.500 srgb} bind def
|
||||
/col28 {1.000 0.630 0.630 srgb} bind def
|
||||
/col29 {1.000 0.750 0.750 srgb} bind def
|
||||
/col30 {1.000 0.880 0.880 srgb} bind def
|
||||
/col31 {1.000 0.840 0.000 srgb} bind def
|
||||
|
||||
end
|
||||
|
||||
/cp {closepath} bind def
|
||||
/ef {eofill} bind def
|
||||
/gr {grestore} bind def
|
||||
/gs {gsave} bind def
|
||||
/sa {save} bind def
|
||||
/rs {restore} bind def
|
||||
/l {lineto} bind def
|
||||
/m {moveto} bind def
|
||||
/rm {rmoveto} bind def
|
||||
/n {newpath} bind def
|
||||
/s {stroke} bind def
|
||||
/sh {show} bind def
|
||||
/slc {setlinecap} bind def
|
||||
/slj {setlinejoin} bind def
|
||||
/slw {setlinewidth} bind def
|
||||
/srgb {setrgbcolor} bind def
|
||||
/rot {rotate} bind def
|
||||
/sc {scale} bind def
|
||||
/sd {setdash} bind def
|
||||
/ff {findfont} bind def
|
||||
/sf {setfont} bind def
|
||||
/scf {scalefont} bind def
|
||||
/sw {stringwidth} bind def
|
||||
/tr {translate} bind def
|
||||
/tnt {dup dup currentrgbcolor
|
||||
4 -2 roll dup 1 exch sub 3 -1 roll mul add
|
||||
4 -2 roll dup 1 exch sub 3 -1 roll mul add
|
||||
4 -2 roll dup 1 exch sub 3 -1 roll mul add srgb}
|
||||
bind def
|
||||
/shd {dup dup currentrgbcolor 4 -2 roll mul 4 -2 roll mul
|
||||
4 -2 roll mul srgb} bind def
|
||||
/$F2psBegin {$F2psDict begin /$F2psEnteredState save def} def
|
||||
/$F2psEnd {$F2psEnteredState restore end} def
|
||||
|
||||
/pageheader {
|
||||
save
|
||||
newpath 0 413 moveto 0 0 lineto 714 0 lineto 714 413 lineto closepath clip newpath
|
||||
-83.0 393.3 translate
|
||||
1 -1 scale
|
||||
$F2psBegin
|
||||
10 setmiterlimit
|
||||
0 slj 0 slc
|
||||
0.06299 0.06299 sc
|
||||
} bind def
|
||||
/pagefooter {
|
||||
$F2psEnd
|
||||
restore
|
||||
} bind def
|
||||
%%EndProlog
|
||||
pageheader
|
||||
%
|
||||
% Fig objects follow
|
||||
%
|
||||
%
|
||||
% here starts figure with depth 51
|
||||
% Polyline
|
||||
0 slj
|
||||
0 slc
|
||||
7.500 slw
|
||||
n 2790 90 m 2790 3960 l 6480 4860 l 6480 5805 l 8730 5805 l 8730 4725 l
|
||||
3510 3645 l 3510 90 l
|
||||
2790 90 l cp gs col7 0.70 shd ef gr gs col0 s gr
|
||||
% Polyline
|
||||
n 3510 1125 m
|
||||
3510 1800 l gs col0 s gr
|
||||
% Polyline
|
||||
n 4230 1125 m
|
||||
4230 1800 l gs col0 s gr
|
||||
% Polyline
|
||||
n 7650 1125 m
|
||||
7650 1800 l gs col0 s gr
|
||||
% Polyline
|
||||
n 6930 1080 m
|
||||
6930 1755 l gs col0 s gr
|
||||
% Polyline
|
||||
n 2790 1125 m 11025 1125 l 11025 1800 l 2790 1800 l
|
||||
cp gs col0 s gr
|
||||
% Polyline
|
||||
n 10260 1125 m
|
||||
10260 1800 l gs col0 s gr
|
||||
% Polyline
|
||||
n 3510 2835 m
|
||||
3510 3510 l gs col0 s gr
|
||||
% Polyline
|
||||
n 7875 2835 m
|
||||
7875 3510 l gs col0 s gr
|
||||
% Polyline
|
||||
[15 45] 45 sd
|
||||
n 8685 2790 m 10980 2790 l 10980 3510 l 8685 3510 l
|
||||
cp gs col0 s gr [] 0 sd
|
||||
% Polyline
|
||||
n 3510 225 m
|
||||
3510 900 l gs col0 s gr
|
||||
% Polyline
|
||||
n 4230 225 m
|
||||
4230 900 l gs col0 s gr
|
||||
% Polyline
|
||||
n 7650 225 m
|
||||
7650 900 l gs col0 s gr
|
||||
% Polyline
|
||||
n 2790 225 m 11025 225 l 11025 900 l 2790 900 l
|
||||
cp gs col0 s gr
|
||||
% Polyline
|
||||
n 10260 225 m
|
||||
10260 900 l gs col0 s gr
|
||||
% Polyline
|
||||
n 6930 225 m
|
||||
6930 900 l gs col0 s gr
|
||||
% Polyline
|
||||
n 4230 4950 m
|
||||
4230 5625 l gs col0 s gr
|
||||
% Polyline
|
||||
n 5760 4950 m
|
||||
5760 5625 l gs col0 s gr
|
||||
% Polyline
|
||||
n 4950 4950 m
|
||||
4950 5625 l gs col0 s gr
|
||||
% Polyline
|
||||
n 6480 4950 m
|
||||
6480 5625 l gs col0 s gr
|
||||
% Polyline
|
||||
n 7200 4950 m
|
||||
7200 5625 l gs col0 s gr
|
||||
% Polyline
|
||||
n 8010 4950 m
|
||||
8010 5625 l gs col0 s gr
|
||||
% Polyline
|
||||
n 9450 4950 m
|
||||
9450 5625 l gs col0 s gr
|
||||
% Polyline
|
||||
30.000 slw
|
||||
[120] 0 sd
|
||||
n 1455 4500 m 1350 4500 1350 6105 105 arcto 4 {pop} repeat
|
||||
1350 6210 11865 6210 105 arcto 4 {pop} repeat
|
||||
11970 6210 11970 4605 105 arcto 4 {pop} repeat
|
||||
11970 4500 1455 4500 105 arcto 4 {pop} repeat
|
||||
cp gs col0 s gr [] 0 sd
|
||||
% Polyline
|
||||
[90] 0 sd
|
||||
n 1455 -270 m 1350 -270 1350 4125 105 arcto 4 {pop} repeat
|
||||
1350 4230 11865 4230 105 arcto 4 {pop} repeat
|
||||
11970 4230 11970 -165 105 arcto 4 {pop} repeat
|
||||
11970 -270 1455 -270 105 arcto 4 {pop} repeat
|
||||
cp gs col0 s gr [] 0 sd
|
||||
% Polyline
|
||||
7.500 slw
|
||||
n 8730 4950 m
|
||||
8730 5625 l gs col0 s gr
|
||||
% Polyline
|
||||
n 2790 4950 m 11025 4950 l 11025 5625 l 2790 5625 l
|
||||
cp gs col0 s gr
|
||||
% Polyline
|
||||
n 4230 2835 m
|
||||
4230 3510 l gs col0 s gr
|
||||
% Polyline
|
||||
n 2790 2835 m 8685 2835 l 8685 3510 l 2790 3510 l
|
||||
cp gs col0 s gr
|
||||
/Helvetica-Bold ff 285.75 scf sf
|
||||
7065 675 m
|
||||
gs 1 -1 sc (d) col0 sh gr
|
||||
/Helvetica-Bold ff 190.50 scf sf
|
||||
7245 765 m
|
||||
gs 1 -1 sc (i, 1) col0 sh gr
|
||||
/Helvetica ff 222.25 scf sf
|
||||
2880 5220 m
|
||||
gs 1 -1 sc (Ecc Header) col0 sh gr
|
||||
/Helvetica ff 206.38 scf sf
|
||||
2880 5460 m
|
||||
gs 1 -1 sc (\(4096 bytes\)) col0 sh gr
|
||||
/Helvetica-Bold ff 190.50 scf sf
|
||||
3825 3375 m
|
||||
gs 1 -1 sc (2, n) col0 sh gr
|
||||
/Helvetica-Bold ff 285.75 scf sf
|
||||
3645 3285 m
|
||||
gs 1 -1 sc (d) col0 sh gr
|
||||
/Helvetica-Bold ff 190.50 scf sf
|
||||
4620 5460 m
|
||||
gs 1 -1 sc (1) col0 sh gr
|
||||
/Helvetica-Bold ff 285.75 scf sf
|
||||
4440 5370 m
|
||||
gs 1 -1 sc (c) col0 sh gr
|
||||
/Helvetica-Bold ff 190.50 scf sf
|
||||
6165 5460 m
|
||||
gs 1 -1 sc (s) col0 sh gr
|
||||
/Helvetica-Bold ff 285.75 scf sf
|
||||
5985 5370 m
|
||||
gs 1 -1 sc (c) col0 sh gr
|
||||
/Helvetica-Bold ff 190.50 scf sf
|
||||
6795 5490 m
|
||||
gs 1 -1 sc (1, 1) col0 sh gr
|
||||
/Helvetica-Bold ff 285.75 scf sf
|
||||
6615 5400 m
|
||||
gs 1 -1 sc (e) col0 sh gr
|
||||
/Helvetica-Bold ff 190.50 scf sf
|
||||
8325 5505 m
|
||||
gs 1 -1 sc (1, k) col0 sh gr
|
||||
/Helvetica-Bold ff 285.75 scf sf
|
||||
8145 5415 m
|
||||
gs 1 -1 sc (e) col0 sh gr
|
||||
/Helvetica-Bold ff 190.50 scf sf
|
||||
9000 5505 m
|
||||
gs 1 -1 sc (2, 1) col0 sh gr
|
||||
/Helvetica-Bold ff 285.75 scf sf
|
||||
8820 5415 m
|
||||
gs 1 -1 sc (e) col0 sh gr
|
||||
/Helvetica-Bold ff 317.50 scf sf
|
||||
1890 2340 m
|
||||
gs 1 -1 sc (...) col0 sh gr
|
||||
/Helvetica-Bold ff 317.50 scf sf
|
||||
1575 1575 m
|
||||
gs 1 -1 sc (Data 2) col0 sh gr
|
||||
/Helvetica-Bold ff 285.75 scf sf
|
||||
5670 1530 m
|
||||
gs 1 -1 sc (...) col0 sh gr
|
||||
/Helvetica-Bold ff 285.75 scf sf
|
||||
8955 1530 m
|
||||
gs 1 -1 sc (...) col0 sh gr
|
||||
/Helvetica-Bold ff 285.75 scf sf
|
||||
10305 1575 m
|
||||
gs 1 -1 sc (d) col0 sh gr
|
||||
/Helvetica-Bold ff 190.50 scf sf
|
||||
10485 1665 m
|
||||
gs 1 -1 sc (ls, 2) col0 sh gr
|
||||
/Helvetica-Bold ff 190.50 scf sf
|
||||
3060 1665 m
|
||||
gs 1 -1 sc (1, 2) col0 sh gr
|
||||
/Helvetica-Bold ff 190.50 scf sf
|
||||
3825 1665 m
|
||||
gs 1 -1 sc (2, 2) col0 sh gr
|
||||
/Helvetica-Bold ff 285.75 scf sf
|
||||
3645 1575 m
|
||||
gs 1 -1 sc (d) col0 sh gr
|
||||
/Helvetica-Bold ff 285.75 scf sf
|
||||
2880 1575 m
|
||||
gs 1 -1 sc (d) col0 sh gr
|
||||
/Helvetica-Bold ff 285.75 scf sf
|
||||
7065 1575 m
|
||||
gs 1 -1 sc (d) col0 sh gr
|
||||
/Helvetica-Bold ff 190.50 scf sf
|
||||
7245 1665 m
|
||||
gs 1 -1 sc (i, 2) col0 sh gr
|
||||
/Helvetica-Bold ff 317.50 scf sf
|
||||
1575 3285 m
|
||||
gs 1 -1 sc (Data n) col0 sh gr
|
||||
/Helvetica-Bold ff 285.75 scf sf
|
||||
5670 3240 m
|
||||
gs 1 -1 sc (...) col0 sh gr
|
||||
/Helvetica-Bold ff 190.50 scf sf
|
||||
3060 3375 m
|
||||
gs 1 -1 sc (1, n) col0 sh gr
|
||||
/Helvetica-Bold ff 190.50 scf sf
|
||||
8235 3375 m
|
||||
gs 1 -1 sc (x, n) col0 sh gr
|
||||
/Helvetica-Bold ff 285.75 scf sf
|
||||
8955 3285 m
|
||||
gs 1 -1 sc (zero padding) col0 sh gr
|
||||
/Helvetica-Bold ff 317.50 scf sf
|
||||
1575 675 m
|
||||
gs 1 -1 sc (Data 1) col0 sh gr
|
||||
/Helvetica-Bold ff 285.75 scf sf
|
||||
5670 630 m
|
||||
gs 1 -1 sc (...) col0 sh gr
|
||||
/Helvetica-Bold ff 285.75 scf sf
|
||||
8955 630 m
|
||||
gs 1 -1 sc (...) col0 sh gr
|
||||
/Helvetica-Bold ff 285.75 scf sf
|
||||
10305 675 m
|
||||
gs 1 -1 sc (d) col0 sh gr
|
||||
/Helvetica-Bold ff 190.50 scf sf
|
||||
10485 765 m
|
||||
gs 1 -1 sc (ls, 1) col0 sh gr
|
||||
/Helvetica-Bold ff 285.75 scf sf
|
||||
2880 675 m
|
||||
gs 1 -1 sc (d) col0 sh gr
|
||||
/Helvetica-Bold ff 190.50 scf sf
|
||||
3060 765 m
|
||||
gs 1 -1 sc (1, 1) col0 sh gr
|
||||
/Helvetica-Bold ff 190.50 scf sf
|
||||
3825 765 m
|
||||
gs 1 -1 sc (2, 1) col0 sh gr
|
||||
/Helvetica-Bold ff 285.75 scf sf
|
||||
3645 675 m
|
||||
gs 1 -1 sc (d) col0 sh gr
|
||||
/Helvetica-Bold ff 285.75 scf sf
|
||||
5220 5355 m
|
||||
gs 1 -1 sc (...) col0 sh gr
|
||||
/Helvetica-Bold ff 285.75 scf sf
|
||||
9585 5355 m
|
||||
gs 1 -1 sc (...) col0 sh gr
|
||||
/Helvetica-Bold ff 381.00 scf sf
|
||||
12510 6120 m
|
||||
gs 1 -1 sc 90.0 rot (ECC file) col0 sh gr
|
||||
/Helvetica-Bold ff 381.00 scf sf
|
||||
12510 2970 m
|
||||
gs 1 -1 sc 90.0 rot (ISO image) col0 sh gr
|
||||
/Helvetica-Bold ff 285.75 scf sf
|
||||
2880 3285 m
|
||||
gs 1 -1 sc (d) col0 sh gr
|
||||
/Helvetica-Bold ff 285.75 scf sf
|
||||
8055 3285 m
|
||||
gs 1 -1 sc (d) col0 sh gr
|
||||
% here ends figure;
|
||||
pagefooter
|
||||
showpage
|
||||
%%Trailer
|
||||
%EOF
|
||||
132
documentation/codec-specs/rs01-layout.fig
Normal file
132
documentation/codec-specs/rs01-layout.fig
Normal file
@@ -0,0 +1,132 @@
|
||||
#FIG 3.2 Produced by xfig version 3.2.5b
|
||||
Landscape
|
||||
Center
|
||||
Metric
|
||||
A4
|
||||
100.00
|
||||
Single
|
||||
-2
|
||||
1200 2
|
||||
6 7065 450 7560 810
|
||||
4 0 0 50 -1 18 18 0.0000 4 210 180 7065 675 d\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 285 7245 765 i, 1\001
|
||||
-6
|
||||
6 2880 5040 4140 5535
|
||||
4 0 0 50 -1 16 14 0.0000 4 180 1260 2880 5220 Ecc Header\001
|
||||
4 0 0 50 -1 16 13 0.0000 4 210 1185 2880 5460 (4096 bytes)\001
|
||||
-6
|
||||
6 3645 3075 4170 3405
|
||||
4 0 0 50 -1 18 12 0.0000 4 165 345 3825 3375 2, n\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 210 180 3645 3285 d\001
|
||||
-6
|
||||
6 4440 5220 4725 5460
|
||||
4 0 0 50 -1 18 12 0.0000 4 135 105 4620 5460 1\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 150 165 4440 5370 c\001
|
||||
-6
|
||||
6 5985 5220 6270 5460
|
||||
4 0 0 50 -1 18 12 0.0000 4 105 105 6165 5460 s\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 150 165 5985 5370 c\001
|
||||
-6
|
||||
6 6615 5250 7125 5520
|
||||
4 0 0 50 -1 18 12 0.0000 4 165 330 6795 5490 1, 1\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 150 165 6615 5400 e\001
|
||||
-6
|
||||
6 8145 5265 8655 5535
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 330 8325 5505 1, k\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 150 165 8145 5415 e\001
|
||||
-6
|
||||
6 8820 5265 9330 5535
|
||||
4 0 0 50 -1 18 12 0.0000 4 165 330 9000 5505 2, 1\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 150 165 8820 5415 e\001
|
||||
-6
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
3510 1125 3510 1800
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
4230 1125 4230 1800
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
7650 1125 7650 1800
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
6930 1080 6930 1755
|
||||
2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
|
||||
2790 1125 11025 1125 11025 1800 2790 1800 2790 1125
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
10260 1125 10260 1800
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
3510 2835 3510 3510
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
7875 2835 7875 3510
|
||||
2 2 2 1 0 7 50 -1 -1 3.000 0 0 -1 0 0 5
|
||||
8685 2790 10980 2790 10980 3510 8685 3510 8685 2790
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
3510 225 3510 900
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
4230 225 4230 900
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
7650 225 7650 900
|
||||
2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
|
||||
2790 225 11025 225 11025 900 2790 900 2790 225
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
10260 225 10260 900
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
6930 225 6930 900
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
4230 4950 4230 5625
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
5760 4950 5760 5625
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
4950 4950 4950 5625
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
6480 4950 6480 5625
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
7200 4950 7200 5625
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
8010 4950 8010 5625
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
9450 4950 9450 5625
|
||||
2 1 0 1 0 7 51 -1 14 0.000 0 0 -1 0 0 9
|
||||
2790 90 2790 3960 6480 4860 6480 5805 8730 5805 8730 4725
|
||||
3510 3645 3510 90 2790 90
|
||||
2 4 1 3 0 7 50 -1 -1 8.000 0 0 7 0 0 5
|
||||
11970 6210 1350 6210 1350 4500 11970 4500 11970 6210
|
||||
2 4 1 3 0 7 50 -1 -1 6.000 0 0 7 0 0 5
|
||||
11970 4230 1350 4230 1350 -270 11970 -270 11970 4230
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
8730 4950 8730 5625
|
||||
2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
|
||||
2790 4950 11025 4950 11025 5625 2790 5625 2790 4950
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
4230 2835 4230 3510
|
||||
2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
|
||||
2790 2835 8685 2835 8685 3510 2790 3510 2790 2835
|
||||
4 0 0 50 -1 18 20 0.0000 4 45 270 1890 2340 ...\001
|
||||
4 0 0 50 -1 18 20 0.0000 4 240 975 1575 1575 Data 2\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 45 225 5670 1530 ...\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 45 225 8955 1530 ...\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 210 180 10305 1575 d\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 390 10485 1665 ls, 2\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 165 330 3060 1665 1, 2\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 165 330 3825 1665 2, 2\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 210 180 3645 1575 d\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 210 180 2880 1575 d\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 210 180 7065 1575 d\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 285 7245 1665 i, 2\001
|
||||
4 0 0 50 -1 18 20 0.0000 4 240 1005 1575 3285 Data n\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 45 225 5670 3240 ...\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 165 345 3060 3375 1, n\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 135 345 8235 3375 x, n\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 270 1800 8955 3285 zero padding\001
|
||||
4 0 0 50 -1 18 20 0.0000 4 240 975 1575 675 Data 1\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 45 225 5670 630 ...\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 45 225 8955 630 ...\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 210 180 10305 675 d\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 390 10485 765 ls, 1\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 210 180 2880 675 d\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 165 330 3060 765 1, 1\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 165 330 3825 765 2, 1\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 210 180 3645 675 d\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 45 225 5220 5355 ...\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 45 225 9585 5355 ...\001
|
||||
4 0 0 50 -1 18 24 1.5708 4 300 1590 12510 6120 ECC file\001
|
||||
4 0 0 50 -1 18 24 1.5708 4 390 2010 12510 2970 ISO image\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 210 180 2880 3285 d\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 210 180 8055 3285 d\001
|
||||
237
documentation/codec-specs/rs01.tex
Normal file
237
documentation/codec-specs/rs01.tex
Normal file
@@ -0,0 +1,237 @@
|
||||
\newpage
|
||||
\section{The RS01 codec}
|
||||
\label{rs01}
|
||||
This section describes the dvdisaster RS01 Reed-Solomon codec.
|
||||
It was conceived during the summer of 2004 for creating
|
||||
error correction files in the first dvdisaster versions.
|
||||
At this time, CD media was still predominant.
|
||||
Typical machines were based on Pentium 4 (tm) processors.
|
||||
Measured by todays standards physical RAM and hard disk
|
||||
space were scarce, and especially hard disk random I/O
|
||||
was extremely slow.
|
||||
|
||||
\smallskip
|
||||
|
||||
In order to work efficiently with the available technology,
|
||||
RS01 was designed to be as space efficient as possible
|
||||
and to minimize hard disk random access.
|
||||
Optimizing the data layout for random access efficiency
|
||||
lead to a parity byte distribution which left the error correction
|
||||
file vulnerable to being damaged. RS01 was
|
||||
occasionally being critcized for not being able to recover
|
||||
from damaged error corrction files, but these points
|
||||
were not really fair. RS01 error correction
|
||||
files were never designed for being stored on fragile
|
||||
media. They are supposed to
|
||||
be either stored on hard disk, or to be stored on optical
|
||||
media which itself is protected by dvdisaster error
|
||||
correction which has the following consequences:
|
||||
Unlike optical media, hard disks do not degrade
|
||||
gradually. Hard disks are usually either 100\% readable or
|
||||
completely dead, so we can assume that error correction
|
||||
files on hard disk are either completely readable or fully lost.
|
||||
|
||||
Storing error correction files on optical media is a different
|
||||
story. While an error correction file could protect itself to some
|
||||
degree against lost sectors (as RS03 ecc files do), it is still
|
||||
prone to the shortcomings of a file level error correction.
|
||||
The biggest disadvantage of file level error correction is
|
||||
that there is no protection of file system meta data.
|
||||
If meta data like a directory node becomes damaged, all files
|
||||
in the directory are lost regardless of the redundancy contained
|
||||
within the files. Therefore any medium containing error
|
||||
correction files must be protected with an image level
|
||||
error correction layer (by using RS01,RS02 or RS03 on the medium),
|
||||
since only image level error correction avoids meta
|
||||
data sectors to become a single point of failure. See the
|
||||
discussion at \url{http://dvdisaster.net/en/qa32.html} for
|
||||
more information on the advantages of image level data protection
|
||||
over file level approaches.
|
||||
|
||||
\smallskip
|
||||
|
||||
Nevertheless, the time has come to phase out the RS01 codec.
|
||||
Consider creating an error correction file with 32 roots
|
||||
for a 650MiB sized image using both codecs\footnote{The benchmark was
|
||||
done using the GNU/Linux version
|
||||
of dvdisaster 0.79.4 on a AMD Athlon(tm) II X4 615e
|
||||
processor. RS03 used all 4 cores of the machine.
|
||||
Both image and ecc files were stored in {\tt /dev/shm}
|
||||
to rule out I/O effects.}:
|
||||
|
||||
\begin{center}
|
||||
\begin{tabular}{|l|r|r|}
|
||||
\hline
|
||||
codec & ecc file size & encoding time \\
|
||||
\hline
|
||||
RS01 & 94.58MiB & 46.2s \\
|
||||
RS03 & 96.68MiB & 2.4s \\
|
||||
\hline
|
||||
\end{tabular}
|
||||
\end{center}
|
||||
|
||||
RS03 is about 2.2\% less storage efficient than RS01 since
|
||||
its data layout has been rearranged for better parallelization.
|
||||
But this is made up by a 19-fold speed improvement as
|
||||
RS03 can use multiple cores and SSE2 extensions
|
||||
(of course the speed improvement varies depending on the
|
||||
hardware used).
|
||||
Since all other properties of RS03 do at least match those
|
||||
of RS01, it's fair to begin phasing out RS01 in dvdisaster.
|
||||
|
||||
%\smallskip
|
||||
|
||||
dvdisaster V0.80 will be the first and only version
|
||||
featuring all three codecs. In version 0.82, users
|
||||
will be presented a note the RS01 became deprecated.
|
||||
In subsequent releases support for encoding RS01 will
|
||||
be removed. Of course, capabilities to use and decode
|
||||
RS01 will remain in dvdisaster for umlimited time.
|
||||
Existing RS01 error correction files should remain in use
|
||||
and there is be no need to replace them with RS03 ones.
|
||||
|
||||
\subsection{Physical layout}
|
||||
|
||||
\begin{figure}
|
||||
\begin{center}
|
||||
\includegraphics[width=67mm]{spiral-rs01.eps}
|
||||
\caption{Interpretation of physical layout in the .iso image}
|
||||
\label{layout-phy-one}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
|
||||
RS01 is meant to protect data which has already been written to an optical
|
||||
medium, so the parity data can not be appended to the medium and must instead
|
||||
be kept in a separate error correction file. Like all dvdisaster
|
||||
codecs, RS01 is based on a RS(255,k) Reed-Solomon code with each
|
||||
ecc block being comprised of $n$ data bytes and $k$ parity bytes, and
|
||||
$n+k=255$.
|
||||
|
||||
The $n$ data bytes are taken from an iso image generated from the medium.
|
||||
Reading data directly from the optical drive during encoding would slow down the
|
||||
process tremendously due to massive random access over the medium, and
|
||||
quickly wear out the drive mechanics. However producing the .iso image
|
||||
takes one fast linear read, accesses the drive in a way it is designed to be used,
|
||||
and puts the data on hard disk which can sustain the needed random access I/O.
|
||||
|
||||
Reed-Solomon codes
|
||||
work best when errors are evenly distributed over all ecc blocks.
|
||||
Therefore the $n$ data bytes used for creating an ecc block must be picked from
|
||||
locations which are evenly distributed over the medium with a maximum
|
||||
distance between each data byte pair. To obtain a suitable data distribution,
|
||||
it is taken into account that optical media are recorded as a single long
|
||||
spiral\footnote{Multiple layered
|
||||
media contain one spiral for each physical layer, but are otherwise conceptually
|
||||
identical.} of sectors each containing 2048 bytes.
|
||||
The first sector lies at the innermost position of the spiral and is indexed with 0;
|
||||
numbering continues onward to the outside of the spiral. The .iso image
|
||||
contains a 1:1 mapping of this storage scheme, with the first 2048 bytes
|
||||
holding the contents of sector 0, the next 2048 bytes resembling sector 1, and so on.
|
||||
|
||||
When encoding with $n$ data bytes per ecc block, the iso image is divided into
|
||||
$n$ layers which physically map to the medium as shown in fig.\ref{layout-phy-one}.
|
||||
This distributes the ecc block reasonably good over the medium surface.
|
||||
However since the image size does not need
|
||||
to be a multiple of the layer size, the $n$-th layer may be physically shorter
|
||||
as the layer size. For encoding purposes, the non-existant sectors in layer
|
||||
$n$ are treated as sectors being filled with 2048 zero bytes.
|
||||
|
||||
\subsection{Logical ecc file layout}
|
||||
|
||||
\begin{figure}
|
||||
\begin{center}
|
||||
\includegraphics[width=\textwidth]{rs01-layout.eps}
|
||||
\caption{Logical RS01 layout}
|
||||
\label{layout-logical-one}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
|
||||
The ecc file layout, and therefore the relationship between the iso image
|
||||
contents and the ecc file, is shown in
|
||||
figure \ref{layout-logical-one}. The first 4096 bytes of the ecc file
|
||||
contain the ecc header whose format is described in appendix \ref{eh}.
|
||||
For RS01, only the data fields marked with ``all'' or ``RS01'' are
|
||||
relevant; all other fields should be set to zero.
|
||||
|
||||
Next to the ecc header comes the CRC section of the ecc file. If the
|
||||
iso image contains $s$ sectors, the next $4*s$ bytes in the ecc file
|
||||
contain the CRC32 sums of the sectors from the iso image: Let $b_1,\dots,b_{2048}$ denote
|
||||
the bytes of the first data sector; $b_{2049},\dots,b_{4096}$ those of the
|
||||
second data sector and so on. Then $c_1 = CRC32(b_1,\dots,b_{2048})$,
|
||||
$c_2 = CRC32(b_{2049},\dots,b_{4096})$ etc. Note that in contrast to
|
||||
RS02 and RS03, bytes from the CRC section are not included into the ecc block
|
||||
calculation and are therefore not protected by ecc.
|
||||
|
||||
\smallskip
|
||||
|
||||
The remainder of the ecc file contains the parity bytes of the
|
||||
ecc blocks. For an ecc file built with $k$ roots,
|
||||
the iso image is logically divided into
|
||||
$n = 255-k$ layers as shown in figure \ref{layout-logical-one}.
|
||||
The $d_{i,j}$ denote the $i-th$ byte in the $j-th$ layer.
|
||||
In order to create the first ecc block, bytes $d_{1,1}$ to $d_{1,n}$ are taken from the
|
||||
$n$ layers. Then the RS(255,k) code is calculated (see appendix \ref{rs} for its parameters)
|
||||
and the
|
||||
resulting $k$ parity bytes $e_{1,1}$ upto $e_{k,1}$ are stored
|
||||
in the ecc file. The resulting ecc block is marked grey in the
|
||||
figure. The next ecc blocks are calculated and stored accordingly.
|
||||
In total, the ecc section contains $k*ls$ bytes of parity information,
|
||||
with the $k$ parity bytes of each ecc block being stored consecutively.
|
||||
|
||||
\subsection{Calculating the layout for encoding}
|
||||
|
||||
The RS01 layout is fully determined by the number of roots for the error correction code
|
||||
and the iso image size in sectors (from now on, ``size'' always means ``number of
|
||||
2048K sectors). The number of roots can be freely chosen by the user from the
|
||||
range of $[8...100]$. The iso image size is directly measured
|
||||
from the iso image file.
|
||||
|
||||
\smallskip
|
||||
|
||||
The number of data layers is simply calculated from the number of roots, $k$:
|
||||
|
||||
\[ data\ layers = 255 - k\]
|
||||
|
||||
The size of each layer is:
|
||||
|
||||
\[ layer\ size = \left\lceil\frac{medium\ size}{data\ layers}\right\rceil\]
|
||||
|
||||
At the end of the last layer, $data\ layers * layer\ size - medium\ size$
|
||||
zero filled padding sectors are used in the encoding process.
|
||||
|
||||
\subsection{Getting the layout when recovering defective media}
|
||||
|
||||
The required parameters are taken from the ecc header stored in
|
||||
the error correction file (see appendix \ref{eh}). Especially,
|
||||
the number of roots are taken from the {\em eccBytes} field and
|
||||
the medium size is recorded in the {\em sectors} field.
|
||||
|
||||
\subsection{md5 checksums}
|
||||
|
||||
RS01 provides two md5 checksums for integrity checking.
|
||||
The md5 sum of the iso image is calculated and stored in the
|
||||
{\em mediumSum} field of the ecc header.
|
||||
Another md5 sum is calculated over the ecc file, excluding the
|
||||
first 4096 bytes, and stored in the {\em eccSum} field of
|
||||
the ecc header. It can be used to verify the integrity of the
|
||||
ecc file itself. The ecc header is protected by its own CRC
|
||||
checksum which is stored in the {\em selfCRC} field.
|
||||
|
||||
\smallskip
|
||||
|
||||
The md5 checksum generation is the major obstacle for parallelizing
|
||||
the encoder. In RS03, md5sum generation has been made optional since
|
||||
the RS03 layout allows suffcient consistency checks
|
||||
by doing a quick error syndrome check using the Reed-Solomon code.
|
||||
|
||||
\subsection{Special cases}
|
||||
|
||||
Error correction files can be created for any type of input files, not just iso files,
|
||||
as long as the input files are ``reasonably'' long\footnote{Input files should contain
|
||||
at least 2048*(255-k) bytes, so that there is at least one sector for each data
|
||||
layer.}. Since input files are processed in units of 2048 kByte sectors,
|
||||
files whose byte size is not an integer multiple of 2048 are virtually padded
|
||||
with zeroes. In that case, the {\em inLast} field of the ecc header
|
||||
contains the real byte size of the last file ``sector'' so that recovering the
|
||||
last file sector does not write out the padding bytes. A size of zero in the
|
||||
{\em inLast} field means that the last sector contains 2048 bytes.
|
||||
985
documentation/codec-specs/rs02-layout.eps
Normal file
985
documentation/codec-specs/rs02-layout.eps
Normal file
@@ -0,0 +1,985 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: rs02-layout.fig
|
||||
%%Creator: fig2dev Version 3.2 Patchlevel 5c
|
||||
%%CreationDate: Sun Aug 19 15:16:45 2012
|
||||
%%BoundingBox: 0 0 969 472
|
||||
%Magnification: 1.0000
|
||||
%%EndComments
|
||||
%%BeginProlog
|
||||
/MyAppDict 100 dict dup begin def
|
||||
/$F2psDict 200 dict def
|
||||
$F2psDict begin
|
||||
$F2psDict /mtrx matrix put
|
||||
/col-1 {0 setgray} bind def
|
||||
/col0 {0.000 0.000 0.000 srgb} bind def
|
||||
/col1 {0.000 0.000 1.000 srgb} bind def
|
||||
/col2 {0.000 1.000 0.000 srgb} bind def
|
||||
/col3 {0.000 1.000 1.000 srgb} bind def
|
||||
/col4 {1.000 0.000 0.000 srgb} bind def
|
||||
/col5 {1.000 0.000 1.000 srgb} bind def
|
||||
/col6 {1.000 1.000 0.000 srgb} bind def
|
||||
/col7 {1.000 1.000 1.000 srgb} bind def
|
||||
/col8 {0.000 0.000 0.560 srgb} bind def
|
||||
/col9 {0.000 0.000 0.690 srgb} bind def
|
||||
/col10 {0.000 0.000 0.820 srgb} bind def
|
||||
/col11 {0.530 0.810 1.000 srgb} bind def
|
||||
/col12 {0.000 0.560 0.000 srgb} bind def
|
||||
/col13 {0.000 0.690 0.000 srgb} bind def
|
||||
/col14 {0.000 0.820 0.000 srgb} bind def
|
||||
/col15 {0.000 0.560 0.560 srgb} bind def
|
||||
/col16 {0.000 0.690 0.690 srgb} bind def
|
||||
/col17 {0.000 0.820 0.820 srgb} bind def
|
||||
/col18 {0.560 0.000 0.000 srgb} bind def
|
||||
/col19 {0.690 0.000 0.000 srgb} bind def
|
||||
/col20 {0.820 0.000 0.000 srgb} bind def
|
||||
/col21 {0.560 0.000 0.560 srgb} bind def
|
||||
/col22 {0.690 0.000 0.690 srgb} bind def
|
||||
/col23 {0.820 0.000 0.820 srgb} bind def
|
||||
/col24 {0.500 0.190 0.000 srgb} bind def
|
||||
/col25 {0.630 0.250 0.000 srgb} bind def
|
||||
/col26 {0.750 0.380 0.000 srgb} bind def
|
||||
/col27 {1.000 0.500 0.500 srgb} bind def
|
||||
/col28 {1.000 0.630 0.630 srgb} bind def
|
||||
/col29 {1.000 0.750 0.750 srgb} bind def
|
||||
/col30 {1.000 0.880 0.880 srgb} bind def
|
||||
/col31 {1.000 0.840 0.000 srgb} bind def
|
||||
|
||||
end
|
||||
|
||||
% This junk string is used by the show operators
|
||||
/PATsstr 1 string def
|
||||
/PATawidthshow { % cx cy cchar rx ry string
|
||||
% Loop over each character in the string
|
||||
{ % cx cy cchar rx ry char
|
||||
% Show the character
|
||||
dup % cx cy cchar rx ry char char
|
||||
PATsstr dup 0 4 -1 roll put % cx cy cchar rx ry char (char)
|
||||
false charpath % cx cy cchar rx ry char
|
||||
/clip load PATdraw
|
||||
% Move past the character (charpath modified the
|
||||
% current point)
|
||||
currentpoint % cx cy cchar rx ry char x y
|
||||
newpath
|
||||
moveto % cx cy cchar rx ry char
|
||||
% Reposition by cx,cy if the character in the string is cchar
|
||||
3 index eq { % cx cy cchar rx ry
|
||||
4 index 4 index rmoveto
|
||||
} if
|
||||
% Reposition all characters by rx ry
|
||||
2 copy rmoveto % cx cy cchar rx ry
|
||||
} forall
|
||||
pop pop pop pop pop % -
|
||||
currentpoint
|
||||
newpath
|
||||
moveto
|
||||
} bind def
|
||||
/PATcg {
|
||||
7 dict dup begin
|
||||
/lw currentlinewidth def
|
||||
/lc currentlinecap def
|
||||
/lj currentlinejoin def
|
||||
/ml currentmiterlimit def
|
||||
/ds [ currentdash ] def
|
||||
/cc [ currentrgbcolor ] def
|
||||
/cm matrix currentmatrix def
|
||||
end
|
||||
} bind def
|
||||
% PATdraw - calculates the boundaries of the object and
|
||||
% fills it with the current pattern
|
||||
/PATdraw { % proc
|
||||
save exch
|
||||
PATpcalc % proc nw nh px py
|
||||
5 -1 roll exec % nw nh px py
|
||||
newpath
|
||||
PATfill % -
|
||||
restore
|
||||
} bind def
|
||||
% PATfill - performs the tiling for the shape
|
||||
/PATfill { % nw nh px py PATfill -
|
||||
PATDict /CurrentPattern get dup begin
|
||||
setfont
|
||||
% Set the coordinate system to Pattern Space
|
||||
PatternGState PATsg
|
||||
% Set the color for uncolored pattezns
|
||||
PaintType 2 eq { PATDict /PColor get PATsc } if
|
||||
% Create the string for showing
|
||||
3 index string % nw nh px py str
|
||||
% Loop for each of the pattern sources
|
||||
0 1 Multi 1 sub { % nw nh px py str source
|
||||
% Move to the starting location
|
||||
3 index 3 index % nw nh px py str source px py
|
||||
moveto % nw nh px py str source
|
||||
% For multiple sources, set the appropriate color
|
||||
Multi 1 ne { dup PC exch get PATsc } if
|
||||
% Set the appropriate string for the source
|
||||
0 1 7 index 1 sub { 2 index exch 2 index put } for pop
|
||||
% Loop over the number of vertical cells
|
||||
3 index % nw nh px py str nh
|
||||
{ % nw nh px py str
|
||||
currentpoint % nw nh px py str cx cy
|
||||
2 index oldshow % nw nh px py str cx cy
|
||||
YStep add moveto % nw nh px py str
|
||||
} repeat % nw nh px py str
|
||||
} for
|
||||
5 { pop } repeat
|
||||
end
|
||||
} bind def
|
||||
|
||||
% PATkshow - kshow with the current pattezn
|
||||
/PATkshow { % proc string
|
||||
exch bind % string proc
|
||||
1 index 0 get % string proc char
|
||||
% Loop over all but the last character in the string
|
||||
0 1 4 index length 2 sub {
|
||||
% string proc char idx
|
||||
% Find the n+1th character in the string
|
||||
3 index exch 1 add get % string proc char char+1
|
||||
exch 2 copy % strinq proc char+1 char char+1 char
|
||||
% Now show the nth character
|
||||
PATsstr dup 0 4 -1 roll put % string proc chr+1 chr chr+1 (chr)
|
||||
false charpath % string proc char+1 char char+1
|
||||
/clip load PATdraw
|
||||
% Move past the character (charpath modified the current point)
|
||||
currentpoint newpath moveto
|
||||
% Execute the user proc (should consume char and char+1)
|
||||
mark 3 1 roll % string proc char+1 mark char char+1
|
||||
4 index exec % string proc char+1 mark...
|
||||
cleartomark % string proc char+1
|
||||
} for
|
||||
% Now display the last character
|
||||
PATsstr dup 0 4 -1 roll put % string proc (char+1)
|
||||
false charpath % string proc
|
||||
/clip load PATdraw
|
||||
neewath
|
||||
pop pop % -
|
||||
} bind def
|
||||
% PATmp - the makepattern equivalent
|
||||
/PATmp { % patdict patmtx PATmp patinstance
|
||||
exch dup length 7 add % We will add 6 new entries plus 1 FID
|
||||
dict copy % Create a new dictionary
|
||||
begin
|
||||
% Matrix to install when painting the pattern
|
||||
TilingType PATtcalc
|
||||
/PatternGState PATcg def
|
||||
PatternGState /cm 3 -1 roll put
|
||||
% Check for multi pattern sources (Level 1 fast color patterns)
|
||||
currentdict /Multi known not { /Multi 1 def } if
|
||||
% Font dictionary definitions
|
||||
/FontType 3 def
|
||||
% Create a dummy encoding vector
|
||||
/Encoding 256 array def
|
||||
3 string 0 1 255 {
|
||||
Encoding exch dup 3 index cvs cvn put } for pop
|
||||
/FontMatrix matrix def
|
||||
/FontBBox BBox def
|
||||
/BuildChar {
|
||||
mark 3 1 roll % mark dict char
|
||||
exch begin
|
||||
Multi 1 ne {PaintData exch get}{pop} ifelse % mark [paintdata]
|
||||
PaintType 2 eq Multi 1 ne or
|
||||
{ XStep 0 FontBBox aload pop setcachedevice }
|
||||
{ XStep 0 setcharwidth } ifelse
|
||||
currentdict % mark [paintdata] dict
|
||||
/PaintProc load % mark [paintdata] dict paintproc
|
||||
end
|
||||
gsave
|
||||
false PATredef exec true PATredef
|
||||
grestore
|
||||
cleartomark % -
|
||||
} bind def
|
||||
currentdict
|
||||
end % newdict
|
||||
/foo exch % /foo newlict
|
||||
definefont % newfont
|
||||
} bind def
|
||||
% PATpcalc - calculates the starting point and width/height
|
||||
% of the tile fill for the shape
|
||||
/PATpcalc { % - PATpcalc nw nh px py
|
||||
PATDict /CurrentPattern get begin
|
||||
gsave
|
||||
% Set up the coordinate system to Pattern Space
|
||||
% and lock down pattern
|
||||
PatternGState /cm get setmatrix
|
||||
BBox aload pop pop pop translate
|
||||
% Determine the bounding box of the shape
|
||||
pathbbox % llx lly urx ury
|
||||
grestore
|
||||
% Determine (nw, nh) the # of cells to paint width and height
|
||||
PatHeight div ceiling % llx lly urx qh
|
||||
4 1 roll % qh llx lly urx
|
||||
PatWidth div ceiling % qh llx lly qw
|
||||
4 1 roll % qw qh llx lly
|
||||
PatHeight div floor % qw qh llx ph
|
||||
4 1 roll % ph qw qh llx
|
||||
PatWidth div floor % ph qw qh pw
|
||||
4 1 roll % pw ph qw qh
|
||||
2 index sub cvi abs % pw ph qs qh-ph
|
||||
exch 3 index sub cvi abs exch % pw ph nw=qw-pw nh=qh-ph
|
||||
% Determine the starting point of the pattern fill
|
||||
%(px, py)
|
||||
4 2 roll % nw nh pw ph
|
||||
PatHeight mul % nw nh pw py
|
||||
exch % nw nh py pw
|
||||
PatWidth mul exch % nw nh px py
|
||||
end
|
||||
} bind def
|
||||
|
||||
% Save the original routines so that we can use them later on
|
||||
/oldfill /fill load def
|
||||
/oldeofill /eofill load def
|
||||
/oldstroke /stroke load def
|
||||
/oldshow /show load def
|
||||
/oldashow /ashow load def
|
||||
/oldwidthshow /widthshow load def
|
||||
/oldawidthshow /awidthshow load def
|
||||
/oldkshow /kshow load def
|
||||
|
||||
% These defs are necessary so that subsequent procs don't bind in
|
||||
% the originals
|
||||
/fill { oldfill } bind def
|
||||
/eofill { oldeofill } bind def
|
||||
/stroke { oldstroke } bind def
|
||||
/show { oldshow } bind def
|
||||
/ashow { oldashow } bind def
|
||||
/widthshow { oldwidthshow } bind def
|
||||
/awidthshow { oldawidthshow } bind def
|
||||
/kshow { oldkshow } bind def
|
||||
/PATredef {
|
||||
MyAppDict begin
|
||||
{
|
||||
/fill { /clip load PATdraw newpath } bind def
|
||||
/eofill { /eoclip load PATdraw newpath } bind def
|
||||
/stroke { PATstroke } bind def
|
||||
/show { 0 0 null 0 0 6 -1 roll PATawidthshow } bind def
|
||||
/ashow { 0 0 null 6 3 roll PATawidthshow }
|
||||
bind def
|
||||
/widthshow { 0 0 3 -1 roll PATawidthshow }
|
||||
bind def
|
||||
/awidthshow { PATawidthshow } bind def
|
||||
/kshow { PATkshow } bind def
|
||||
} {
|
||||
/fill { oldfill } bind def
|
||||
/eofill { oldeofill } bind def
|
||||
/stroke { oldstroke } bind def
|
||||
/show { oldshow } bind def
|
||||
/ashow { oldashow } bind def
|
||||
/widthshow { oldwidthshow } bind def
|
||||
/awidthshow { oldawidthshow } bind def
|
||||
/kshow { oldkshow } bind def
|
||||
} ifelse
|
||||
end
|
||||
} bind def
|
||||
false PATredef
|
||||
% Conditionally define setcmykcolor if not available
|
||||
/setcmykcolor where { pop } {
|
||||
/setcmykcolor {
|
||||
1 sub 4 1 roll
|
||||
3 {
|
||||
3 index add neg dup 0 lt { pop 0 } if 3 1 roll
|
||||
} repeat
|
||||
setrgbcolor - pop
|
||||
} bind def
|
||||
} ifelse
|
||||
/PATsc { % colorarray
|
||||
aload length % c1 ... cn length
|
||||
dup 1 eq { pop setgray } { 3 eq { setrgbcolor } { setcmykcolor
|
||||
} ifelse } ifelse
|
||||
} bind def
|
||||
/PATsg { % dict
|
||||
begin
|
||||
lw setlinewidth
|
||||
lc setlinecap
|
||||
lj setlinejoin
|
||||
ml setmiterlimit
|
||||
ds aload pop setdash
|
||||
cc aload pop setrgbcolor
|
||||
cm setmatrix
|
||||
end
|
||||
} bind def
|
||||
|
||||
/PATDict 3 dict def
|
||||
/PATsp {
|
||||
true PATredef
|
||||
PATDict begin
|
||||
/CurrentPattern exch def
|
||||
% If it's an uncolored pattern, save the color
|
||||
CurrentPattern /PaintType get 2 eq {
|
||||
/PColor exch def
|
||||
} if
|
||||
/CColor [ currentrgbcolor ] def
|
||||
end
|
||||
} bind def
|
||||
% PATstroke - stroke with the current pattern
|
||||
/PATstroke {
|
||||
countdictstack
|
||||
save
|
||||
mark
|
||||
{
|
||||
currentpoint strokepath moveto
|
||||
PATpcalc % proc nw nh px py
|
||||
clip newpath PATfill
|
||||
} stopped {
|
||||
(*** PATstroke Warning: Path is too complex, stroking
|
||||
with gray) =
|
||||
cleartomark
|
||||
restore
|
||||
countdictstack exch sub dup 0 gt
|
||||
{ { end } repeat } { pop } ifelse
|
||||
gsave 0.5 setgray oldstroke grestore
|
||||
} { pop restore pop } ifelse
|
||||
newpath
|
||||
} bind def
|
||||
/PATtcalc { % modmtx tilingtype PATtcalc tilematrix
|
||||
% Note: tiling types 2 and 3 are not supported
|
||||
gsave
|
||||
exch concat % tilingtype
|
||||
matrix currentmatrix exch % cmtx tilingtype
|
||||
% Tiling type 1 and 3: constant spacing
|
||||
2 ne {
|
||||
% Distort the pattern so that it occupies
|
||||
% an integral number of device pixels
|
||||
dup 4 get exch dup 5 get exch % tx ty cmtx
|
||||
XStep 0 dtransform
|
||||
round exch round exch % tx ty cmtx dx.x dx.y
|
||||
XStep div exch XStep div exch % tx ty cmtx a b
|
||||
0 YStep dtransform
|
||||
round exch round exch % tx ty cmtx a b dy.x dy.y
|
||||
YStep div exch YStep div exch % tx ty cmtx a b c d
|
||||
7 -3 roll astore % { a b c d tx ty }
|
||||
} if
|
||||
grestore
|
||||
} bind def
|
||||
/PATusp {
|
||||
false PATredef
|
||||
PATDict begin
|
||||
CColor PATsc
|
||||
end
|
||||
} bind def
|
||||
|
||||
% left45
|
||||
11 dict begin
|
||||
/PaintType 1 def
|
||||
/PatternType 1 def
|
||||
/TilingType 1 def
|
||||
/BBox [0 0 1 1] def
|
||||
/XStep 1 def
|
||||
/YStep 1 def
|
||||
/PatWidth 1 def
|
||||
/PatHeight 1 def
|
||||
/Multi 2 def
|
||||
/PaintData [
|
||||
{ clippath } bind
|
||||
{ 20 20 true [ 20 0 0 -20 0 20 ]
|
||||
{<8020004010002008001004000802000401000200
|
||||
8001004000802000401080200040100020080010
|
||||
0400080200040100020080010040008020004010>}
|
||||
imagemask } bind
|
||||
] def
|
||||
/PaintProc {
|
||||
pop
|
||||
exec fill
|
||||
} def
|
||||
currentdict
|
||||
end
|
||||
/P4 exch def
|
||||
|
||||
% right45
|
||||
11 dict begin
|
||||
/PaintType 1 def
|
||||
/PatternType 1 def
|
||||
/TilingType 1 def
|
||||
/BBox [0 0 1 1] def
|
||||
/XStep 1 def
|
||||
/YStep 1 def
|
||||
/PatWidth 1 def
|
||||
/PatHeight 1 def
|
||||
/Multi 2 def
|
||||
/PaintData [
|
||||
{ clippath } bind
|
||||
{ 20 20 true [ 20 0 0 -20 0 20 ]
|
||||
{<0040100080200100400200800401000802001004
|
||||
0020080040100080200000401000802001004002
|
||||
0080040100080200100400200800401000802000>}
|
||||
imagemask } bind
|
||||
] def
|
||||
/PaintProc {
|
||||
pop
|
||||
exec fill
|
||||
} def
|
||||
currentdict
|
||||
end
|
||||
/P5 exch def
|
||||
|
||||
/cp {closepath} bind def
|
||||
/ef {eofill} bind def
|
||||
/gr {grestore} bind def
|
||||
/gs {gsave} bind def
|
||||
/sa {save} bind def
|
||||
/rs {restore} bind def
|
||||
/l {lineto} bind def
|
||||
/m {moveto} bind def
|
||||
/rm {rmoveto} bind def
|
||||
/n {newpath} bind def
|
||||
/s {stroke} bind def
|
||||
/sh {show} bind def
|
||||
/slc {setlinecap} bind def
|
||||
/slj {setlinejoin} bind def
|
||||
/slw {setlinewidth} bind def
|
||||
/srgb {setrgbcolor} bind def
|
||||
/rot {rotate} bind def
|
||||
/sc {scale} bind def
|
||||
/sd {setdash} bind def
|
||||
/ff {findfont} bind def
|
||||
/sf {setfont} bind def
|
||||
/scf {scalefont} bind def
|
||||
/sw {stringwidth} bind def
|
||||
/tr {translate} bind def
|
||||
/tnt {dup dup currentrgbcolor
|
||||
4 -2 roll dup 1 exch sub 3 -1 roll mul add
|
||||
4 -2 roll dup 1 exch sub 3 -1 roll mul add
|
||||
4 -2 roll dup 1 exch sub 3 -1 roll mul add srgb}
|
||||
bind def
|
||||
/shd {dup dup currentrgbcolor 4 -2 roll mul 4 -2 roll mul
|
||||
4 -2 roll mul srgb} bind def
|
||||
/reencdict 12 dict def /ReEncode { reencdict begin
|
||||
/newcodesandnames exch def /newfontname exch def /basefontname exch def
|
||||
/basefontdict basefontname findfont def /newfont basefontdict maxlength dict def
|
||||
basefontdict { exch dup /FID ne { dup /Encoding eq
|
||||
{ exch dup length array copy newfont 3 1 roll put }
|
||||
{ exch newfont 3 1 roll put } ifelse } { pop pop } ifelse } forall
|
||||
newfont /FontName newfontname put newcodesandnames aload pop
|
||||
128 1 255 { newfont /Encoding get exch /.notdef put } for
|
||||
newcodesandnames length 2 idiv { newfont /Encoding get 3 1 roll put } repeat
|
||||
newfontname newfont definefont pop end } def
|
||||
/isovec [
|
||||
8#055 /minus 8#200 /grave 8#201 /acute 8#202 /circumflex 8#203 /tilde
|
||||
8#204 /macron 8#205 /breve 8#206 /dotaccent 8#207 /dieresis
|
||||
8#210 /ring 8#211 /cedilla 8#212 /hungarumlaut 8#213 /ogonek 8#214 /caron
|
||||
8#220 /dotlessi 8#230 /oe 8#231 /OE
|
||||
8#240 /space 8#241 /exclamdown 8#242 /cent 8#243 /sterling
|
||||
8#244 /currency 8#245 /yen 8#246 /brokenbar 8#247 /section 8#250 /dieresis
|
||||
8#251 /copyright 8#252 /ordfeminine 8#253 /guillemotleft 8#254 /logicalnot
|
||||
8#255 /hyphen 8#256 /registered 8#257 /macron 8#260 /degree 8#261 /plusminus
|
||||
8#262 /twosuperior 8#263 /threesuperior 8#264 /acute 8#265 /mu 8#266 /paragraph
|
||||
8#267 /periodcentered 8#270 /cedilla 8#271 /onesuperior 8#272 /ordmasculine
|
||||
8#273 /guillemotright 8#274 /onequarter 8#275 /onehalf
|
||||
8#276 /threequarters 8#277 /questiondown 8#300 /Agrave 8#301 /Aacute
|
||||
8#302 /Acircumflex 8#303 /Atilde 8#304 /Adieresis 8#305 /Aring
|
||||
8#306 /AE 8#307 /Ccedilla 8#310 /Egrave 8#311 /Eacute
|
||||
8#312 /Ecircumflex 8#313 /Edieresis 8#314 /Igrave 8#315 /Iacute
|
||||
8#316 /Icircumflex 8#317 /Idieresis 8#320 /Eth 8#321 /Ntilde 8#322 /Ograve
|
||||
8#323 /Oacute 8#324 /Ocircumflex 8#325 /Otilde 8#326 /Odieresis 8#327 /multiply
|
||||
8#330 /Oslash 8#331 /Ugrave 8#332 /Uacute 8#333 /Ucircumflex
|
||||
8#334 /Udieresis 8#335 /Yacute 8#336 /Thorn 8#337 /germandbls 8#340 /agrave
|
||||
8#341 /aacute 8#342 /acircumflex 8#343 /atilde 8#344 /adieresis 8#345 /aring
|
||||
8#346 /ae 8#347 /ccedilla 8#350 /egrave 8#351 /eacute
|
||||
8#352 /ecircumflex 8#353 /edieresis 8#354 /igrave 8#355 /iacute
|
||||
8#356 /icircumflex 8#357 /idieresis 8#360 /eth 8#361 /ntilde 8#362 /ograve
|
||||
8#363 /oacute 8#364 /ocircumflex 8#365 /otilde 8#366 /odieresis 8#367 /divide
|
||||
8#370 /oslash 8#371 /ugrave 8#372 /uacute 8#373 /ucircumflex
|
||||
8#374 /udieresis 8#375 /yacute 8#376 /thorn 8#377 /ydieresis] def
|
||||
/Helvetica-Bold /Helvetica-Bold-iso isovec ReEncode
|
||||
/$F2psBegin {$F2psDict begin /$F2psEnteredState save def} def
|
||||
/$F2psEnd {$F2psEnteredState restore end} def
|
||||
|
||||
/pageheader {
|
||||
save
|
||||
newpath 0 472 moveto 0 0 lineto 969 0 lineto 969 472 lineto closepath clip newpath
|
||||
-237.2 454.5 translate
|
||||
1 -1 scale
|
||||
$F2psBegin
|
||||
10 setmiterlimit
|
||||
0 slj 0 slc
|
||||
0.06299 0.06299 sc
|
||||
} bind def
|
||||
/pagefooter {
|
||||
$F2psEnd
|
||||
restore
|
||||
} bind def
|
||||
%%EndProlog
|
||||
pageheader
|
||||
%
|
||||
% Fig objects follow
|
||||
%
|
||||
%
|
||||
% here starts figure with depth 51
|
||||
% Polyline
|
||||
0 slj
|
||||
0 slc
|
||||
0.000 slw
|
||||
n 9045 225 m
|
||||
9045 900 l gs col7 0.70 shd ef gr
|
||||
% Polyline
|
||||
30.000 slw
|
||||
n 8280 0 m 8280 4095 l 9900 4410 l 9900 5310 l 8280 5715 l 8280 6795 l
|
||||
9045 6795 l 9045 5715 l 10620 5310 l 10620 4365 l 9045 4095 l
|
||||
9045 0 l
|
||||
cp gs col7 0.70 shd ef gr gs col0 s gr
|
||||
% Polyline
|
||||
7.500 slw
|
||||
n 10305 3375 m 12780 3375 l 12780 4050 l 10305 4050 l
|
||||
cp gs col7 0.80 shd ef gr gs col0 s gr
|
||||
% Polyline
|
||||
n 12780 3375 m 15255 3375 l 15255 4050 l 12780 4050 l
|
||||
cp gs col7 0.60 shd ef gr gs col0 s gr
|
||||
% Polyline
|
||||
n 15705 3375 m 17595 3375 l 17595 4050 l 15705 4050 l
|
||||
cp gs col7 0.80 shd ef gr gs col0 s gr
|
||||
% Polyline
|
||||
n 8280 4500 m 9900 4500 l 9900 5175 l 8280 5175 l
|
||||
cp gs /PC [[1.00 1.00 1.00] [0.00 0.00 0.00]] def
|
||||
15.00 15.00 sc P4 [16 0 0 -16 552.00 300.00] PATmp PATsp ef gr PATusp gs col0 s gr
|
||||
% Polyline
|
||||
n 10350 2385 m 11970 2385 l 11970 3060 l 10350 3060 l
|
||||
cp gs /PC [[1.00 1.00 1.00] [0.00 0.00 0.00]] def
|
||||
15.00 15.00 sc P4 [16 0 0 -16 690.00 159.00] PATmp PATsp ef gr PATusp gs col0 s gr
|
||||
% Polyline
|
||||
n 8280 225 m
|
||||
8280 900 l gs col0 s gr
|
||||
% Polyline
|
||||
n 7515 225 m
|
||||
7515 900 l gs col0 s gr
|
||||
% Polyline
|
||||
n 9765 225 m
|
||||
9765 900 l gs col0 s gr
|
||||
% Polyline
|
||||
n 9045 1125 m
|
||||
9045 1800 l gs col0 s gr
|
||||
% Polyline
|
||||
n 8280 1125 m
|
||||
8280 1800 l gs col0 s gr
|
||||
% Polyline
|
||||
n 9765 1125 m
|
||||
9765 1800 l gs col0 s gr
|
||||
% Polyline
|
||||
n 8280 3285 m
|
||||
8280 3960 l gs col0 s gr
|
||||
% Polyline
|
||||
n 7515 2385 m
|
||||
7515 3060 l gs col0 s gr
|
||||
% Polyline
|
||||
n 8280 4500 m
|
||||
8280 5175 l gs col0 s gr
|
||||
% Polyline
|
||||
n 7515 5850 m
|
||||
7515 6525 l gs col0 s gr
|
||||
% Polyline
|
||||
n 7515 4500 m
|
||||
7515 5175 l gs col0 s gr
|
||||
% Polyline
|
||||
n 10620 4500 m
|
||||
10620 5175 l gs col0 s gr
|
||||
% Polyline
|
||||
n 11340 4500 m
|
||||
11340 5175 l gs col0 s gr
|
||||
% Polyline
|
||||
n 8280 2385 m
|
||||
8280 3060 l gs col0 s gr
|
||||
% Polyline
|
||||
n 8280 5850 m
|
||||
8280 6525 l gs col0 s gr
|
||||
% Polyline
|
||||
n 9045 5850 m
|
||||
9045 6525 l gs col0 s gr
|
||||
% Polyline
|
||||
n 9765 5850 m
|
||||
9765 6525 l gs col0 s gr
|
||||
% Polyline
|
||||
n 5625 225 m
|
||||
5625 900 l gs col0 s gr
|
||||
% Polyline
|
||||
n 5625 1125 m
|
||||
5625 1800 l gs col0 s gr
|
||||
% Polyline
|
||||
n 7515 1125 m
|
||||
7515 1800 l gs col0 s gr
|
||||
% Polyline
|
||||
n 5625 4500 m
|
||||
5625 5175 l gs col0 s gr
|
||||
% Polyline
|
||||
n 5625 5850 m
|
||||
5625 6525 l gs col0 s gr
|
||||
% Polyline
|
||||
n 4950 2385 m 9045 2385 l 9045 3060 l 4950 3060 l
|
||||
cp gs col0 s gr
|
||||
% Polyline
|
||||
30.000 slw
|
||||
[120] 0 sd
|
||||
n 4860 135 m 4860 3150 l 10395 3150 l 10395 1890 l 16560 1890 l 16560 90 l
|
||||
5265 135 l
|
||||
cp gs col0 s gr [] 0 sd
|
||||
% Polyline
|
||||
7.500 slw
|
||||
n 9045 2385 m
|
||||
9045 3060 l gs col0 s gr
|
||||
% Polyline
|
||||
n 10350 2385 m 9045 2385 l 9045 3060 l 10350 3060 l
|
||||
cp gs col0 s gr
|
||||
% Polyline
|
||||
n 9540 2385 m
|
||||
9540 3060 l gs col0 s gr
|
||||
% Polyline
|
||||
n 5625 2385 m
|
||||
5625 3060 l gs col0 s gr
|
||||
% Polyline
|
||||
n 4950 135 m 16470 135 l 16470 900 l 4950 900 l
|
||||
cp gs col0 s gr
|
||||
% Polyline
|
||||
n 15705 225 m
|
||||
15705 900 l gs col0 s gr
|
||||
% Polyline
|
||||
n 4950 1125 m 16470 1125 l 16470 1800 l 4950 1800 l
|
||||
cp gs col0 s gr
|
||||
% Polyline
|
||||
n 15705 1125 m
|
||||
15705 1800 l gs col0 s gr
|
||||
% Polyline
|
||||
[15 45] 45 sd
|
||||
n 15120 2385 m 16470 2385 l 16470 3060 l 15120 3060 l
|
||||
cp gs col0 s gr [] 0 sd
|
||||
% Polyline
|
||||
n 11970 2385 m 15120 2385 l 15120 3060 l 11970 3060 l
|
||||
cp gs /PC [[1.00 1.00 1.00] [0.00 0.00 0.00]] def
|
||||
15.00 15.00 sc P5 [16 0 0 -16 798.00 159.00] PATmp PATsp ef gr PATusp gs col0 s gr
|
||||
% Polyline
|
||||
n 10980 3375 m
|
||||
10980 4050 l gs col0 s gr
|
||||
% Polyline
|
||||
n 11655 3375 m
|
||||
11655 4050 l gs col0 s gr
|
||||
% Polyline
|
||||
n 12105 3375 m
|
||||
12105 4050 l gs col0 s gr
|
||||
% Polyline
|
||||
n 13455 3375 m
|
||||
13455 4050 l gs col0 s gr
|
||||
% Polyline
|
||||
n 14130 3375 m
|
||||
14130 4050 l gs col0 s gr
|
||||
% Polyline
|
||||
n 14580 3375 m
|
||||
14580 4050 l gs col0 s gr
|
||||
% Polyline
|
||||
n 15255 3375 m
|
||||
15255 4050 l gs col0 s gr
|
||||
% Polyline
|
||||
n 15705 3375 m
|
||||
15705 4050 l gs col0 s gr
|
||||
% Polyline
|
||||
n 16425 3375 m
|
||||
16425 4050 l gs col0 s gr
|
||||
% Polyline
|
||||
n 16875 3375 m
|
||||
16875 4050 l gs col0 s gr
|
||||
% Polyline
|
||||
n 11970 3060 m
|
||||
10305 3375 l gs col0 s gr
|
||||
% Polyline
|
||||
n 15120 3060 m
|
||||
17595 3375 l gs col0 s gr
|
||||
% Polyline
|
||||
n 12780 3375 m
|
||||
12780 4050 l gs col0 s gr
|
||||
% Polyline
|
||||
n 10305 3375 m 17595 3375 l 17595 4050 l 10305 4050 l
|
||||
cp gs col0 s gr
|
||||
% Polyline
|
||||
n 4950 5850 m 16470 5850 l 16470 6525 l 4950 6525 l
|
||||
cp gs col0 s gr
|
||||
% Polyline
|
||||
n 15705 5850 m
|
||||
15705 6525 l gs col0 s gr
|
||||
% Polyline
|
||||
n 4950 4500 m 19125 4500 l 19125 5175 l 4950 5175 l
|
||||
cp gs col0 s gr
|
||||
% Polyline
|
||||
n 18405 4500 m
|
||||
18405 5175 l gs col0 s gr
|
||||
/Helvetica-Bold-iso ff 254.00 scf sf
|
||||
8370 4815 m
|
||||
gs 1 -1 sc (Ecc Header) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 254.00 scf sf
|
||||
8370 5085 m
|
||||
gs 1 -1 sc (2048 Bytes) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 254.00 scf sf
|
||||
10440 2700 m
|
||||
gs 1 -1 sc (Ecc Header) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 254.00 scf sf
|
||||
10440 2970 m
|
||||
gs 1 -1 sc (2048 Bytes) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
15795 675 m
|
||||
gs 1 -1 sc (d) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
15975 765 m
|
||||
gs 1 -1 sc (ls, 1) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
15795 1575 m
|
||||
gs 1 -1 sc (d) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
15975 1665 m
|
||||
gs 1 -1 sc (ls, 2) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
15975 6390 m
|
||||
gs 1 -1 sc (ls, k) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
15750 6300 m
|
||||
gs 1 -1 sc (e) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
18675 5040 m
|
||||
gs 1 -1 sc (ls, 1) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
18495 4950 m
|
||||
gs 1 -1 sc (e) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
8460 675 m
|
||||
gs 1 -1 sc (d) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
8640 765 m
|
||||
gs 1 -1 sc (i, 1) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
9090 675 m
|
||||
gs 1 -1 sc (d) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
9270 765 m
|
||||
gs 1 -1 sc (i+1, 1) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
7560 675 m
|
||||
gs 1 -1 sc (d) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
7785 765 m
|
||||
gs 1 -1 sc (i-1, 1) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
3780 675 m
|
||||
gs 1 -1 sc (Data 1) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
8460 1575 m
|
||||
gs 1 -1 sc (d) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
8640 1665 m
|
||||
gs 1 -1 sc (i, 2) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
9090 1575 m
|
||||
gs 1 -1 sc (d) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
9270 1665 m
|
||||
gs 1 -1 sc (i+1, 2) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
7560 1575 m
|
||||
gs 1 -1 sc (d) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
7785 1665 m
|
||||
gs 1 -1 sc (i-1, 2) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
3780 1575 m
|
||||
gs 1 -1 sc (Data 2) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
8460 2835 m
|
||||
gs 1 -1 sc (d) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
8640 2925 m
|
||||
gs 1 -1 sc (i, n) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
7560 2835 m
|
||||
gs 1 -1 sc (d) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
7785 2925 m
|
||||
gs 1 -1 sc (i-1, n) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
3780 2835 m
|
||||
gs 1 -1 sc (Data n) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
8460 6300 m
|
||||
gs 1 -1 sc (e) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
8640 6390 m
|
||||
gs 1 -1 sc (i, k) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
9090 6300 m
|
||||
gs 1 -1 sc (e) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
9270 6390 m
|
||||
gs 1 -1 sc (i+1, k) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
7560 6300 m
|
||||
gs 1 -1 sc (e) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
7560 4950 m
|
||||
gs 1 -1 sc (e) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
7785 6390 m
|
||||
gs 1 -1 sc (i-1, k) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
7785 5040 m
|
||||
gs 1 -1 sc (i-1, 1) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
7785 7200 m
|
||||
gs 1 -1 sc (ECC block i) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
3780 6300 m
|
||||
gs 1 -1 sc (ECC k) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
3780 4950 m
|
||||
gs 1 -1 sc (ECC 1) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
10035 4950 m
|
||||
gs 1 -1 sc (e) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
10215 5040 m
|
||||
gs 1 -1 sc (i, 1) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
10665 4950 m
|
||||
gs 1 -1 sc (e) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
10845 5040 m
|
||||
gs 1 -1 sc (i+1, 1) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
4140 2160 m
|
||||
gs 1 -1 sc (...) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
4050 5625 m
|
||||
gs 1 -1 sc (...) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
4995 675 m
|
||||
gs 1 -1 sc (d) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
5220 765 m
|
||||
gs 1 -1 sc (1, 1) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
4995 1575 m
|
||||
gs 1 -1 sc (d) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
5220 1665 m
|
||||
gs 1 -1 sc (1, 2) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
4995 2835 m
|
||||
gs 1 -1 sc (d) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
5220 2925 m
|
||||
gs 1 -1 sc (1, n) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
4995 4950 m
|
||||
gs 1 -1 sc (e) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
5175 5040 m
|
||||
gs 1 -1 sc (1, 1) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
4995 6300 m
|
||||
gs 1 -1 sc (e) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
5175 6390 m
|
||||
gs 1 -1 sc (1, k) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
6435 675 m
|
||||
gs 1 -1 sc (...) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
6435 1575 m
|
||||
gs 1 -1 sc (...) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
6435 2835 m
|
||||
gs 1 -1 sc (...) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
6435 4950 m
|
||||
gs 1 -1 sc (...) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
6480 6300 m
|
||||
gs 1 -1 sc (...) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
9765 2925 m
|
||||
gs 1 -1 sc (ns, n) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
9585 2835 m
|
||||
gs 1 -1 sc (d) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
9225 2835 m
|
||||
gs 1 -1 sc (...) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
12960 675 m
|
||||
gs 1 -1 sc (...) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
12960 1575 m
|
||||
gs 1 -1 sc (...) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
15165 2790 m
|
||||
gs 1 -1 sc (padding) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
12420 2700 m
|
||||
gs 1 -1 sc (CRC checksums) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
12375 2925 m
|
||||
gs 1 -1 sc (\(see zoomed view below\)) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
10350 3825 m
|
||||
gs 1 -1 sc (c) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
10530 3915 m
|
||||
gs 1 -1 sc (y1,1) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
11025 3825 m
|
||||
gs 1 -1 sc (c) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
11205 3915 m
|
||||
gs 1 -1 sc (y1,2) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
11745 3825 m
|
||||
gs 1 -1 sc (...) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
12150 3825 m
|
||||
gs 1 -1 sc (c) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
12330 3915 m
|
||||
gs 1 -1 sc (y1,n) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
12825 3825 m
|
||||
gs 1 -1 sc (c) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
13005 3915 m
|
||||
gs 1 -1 sc (y2,1) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
13500 3825 m
|
||||
gs 1 -1 sc (c) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
13680 3915 m
|
||||
gs 1 -1 sc (y2,2) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
14220 3825 m
|
||||
gs 1 -1 sc (...) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
14625 3825 m
|
||||
gs 1 -1 sc (c) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
14805 3915 m
|
||||
gs 1 -1 sc (y2,n) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
15345 3825 m
|
||||
gs 1 -1 sc (...) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
15750 3825 m
|
||||
gs 1 -1 sc (c) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
15930 3915 m
|
||||
gs 1 -1 sc (lss,1) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
16515 3825 m
|
||||
gs 1 -1 sc (...) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
16920 3825 m
|
||||
gs 1 -1 sc (c) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 190.50 scf sf
|
||||
17100 3915 m
|
||||
gs 1 -1 sc (lss,n) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
12960 6300 m
|
||||
gs 1 -1 sc (...) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 285.75 scf sf
|
||||
13500 4950 m
|
||||
gs 1 -1 sc (...) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
10980 0 m
|
||||
gs 1 -1 sc (dashed area: original .iso image) col0 sh gr
|
||||
% here ends figure;
|
||||
pagefooter
|
||||
showpage
|
||||
%%Trailer
|
||||
end
|
||||
%EOF
|
||||
236
documentation/codec-specs/rs02-layout.fig
Normal file
236
documentation/codec-specs/rs02-layout.fig
Normal file
@@ -0,0 +1,236 @@
|
||||
#FIG 3.2 Produced by xfig version 3.2.5b
|
||||
Landscape
|
||||
Center
|
||||
Metric
|
||||
A4
|
||||
100.00
|
||||
Single
|
||||
-2
|
||||
1200 2
|
||||
6 8280 4500 9900 5175
|
||||
2 2 0 1 0 7 50 -1 44 0.000 0 0 -1 0 0 5
|
||||
8280 4500 9900 4500 9900 5175 8280 5175 8280 4500
|
||||
4 0 0 50 -1 18 16 0.0000 4 210 1515 8370 4815 Ecc Header\001
|
||||
4 0 0 50 -1 18 16 0.0000 4 270 1410 8370 5085 2048 Bytes\001
|
||||
-6
|
||||
6 10350 2385 11970 3060
|
||||
2 2 0 1 0 7 50 -1 44 0.000 0 0 -1 0 0 5
|
||||
10350 2385 11970 2385 11970 3060 10350 3060 10350 2385
|
||||
4 0 0 50 -1 18 16 0.0000 4 210 1515 10440 2700 Ecc Header\001
|
||||
4 0 0 50 -1 18 16 0.0000 4 270 1410 10440 2970 2048 Bytes\001
|
||||
-6
|
||||
6 15795 450 16380 810
|
||||
4 0 0 50 -1 18 18 0.0000 4 210 180 15795 675 d\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 390 15975 765 ls, 1\001
|
||||
-6
|
||||
6 15795 1350 16380 1710
|
||||
4 0 0 50 -1 18 18 0.0000 4 210 180 15795 1575 d\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 390 15975 1665 ls, 2\001
|
||||
-6
|
||||
6 15750 6120 16380 6435
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 390 15975 6390 ls, k\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 150 165 15750 6300 e\001
|
||||
-6
|
||||
6 18495 4770 19080 5085
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 390 18675 5040 ls, 1\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 150 165 18495 4950 e\001
|
||||
-6
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
8280 225 8280 900
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
7515 225 7515 900
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
9765 225 9765 900
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
9045 1125 9045 1800
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
8280 1125 8280 1800
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
9765 1125 9765 1800
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
8280 3285 8280 3960
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
7515 2385 7515 3060
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
8280 4500 8280 5175
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
7515 5850 7515 6525
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
7515 4500 7515 5175
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
10620 4500 10620 5175
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
11340 4500 11340 5175
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
8280 2385 8280 3060
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
8280 5850 8280 6525
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
9045 5850 9045 6525
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
9765 5850 9765 6525
|
||||
2 1 0 0 0 7 51 -1 14 0.000 0 0 -1 0 0 2
|
||||
9045 225 9045 900
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
5625 225 5625 900
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
5625 1125 5625 1800
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
7515 1125 7515 1800
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
5625 4500 5625 5175
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
5625 5850 5625 6525
|
||||
2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
|
||||
4950 2385 9045 2385 9045 3060 4950 3060 4950 2385
|
||||
2 3 1 3 0 7 50 -1 -1 8.000 0 0 -1 0 0 8
|
||||
4860 135 4860 3150 10395 3150 10395 1890 16560 1890 16560 90
|
||||
5265 135 4860 135
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
9045 2385 9045 3060
|
||||
2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
|
||||
10350 2385 9045 2385 9045 3060 10350 3060 10350 2385
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
9540 2385 9540 3060
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
5625 2385 5625 3060
|
||||
2 3 0 3 0 7 51 -1 14 0.000 0 0 -1 0 0 13
|
||||
8280 0 8280 4095 9900 4410 9900 5310 8280 5715 8280 6795
|
||||
9045 6795 9045 5715 10620 5310 10620 4365 9045 4095 9045 0
|
||||
8280 0
|
||||
2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
|
||||
4950 135 16470 135 16470 900 4950 900 4950 135
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
15705 225 15705 900
|
||||
2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
|
||||
4950 1125 16470 1125 16470 1800 4950 1800 4950 1125
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
15705 1125 15705 1800
|
||||
2 2 2 1 0 7 50 -1 -1 3.000 0 0 -1 0 0 5
|
||||
15120 2385 16470 2385 16470 3060 15120 3060 15120 2385
|
||||
2 2 0 1 0 7 50 -1 45 0.000 0 0 -1 0 0 5
|
||||
11970 2385 15120 2385 15120 3060 11970 3060 11970 2385
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
10980 3375 10980 4050
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
11655 3375 11655 4050
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
12105 3375 12105 4050
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
13455 3375 13455 4050
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
14130 3375 14130 4050
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
14580 3375 14580 4050
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
15255 3375 15255 4050
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
15705 3375 15705 4050
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
16425 3375 16425 4050
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
16875 3375 16875 4050
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
11970 3060 10305 3375
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
15120 3060 17595 3375
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
12780 3375 12780 4050
|
||||
2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
|
||||
10305 3375 17595 3375 17595 4050 10305 4050 10305 3375
|
||||
2 2 0 1 0 7 51 -1 16 0.000 0 0 -1 0 0 5
|
||||
10305 3375 12780 3375 12780 4050 10305 4050 10305 3375
|
||||
2 2 0 1 0 7 51 -1 12 0.000 0 0 -1 0 0 5
|
||||
12780 3375 15255 3375 15255 4050 12780 4050 12780 3375
|
||||
2 2 0 1 0 7 51 -1 16 0.000 0 0 -1 0 0 5
|
||||
15705 3375 17595 3375 17595 4050 15705 4050 15705 3375
|
||||
2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
|
||||
4950 5850 16470 5850 16470 6525 4950 6525 4950 5850
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
15705 5850 15705 6525
|
||||
2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
|
||||
4950 4500 19125 4500 19125 5175 4950 5175 4950 4500
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
|
||||
18405 4500 18405 5175
|
||||
4 0 0 50 -1 18 18 0.0000 4 210 180 8460 675 d\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 285 8640 765 i, 1\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 210 180 9090 675 d\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 510 9270 765 i+1, 1\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 210 180 7560 675 d\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 450 7785 765 i-1, 1\001
|
||||
4 0 0 50 -1 18 20 0.0000 4 240 975 3780 675 Data 1\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 210 180 8460 1575 d\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 285 8640 1665 i, 2\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 210 180 9090 1575 d\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 510 9270 1665 i+1, 2\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 210 180 7560 1575 d\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 450 7785 1665 i-1, 2\001
|
||||
4 0 0 50 -1 18 20 0.0000 4 240 975 3780 1575 Data 2\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 210 180 8460 2835 d\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 300 8640 2925 i, n\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 210 180 7560 2835 d\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 465 7785 2925 i-1, n\001
|
||||
4 0 0 50 -1 18 20 0.0000 4 240 1005 3780 2835 Data n\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 150 165 8460 6300 e\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 285 8640 6390 i, k\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 150 165 9090 6300 e\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 510 9270 6390 i+1, k\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 150 165 7560 6300 e\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 150 165 7560 4950 e\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 450 7785 6390 i-1, k\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 450 7785 5040 i-1, 1\001
|
||||
4 0 0 50 -1 18 20 0.0000 4 240 1845 7785 7200 ECC block i\001
|
||||
4 0 0 50 -1 18 20 0.0000 4 240 975 3780 6300 ECC k\001
|
||||
4 0 0 50 -1 18 20 0.0000 4 240 975 3780 4950 ECC 1\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 150 165 10035 4950 e\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 285 10215 5040 i, 1\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 150 165 10665 4950 e\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 510 10845 5040 i+1, 1\001
|
||||
4 0 0 50 -1 18 20 0.0000 4 45 270 4140 2160 ...\001
|
||||
4 0 0 50 -1 18 20 0.0000 4 45 270 4050 5625 ...\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 210 180 4995 675 d\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 165 330 5220 765 1, 1\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 210 180 4995 1575 d\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 165 330 5220 1665 1, 2\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 210 180 4995 2835 d\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 165 345 5220 2925 1, n\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 150 165 4995 4950 e\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 165 330 5175 5040 1, 1\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 150 165 4995 6300 e\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 330 5175 6390 1, k\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 45 225 6435 675 ...\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 45 225 6435 1575 ...\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 45 225 6435 2835 ...\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 45 225 6435 4950 ...\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 45 225 6480 6300 ...\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 135 465 9765 2925 ns, n\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 210 180 9585 2835 d\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 45 225 9225 2835 ...\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 45 225 12960 675 ...\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 45 225 12960 1575 ...\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 270 1125 15165 2790 padding\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 210 2265 12420 2700 CRC checksums\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 2340 12375 2925 (see zoomed view below)\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 150 165 10350 3825 c\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 375 10530 3915 y1,1\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 150 165 11025 3825 c\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 375 11205 3915 y1,2\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 45 225 11745 3825 ...\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 150 165 12150 3825 c\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 390 12330 3915 y1,n\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 150 165 12825 3825 c\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 375 13005 3915 y2,1\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 150 165 13500 3825 c\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 375 13680 3915 y2,2\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 45 225 14220 3825 ...\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 150 165 14625 3825 c\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 390 14805 3915 y2,n\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 45 225 15345 3825 ...\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 150 165 15750 3825 c\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 435 15930 3915 lss,1\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 45 225 16515 3825 ...\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 150 165 16920 3825 c\001
|
||||
4 0 0 50 -1 18 12 0.0000 4 180 450 17100 3915 lss,n\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 45 225 12960 6300 ...\001
|
||||
4 0 0 50 -1 18 18 0.0000 4 45 225 13500 4950 ...\001
|
||||
4 0 0 50 -1 18 20 0.0000 4 315 5055 10980 0 dashed area: original .iso image\001
|
||||
856
documentation/codec-specs/rs02.tex
Normal file
856
documentation/codec-specs/rs02.tex
Normal file
@@ -0,0 +1,856 @@
|
||||
\newpage
|
||||
\section{The RS02 codec}
|
||||
|
||||
This section describes the dvdisaster RS02 Reed-Solomon codec.
|
||||
It was developed during the winter of 2005/2006 in order to facilitate
|
||||
augmenting iso images directly with error correction data.
|
||||
|
||||
RS02 is based on the Reed-Solomon encoders and decoders
|
||||
introduced with RS01, but focuses exclusively on augmenting
|
||||
iso images. The allocation of data sectors within an ecc block
|
||||
follows a similar scheme as in RS01. However the layout of the
|
||||
parity bytes is vastly different between RS01 and RS02, as the codec must
|
||||
cope with any parity sector being damaged or unreadable.
|
||||
Consequently a RS02 image can lose as many sectors as
|
||||
allowed by the redundancy of
|
||||
the error correction data, and the lost sectors can be any
|
||||
combination of data and parity sectors, as it is expected from
|
||||
a Reed-Solomon scheme.
|
||||
|
||||
\smallskip
|
||||
|
||||
Unlike RS01, which will be completely superseded by RS03 soon,
|
||||
the case of RS02 vs. RS03 still remains open, as both codecs
|
||||
have their individual strengths. RS02 is slightly more space
|
||||
efficient than RS03, so on CD media RS02 might provide
|
||||
slightly more redundancy (typically one additional root) than RS03.
|
||||
This effect will be less
|
||||
pronounced on larger media like DVD and BD.
|
||||
RS02 images can be augmented to an arbitrary size which may
|
||||
be smaller than the maximum medium size, while RS03 requires
|
||||
augmenting the image to the full medium size.
|
||||
This might favour RS02 for working on images which are only
|
||||
30\% or less of the medium size, as they can be encoded with
|
||||
less than the maximum of 170 roots
|
||||
(the maximum redundancy requires lots of time to compute, producing
|
||||
a three-fold redundancy which may not be needed in all cases).
|
||||
On the other hand RS03 will counter
|
||||
the performance argument since it can encode at least
|
||||
20 times faster than RS02 on multi-core architectures,
|
||||
because RS02 encoding can not be parallelized.
|
||||
See the end of section \ref{rs01} for a speed comparison of RS01 vs. RS03;
|
||||
RS01 and RS02 are very similar performance-wise.
|
||||
Finally, the data layout of RS03 does not depend on interspersed
|
||||
ecc headers which gives it a better robustness over RS02;
|
||||
see subsection \ref{layout-logical-two} for details.
|
||||
|
||||
\subsection{Physical layout}
|
||||
|
||||
\begin{figure}
|
||||
\begin{center}
|
||||
\includegraphics[width=10cm]{spiral-rs02.eps}
|
||||
\caption{Physical RS02 layout}
|
||||
\label{layout-phy-two}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
|
||||
RS02 must be applied to the .iso image before it is written to
|
||||
the medium. Additional sectors are appended to the .iso image
|
||||
containing the parity data. The data structures of the .iso image
|
||||
are not changed to reflect the new image size, so the original
|
||||
part of the augmented .iso image remains untouched. The parity
|
||||
sectors can be removed from the augmented image by simply
|
||||
truncating the .iso image to its original sector size; the resulting
|
||||
image file will have the same contents as prior to the augmentation.
|
||||
As a side effect, the parity data is invisible to applications reading
|
||||
the medium at the filesystem level, including most hardware media
|
||||
players. If you find a player which gets confused by media containing
|
||||
RS02 (or RS03) parity, please consider telling the dvdisaster project about it. As of this writing,
|
||||
not a single device has been reported to run into problems with
|
||||
the RS02 data scheme. The RS02 augmented image might conflict with
|
||||
optical media writing software, though. If the writing software
|
||||
decides the image length by looking at the iso filesystem structures,
|
||||
the parity data portion of the image might not be written to the medium.
|
||||
Most current writing programs do however measure the .iso image by examining
|
||||
its file size, and will transfer the parity data correctly. To be sure you
|
||||
should follow the steps described under ``Testing image compatibility''
|
||||
at the dvdisaster site (\url{http://dvdisaster.net/en/howtos92.html}) once
|
||||
before using each version of your optical media authoring software.
|
||||
|
||||
Like the other dvdisaster codecs, RS02 is based on a RS(255,k) Reed-Solomon code
|
||||
with each ecc block being comprised of $n$ data bytes and $k$ parity bytes, and
|
||||
$n+k=255$. The $n$ data bytes comprise the .iso image which will be
|
||||
written to the medium, and the additional ecc header and CRC checksums added
|
||||
by dvdisaster. Reed-Solomon encoding works best when errors are
|
||||
distributed evenly over all ecc blocks. Therefore we must strive to distribute
|
||||
the ecc blocks evenly over the medium surface. To facilitate such mapping,
|
||||
dvdisaster logically divides the medium into 255 logical units which are called
|
||||
``layers'' for historical reasons.
|
||||
Figure \ref{layout-phy-two} shows how the medium is divided into $n$ data layers
|
||||
and $k$ ecc layers, with $n + k = 255$. Ecc blocks are
|
||||
created by taking on byte from each layer as shown in fig. \ref{layout-logical-two}
|
||||
on the following page. This distributes the ecc block reasonably good over
|
||||
the medium surface.
|
||||
All layers have the same length in bytes, with the possible exception of
|
||||
data layer $n$. As the .iso image size plus the size of one ecc header and the CRC data
|
||||
is usually not a multiple of the layer size, the $n$-th data layer may be shorter
|
||||
than the layer size and considered to be filled up with a virtual zero padding.
|
||||
The zero padding is not written out to the augmented image (note that data layer $n$
|
||||
is intentionally drawn shorter in fig. \ref{layout-phy-two}), but it is used in the
|
||||
calculation of the respective parity bytes.
|
||||
|
||||
\newpage
|
||||
|
||||
\subsection{Logical layout}
|
||||
\label{sec-layout-logical-two}
|
||||
|
||||
\begin{figure}
|
||||
\begin{center}
|
||||
\includegraphics[width=\textwidth]{rs02-layout.eps}
|
||||
\caption{Logical RS02 layout}
|
||||
\label{layout-logical-two}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
|
||||
The data layout in the augmented image is shown in figure \ref{layout-logical-two}.
|
||||
Note that in this figure the data is byte-indexed; e.g. $d_{1,1}$ denotes the
|
||||
first data byte in the augmented image. Each layer has a length of
|
||||
$ls$ bytes, with the exception of data layer $n$ which may be shortened (see subsection \ref{calc-two} for an exact calculation of its size).
|
||||
Some ecc layers my be interleaved with redundant copies of the ecc header.
|
||||
The ecc header size is not included in the respective ecc layer size.
|
||||
|
||||
\paragraph{Data layers.} A data layer index $d_{i,j}$ refers to the $i$-th byte in the $j$-th data layer.
|
||||
The $n$ data layers are mapped in a linear fashion to the original iso image.
|
||||
$d_{1,1}$ maps to the first .iso image byte, and $d_{ns,n}$ maps to the last .iso image
|
||||
byte ($ns$ is the number of remaining iso image bytes in the $n$-th data layer).
|
||||
|
||||
The last data layer is special because it does not only contain the rest of the iso image,
|
||||
but also the ecc header and the CRC checksums. These extensions
|
||||
are logically treated as a part of the iso image; their contents are used in the
|
||||
ecc data calculation and are therefore protected by the ecc data.
|
||||
The ecc header follows immediately after byte $d_{ns,n}$ and is 4096 bytes long.
|
||||
Its format is described in appendix \ref{eh}. For RS02, only the data fields
|
||||
marked with ``all'' or ``RS02'' are relevant; all other fields should be set to zero.
|
||||
|
||||
Data layer $n$ does also contain the CRC32 checksums of each data sector
|
||||
upto the ecc header. If the .iso image contains $s$ sectors,
|
||||
then the CRC field contains $4s$ bytes, rounded up
|
||||
to the nearest multiple of 2048.
|
||||
CRC32 checksums are calculated over a whole CD sector comprising 2048 bytes.
|
||||
Let $c_{y,j}$ be the 4-byte checksum of the $y$-th sector in the $j$-th layer
|
||||
and $lss$ be the number of sectors in each layer.
|
||||
Then $c_{y,j}$ = CRC32($d_{2048*y,j}$, $d_{2048*y+1,j}$, \dots, $d_{2048*y+2047,j}$).
|
||||
|
||||
$y_1$ is usually not the first sector in the layer, but a later sector.
|
||||
In general, $y_i$ = $(i+offset)$ mod $lss$. The offset is introduced to restore
|
||||
the CRC32 sums of ecc block $i+1$ during the correction of ecc block $i$.
|
||||
This helps if the data portion of the image is corrupted with wrong byte values and
|
||||
the sectors containing the CRC32 sums have been lost.
|
||||
The error correction will start at the ecc block $i$ which is determined
|
||||
by the offset, and whose CRC32 checksums are stored in the ecc header (at least one
|
||||
ecc header will be recovered before any error correction can begin). Correcting
|
||||
ecc block $i$ will recover the CRC32 checksums for ecc block $i+1$ in the image
|
||||
(and possibly some more in advance, as less than 2048 bytes are required for
|
||||
one set of checksums). This makes it possible to detect corrupted bytes by the
|
||||
checksums and flag them as erasures which effectively doubles the error correction
|
||||
capabilities of the Reed-Solomon code.
|
||||
|
||||
\paragraph{Ecc layers.} For an image augmented with $k$ roots, the parity bytes
|
||||
will be spread over $k$ ecc layers. In order to calculate the first ecc block,
|
||||
bytes $d_{1,1}$ to $d_{1,n}$ are taken from the $n$ data layers. The RS(255,k) code
|
||||
is calculated (see appendix \ref{rs} for its parameters) and the resulting $k$
|
||||
parity bytes $e_{1,1}$ to $e_{1,k}$ are stored in the $k$ ecc layers.
|
||||
The next ecc blocks are calculated and stored accordingly; ecc block $i$
|
||||
is marked grey in the figure.
|
||||
Care must be taken to honour the non-linear mapping of
|
||||
ecc layer bytes as the ecc area is interleaved with 20-40 copies of the ecc header.
|
||||
The ecc header copies are placed at sector addresses whose numbers
|
||||
are large powers of two. This makes it possible to heuristically search for them
|
||||
during the decoding boot-strap process
|
||||
when no other information (image size, layer size, etc.) is yet available.
|
||||
See section \ref{search-two} on the search heuristics and section \ref{addressing-two}
|
||||
on calculating ecc bytes positions from the non-linear mapping.
|
||||
|
||||
\subsection{Calculating the image layout for encoding}
|
||||
|
||||
The image layout can be either computed automatically to fill up
|
||||
the medium as much as possible, or by user selected criteria such
|
||||
as a maximum image size or a specified redundancy.
|
||||
|
||||
\subsubsection{Automatic layout calculation}
|
||||
\label{calc-two}
|
||||
|
||||
The only available inputs to automatic layout detection are
|
||||
the .iso image size and a table of maximum media sizes (see
|
||||
tab. \ref{layout-size-table} in the RS03 section for the
|
||||
respective values). From the media size table the smallest
|
||||
possible medium is chosen which can contain the .iso image.
|
||||
In some border cases, with e.g. the .iso image being only
|
||||
100 sectors smaller than the medium capacity, the automatic
|
||||
layout calculation will fail later due to insufficient space
|
||||
on the medium. In such cases, the user must decide between
|
||||
choosing the next larger medium size or splitting the image
|
||||
contents onto two media by himself (splitting a 700MiB CD image
|
||||
onto two CDs may be better than writing it to a DVD).
|
||||
|
||||
\smallskip
|
||||
|
||||
From now on, all calculations are given in numbers of 2048K
|
||||
sectors or sectors addresses
|
||||
unless noted otherwise. The number of sectors required for the
|
||||
CRC checksums can be directly computed from the .iso image size:
|
||||
|
||||
\[
|
||||
crc\; sectors = \left\lceil\frac{4 * iso\; image\; sectors}{2048}\right\rceil
|
||||
\]
|
||||
|
||||
The total accumulated size of all data layers is the sum of the
|
||||
.iso image size, the number of crc sectors and the two sectors required
|
||||
for the ecc header. Since these sectors are protected by the parity,
|
||||
they are called {\em protected sectors}:
|
||||
|
||||
\[protected\; sectors = iso\; image\; size + 2 + crc\; sectors\]
|
||||
|
||||
These calculations also produce two important sector addresses within
|
||||
the augmented image:
|
||||
|
||||
\begin{itemize}
|
||||
\item The sector with address {\em iso image size} marks the location
|
||||
of the ecc header; and
|
||||
\item The sector at address $iso\; image\; size + 2$ marks the beginning
|
||||
of the CRC checksum data.
|
||||
\end{itemize}
|
||||
|
||||
The next step is to partition the {\em protected sectors} and the remaining
|
||||
medium space into an optimal layer size. It is carried out iteratively.
|
||||
|
||||
\smallskip
|
||||
|
||||
For an approximate start, we determine the free space on the medium:
|
||||
|
||||
\[free\; space = medium\; capacity - protected\; sectors\]
|
||||
|
||||
and estimate a preliminary value for the number of roots and data layers:
|
||||
|
||||
\[k\; roots = min\left(170, \quad\left\lfloor\frac{255 * free\; space}{medium\; capacity}\right\rfloor\right)\]
|
||||
|
||||
\[n\; data = 255 - k\; roots\]
|
||||
|
||||
The maximum number of roots is capped at 170 which is approximately a three-fold
|
||||
redundancy. Larger values would get too computationally expensive.
|
||||
|
||||
\smallskip
|
||||
|
||||
The preliminary layer size is then:
|
||||
|
||||
\[preliminary\; layer\; size = \left\lceil\frac{protected\; sectors}{n\; data}\right\rceil\]
|
||||
|
||||
and the expected size of the parity layers is:
|
||||
|
||||
\[preliminary\; ecc\; size = k\; roots * preliminary\; layer\; size\]
|
||||
|
||||
\smallskip
|
||||
|
||||
% TODO: implement in codec
|
||||
\begin{comment}
|
||||
|
||||
From these values we iteratively compute a $2^p$ which has about 20-40 multiples
|
||||
in the {\em preliminary ecc size} address space. This value will be used
|
||||
for interleaving the ecc header copies with the ecc layers:
|
||||
|
||||
\smallskip
|
||||
|
||||
{\tt
|
||||
p := 5
|
||||
|
||||
while($\frac{preliminary\;ecc\;size}{2^p} > 40$)
|
||||
|
||||
\quad p := p + 1}
|
||||
\end{comment}
|
||||
|
||||
From these values we compute a $2^p$ which has about 20-40 multiples
|
||||
in the {\em preliminary ecc size} address space. This value will be used
|
||||
for interleaving the ecc header copies with the ecc layers:
|
||||
|
||||
\[ p = \left\lceil log_2\; \frac{preliminary\;ecc\;size}{40} \right\rceil \]
|
||||
|
||||
%\[ p = \left\lceil \frac{log\; \frac{preliminary\;ecc\;size}{40}}{log\; 2} \right\rceil \]
|
||||
|
||||
|
||||
\smallskip
|
||||
|
||||
Now the chosen values might be actually too big since we haven't taken
|
||||
the ecc header copies into account.
|
||||
So the final task is to add up the number pf parity sectors and ecc header
|
||||
copies. If these fit into the free medium space, we are done; otherwise
|
||||
the calculations are done again with one root less.
|
||||
|
||||
\newpage
|
||||
|
||||
\bigskip
|
||||
|
||||
while($n\; roots > 7$)
|
||||
|
||||
\smallskip
|
||||
|
||||
\quad $layer\; size := \left\lceil\frac{protected\; sectors}{n\; data}\right\rceil$
|
||||
|
||||
\smallskip
|
||||
|
||||
\quad $ecc\; size := n\; roots * layer\; size$
|
||||
|
||||
\smallskip
|
||||
|
||||
\quad $first\; ecc\; header\; repeat\; addr := \left\lceil\frac{protected\; sectors}{2^p}\right\rceil * 2^p$
|
||||
|
||||
\smallskip
|
||||
|
||||
\quad $space\; for\; interleaved\; sectors := protected\; sectors + ecc\; size - first\; ecc\; header\; repeat\; addr$
|
||||
|
||||
\smallskip
|
||||
|
||||
\quad $number\; of\; ecc\; copies := \left\lfloor\frac{space\; for\; interleaved\; sectors}{2^p - 2}\right\rfloor + 1$
|
||||
|
||||
\smallskip
|
||||
|
||||
\quad $total\; added\; sectors := 2 + crc\; sectors + ecc\; size + 2 * number\; of\; ecc\; copies$
|
||||
|
||||
\medskip
|
||||
|
||||
\quad If $iso\; image\; sectors + total\; added\; sectors < medium\; size$,
|
||||
we have a valid layout: STOP.
|
||||
|
||||
\smallskip
|
||||
|
||||
\quad Otherwise, set $n\; roots := n\; roots - 1$ and $n\; data := 255 - n\; roots$
|
||||
and do another iteration.
|
||||
|
||||
\medskip
|
||||
|
||||
The iteration will either terminate with a valid layout or fail when
|
||||
$n\; roots$ drops below the minimum redundancy of 8 roots.
|
||||
|
||||
\subsubsection{Layout calculation by user selected criteria}
|
||||
|
||||
The user has several means of specifying a certain redundancy:
|
||||
|
||||
\paragraph{Specifying the maximum number of sectors for the augmented image.}
|
||||
|
||||
This case is simply handled by setting {\em medium capacity} to the user
|
||||
selected sector size rather than using the maximum medium size from the
|
||||
built-in table. Afterwards, calculations continue as described in
|
||||
section \ref{calc-two}.
|
||||
|
||||
\paragraph{Specifying the number of roots to use.}
|
||||
|
||||
In this case we can skip the calculations for {\em free space} and
|
||||
{\em k roots} as described in section \ref{calc-two}, and instead
|
||||
set {\em k roots} directly to the user selected value. Then the
|
||||
layout calculation proceeds as usual.
|
||||
|
||||
\paragraph{Specifying the percentage of redundancy to use.}
|
||||
|
||||
For a given number of {\em k roots}, the resulting redundancy in percent is:
|
||||
|
||||
\[\frac{k\; roots \cdot 100}{255 - k\; roots}\]
|
||||
|
||||
Pick a suitable value for {\em k roots} so that the user selected value
|
||||
is met or slightly exceeded. Proceed with the given number of roots
|
||||
as described in the previous paragraph.
|
||||
|
||||
\subsubsection{Layout calculation from ecc header information}
|
||||
\label{recalc-layout-header-two}
|
||||
|
||||
In a given ecc header struct {\em eh}, the number of sectors in the .iso
|
||||
image is recorded as \mbox{\em eh-$>$sectors}
|
||||
and the number of roots is contained in \mbox{\em eh-$>$eccBytes}.
|
||||
Calculation of the layout is done as shown in section \ref{calc-two},
|
||||
with the exception of omitting the calculation for {\em free space} and
|
||||
setting {\em k roots} directly to \mbox{\em eh-$>$eccBytes}.
|
||||
|
||||
\subsection{Automatic layout calculation example}
|
||||
\label{example-two}
|
||||
|
||||
Let's assume we are going to encode an .iso image of 295.000 sectors.
|
||||
This is well below the CD medium capacity of 359.424 sectors, so we
|
||||
start with:
|
||||
|
||||
\smallskip
|
||||
|
||||
$medium\; capacity = 359.424\; sectors$
|
||||
|
||||
$iso\; image\; size = 295.000\; sectors$
|
||||
|
||||
\medskip
|
||||
|
||||
The number of CRC sectors will be:
|
||||
|
||||
\smallskip
|
||||
|
||||
$crc\; sectors = \left\lfloor\frac{4 * 295.000}{2.048}\right\rfloor = 577\; sectors$
|
||||
|
||||
\medskip
|
||||
|
||||
The total size of all data layers is:
|
||||
|
||||
$protected\; sectors = 295.000 + 2 + 577 = 295.579\; sectors$
|
||||
|
||||
\bigskip
|
||||
|
||||
The next step is creating some preliminary starting values:
|
||||
|
||||
\smallskip
|
||||
|
||||
$free\; space = 359.424 - 295.579 = 63.845\; sectors$
|
||||
|
||||
\smallskip
|
||||
|
||||
$k\; roots = min\left(170, \left\lfloor\frac{255* 63.845}{359.424}\right\rfloor\right) = min(170, 45) = 45\; roots\; (or\; layers)$
|
||||
|
||||
\smallskip
|
||||
|
||||
$n\; data = 255 - 45 = 210\; layers$
|
||||
|
||||
\bigskip
|
||||
|
||||
Now some more preliminary values can be computed:
|
||||
|
||||
\smallskip
|
||||
|
||||
$preliminary\; layer\; size = \left\lceil\frac{295.579}{210}\right\rceil = 1.408\; sectors$
|
||||
|
||||
\smallskip
|
||||
|
||||
$preliminary\; ecc\; size = 45 * 1.408 = 63.360\; sectors$
|
||||
|
||||
\bigskip
|
||||
|
||||
Finally, we compute $p = 11$ since $\frac{63360}{2^{11}} = 30,9$.
|
||||
|
||||
\bigskip
|
||||
|
||||
Now the chosen values must be verified to produce a layout which is
|
||||
still smaller than the image size. We compute (the first two values are already known):
|
||||
|
||||
\medskip
|
||||
|
||||
$layer\; size = \left\lceil\frac{295.579}{210}\right\rceil = 1.408\; sectors$
|
||||
|
||||
\smallskip
|
||||
|
||||
$ecc\; size = 45 * 1.408 = 63.360\; sectors$
|
||||
|
||||
\smallskip
|
||||
|
||||
$first\; ecc\; header\; repeat\; addr = \left\lceil\frac{295.579}{2048}\right\rceil * 2048 = 296.960$
|
||||
|
||||
\smallskip
|
||||
|
||||
$space\; for\; interleaved\; sectors = 295.579 + 63.360 - 296.960 = 61.979\; sectors$
|
||||
|
||||
\smallskip
|
||||
|
||||
$number\; of\; ecc\; copies = \left\lfloor\frac{61.979}{2048-2}\right\rfloor + 1 = 31\; header\; repeats$
|
||||
|
||||
\smallskip
|
||||
|
||||
$total\; added\; sectors = 2 + 577 + 63.360 + 2 * 31 = 64.001\; sectors$
|
||||
|
||||
\medskip
|
||||
|
||||
This layout will generate an augmented image containing
|
||||
$295.000 + 64.001 = 359.001$ sectors which is
|
||||
less than the medium capacity of 359.424 sectors
|
||||
and therefore accepted.
|
||||
|
||||
\subsection{Re-calculating the layout from defective media}
|
||||
\label{search-two}
|
||||
|
||||
In order to recover a defective medium, at least one ecc header must
|
||||
remain readable and be located by the following heuristic. This
|
||||
is a major difference to RS03, which has more and different means
|
||||
for bootstrapping the recovery (see section \ref{recover} for details).
|
||||
Once one ecc header has been recovered, the ecc data layout can be
|
||||
calculated as described in section \ref{recalc-layout-header-two}.
|
||||
From this point, the error correction is done using the parameters
|
||||
and data described in section \ref{encoding-two}.
|
||||
|
||||
\smallskip
|
||||
|
||||
If the medium is not damaged or only slightly damaged, the following
|
||||
short cut might work: The size of the .iso image can be determined
|
||||
from the iso file system header. Then the ecc header immediately
|
||||
following the .iso image part of the augmented image is either
|
||||
located at sector number $iso\;image\;size$ or $iso\;image\;size + 150$.
|
||||
The latter case arises because some popular CD authoring software
|
||||
appends 150 padding sectors to any .iso image it creates.
|
||||
|
||||
\smallskip
|
||||
|
||||
If the short cut does not work due to the required sectors being damaged,
|
||||
the following strategy is employed. The size of the augmented image
|
||||
can always be determined; it can either be queried from the drive or
|
||||
it is the file size of a file-based image. Then apply the following
|
||||
algorithm:
|
||||
|
||||
\bigskip
|
||||
|
||||
$p = \left\lfloor log_2(image\; size)\right\rfloor$
|
||||
|
||||
while $p > 32$
|
||||
|
||||
\quad $pos = \left\lfloor\frac{image\; size}{2^p}\right\rfloor \cdot 2^p$
|
||||
|
||||
\smallskip
|
||||
|
||||
\quad while $pos > 0$
|
||||
|
||||
\qquad if {\em sector at pos} is a valid ecc header: STOP.
|
||||
|
||||
\qquad if {\em sector at pos} is unreadable, set $pos := pos - 2^p$ .
|
||||
|
||||
\hspace*{13mm} Continue with inner while loop.
|
||||
|
||||
\qquad if {\em sector at pos} is readable and not a ecc header, set $p := p -1$ .
|
||||
|
||||
\hspace*{13mm} Continue with outer while loop.
|
||||
|
||||
\bigskip
|
||||
|
||||
In order to test for a valid ecc header, check that {\em ec-$>$cookie}
|
||||
equals the 16-byte string ``*dvdisaster*RS02''. Then check that the
|
||||
CRC32 sum of the ecc header matches the value recorded in {\em eh-$>$selfCRC},
|
||||
with {\em eh-$>$selfCRC} set to the byte sequence 0x47,0x50,0x4c,0x00
|
||||
for the purpose of calculating the CRC32 sum.
|
||||
|
||||
\medskip
|
||||
|
||||
Please notice that during testing of the sectors at multiples of $2^{(p-1)}$,
|
||||
all sectors previously tested for $2^p$ will be examined again. It is therefore
|
||||
highly recommended to cache results from previous iterations of the outer
|
||||
while loop, especially when reading sectors from the optical medium.
|
||||
|
||||
|
||||
|
||||
\subsection{Sector addressing and initialization scheme}
|
||||
\label{addressing-two}
|
||||
|
||||
For encoding and decoding purposes it is required to retrieve the
|
||||
{\em i-th} sector from the {\em j-th} data or ecc layers, e.g. to calculate
|
||||
the corresponding sector number in the augmented image.
|
||||
The reverse calculation is also needed, e.g. to calculate the
|
||||
corresponding layer and sector index for a given sector number
|
||||
in the augmented image.
|
||||
|
||||
\smallskip
|
||||
|
||||
Bear in mind that as shown in figure \ref{layout-logical-two}, an augmented image
|
||||
is divided into two logical parts. There is a data area containing
|
||||
the .iso image contents, the first ecc header and the CRC checksums.
|
||||
The data area is protected by the parity in the ecc area, which contains
|
||||
the parity data interleaved with copies of the ecc header.
|
||||
|
||||
\smallskip
|
||||
|
||||
In order to carry out the calculations described below, the following
|
||||
values from the layout calculation (see section \ref{calc-two} are required:
|
||||
|
||||
\bigskip
|
||||
|
||||
\begin{tabular}{lp{10cm}}
|
||||
{\em protected sectors} & the size of the data part in sectors \\
|
||||
{\em layer size} & the number of sectors per layer \\
|
||||
{\em $2^p$} & the modulo value for locating ecc header copies \\
|
||||
\end{tabular}
|
||||
|
||||
\paragraph{Converting (layer, sector index) pairs into image sector numbers.}
|
||||
|
||||
The {\em i-th} sector of data layer {\em j} has the following address $s$ in the image:
|
||||
|
||||
\[s = j \cdot layer\; size + i\]
|
||||
|
||||
If $s >= protected\; sectors$, $s$ is a padding sector which must not be read
|
||||
from the image file, but created in memory (see the paragraph on initialization below).
|
||||
|
||||
\bigskip
|
||||
|
||||
To calculate the sector address $es$ of the {\em i-th} sector from the {\em j-th}
|
||||
ecc layer, the non-linear mapping of the ecc sectors has to be taken into account.
|
||||
The index of the first interleaved ecc header is:
|
||||
|
||||
\[ first\; interleaved = \left\lceil\frac{protected\; sectors}{2^p}\right\rceil \cdot 2^p\]
|
||||
|
||||
Since {\em protected sectors} is equal to the address of the first ecc sector in the image,
|
||||
the amount of ecc sectors before the first interleaved ecc header is:
|
||||
|
||||
\[ base\; ecc\; sectors = first\; interleaved - protected\; sectors\]
|
||||
|
||||
The ecc sector we are looking for would have the following index if ecc
|
||||
sectors were linearly mapped:
|
||||
|
||||
\[ ecc\; index = j \cdot layer\; size + i\]
|
||||
|
||||
If {\em ecc index $<$ base ecc sectors}, $es$ = {\em protected sectors} + {\em ecc index}.
|
||||
Otherwise, the non-linear mapping must be taken into account. The number of interleaved
|
||||
ecc headers before the (currently unknown) sector position $es$ is:
|
||||
|
||||
\[ interleaved\; headers = \left\lfloor\frac{ecc\; index - base\; ecc\; sectors}{2^p - 2}\right\rfloor \]
|
||||
|
||||
Therfore the position of the ecc sector in the augmented image is:
|
||||
|
||||
\[ es = protected\; sectors + ecc\; index + 2 \cdot interleaved\; headers + 2 \]
|
||||
|
||||
\paragraph{Example.} To continue the example from section \ref{example-two}, the
|
||||
position of the 17th ecc sector in the 3rd ecc layer shall be computed. The relevant
|
||||
layout values are:
|
||||
|
||||
\smallskip
|
||||
|
||||
\begin{center}
|
||||
\begin{tabular}{rll}
|
||||
{\em protected sectors} & = & 295.579 \\
|
||||
{\em layer size} & = & 1.408 \\
|
||||
{\em $2^p$} & = & 2.048 \\
|
||||
\end{tabular}
|
||||
\end{center}
|
||||
|
||||
The first interleaved ecc header is at position:
|
||||
|
||||
\[ first\; interleaved = \left\lceil\frac{295.579}{2.048}\right\rceil \cdot 2.048 = 296.960 \]
|
||||
|
||||
Before the first interleaved ecc header,
|
||||
|
||||
\[ base\; ecc\; sectors = 296.960 - 295.579 = 1.381 \]
|
||||
|
||||
ecc sectors have been stored. The linear index of the sought ecc sector is:
|
||||
|
||||
\[ ecc\; index = 3 \cdot 1.408 + 17 = 4.241 \]
|
||||
|
||||
Since 4.241 $\ge$ 1.381, the embedded ecc headers must be taken into account. There are
|
||||
|
||||
\[ interleaved \; headers = \left\lfloor\frac{4.241 - 1.381}{2.048-2}\right\rfloor = 1 \]
|
||||
|
||||
interleaved ecc headers, each containing 2 physical sectors. Therefore the position
|
||||
of the sought ecc sector in the image is:
|
||||
|
||||
\[ es = 295.579 + 4.241 + 2 + 2 = 299.824 \]
|
||||
|
||||
\bigskip
|
||||
|
||||
{\bf Converting image sector numbers into (layer, sector index pairs).}
|
||||
|
||||
\smallskip
|
||||
|
||||
If the sector number $s$ $<$ {\em protected sectors}, the sector will map to the data part
|
||||
as follows:
|
||||
|
||||
\[layer = \left\lfloor s\; /\; layer\;size \right\rfloor\]
|
||||
\[i = s \bmod layer\;size\]
|
||||
|
||||
Otherwise, the mapping to the ecc part is calculated as follows. The index of the first interleaved ecc header is:
|
||||
|
||||
\[ first\; interleaved = \left\lceil\frac{protected\; sectors}{2^p}\right\rceil \cdot 2^p\]
|
||||
|
||||
If $s\; mod\; 2^p \le 1$, the sector maps to the {\em n-th} interleaved ecc header, with:
|
||||
|
||||
\[n = \left\lfloor\frac{s - first\; interleaved}{2^p}\right\rfloor\]
|
||||
|
||||
If $s < first\; interleaved$, the sector is an ecc parity sector with the following mapping:
|
||||
|
||||
\[ layer = \left\lfloor(s - protected\; sectors)\; /\; layer\; size\right\rfloor\]
|
||||
\[ i = (s - protected\; sectors)\; mod\; layer\;size\]
|
||||
|
||||
If $s \ge first\; interleaved$, the mapping of the ecc parity sector is calculated as follows:
|
||||
|
||||
The amount of ecc sectors before the first interleaved ecc header is:
|
||||
|
||||
\[ base\; ecc\; sectors = first\; interleaved - protected\; sectors\]
|
||||
|
||||
The number of interleaved ecc headers before sector $s$ is:
|
||||
|
||||
\[ interleaved\; headers = \left\lfloor\frac{s - first\; interleaved - 2}{2^p}\right\rfloor \]
|
||||
|
||||
If ecc sectors were mapped linearly, then $s$ had the linear index:
|
||||
|
||||
\[ ecc\; index = s - protected\; sectors - 2 \cdot interleaved\; headers - 2\]
|
||||
|
||||
Finally, this means that $s$ maps to the following parity sector:
|
||||
|
||||
\[ layer = \left\lfloor ecc\; index\; /\; layer\; size\right\rfloor \]
|
||||
\[ i = ecc\;index \bmod layer\; size \]
|
||||
|
||||
\paragraph{Padding sectors.} Let {\em iso image size} be the size of the
|
||||
.iso image prior to augmenting it with error correction data. In order
|
||||
to augment the image with error correction sectors, the following
|
||||
sectors are treated as padding sectors which are filled with zeroes:
|
||||
|
||||
\begin{itemize}
|
||||
\item All sectors $s$ $>$ {\em protected sectors}.
|
||||
\item The first ecc header (sectors $iso\; image\; size$ and $iso\; image\; size+1$).
|
||||
\end{itemize}
|
||||
|
||||
The first ecc header sectors must be treated as padding to break a circular
|
||||
dependency with the parity bytes; as the ecc header contains a md5 sum over
|
||||
all parity bytes, it can not be used as input for the parity generation.
|
||||
|
||||
\subsection{Encoding the checksums}
|
||||
\label{crc-two}
|
||||
|
||||
For each sector of the .iso image a CRC32 checksum is calculated and stored in the
|
||||
data part of the augmented image (see fig. \ref{layout-logical-two}). By using the
|
||||
conventions of section \ref{sec-layout-logical-two}, let $d_{i,j}$ be the $i$-th byte
|
||||
of the $j$-th data layer and $c(y,j)$ the 4-byte checksum of the $y$-th sector
|
||||
in the $j$-th data layer. Then $c(y,j)$ = CRC32($d_{2048*y,j}$, $d_{2048*y+1,j}$, \dots, $d_{2048*y+2047,j}$).
|
||||
|
||||
\smallskip
|
||||
|
||||
Let $first\; layer\; crc\; idx = (iso\; image\; size + 2) \bmod layer\; size$.
|
||||
|
||||
$n$ is the number of data layers.
|
||||
|
||||
\smallskip
|
||||
|
||||
A total of $\left\lceil\frac{iso\; image\; size}{512}\right\rceil$ sectors holding the
|
||||
CRC32 checksums must be generated. The checksums are sorted by the layer sector $y$ first,
|
||||
then by layer number $i$. So for each layer sector $y$, there is a block of $n$ checksums generated,
|
||||
and there are $layer\; size$ blocks of checksums total. Checksum generation does not start with
|
||||
layer sector $0$, but rather with layer sector $first\; layer\; crc\; idx$. Subsequent blocks
|
||||
are generated in ascending layer sector order {\em modulo layer size} so that all
|
||||
{\em layer size} layer sector positions are eventually covered.
|
||||
This scheme produces the following
|
||||
sequence of checksums:
|
||||
|
||||
\medskip
|
||||
|
||||
\begin{tabular}{l}
|
||||
$c((first\; layer\; crc\; idx + 1) \bmod layer\; size, \quad 1)$\\
|
||||
$c((first\; layer\; crc\; idx + 1) \bmod layer\; size, \quad 2)$\\
|
||||
\dots\\
|
||||
$c((first\; layer\; crc\; idx + 1) \bmod layer\; size, \quad n)$\\
|
||||
\hline
|
||||
\end{tabular}
|
||||
|
||||
\begin{tabular}{l}
|
||||
|
||||
$c((first\; layer\; crc\; idx + 2) \bmod layer\; size, \quad 1)$\\
|
||||
$c((first\; layer\; crc\; idx + 2) \bmod layer\; size, \quad 2)$\\
|
||||
\dots\\
|
||||
$c((first\; layer\; crc\; idx + 2) \bmod layer\; size, \quad n)$\\
|
||||
\hline
|
||||
\end{tabular}
|
||||
|
||||
\begin{tabular}{l}
|
||||
\dots\hspace*{81mm}\\[1mm]
|
||||
\hline
|
||||
\end{tabular}
|
||||
|
||||
\begin{tabular}{l}
|
||||
$c((first\; layer\; crc\; idx + layer\; size -1) \bmod layer\; size, \quad 1)$\\
|
||||
$c((first\; layer\; crc\; idx + layer\; size -1) \bmod layer\; size, \quad 2)$\\
|
||||
\dots\\
|
||||
$c(first\; layer\; crc\; idx \bmod layer\; size, \quad n-1^*)$\\
|
||||
\hline
|
||||
\end{tabular}
|
||||
|
||||
\begin{tabular}{l}
|
||||
$c(first\; layer\; crc\; idx \bmod layer\; size, \quad 1)$\\
|
||||
$c(first\; layer\; crc\; idx \bmod layer\; size, \quad 2)$\\
|
||||
\dots\\
|
||||
$c(first\; layer\; crc\; idx \bmod layer\; size, \quad n-1^*)$\\
|
||||
\end{tabular}
|
||||
|
||||
\bigskip
|
||||
|
||||
$^{*)}$ The last sectors of each data layer may be padding sectors. For those padding
|
||||
sectors, {\em no} CRC32 checksums are generated and stored (e.g. the number of
|
||||
generated checksums is always exactly {\em iso image size}).
|
||||
|
||||
Since {\em iso image size} is usually not a multiple of 512, the last sector in
|
||||
the data part may only be partially filled with checksum data. The remaining
|
||||
bytes of this sector must be filled with the repeated byte sequence
|
||||
0x47,0x50,0x4c,0x00 which is the ASCII string representation of the text ``GPL''.
|
||||
|
||||
\smallskip
|
||||
|
||||
A copy of the CRC32 sums for the layer sectors at position ($first\; layer\; crc\; idx \bmod layer\; size$)
|
||||
is stored in the ecc header, starting there at byte position 2048. This has the advantage that
|
||||
the CRC checksums are already available for the {\em first layer crc}-th sectors
|
||||
of data layers $1,\ldots,n$. Any corrupted bytes in those sectors are
|
||||
detected by the CRC32 and can be handled by the error correction in erasure mode,
|
||||
saving precious parity bytes. When the error correction has restored all sectors
|
||||
of the {\em first layer crc}-th ecc block, note that the {\em first layer crc}-th
|
||||
sector of data layer $n$ will contain the CRC32 checksums for the data sectors
|
||||
in the next ecc block ({\em first layer crc + 1}). Therefore the layout is robust
|
||||
against loss of CRC sectors as they are restored by the error correction just
|
||||
before they are actually needed.
|
||||
|
||||
\subsection{Encoding the ecc layers}
|
||||
\label{encoding-two}
|
||||
|
||||
Encoding the ecc layers requires the following steps:
|
||||
|
||||
\medskip
|
||||
|
||||
First the image must be examined whether it does already contain
|
||||
augmented ecc data (either RS02 or RS03). If ecc data is found, the
|
||||
image must be stripped to the original size of the .iso image.
|
||||
Nesting ecc data is not supported by the current codecs and it
|
||||
might derail the heuristics for detecting the augmented data
|
||||
properly. From a technical point, nesting ecc data does not
|
||||
make sense either.
|
||||
|
||||
\medskip
|
||||
|
||||
Next the image must be checked for missing sectors, and be rejected
|
||||
if it is incomplete. Producing and
|
||||
writing images with missing sectors to a medium is
|
||||
confusing to the user as dvdisaster will always report
|
||||
the medium as partially readable even though it does not contain
|
||||
any physical defects. Also the error correction will never
|
||||
succeed for such media as it is just restoring the sector
|
||||
in its missing state.
|
||||
During the check for missing sectors the CRC32 checksums
|
||||
of each sector can be computed as described in section \ref{crc-two} and,
|
||||
after writing a placeholder for the first ecc header, be appended to the image.
|
||||
Also, the MD5 sum of the .iso image can be calculated at this time and
|
||||
kept for insertion into the ecc header field {\em ec-$>$mediumSum}.
|
||||
As another step of preparation, enough space should be appended
|
||||
to the image to store the ecc layer sectors. This makes sure
|
||||
that the encoder does not run out of disk space during
|
||||
its potentially lenghty work, and minimizes the impact of
|
||||
fragmentation due to random writes into the appended
|
||||
image area under most file systems.
|
||||
|
||||
\medskip
|
||||
|
||||
Finally, the error correction information needs to be encoded.
|
||||
Please refer to fig. \ref{layout-logical-two} on the location
|
||||
of the bytes comprising an error correction block.
|
||||
Although the ecc blocks could be encoded by a byte-wise scheme,
|
||||
a possible encoding algorithm would preferably buffer at least the
|
||||
255 sectors holding the required data for 2048 subsequent ecc
|
||||
blocks, and process those in bulk. From the first $n$ data layers,
|
||||
the required bytes are retrieved and fed into the RS(255,k)
|
||||
Reed-Solomon encoder, with $k = 255 -n$. The RS(255,k) encoder
|
||||
is the same for RS01, RS02 and RS03. See
|
||||
appendix \ref{rs} for the parameters used in the encoder.
|
||||
|
||||
Please refer to
|
||||
the previous section on information about zeroed-out and
|
||||
zero-padded data sectors. The resulting $k$ parity bytes
|
||||
are distributed into the $k$ ecc layers. When writing out
|
||||
the ecc data into the image, free gaps must be left for
|
||||
the interleaved ecc headers; see section
|
||||
\ref{addressing-two} for information on calculating the
|
||||
interleaved ecc header positions. At this time, the MD5
|
||||
sums of each ecc layer can be updated incrementally.
|
||||
|
||||
\medskip
|
||||
|
||||
When all parity sectors have been calculated, the ecc headers
|
||||
can be completed by filling in their {\em eh-$>$eccSum} field.
|
||||
This field contains the MD5 sum calculated over the MD5 sums
|
||||
over each of the $k$ ecc layers. In contrast to a single MD5
|
||||
sum spanning the ecc layers in a linear fashion, this
|
||||
approach allows for an incremental calculation of the MD5 sum
|
||||
while the ecc data is generated and written out.
|
||||
361
documentation/codec-specs/rs03.tex
Normal file
361
documentation/codec-specs/rs03.tex
Normal file
@@ -0,0 +1,361 @@
|
||||
\section{The RS03 codec}
|
||||
|
||||
\begin{figure}
|
||||
\begin{center}
|
||||
\includegraphics[width=10cm]{spiral-rs03.eps}
|
||||
\caption{Physical RS03 layout}
|
||||
\label{layout-phy}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
|
||||
This section describes the data format of the dvdisaster RS03 Reed-Solomon codec.
|
||||
RS03 can store parity data either in a separate file or append it to the .iso
|
||||
image on the same medium. In contrast to its predecessors RS03 is fully multi-threadable.
|
||||
RS03 is expected to become the default codec soon after its introduction in
|
||||
dvdisaster 0.80.
|
||||
|
||||
\subsection{Physical layout}
|
||||
|
||||
Optical media are recorded as a single long spiral\footnote{Multiple layered
|
||||
media contain one spiral for each physical layer, but are otherwise conceptually
|
||||
identical.} of sectors which are indexed beginning with 0.
|
||||
The first sector lies at the innermost position of the spiral and
|
||||
numbering continues onward to the outside of the spiral.
|
||||
|
||||
Reed-Solomon encoding works best when errors are evenly distributed over
|
||||
all ecc blocks. Therefore we must strive to spread our ecc blocks evenly over
|
||||
the media surface. To facilitate such distribution, dvdisaster logically
|
||||
divides the medium into 255 units which are called ``layers'' for historical reasons.
|
||||
Figure \ref{layout-phy} illustrates how a medium is divided into $n$ data layers,
|
||||
one CRC layer, and $m$ ecc layers, with $n+m+1 = 255$. Ecc blocks are comprised
|
||||
by taking one byte from each layer as shown in fig. \ref{layout-logical} on
|
||||
the following page.
|
||||
This distributes the ecc block reasonably good
|
||||
over the medium surface.
|
||||
|
||||
Layer size is measured in numbers of sectors which are 2048 bytes in size. All
|
||||
255 layers have the same size. The data layers map exactly
|
||||
to the iso image which is to be protected by dvdisaster;
|
||||
e.g. the number and sequence of sectors in $Data_1,\ldots,Data_n$
|
||||
is the same as in the iso image. Two extra sectors are appended to the ISO image
|
||||
holding the ecc header ``EH''; these are logically treated as a part of the ISO image.
|
||||
If the ISO image size plus the two EH headers is not an integer multiple
|
||||
of the layer size, the last (n-th) data layer will be padded accordingly.
|
||||
|
||||
The data layers are followed by a CRC layer. Each CRC layer sector contains a
|
||||
data structure holding CRC32 checksums for the data sectors plus additional
|
||||
parameters which were used during the RS03 encoding process.
|
||||
The data and CRC layers are protected by the
|
||||
Reed-Solomon parity which is stored in the remaining layers ($ECC_1,\ldots,ECC_m$).
|
||||
Since the medium capacity is not necessarily an integer multiple of 255, some
|
||||
unused sectors remain at the end of the medium. These are neither written nor
|
||||
referenced in any way.
|
||||
|
||||
\smallskip
|
||||
|
||||
The RS03 data can be stored either directly on the medium or into a separate file.
|
||||
Figure \ref{layout-phy} shows the first case where ecc data is embedded into the
|
||||
image; this is also called a ``RS03 augmented ISO image'' in dvdisaster
|
||||
terminology.
|
||||
In the other case a separate error correction file will be created containing
|
||||
the sectors starting with the EH header. The following discussion is based
|
||||
on the augmented image case; see section \ref{eccfile} for handling the
|
||||
file based format.
|
||||
|
||||
\subsection{Logical layout}
|
||||
|
||||
\begin{figure}
|
||||
\begin{center}
|
||||
\includegraphics[width=\textwidth]{layer.eps}
|
||||
\caption{Logical RS03 layout}
|
||||
\label{layout-logical}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
|
||||
|
||||
The relationship between layers and ecc blocks is stated again in the
|
||||
logical view presented in figure \ref{layout-logical}. Here the 255 layers are
|
||||
shown in stacked order. From each layer the $i-th$ byte corresponds to the
|
||||
$i-th$ error correction block. The parity is calculated using $n$ data bytes
|
||||
$d_{i,1},\ldots,d_{i,n}$ plus the crc byte $c_i$. The resulting $m$ roots of
|
||||
the completed Reed-Solomon code are then stored in the
|
||||
ecc bytes $e_{i,1},\ldots, e_{i,m}$.
|
||||
|
||||
Since the input iso image plus the two EH sectors is usually not an integer
|
||||
multiple of the layer size, the last data layer $data_n$ may contain padding
|
||||
sectors containing a special signature. The content of the padding sectors
|
||||
is used in the ecc byte calculation and is written into the augmented image.
|
||||
|
||||
\subsection{Calculating the layout for encoding}
|
||||
|
||||
\begin{table}
|
||||
\begin{center}
|
||||
\begin{tabular}{|lrr|}
|
||||
\hline
|
||||
Medium type & Maximum size & Layer size \\
|
||||
\hline
|
||||
CD & 359.424 & 1.409 \\
|
||||
DVD 1 layer & 2.295.104 & 9.000 \\
|
||||
DVD 2 layers & 4.171.712 & 16.359 \\
|
||||
BD 1 layer & 11.826.176 & 46.377 \\
|
||||
BD 2 layers & 23.652.352 & 92.754 \\
|
||||
\hline
|
||||
\end{tabular}
|
||||
\caption{Sector size parameters for several media types}
|
||||
\label{layout-size-table}
|
||||
\end{center}
|
||||
\end{table}
|
||||
|
||||
When encoding with RS03 the layout of the augmented image is fully specified
|
||||
by two values: the maximum medium size and the iso image size
|
||||
(from now on, ``size'' always means ``number of 2048K sectors''). \bigskip
|
||||
|
||||
Media sizes are hard coded and taken from table \ref{layout-size-table}. Since we need to divide the medium into 255 layers, the layer size
|
||||
is:
|
||||
|
||||
\[layer\ size = \left\lfloor\frac{medium\ size}{255}\right\rfloor\]
|
||||
|
||||
This allows us to compute the number of data layers needed to cover the iso image plus the ecc header:
|
||||
|
||||
\[data\ layers = \left\lceil\frac{iso\ image\ size + 2}{layer\ size}\right\rceil\]
|
||||
|
||||
The number of padding sectors in the last data layer is:
|
||||
|
||||
\[padding\ sectors = layer\ size * data\ layers - iso\ image\ size - 2\]
|
||||
|
||||
For Reed-Solomon encoding, we will have to encode
|
||||
|
||||
\[n\ data\ bytes = data\ layers + 1\]
|
||||
|
||||
and produce the following number of parity bytes:
|
||||
|
||||
\[m\ roots = 255 - n\ data\ bytes\]
|
||||
|
||||
The RS03 augmented image must fill the medium completely (except for the
|
||||
$medium\ size \bmod 255$ sectors at the end). However for performance
|
||||
reasons the maximum redundancy is capped to 200\%, or 170 roots. This means
|
||||
that the ISO image must at least span the first 255-170=85 layers, otherwise
|
||||
additional padding will be added to fill up the 85 data layers. This situation
|
||||
is not reflected in the calculations and figure shown above.
|
||||
|
||||
\subsection{Re-calculating the layout from defective media}
|
||||
\label{recover}
|
||||
|
||||
In order to recover a defective medium, the values of {\em layer size}
|
||||
and {\em data layers} need to be determined. The RS03 format allows
|
||||
for three heuristics with increasing complexity for learning about these
|
||||
values:
|
||||
|
||||
\subsubsection{Using the Ecc Header}
|
||||
|
||||
All required information can be obtained from the data structures of the
|
||||
Ecc Header which is described in appendix \ref{eh}.
|
||||
If ecc data is stored in a separate error correction
|
||||
file, the first 4096 bytes of the ecc file yield the Ecc Header.
|
||||
Otherwise, let $n$ be the size of the ISO file system which
|
||||
can be obtained from the ISO file system master block. Then the
|
||||
Ecc Header is typically found in the RS03-augmented image at sectors $n,n+1$
|
||||
or at $n+150,n+151$ (due to padding inserted by some popular CD-R mastering
|
||||
software). \smallskip
|
||||
|
||||
If the ISO file system master block is unreadable, the Ecc Header
|
||||
can be identified by its characteristic signature and checksum.
|
||||
If the Ecc Header is encountered during reading of the defective medium
|
||||
it might be worthwhile to generate a tentative ISO master block in the image
|
||||
file. This would speed up future processing of the image; however current
|
||||
implementations of dvdisaster do not yet implement this feature.
|
||||
|
||||
\subsubsection{Using the CRC layer}
|
||||
|
||||
Each CRC layer sector contains a data structure which not only holds the
|
||||
CRC32 checksums but also a copy of important parameters from the Ecc header
|
||||
(see section \ref{crc} for details). CRC sectors can be easily recognized
|
||||
by looking for their signature and checksum while scanning the medium image.
|
||||
If dvdisaster finds a valid CRC sector and the Ecc header is defective,
|
||||
a tentative Ecc header is written to the image to speed up further
|
||||
operations on the image file.
|
||||
|
||||
However it should be noted that since all CRC sectors are stored
|
||||
consecutively on the medium, they can easily be wiped out by a large
|
||||
defective region on the medium. Therefore, another heuristic exists
|
||||
for learning about the RS03 layout.
|
||||
|
||||
\subsubsection{Evaluating the Reed-Solomon code}
|
||||
\label{recover-rs}
|
||||
|
||||
If neither the Ecc Header nor any CRC sectors are readable
|
||||
the RS03 layout can be determined by the following heuristic.
|
||||
|
||||
First, the medium size is determined from table \ref{layout-size-table}.
|
||||
This is always possible as long as the drive will recognize the medium at all.
|
||||
Since the layer size is $\left\lfloor\frac{medium\ size}{255}\right\rfloor$,
|
||||
the location of the 255 layers on the medium is now known. The remaining task is to find
|
||||
out the redundancy of the Reed-Solomon code, e.g. how many layers contain
|
||||
roots for the RS code.
|
||||
|
||||
\bigskip
|
||||
|
||||
Taking the {\em i-th} sector from each layer will produce a valid error
|
||||
correction block, but with unknown redundancy. As RS03 will create redundancies
|
||||
using 8 to 170 roots, we employ a brute-force approach by evaluating
|
||||
the Reed-Solomon code for $8..170$ roots. If the error correction
|
||||
is successful for $n$ roots and the sector from layer {\em 255-1-n} yields
|
||||
the CRC data structure, the correct number of roots has been found.
|
||||
|
||||
\medskip
|
||||
|
||||
In reality, not all 162 combinations of roots need to tested since additional
|
||||
information can be exploited:
|
||||
|
||||
\begin{enumerate}
|
||||
\item If the sector from layer {\em 255-1-n} is present/readable,
|
||||
we do not need to test for $n$ roots any further: Encoding with $n$ roots would
|
||||
have produced a CRC sector in this place.
|
||||
\item If the number of erasures (as indicated by unreadable sectors) is higher
|
||||
than $n$, we can trivially skip the RS decoding. We might have to test another
|
||||
set of 255 sectors though if testing for all other numbers of roots fails as well.
|
||||
\end{enumerate}
|
||||
|
||||
Criterion 1) should quickly narrow down the possible numbers of roots
|
||||
in the average case, e.g. when enough redundancy is available for recovering the medium.
|
||||
Worst case behaviour of trying each ecc block for 8..170 roots is likely to appear only
|
||||
when the medium is unrecoverable, e.g. when more sectors are damaged than the
|
||||
Reed-Solomon code can correct.
|
||||
|
||||
\subsection{Contents of the CRC layer}
|
||||
\label{crc}
|
||||
|
||||
Each sector of the CRC layer contains the data structure shown in
|
||||
appendix \ref{crc-block}. Following the numbering from figure \ref{layout-logical},
|
||||
CRC sector $c_i$ contains the CRC32 checksums for data sectors $d_{j,1},\ldots,d_{j,n}$
|
||||
with $j = (i+1)\bmod\ layer\ size$. The purpose of this offset is to have
|
||||
the error correction of ECC block $i$ recover the CRC checksum for the next
|
||||
ECC block $i+1$. In case of readable but corrupted sectors this will keep the
|
||||
error correction in erasure mode and therefore save precious redundancy (the
|
||||
RS code can recover twice as much errors when the location of defective data
|
||||
is known). \medskip
|
||||
|
||||
Checksums for data sector $d_{j,k}$ are stored in array element
|
||||
CrcBlock-$>$crc[k]. Unused array elements are set to zero.
|
||||
The remaining contents of the CRC sector structure provide
|
||||
configuration and layout information; see appendix \ref{crc-block} for details.
|
||||
|
||||
\subsection{Encoding the ecc layers}
|
||||
|
||||
Encoding the error correction information
|
||||
requires reading and buffering of at least
|
||||
255 sectors comprising the ecc block
|
||||
(see fig. \ref{layout-logical} for a definition of the ecc block).
|
||||
A possible encoding algorithm
|
||||
might process each ecc block at a time. For each ecc block $i$
|
||||
it would do the following: \smallskip
|
||||
|
||||
First, the $n$ data sectors $d_{i,1},\ldots,d_{i,n}$ of the ecc block
|
||||
are read in. The CRC layer
|
||||
sector $c_i$ is initialized, filled in with checksums
|
||||
generated by processing the previous ecc block, and completed
|
||||
by calculating its own checksum {\em selfCRC}. Unused portions of $c_i$
|
||||
remain zero. Afterwards the
|
||||
CRC32 checksums of $d_{i,1},\ldots,d_{i,n}$ are calculated
|
||||
and stored away using the same buffering mechanism. Since the hand-over of
|
||||
CRC checksums between ecc blocks is the only place where RS03 does
|
||||
not fully parallelize, data sector I/O and CRC32 caching needs to be
|
||||
carefully thought out in multithreaded implementations. \medskip
|
||||
|
||||
|
||||
Once $d_{i,1},\ldots,d_{i,n}$ and $c_i$ have been prepared,
|
||||
2048 sets of a RS(255,k) code (with $k=255-n-1$) are calculated by
|
||||
looping over the 2048 bytes of the ecc sectors. If $l$ denotes
|
||||
a certain byte position between $0,\ldots,2047$ in the ecc block
|
||||
sectors, then the {\em l-th} byte from $d_{i,1},\ldots,d_{i,n},c_i$
|
||||
is retrieved and fed into the RS(255,k) encoder. The resulting
|
||||
parity bytes $p_1,\ldots,p_m$ are stored in byte position $l$ of the
|
||||
ecc layer sectors $e_{i,1},\ldots,e_{i,m}$. When all 2048 bytes
|
||||
of the ecc block sectors have been processed the ecc layer sectors
|
||||
can be written out; either into the error correction file or into
|
||||
the RS03 augmented image. \medskip
|
||||
|
||||
The RS(255,k) encoder is the same for RS01, RS02 and RS03. See
|
||||
appendix \ref{rs} for the parameters used in the encoder.
|
||||
|
||||
\subsection{Encoding as a separate error correction file}
|
||||
\label{eccfile}
|
||||
|
||||
If the image size is too close to the medium capacity, not enough
|
||||
space is left for augmenting the image with redundancy. dvdisaster
|
||||
will refuse to augment images when there is insufficient space
|
||||
for at least 8 roots. Creating images with less than 43 roots
|
||||
(20\% of redundancy) will trigger a warning that the error correction
|
||||
capacity may be too low. In those cases, storing the error correction
|
||||
information in a separate file comes as an alternative.
|
||||
|
||||
\medskip
|
||||
|
||||
RS03 error correction files (``ecc files'')
|
||||
contain the same error correction information
|
||||
and layout as in the augmented image case, with the following differences:
|
||||
|
||||
\paragraph{Omittance of data padding sectors.} While the image format
|
||||
shown in figures \ref{layout-phy} and \ref{layout-logical}
|
||||
may contain padding sectors between the ecc header and the CRC layer,
|
||||
those sectors are not written into the ecc file.
|
||||
The padding sectors are however required during encoding and
|
||||
decoding, e.g. they need to be virtually created in memory
|
||||
when processing the respective ecc blocks.
|
||||
Therefore an ecc file providing {\em nroots} of redundancy
|
||||
will contain {\em 2 + (nroots+1) * layer size} sectors.
|
||||
Physically it will contain the ecc header, then the CRC layer
|
||||
and finally the {\em nroots} ecc layers. In contrast to the
|
||||
augmented image case, the ecc header {\em is not part of an ecc
|
||||
block} and can therefore not be recovered
|
||||
by the error correction. If the ecc header is lost in an ecc file,
|
||||
its contents can be reconstructed from a still existing block
|
||||
in the CRC layer and then be rewritten accordingly.
|
||||
|
||||
\paragraph{Freely chooseable redundancy.} In the augmented image case
|
||||
the redundancy is always chosen to fill up the medium completely.
|
||||
For ecc files the redundancy can be freely chosen by the user between
|
||||
8 roots (3.2\%) and 170 roots (200\%). Encoding with more than 170 roots
|
||||
is technically possible, but run-time requirements get out of proportion;
|
||||
hence the selectable redundancy is capped at 200\%.
|
||||
|
||||
\medskip
|
||||
|
||||
As a consequence of the variable redundancy the ecc file layout can only
|
||||
be determined by looking at the ecc header or CRC sectors. The strategy
|
||||
of experimentally evaluating the Reed-Solomon code (see sub
|
||||
section \ref{recover-rs}) however can not be applied to ecc files since
|
||||
neither the size of the padding area nor the original size of the
|
||||
possibly truncated image and ecc files can be determined. \medskip
|
||||
|
||||
To see whether this is really a limiting factor we look
|
||||
at the typical outcome of recovering a single file from a defective
|
||||
medium:
|
||||
|
||||
\begin{itemize}
|
||||
\item The ecc file is fully read, but random sectors are damaged.
|
||||
\item The ecc file is truncated to the position of the first read error.
|
||||
\end{itemize}
|
||||
|
||||
In both scenarios it is highly likely that at least one CRC sector survives
|
||||
at the beginning of the file; in that case the error correction will not
|
||||
only recover the image but also repair the ecc file into its original state.
|
||||
|
||||
\bigskip
|
||||
|
||||
Although this gives RS03 ecc files good chances to remain functional even
|
||||
when being partly damaged, it is highly recommended to store ecc files
|
||||
only on media which are themself being protected by dvdisaster.
|
||||
ISO and UDF file systems
|
||||
do not have sufficient redundancy for their meta data (e.g. directory
|
||||
structures). If such meta data becomes unreadable a significant
|
||||
number of files may become completely inaccessible.
|
||||
Please note that this is a
|
||||
general weakness of file-based data protection and recovery: The
|
||||
meta data is not part of any file and can therefore not be protected by
|
||||
any error correction data put inside the file(s).
|
||||
\smallskip
|
||||
This is the also the simple reason why we did not use tools like PAR2
|
||||
and developed dvdisaster instead;
|
||||
the image-based approach of dvdisaster protects
|
||||
both files and meta data.
|
||||
616
documentation/codec-specs/spiral-rs01.eps
Normal file
616
documentation/codec-specs/spiral-rs01.eps
Normal file
@@ -0,0 +1,616 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: spiral-rs01.fig
|
||||
%%Creator: fig2dev Version 3.2 Patchlevel 5c
|
||||
%%CreationDate: Sat May 12 18:37:13 2012
|
||||
%%BoundingBox: 0 0 342 424
|
||||
%Magnification: 1.0000
|
||||
%%EndComments
|
||||
%%BeginProlog
|
||||
/MyAppDict 100 dict dup begin def
|
||||
/$F2psDict 200 dict def
|
||||
$F2psDict begin
|
||||
$F2psDict /mtrx matrix put
|
||||
/col-1 {0 setgray} bind def
|
||||
/col0 {0.000 0.000 0.000 srgb} bind def
|
||||
/col1 {0.000 0.000 1.000 srgb} bind def
|
||||
/col2 {0.000 1.000 0.000 srgb} bind def
|
||||
/col3 {0.000 1.000 1.000 srgb} bind def
|
||||
/col4 {1.000 0.000 0.000 srgb} bind def
|
||||
/col5 {1.000 0.000 1.000 srgb} bind def
|
||||
/col6 {1.000 1.000 0.000 srgb} bind def
|
||||
/col7 {1.000 1.000 1.000 srgb} bind def
|
||||
/col8 {0.000 0.000 0.560 srgb} bind def
|
||||
/col9 {0.000 0.000 0.690 srgb} bind def
|
||||
/col10 {0.000 0.000 0.820 srgb} bind def
|
||||
/col11 {0.530 0.810 1.000 srgb} bind def
|
||||
/col12 {0.000 0.560 0.000 srgb} bind def
|
||||
/col13 {0.000 0.690 0.000 srgb} bind def
|
||||
/col14 {0.000 0.820 0.000 srgb} bind def
|
||||
/col15 {0.000 0.560 0.560 srgb} bind def
|
||||
/col16 {0.000 0.690 0.690 srgb} bind def
|
||||
/col17 {0.000 0.820 0.820 srgb} bind def
|
||||
/col18 {0.560 0.000 0.000 srgb} bind def
|
||||
/col19 {0.690 0.000 0.000 srgb} bind def
|
||||
/col20 {0.820 0.000 0.000 srgb} bind def
|
||||
/col21 {0.560 0.000 0.560 srgb} bind def
|
||||
/col22 {0.690 0.000 0.690 srgb} bind def
|
||||
/col23 {0.820 0.000 0.820 srgb} bind def
|
||||
/col24 {0.500 0.190 0.000 srgb} bind def
|
||||
/col25 {0.630 0.250 0.000 srgb} bind def
|
||||
/col26 {0.750 0.380 0.000 srgb} bind def
|
||||
/col27 {1.000 0.500 0.500 srgb} bind def
|
||||
/col28 {1.000 0.630 0.630 srgb} bind def
|
||||
/col29 {1.000 0.750 0.750 srgb} bind def
|
||||
/col30 {1.000 0.880 0.880 srgb} bind def
|
||||
/col31 {1.000 0.840 0.000 srgb} bind def
|
||||
|
||||
end
|
||||
|
||||
% This junk string is used by the show operators
|
||||
/PATsstr 1 string def
|
||||
/PATawidthshow { % cx cy cchar rx ry string
|
||||
% Loop over each character in the string
|
||||
{ % cx cy cchar rx ry char
|
||||
% Show the character
|
||||
dup % cx cy cchar rx ry char char
|
||||
PATsstr dup 0 4 -1 roll put % cx cy cchar rx ry char (char)
|
||||
false charpath % cx cy cchar rx ry char
|
||||
/clip load PATdraw
|
||||
% Move past the character (charpath modified the
|
||||
% current point)
|
||||
currentpoint % cx cy cchar rx ry char x y
|
||||
newpath
|
||||
moveto % cx cy cchar rx ry char
|
||||
% Reposition by cx,cy if the character in the string is cchar
|
||||
3 index eq { % cx cy cchar rx ry
|
||||
4 index 4 index rmoveto
|
||||
} if
|
||||
% Reposition all characters by rx ry
|
||||
2 copy rmoveto % cx cy cchar rx ry
|
||||
} forall
|
||||
pop pop pop pop pop % -
|
||||
currentpoint
|
||||
newpath
|
||||
moveto
|
||||
} bind def
|
||||
/PATcg {
|
||||
7 dict dup begin
|
||||
/lw currentlinewidth def
|
||||
/lc currentlinecap def
|
||||
/lj currentlinejoin def
|
||||
/ml currentmiterlimit def
|
||||
/ds [ currentdash ] def
|
||||
/cc [ currentrgbcolor ] def
|
||||
/cm matrix currentmatrix def
|
||||
end
|
||||
} bind def
|
||||
% PATdraw - calculates the boundaries of the object and
|
||||
% fills it with the current pattern
|
||||
/PATdraw { % proc
|
||||
save exch
|
||||
PATpcalc % proc nw nh px py
|
||||
5 -1 roll exec % nw nh px py
|
||||
newpath
|
||||
PATfill % -
|
||||
restore
|
||||
} bind def
|
||||
% PATfill - performs the tiling for the shape
|
||||
/PATfill { % nw nh px py PATfill -
|
||||
PATDict /CurrentPattern get dup begin
|
||||
setfont
|
||||
% Set the coordinate system to Pattern Space
|
||||
PatternGState PATsg
|
||||
% Set the color for uncolored pattezns
|
||||
PaintType 2 eq { PATDict /PColor get PATsc } if
|
||||
% Create the string for showing
|
||||
3 index string % nw nh px py str
|
||||
% Loop for each of the pattern sources
|
||||
0 1 Multi 1 sub { % nw nh px py str source
|
||||
% Move to the starting location
|
||||
3 index 3 index % nw nh px py str source px py
|
||||
moveto % nw nh px py str source
|
||||
% For multiple sources, set the appropriate color
|
||||
Multi 1 ne { dup PC exch get PATsc } if
|
||||
% Set the appropriate string for the source
|
||||
0 1 7 index 1 sub { 2 index exch 2 index put } for pop
|
||||
% Loop over the number of vertical cells
|
||||
3 index % nw nh px py str nh
|
||||
{ % nw nh px py str
|
||||
currentpoint % nw nh px py str cx cy
|
||||
2 index oldshow % nw nh px py str cx cy
|
||||
YStep add moveto % nw nh px py str
|
||||
} repeat % nw nh px py str
|
||||
} for
|
||||
5 { pop } repeat
|
||||
end
|
||||
} bind def
|
||||
|
||||
% PATkshow - kshow with the current pattezn
|
||||
/PATkshow { % proc string
|
||||
exch bind % string proc
|
||||
1 index 0 get % string proc char
|
||||
% Loop over all but the last character in the string
|
||||
0 1 4 index length 2 sub {
|
||||
% string proc char idx
|
||||
% Find the n+1th character in the string
|
||||
3 index exch 1 add get % string proc char char+1
|
||||
exch 2 copy % strinq proc char+1 char char+1 char
|
||||
% Now show the nth character
|
||||
PATsstr dup 0 4 -1 roll put % string proc chr+1 chr chr+1 (chr)
|
||||
false charpath % string proc char+1 char char+1
|
||||
/clip load PATdraw
|
||||
% Move past the character (charpath modified the current point)
|
||||
currentpoint newpath moveto
|
||||
% Execute the user proc (should consume char and char+1)
|
||||
mark 3 1 roll % string proc char+1 mark char char+1
|
||||
4 index exec % string proc char+1 mark...
|
||||
cleartomark % string proc char+1
|
||||
} for
|
||||
% Now display the last character
|
||||
PATsstr dup 0 4 -1 roll put % string proc (char+1)
|
||||
false charpath % string proc
|
||||
/clip load PATdraw
|
||||
neewath
|
||||
pop pop % -
|
||||
} bind def
|
||||
% PATmp - the makepattern equivalent
|
||||
/PATmp { % patdict patmtx PATmp patinstance
|
||||
exch dup length 7 add % We will add 6 new entries plus 1 FID
|
||||
dict copy % Create a new dictionary
|
||||
begin
|
||||
% Matrix to install when painting the pattern
|
||||
TilingType PATtcalc
|
||||
/PatternGState PATcg def
|
||||
PatternGState /cm 3 -1 roll put
|
||||
% Check for multi pattern sources (Level 1 fast color patterns)
|
||||
currentdict /Multi known not { /Multi 1 def } if
|
||||
% Font dictionary definitions
|
||||
/FontType 3 def
|
||||
% Create a dummy encoding vector
|
||||
/Encoding 256 array def
|
||||
3 string 0 1 255 {
|
||||
Encoding exch dup 3 index cvs cvn put } for pop
|
||||
/FontMatrix matrix def
|
||||
/FontBBox BBox def
|
||||
/BuildChar {
|
||||
mark 3 1 roll % mark dict char
|
||||
exch begin
|
||||
Multi 1 ne {PaintData exch get}{pop} ifelse % mark [paintdata]
|
||||
PaintType 2 eq Multi 1 ne or
|
||||
{ XStep 0 FontBBox aload pop setcachedevice }
|
||||
{ XStep 0 setcharwidth } ifelse
|
||||
currentdict % mark [paintdata] dict
|
||||
/PaintProc load % mark [paintdata] dict paintproc
|
||||
end
|
||||
gsave
|
||||
false PATredef exec true PATredef
|
||||
grestore
|
||||
cleartomark % -
|
||||
} bind def
|
||||
currentdict
|
||||
end % newdict
|
||||
/foo exch % /foo newlict
|
||||
definefont % newfont
|
||||
} bind def
|
||||
% PATpcalc - calculates the starting point and width/height
|
||||
% of the tile fill for the shape
|
||||
/PATpcalc { % - PATpcalc nw nh px py
|
||||
PATDict /CurrentPattern get begin
|
||||
gsave
|
||||
% Set up the coordinate system to Pattern Space
|
||||
% and lock down pattern
|
||||
PatternGState /cm get setmatrix
|
||||
BBox aload pop pop pop translate
|
||||
% Determine the bounding box of the shape
|
||||
pathbbox % llx lly urx ury
|
||||
grestore
|
||||
% Determine (nw, nh) the # of cells to paint width and height
|
||||
PatHeight div ceiling % llx lly urx qh
|
||||
4 1 roll % qh llx lly urx
|
||||
PatWidth div ceiling % qh llx lly qw
|
||||
4 1 roll % qw qh llx lly
|
||||
PatHeight div floor % qw qh llx ph
|
||||
4 1 roll % ph qw qh llx
|
||||
PatWidth div floor % ph qw qh pw
|
||||
4 1 roll % pw ph qw qh
|
||||
2 index sub cvi abs % pw ph qs qh-ph
|
||||
exch 3 index sub cvi abs exch % pw ph nw=qw-pw nh=qh-ph
|
||||
% Determine the starting point of the pattern fill
|
||||
%(px, py)
|
||||
4 2 roll % nw nh pw ph
|
||||
PatHeight mul % nw nh pw py
|
||||
exch % nw nh py pw
|
||||
PatWidth mul exch % nw nh px py
|
||||
end
|
||||
} bind def
|
||||
|
||||
% Save the original routines so that we can use them later on
|
||||
/oldfill /fill load def
|
||||
/oldeofill /eofill load def
|
||||
/oldstroke /stroke load def
|
||||
/oldshow /show load def
|
||||
/oldashow /ashow load def
|
||||
/oldwidthshow /widthshow load def
|
||||
/oldawidthshow /awidthshow load def
|
||||
/oldkshow /kshow load def
|
||||
|
||||
% These defs are necessary so that subsequent procs don't bind in
|
||||
% the originals
|
||||
/fill { oldfill } bind def
|
||||
/eofill { oldeofill } bind def
|
||||
/stroke { oldstroke } bind def
|
||||
/show { oldshow } bind def
|
||||
/ashow { oldashow } bind def
|
||||
/widthshow { oldwidthshow } bind def
|
||||
/awidthshow { oldawidthshow } bind def
|
||||
/kshow { oldkshow } bind def
|
||||
/PATredef {
|
||||
MyAppDict begin
|
||||
{
|
||||
/fill { /clip load PATdraw newpath } bind def
|
||||
/eofill { /eoclip load PATdraw newpath } bind def
|
||||
/stroke { PATstroke } bind def
|
||||
/show { 0 0 null 0 0 6 -1 roll PATawidthshow } bind def
|
||||
/ashow { 0 0 null 6 3 roll PATawidthshow }
|
||||
bind def
|
||||
/widthshow { 0 0 3 -1 roll PATawidthshow }
|
||||
bind def
|
||||
/awidthshow { PATawidthshow } bind def
|
||||
/kshow { PATkshow } bind def
|
||||
} {
|
||||
/fill { oldfill } bind def
|
||||
/eofill { oldeofill } bind def
|
||||
/stroke { oldstroke } bind def
|
||||
/show { oldshow } bind def
|
||||
/ashow { oldashow } bind def
|
||||
/widthshow { oldwidthshow } bind def
|
||||
/awidthshow { oldawidthshow } bind def
|
||||
/kshow { oldkshow } bind def
|
||||
} ifelse
|
||||
end
|
||||
} bind def
|
||||
false PATredef
|
||||
% Conditionally define setcmykcolor if not available
|
||||
/setcmykcolor where { pop } {
|
||||
/setcmykcolor {
|
||||
1 sub 4 1 roll
|
||||
3 {
|
||||
3 index add neg dup 0 lt { pop 0 } if 3 1 roll
|
||||
} repeat
|
||||
setrgbcolor - pop
|
||||
} bind def
|
||||
} ifelse
|
||||
/PATsc { % colorarray
|
||||
aload length % c1 ... cn length
|
||||
dup 1 eq { pop setgray } { 3 eq { setrgbcolor } { setcmykcolor
|
||||
} ifelse } ifelse
|
||||
} bind def
|
||||
/PATsg { % dict
|
||||
begin
|
||||
lw setlinewidth
|
||||
lc setlinecap
|
||||
lj setlinejoin
|
||||
ml setmiterlimit
|
||||
ds aload pop setdash
|
||||
cc aload pop setrgbcolor
|
||||
cm setmatrix
|
||||
end
|
||||
} bind def
|
||||
|
||||
/PATDict 3 dict def
|
||||
/PATsp {
|
||||
true PATredef
|
||||
PATDict begin
|
||||
/CurrentPattern exch def
|
||||
% If it's an uncolored pattern, save the color
|
||||
CurrentPattern /PaintType get 2 eq {
|
||||
/PColor exch def
|
||||
} if
|
||||
/CColor [ currentrgbcolor ] def
|
||||
end
|
||||
} bind def
|
||||
% PATstroke - stroke with the current pattern
|
||||
/PATstroke {
|
||||
countdictstack
|
||||
save
|
||||
mark
|
||||
{
|
||||
currentpoint strokepath moveto
|
||||
PATpcalc % proc nw nh px py
|
||||
clip newpath PATfill
|
||||
} stopped {
|
||||
(*** PATstroke Warning: Path is too complex, stroking
|
||||
with gray) =
|
||||
cleartomark
|
||||
restore
|
||||
countdictstack exch sub dup 0 gt
|
||||
{ { end } repeat } { pop } ifelse
|
||||
gsave 0.5 setgray oldstroke grestore
|
||||
} { pop restore pop } ifelse
|
||||
newpath
|
||||
} bind def
|
||||
/PATtcalc { % modmtx tilingtype PATtcalc tilematrix
|
||||
% Note: tiling types 2 and 3 are not supported
|
||||
gsave
|
||||
exch concat % tilingtype
|
||||
matrix currentmatrix exch % cmtx tilingtype
|
||||
% Tiling type 1 and 3: constant spacing
|
||||
2 ne {
|
||||
% Distort the pattern so that it occupies
|
||||
% an integral number of device pixels
|
||||
dup 4 get exch dup 5 get exch % tx ty cmtx
|
||||
XStep 0 dtransform
|
||||
round exch round exch % tx ty cmtx dx.x dx.y
|
||||
XStep div exch XStep div exch % tx ty cmtx a b
|
||||
0 YStep dtransform
|
||||
round exch round exch % tx ty cmtx a b dy.x dy.y
|
||||
YStep div exch YStep div exch % tx ty cmtx a b c d
|
||||
7 -3 roll astore % { a b c d tx ty }
|
||||
} if
|
||||
grestore
|
||||
} bind def
|
||||
/PATusp {
|
||||
false PATredef
|
||||
PATDict begin
|
||||
CColor PATsc
|
||||
end
|
||||
} bind def
|
||||
|
||||
% right45
|
||||
11 dict begin
|
||||
/PaintType 1 def
|
||||
/PatternType 1 def
|
||||
/TilingType 1 def
|
||||
/BBox [0 0 1 1] def
|
||||
/XStep 1 def
|
||||
/YStep 1 def
|
||||
/PatWidth 1 def
|
||||
/PatHeight 1 def
|
||||
/Multi 2 def
|
||||
/PaintData [
|
||||
{ clippath } bind
|
||||
{ 20 20 true [ 20 0 0 -20 0 20 ]
|
||||
{<0040100080200100400200800401000802001004
|
||||
0020080040100080200000401000802001004002
|
||||
0080040100080200100400200800401000802000>}
|
||||
imagemask } bind
|
||||
] def
|
||||
/PaintProc {
|
||||
pop
|
||||
exec fill
|
||||
} def
|
||||
currentdict
|
||||
end
|
||||
/P5 exch def
|
||||
|
||||
% crosshatch45
|
||||
11 dict begin
|
||||
/PaintType 1 def
|
||||
/PatternType 1 def
|
||||
/TilingType 1 def
|
||||
/BBox [0 0 1 1] def
|
||||
/XStep 1 def
|
||||
/YStep 1 def
|
||||
/PatWidth 1 def
|
||||
/PatHeight 1 def
|
||||
/Multi 2 def
|
||||
/PaintData [
|
||||
{ clippath } bind
|
||||
{ 20 20 true [ 20 0 0 -20 0 20 ]
|
||||
{<8020004050102088201104400a02800401000a02
|
||||
8011044020882040501080200040501020882011
|
||||
04400a02800401000a0280110440208820405010>}
|
||||
imagemask } bind
|
||||
] def
|
||||
/PaintProc {
|
||||
pop
|
||||
exec fill
|
||||
} def
|
||||
currentdict
|
||||
end
|
||||
/P6 exch def
|
||||
|
||||
/cp {closepath} bind def
|
||||
/ef {eofill} bind def
|
||||
/gr {grestore} bind def
|
||||
/gs {gsave} bind def
|
||||
/sa {save} bind def
|
||||
/rs {restore} bind def
|
||||
/l {lineto} bind def
|
||||
/m {moveto} bind def
|
||||
/rm {rmoveto} bind def
|
||||
/n {newpath} bind def
|
||||
/s {stroke} bind def
|
||||
/sh {show} bind def
|
||||
/slc {setlinecap} bind def
|
||||
/slj {setlinejoin} bind def
|
||||
/slw {setlinewidth} bind def
|
||||
/srgb {setrgbcolor} bind def
|
||||
/rot {rotate} bind def
|
||||
/sc {scale} bind def
|
||||
/sd {setdash} bind def
|
||||
/ff {findfont} bind def
|
||||
/sf {setfont} bind def
|
||||
/scf {scalefont} bind def
|
||||
/sw {stringwidth} bind def
|
||||
/tr {translate} bind def
|
||||
/tnt {dup dup currentrgbcolor
|
||||
4 -2 roll dup 1 exch sub 3 -1 roll mul add
|
||||
4 -2 roll dup 1 exch sub 3 -1 roll mul add
|
||||
4 -2 roll dup 1 exch sub 3 -1 roll mul add srgb}
|
||||
bind def
|
||||
/shd {dup dup currentrgbcolor 4 -2 roll mul 4 -2 roll mul
|
||||
4 -2 roll mul srgb} bind def
|
||||
/reencdict 12 dict def /ReEncode { reencdict begin
|
||||
/newcodesandnames exch def /newfontname exch def /basefontname exch def
|
||||
/basefontdict basefontname findfont def /newfont basefontdict maxlength dict def
|
||||
basefontdict { exch dup /FID ne { dup /Encoding eq
|
||||
{ exch dup length array copy newfont 3 1 roll put }
|
||||
{ exch newfont 3 1 roll put } ifelse } { pop pop } ifelse } forall
|
||||
newfont /FontName newfontname put newcodesandnames aload pop
|
||||
128 1 255 { newfont /Encoding get exch /.notdef put } for
|
||||
newcodesandnames length 2 idiv { newfont /Encoding get 3 1 roll put } repeat
|
||||
newfontname newfont definefont pop end } def
|
||||
/isovec [
|
||||
8#055 /minus 8#200 /grave 8#201 /acute 8#202 /circumflex 8#203 /tilde
|
||||
8#204 /macron 8#205 /breve 8#206 /dotaccent 8#207 /dieresis
|
||||
8#210 /ring 8#211 /cedilla 8#212 /hungarumlaut 8#213 /ogonek 8#214 /caron
|
||||
8#220 /dotlessi 8#230 /oe 8#231 /OE
|
||||
8#240 /space 8#241 /exclamdown 8#242 /cent 8#243 /sterling
|
||||
8#244 /currency 8#245 /yen 8#246 /brokenbar 8#247 /section 8#250 /dieresis
|
||||
8#251 /copyright 8#252 /ordfeminine 8#253 /guillemotleft 8#254 /logicalnot
|
||||
8#255 /hyphen 8#256 /registered 8#257 /macron 8#260 /degree 8#261 /plusminus
|
||||
8#262 /twosuperior 8#263 /threesuperior 8#264 /acute 8#265 /mu 8#266 /paragraph
|
||||
8#267 /periodcentered 8#270 /cedilla 8#271 /onesuperior 8#272 /ordmasculine
|
||||
8#273 /guillemotright 8#274 /onequarter 8#275 /onehalf
|
||||
8#276 /threequarters 8#277 /questiondown 8#300 /Agrave 8#301 /Aacute
|
||||
8#302 /Acircumflex 8#303 /Atilde 8#304 /Adieresis 8#305 /Aring
|
||||
8#306 /AE 8#307 /Ccedilla 8#310 /Egrave 8#311 /Eacute
|
||||
8#312 /Ecircumflex 8#313 /Edieresis 8#314 /Igrave 8#315 /Iacute
|
||||
8#316 /Icircumflex 8#317 /Idieresis 8#320 /Eth 8#321 /Ntilde 8#322 /Ograve
|
||||
8#323 /Oacute 8#324 /Ocircumflex 8#325 /Otilde 8#326 /Odieresis 8#327 /multiply
|
||||
8#330 /Oslash 8#331 /Ugrave 8#332 /Uacute 8#333 /Ucircumflex
|
||||
8#334 /Udieresis 8#335 /Yacute 8#336 /Thorn 8#337 /germandbls 8#340 /agrave
|
||||
8#341 /aacute 8#342 /acircumflex 8#343 /atilde 8#344 /adieresis 8#345 /aring
|
||||
8#346 /ae 8#347 /ccedilla 8#350 /egrave 8#351 /eacute
|
||||
8#352 /ecircumflex 8#353 /edieresis 8#354 /igrave 8#355 /iacute
|
||||
8#356 /icircumflex 8#357 /idieresis 8#360 /eth 8#361 /ntilde 8#362 /ograve
|
||||
8#363 /oacute 8#364 /ocircumflex 8#365 /otilde 8#366 /odieresis 8#367 /divide
|
||||
8#370 /oslash 8#371 /ugrave 8#372 /uacute 8#373 /ucircumflex
|
||||
8#374 /udieresis 8#375 /yacute 8#376 /thorn 8#377 /ydieresis] def
|
||||
/Helvetica-Bold /Helvetica-Bold-iso isovec ReEncode
|
||||
/$F2psBegin {$F2psDict begin /$F2psEnteredState save def} def
|
||||
/$F2psEnd {$F2psEnteredState restore end} def
|
||||
|
||||
/pageheader {
|
||||
save
|
||||
newpath 0 424 moveto 0 0 lineto 342 0 lineto 342 424 lineto closepath clip newpath
|
||||
-116.2 433.0 translate
|
||||
1 -1 scale
|
||||
$F2psBegin
|
||||
10 setmiterlimit
|
||||
0 slj 0 slc
|
||||
0.06299 0.06299 sc
|
||||
} bind def
|
||||
/pagefooter {
|
||||
$F2psEnd
|
||||
restore
|
||||
} bind def
|
||||
%%EndProlog
|
||||
pageheader
|
||||
%
|
||||
% Fig objects follow
|
||||
%
|
||||
%
|
||||
% here starts figure with depth 51
|
||||
% Polyline
|
||||
0 slj
|
||||
0 slc
|
||||
7.500 slw
|
||||
n 5697 4365 m 5650 4567 l 5563 4752 l 5444 4923 l 5289 5062 l 5114 5176 l
|
||||
4923 5253 l 4716 5289 l 4504 5289 l 4298 5253 l 4102 5181 l
|
||||
3916 5073 l 3756 4933 l 3622 4768 l 3518 4582 l 3451 4381 l
|
||||
3415 4169 l 3931 4128 l 3973 4314 l 4060 4479 l 4184 4618 l
|
||||
4339 4716 l 4520 4768 l 4701 4763 l 4871 4711 l 5015 4613 l
|
||||
5124 4474 l 5176 4309 l
|
||||
cp gs col7 0.80 shd ef gr gs col0 s gr
|
||||
% Polyline
|
||||
n 5395 5613 m 5490 5558 l 5671 5424 l 5826 5269 l 5965 5093 l 6074 4902 l
|
||||
6156 4696 l 6208 4484 l 6229 4262 l 6213 4045 l 6172 3829 l
|
||||
6100 3622 l 5996 3426 l 5867 3250 l 5712 3090 l 5639 3031 l
|
||||
5339 3455 l 5485 3601 l 5594 3772 l 5671 3958 l 5702 4159 l
|
||||
5695 4365 l 5650 4571 l 5556 4770 l 5425 4938 l 5279 5070 l
|
||||
5110 5178 l
|
||||
cp gs col7 0.80 shd ef gr gs col0 s gr
|
||||
% Polyline
|
||||
n 5639 3031 m 5537 2961 l 5346 2858 l 5139 2786 l 4928 2745 l 4711 2739 l
|
||||
4494 2765 l 4288 2822 l 4086 2915 l 3911 3034 l 3751 3183 l
|
||||
3622 3354 l 3518 3545 l 3446 3746 l 3415 3958 l 3411 4170 l
|
||||
3933 4125 l 3942 3932 l 3999 3751 l 4097 3581 l 4231 3441 l
|
||||
4401 3338 l 4587 3276 l 4783 3256 l 4985 3281 l 5170 3349 l
|
||||
5341 3457 l
|
||||
cp gs col7 0.80 shd ef gr gs col0 s gr
|
||||
% Polyline
|
||||
n 4457 164 m 4465 164 l gs col0 s gr
|
||||
% Polyline
|
||||
n 3678 1960 m 3477 2074 l 3286 2208 l 3111 2357 l 2951 2528 l 2793 2734 l
|
||||
2347 2461 l 2491 2270 l 2646 2089 l 2816 1924 l 2997 1774 l
|
||||
3193 1640 l 3400 1521 l
|
||||
cp gs col7 0.80 shd ef gr gs col0 s gr
|
||||
% Polyline
|
||||
n 4221 6822 m 4476 6851 l 4687 6862 l 4936 6836 l 5155 6791 l 5387 6735 l
|
||||
5609 6657 l 5821 6559 l 6027 6446 l 6218 6311 l 6399 6162 l
|
||||
6569 5996 l
|
||||
6716 5828 l gs col0 s gr
|
||||
% Polyline
|
||||
n 6719 5816 m 6853 5625 l 6972 5424 l 7070 5207 l 7147 4990 l 7209 4763 l
|
||||
7256 4505 l 7259 4283 l 7256 4061 l 7230 3829 l 7184 3601 l
|
||||
7116 3374 l
|
||||
7031 3160 l gs col0 s gr
|
||||
% Polyline
|
||||
n 5191 1740 m 5496 1810 l 5712 1888 l 5924 1991 l 6125 2110 l 6316 2244 l
|
||||
6492 2399 l 6652 2569 l 6796 2755 l 6920 2951 l
|
||||
7029 3158 l gs col0 s gr
|
||||
% Polyline
|
||||
n 5191 1734 m 5251 1227 l 4988 1193 l 4768 1186 l 4530 1191 l 4293 1222 l
|
||||
4060 1268 l 3938 1298 l 3703 1389 l 3400 1518 l 3682 1956 l
|
||||
3925 1845 l 4112 1790 l 4339 1738 l 4572 1707 l 4764 1699 l
|
||||
4953 1708 l
|
||||
cp gs /PC [[1.00 1.00 1.00] [0.00 0.00 0.00]] def
|
||||
15.00 15.00 sc P6 [16 0 0 -16 226.67 79.07] PATmp PATsp ef gr PATusp gs col0 s gr
|
||||
% Polyline
|
||||
n 2040 5074 m 1996 4943 l 1929 4716 l 1887 4484 l 1861 4252 l 1856 4014 l
|
||||
1867 3782 l 1903 3545 l 1954 3318 l 2027 3090 l 2114 2874 l
|
||||
2223 2662 l 2348 2459 l 2786 2737 l 2682 2905 l 2574 3111 l
|
||||
2491 3328 l 2429 3550 l 2388 3777 l 2372 4009 l 2378 4241 l
|
||||
2409 4474 l 2460 4696 l 2538 4918 l
|
||||
cp gs col7 0.80 shd ef gr gs col0 s gr
|
||||
% Polyline
|
||||
n 4226 6826 m 3988 6781 l 3761 6714 l 3544 6631 l 3327 6533 l 3126 6415 l
|
||||
2935 6275 l 2754 6126 l 2589 5955 l 2434 5775 l 2300 5584 l
|
||||
2181 5382 l 2078 5165 l 2040 5077 l 2539 4927 l 2631 5129 l
|
||||
2749 5325 l 2889 5511 l 3044 5687 l 3214 5836 l 3400 5976 l
|
||||
3601 6089 l 3813 6182 l 4030 6255 l 4257 6306 l 4484 6327 l
|
||||
4716 6332 l 4943 6306 l 5170 6260 l 5387 6187 l 5599 6095 l
|
||||
5800 5976 l 5981 5836 l 6151 5682 l 6301 5511 l 6435 5320 l
|
||||
6543 5119 l 6631 4907 l 6693 4685 l 6729 4463 l 6745 4231 l
|
||||
6734 4004 l 6693 3777 l 6631 3560 l 6543 3349 l 6435 3147 l
|
||||
6306 2961 l 6151 2791 l 5981 2641 l 5795 2512 l 5594 2404 l
|
||||
5382 2316 l 5160 2259 l 4938 2223 l 4711 2218 l 4484 2239 l
|
||||
4262 2285 l 4045 2357 l 3844 2456 l 3653 2579 l 3477 2724 l
|
||||
3322 2889 l 3188 3070 l 3075 3266 l 2987 3472 l 2930 3689 l
|
||||
2894 3916 l 2889 4138 l 2914 4365 l 2966 4582 l 3044 4794 l
|
||||
3152 4990 l 3281 5176 l 3431 5341 l 3601 5485 l 3792 5604 l
|
||||
3993 5697 l 4205 5764 l 4427 5805 l 4649 5816 l 4871 5795 l
|
||||
5088 5744 l 5294 5666 l
|
||||
5391 5617 l gs col0 s gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
3879 3551 m
|
||||
gs 1 -1 sc 30.0 rot (Data 2) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
4195 5076 m
|
||||
gs 1 -1 sc (Data 1) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
5809 3837 m
|
||||
gs 1 -1 sc 270.0 rot (Data 3) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
2329 4449 m
|
||||
gs 1 -1 sc 90.0 rot (Data n-1) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
4974 5562 m
|
||||
gs 1 -1 sc 20.0 rot (...) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
2311 5075 m
|
||||
gs 1 -1 sc 295.0 rot (...) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
2712 2589 m
|
||||
gs 1 -1 sc 42.0 rot (Data n) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 254.00 scf sf
|
||||
3833 1677 m
|
||||
gs 1 -1 sc 10.0 rot (padding) col0 sh gr
|
||||
% here ends figure;
|
||||
pagefooter
|
||||
showpage
|
||||
%%Trailer
|
||||
end
|
||||
%EOF
|
||||
77
documentation/codec-specs/spiral-rs01.fig
Normal file
77
documentation/codec-specs/spiral-rs01.fig
Normal file
@@ -0,0 +1,77 @@
|
||||
#FIG 3.2 Produced by xfig version 3.2.5b
|
||||
Landscape
|
||||
Center
|
||||
Metric
|
||||
A4
|
||||
100.00
|
||||
Single
|
||||
-2
|
||||
1200 2
|
||||
2 3 0 1 0 7 51 -1 16 0.000 0 0 -1 0 0 29
|
||||
5697 4365 5650 4567 5563 4752 5444 4923 5289 5062 5114 5176
|
||||
4923 5253 4716 5289 4504 5289 4298 5253 4102 5181 3916 5073
|
||||
3756 4933 3622 4768 3518 4582 3451 4381 3415 4169 3931 4128
|
||||
3973 4314 4060 4479 4184 4618 4339 4716 4520 4768 4701 4763
|
||||
4871 4711 5015 4613 5124 4474 5176 4309 5697 4365
|
||||
2 3 0 1 0 7 51 -1 16 0.000 0 0 -1 0 0 28
|
||||
5395 5613 5490 5558 5671 5424 5826 5269 5965 5093 6074 4902
|
||||
6156 4696 6208 4484 6229 4262 6213 4045 6172 3829 6100 3622
|
||||
5996 3426 5867 3250 5712 3090 5639 3031 5339 3455 5485 3601
|
||||
5594 3772 5671 3958 5702 4159 5695 4365 5650 4571 5556 4770
|
||||
5425 4938 5279 5070 5110 5178 5395 5613
|
||||
2 3 0 1 0 7 51 -1 16 0.000 0 0 -1 0 0 28
|
||||
5639 3031 5537 2961 5346 2858 5139 2786 4928 2745 4711 2739
|
||||
4494 2765 4288 2822 4086 2915 3911 3034 3751 3183 3622 3354
|
||||
3518 3545 3446 3746 3415 3958 3411 4170 3933 4125 3942 3932
|
||||
3999 3751 4097 3581 4231 3441 4401 3338 4587 3276 4783 3256
|
||||
4985 3281 5170 3349 5341 3457 5639 3031
|
||||
2 1 0 1 0 7 51 -1 45 0.000 0 0 -1 0 0 1
|
||||
4461 164
|
||||
2 3 0 1 0 7 51 -1 16 0.000 0 0 -1 0 0 14
|
||||
3678 1960 3477 2074 3286 2208 3111 2357 2951 2528 2793 2734
|
||||
2347 2461 2491 2270 2646 2089 2816 1924 2997 1774 3193 1640
|
||||
3400 1521 3678 1960
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 84
|
||||
4226 6826 3988 6781 3761 6714 3544 6631 3327 6533 3126 6415
|
||||
2935 6275 2754 6126 2589 5955 2434 5775 2300 5584 2181 5382
|
||||
2078 5165 2040 5077 2539 4927 2631 5129 2749 5325 2889 5511
|
||||
3044 5687 3214 5836 3400 5976 3601 6089 3813 6182 4030 6255
|
||||
4257 6306 4484 6327 4716 6332 4943 6306 5170 6260 5387 6187
|
||||
5599 6095 5800 5976 5981 5836 6151 5682 6301 5511 6435 5320
|
||||
6543 5119 6631 4907 6693 4685 6729 4463 6745 4231 6734 4004
|
||||
6693 3777 6631 3560 6543 3349 6435 3147 6306 2961 6151 2791
|
||||
5981 2641 5795 2512 5594 2404 5382 2316 5160 2259 4938 2223
|
||||
4711 2218 4484 2239 4262 2285 4045 2357 3844 2456 3653 2579
|
||||
3477 2724 3322 2889 3188 3070 3075 3266 2987 3472 2930 3689
|
||||
2894 3916 2889 4138 2914 4365 2966 4582 3044 4794 3152 4990
|
||||
3281 5176 3431 5341 3601 5485 3792 5604 3993 5697 4205 5764
|
||||
4427 5805 4649 5816 4871 5795 5088 5744 5294 5666 5391 5617
|
||||
2 1 0 1 0 7 51 -1 -1 0.000 0 0 -1 0 0 13
|
||||
4221 6822 4476 6851 4687 6862 4936 6836 5155 6791 5387 6735
|
||||
5609 6657 5821 6559 6027 6446 6218 6311 6399 6162 6569 5996
|
||||
6716 5828
|
||||
2 1 0 1 0 7 51 -1 -1 0.000 0 0 -1 0 0 13
|
||||
6719 5816 6853 5625 6972 5424 7070 5207 7147 4990 7209 4763
|
||||
7256 4505 7259 4283 7256 4061 7230 3829 7184 3601 7116 3374
|
||||
7031 3160
|
||||
2 1 0 1 0 7 51 -1 -1 0.000 0 0 -1 0 0 11
|
||||
5191 1740 5496 1810 5712 1888 5924 1991 6125 2110 6316 2244
|
||||
6492 2399 6652 2569 6796 2755 6920 2951 7029 3158
|
||||
2 3 0 1 0 7 51 -1 46 0.000 0 0 -1 0 0 18
|
||||
5191 1734 5251 1227 4988 1193 4768 1186 4530 1191 4293 1222
|
||||
4060 1268 3938 1298 3703 1389 3400 1518 3682 1956 3925 1845
|
||||
4112 1790 4339 1738 4572 1707 4764 1699 4953 1708 5191 1734
|
||||
2 3 0 1 0 7 51 -1 16 0.000 0 0 -1 0 0 25
|
||||
2040 5074 1996 4943 1929 4716 1887 4484 1861 4252 1856 4014
|
||||
1867 3782 1903 3545 1954 3318 2027 3090 2114 2874 2223 2662
|
||||
2348 2459 2786 2737 2682 2905 2574 3111 2491 3328 2429 3550
|
||||
2388 3777 2372 4009 2378 4241 2409 4474 2460 4696 2538 4918
|
||||
2040 5074
|
||||
4 0 0 50 -1 18 20 0.5236 4 240 975 3879 3551 Data 2\001
|
||||
4 0 0 50 -1 18 20 0.0000 4 240 975 4195 5076 Data 1\001
|
||||
4 0 0 50 -1 18 20 4.7124 4 240 975 5809 3837 Data 3\001
|
||||
4 0 0 50 -1 18 20 1.5708 4 240 1290 2329 4449 Data n-1\001
|
||||
4 0 0 50 -1 18 20 0.3491 4 45 270 4974 5562 ...\001
|
||||
4 0 0 50 -1 18 20 5.1487 4 45 270 2311 5075 ...\001
|
||||
4 0 0 50 -1 18 20 0.7330 4 240 1005 2712 2589 Data n\001
|
||||
4 0 0 50 -1 18 16 0.1745 4 270 1110 3833 1677 padding\001
|
||||
1195
documentation/codec-specs/spiral-rs02.eps
Normal file
1195
documentation/codec-specs/spiral-rs02.eps
Normal file
File diff suppressed because it is too large
Load Diff
521
documentation/codec-specs/spiral-rs02.fig
Normal file
521
documentation/codec-specs/spiral-rs02.fig
Normal file
@@ -0,0 +1,521 @@
|
||||
#FIG 3.2 Produced by xfig version 3.2.5b
|
||||
Landscape
|
||||
Center
|
||||
Metric
|
||||
A4
|
||||
100.00
|
||||
Single
|
||||
-2
|
||||
1200 2
|
||||
2 3 0 1 0 7 51 -1 15 0.000 0 0 -1 0 0 27
|
||||
5358 1886 5457 1897 5555 1911 5654 1928 5751 1948 5848 1972
|
||||
5944 1998 6039 2028 6133 2060 6226 2095 6318 2134 6409 2175
|
||||
6498 2219 6586 2266 6379 2609 6290 2562 6201 2520 6110 2480
|
||||
6017 2444 5923 2411 5828 2381 5732 2355 5635 2333 5537 2314
|
||||
5439 2298 5340 2286 5358 1886
|
||||
2 3 0 1 0 7 51 -1 44 0.000 0 0 -1 0 0 11
|
||||
7610 3989 7570 3898 7527 3808 7481 3720 7432 3633 7779 3433
|
||||
7828 3520 7874 3608 7918 3697 7959 3788 7610 3989
|
||||
2 3 0 1 0 7 51 -1 10 0.000 0 0 -1 0 0 35
|
||||
7785 3433 7733 3348 7678 3265 7621 3183 7562 3103 7499 3025
|
||||
7435 2949 7368 2876 7299 2804 7228 2734 7154 2667 7079 2602
|
||||
7001 2539 6922 2479 6840 2422 6757 2367 6672 2315 6586 2265
|
||||
6379 2608 6465 2657 6550 2709 6632 2765 6713 2823 6792 2884
|
||||
6868 2948 6942 3015 7013 3084 7082 3156 7148 3230 7212 3306
|
||||
7273 3385 7331 3466 7386 3549 7438 3633 7785 3433
|
||||
2 3 0 1 0 7 50 -1 15 0.000 0 0 -1 0 0 94
|
||||
3550 3820 3492 3900 3438 3983 3389 4069 3344 4157 3304 4247
|
||||
3269 4340 3239 4434 3214 4530 3194 4626 3179 4725 3170 4823
|
||||
3166 4922 3167 5020 3174 5119 3186 5217 3203 5315 3226 5411
|
||||
3254 5506 3287 5599 3325 5690 3368 5779 3415 5866 3468 5949
|
||||
3525 6030 3586 6107 3652 6181 3721 6252 3795 6318 3871 6380
|
||||
3952 6437 4035 6490 4121 6539 4210 6582 4301 6620 4394 6653
|
||||
4489 6681 4585 6703 4683 6720 4781 6732 4879 6737 4978 6737
|
||||
5076 6732 5175 6721 5272 6704 5368 6681 5463 6653 5556 6620
|
||||
5646 6582 5734 6538 5820 6489 5903 6435 5664 6113 5580 6165
|
||||
5494 6210 5405 6249 5312 6281 5217 6306 5121 6323 5024 6334
|
||||
4926 6337 4828 6333 4731 6322 4635 6304 4540 6279 4447 6247
|
||||
4357 6209 4271 6164 4187 6112 4107 6055 4032 5993 3961 5925
|
||||
3895 5852 3834 5775 3780 5694 3731 5609 3688 5521 3651 5429
|
||||
3621 5336 3597 5241 3580 5145 3570 5047 3566 4949 3570 4851
|
||||
3580 4753 3596 4656 3619 4561 3649 4467 3685 4376 3727 4287
|
||||
3775 4201 3828 4119 3887 4040 3550 3820
|
||||
2 3 0 1 0 7 51 -1 10 0.000 0 0 -1 0 0 87
|
||||
2452 6595 2399 6510 2348 6424 2301 6337 2257 6248 2215 6157
|
||||
2177 6065 2142 5972 2109 5878 2080 5783 2054 5687 2032 5590
|
||||
2012 5492 1996 5394 1983 5295 1973 5196 1967 5096 1963 4997
|
||||
1963 4897 1967 4798 1973 4698 1983 4599 1996 4501 2013 4403
|
||||
2032 4305 2055 4208 2081 4112 2110 4016 2142 3922 2177 3829
|
||||
2215 3737 2256 3646 2300 3557 2347 3469 2397 3383 2450 3298
|
||||
2505 3216 2563 3135 2624 3056 2687 2979 2752 2904 2820 2831
|
||||
2890 2760 2963 2692 3038 2626 3114 2563 3375 2866 3299 2930
|
||||
3224 2995 3152 3064 3083 3135 3016 3209 2952 3285 2891 3364
|
||||
2833 3445 2778 3528 2726 3612 2678 3699 2632 3788 2590 3878
|
||||
2552 3970 2517 4062 2485 4157 2457 4252 2432 4349 2412 4446
|
||||
2394 4544 2381 4642 2371 4741 2365 4841 2363 4940 2365 5040
|
||||
2370 5139 2379 5238 2392 5336 2408 5435 2429 5532 2453 5628
|
||||
2480 5724 2512 5818 2546 5911 2585 6003 2627 6093 2672 6182
|
||||
2720 6269 2772 6353 2452 6595
|
||||
2 3 0 1 0 7 51 -1 10 0.000 0 0 -1 0 0 57
|
||||
7491 6405 7536 6316 7578 6226 7617 6135 7652 6042 7685 5947
|
||||
7714 5852 7739 5756 7762 5659 7781 5561 7796 5463 7808 5364
|
||||
7816 5265 7821 5166 7823 5066 7821 4967 7815 4867 7806 4768
|
||||
7794 4670 7778 4571 7759 4474 7736 4377 7709 4281 7680 4186
|
||||
7647 4092 7611 3999 7960 3798 7998 3890 8033 3983 8065 4078
|
||||
8095 4173 8121 4269 8145 4366 8165 4463 8182 4561 8197 4660
|
||||
8208 4759 8216 4858 8221 4958 8223 5057 8222 5157 8218 5257
|
||||
8211 5356 8201 5455 8187 5554 8171 5652 8152 5750 8129 5847
|
||||
8104 5943 8076 6039 8045 6133 8010 6227 7974 6320 7934 6411
|
||||
7891 6501 7846 6590 7491 6405
|
||||
2 3 0 1 0 7 51 -1 15 0.000 0 0 -1 0 0 89
|
||||
7488 6415 7440 6502 7389 6588 7335 6671 7278 6753 7218 6833
|
||||
7156 6910 7090 6985 7023 7058 6952 7129 6880 7197 6805 7263
|
||||
6728 7325 6649 7386 6568 7443 6484 7498 6399 7550 6313 7599
|
||||
6224 7644 6134 7687 6043 7727 5950 7763 5857 7796 5762 7827
|
||||
5666 7853 5569 7877 5472 7897 5374 7914 5275 7927 5176 7938
|
||||
5077 7944 4977 7948 4878 7948 4778 7944 4679 7937 4580 7927
|
||||
4481 7914 4383 7897 4285 7877 4189 7853 4093 7827 3931 8196
|
||||
4027 8224 4123 8250 4220 8272 4318 8292 4416 8309 4515 8322
|
||||
4614 8333 4713 8341 4813 8346 4912 8348 5012 8347 5112 8343
|
||||
5211 8336 5310 8326 5409 8313 5507 8297 5605 8278 5702 8257
|
||||
5799 8232 5895 8204 5989 8174 6083 8141 6176 8105 6268 8066
|
||||
6359 8024 6448 7980 6536 7933 6622 7883 6707 7831 6790 7776
|
||||
6872 7719 6951 7659 7029 7597 7105 7532 7179 7466 7251 7397
|
||||
7321 7325 7388 7252 7454 7177 7517 7100 7578 7021 7636 6940
|
||||
7691 6857 7745 6773 7795 6687 7843 6600 7488 6415
|
||||
2 3 0 1 0 7 51 -1 10 0.000 0 0 -1 0 0 24
|
||||
1622 5563 1605 5465 1592 5366 1582 5267 1574 5168 1569 5068
|
||||
1568 4968 1569 4869 1573 4769 1580 4670 1590 4570 1603 4472
|
||||
2001 4511 1988 4609 1978 4708 1972 4808 1968 4907 1968 5007
|
||||
1972 5106 1978 5206 1988 5305 2001 5404 2017 5502 1622 5563
|
||||
2 3 0 1 0 7 51 -1 49 0.000 0 0 -1 0 0 12
|
||||
1627 5561 1646 5659 1667 5756 1692 5853 1727 5999 1722 6004
|
||||
2119 5886 2090 5791 2064 5695 2042 5598 2022 5500 1627 5561
|
||||
2 3 0 1 0 7 51 -1 10 0.000 0 0 -1 0 0 64
|
||||
2112 5875 2145 5969 2180 6062 2218 6154 2260 6245 2304 6334
|
||||
2351 6421 2402 6507 2455 6592 2510 6674 2569 6755 2630 6833
|
||||
2694 6910 2760 6984 2829 7056 2900 7126 2973 7193 3049 7258
|
||||
3127 7320 3206 7380 3288 7436 3372 7491 3457 7542 3544 7590
|
||||
3633 7636 3723 7678 3814 7717 3907 7754 4001 7787 4096 7817
|
||||
3934 8186 3840 8155 3746 8121 3653 8084 3562 8044 3471 8002
|
||||
3382 7957 3295 7910 3209 7860 3124 7807 3041 7752 2959 7695
|
||||
2880 7635 2802 7573 2726 7508 2652 7442 2580 7373 2510 7302
|
||||
2442 7229 2376 7154 2313 7077 2252 6998 2193 6918 2136 6836
|
||||
2082 6752 2031 6667 1982 6580 1935 6492 1891 6402 1850 6312
|
||||
1812 6220 1776 6127 1743 6033 2112 5875
|
||||
2 3 0 1 0 7 51 -1 10 0.000 0 0 -1 0 0 96
|
||||
5912 6437 5992 6378 6067 6315 6139 6248 6207 6176 6271 6101
|
||||
6330 6022 6384 5939 6434 5854 6478 5766 6516 5675 6550 5582
|
||||
6577 5488 6599 5392 6615 5295 6625 5196 6630 5098 6628 4999
|
||||
6620 4901 6607 4803 6587 4707 6562 4612 6531 4518 6494 4427
|
||||
6451 4338 6404 4252 6351 4169 6293 4089 6230 4013 6162 3941
|
||||
6091 3874 6014 3811 5935 3753 5852 3701 5766 3654 5676 3612
|
||||
5585 3575 5491 3545 5396 3521 5299 3503 5201 3491 5103 3486
|
||||
5005 3487 4906 3494 4809 3507 4713 3527 4618 3553 4525 3585
|
||||
4434 3623 4346 3667 4262 3717 4180 3772 4102 3832 4029 3898
|
||||
4318 4176 4393 4113 4472 4058 4555 4010 4644 3969 4736 3936
|
||||
4829 3912 4924 3895 5021 3887 5119 3887 5215 3896 5311 3913
|
||||
5405 3938 5497 3971 5585 4011 5669 4059 5750 4114 5826 4175
|
||||
5896 4242 5960 4315 6018 4393 6071 4476 6115 4562 6153 4652
|
||||
6183 4745 6206 4840 6221 4936 6228 5033 6228 5130 6220 5228
|
||||
6204 5324 6181 5419 6150 5511 6112 5602 6067 5688 6016 5771
|
||||
5958 5850 5894 5925 5826 5994 5752 6057 5673 6115 5912 6437
|
||||
2 3 0 1 0 7 51 -1 15 0.000 0 0 -1 0 0 99
|
||||
6221 4993 6223 5022 6223 5119 6215 5217 6199 5313 6176 5408
|
||||
6145 5500 6107 5591 6062 5677 6011 5760 5953 5839 5889 5914
|
||||
5821 5983 5747 6046 5668 6104 5584 6156 5498 6201 5409 6240
|
||||
5316 6272 5221 6297 5125 6314 5028 6325 4930 6328 4832 6324
|
||||
4735 6313 4639 6295 4544 6270 4451 6238 4361 6200 4275 6155
|
||||
4191 6103 4111 6046 4036 5984 3965 5916 3899 5843 3838 5766
|
||||
3784 5685 3735 5600 3692 5512 3655 5420 3625 5327 3601 5232
|
||||
3584 5136 3574 5038 3570 4940 3574 4842 3584 4744 3600 4647
|
||||
3623 4552 3653 4458 3689 4367 3731 4278 3779 4192 3832 4110
|
||||
3891 4031 3955 3956 4024 3887 4313 4165 4245 4234 4183 4309
|
||||
4129 4388 4082 4473 4042 4562 4011 4653 3989 4746 3976 4843
|
||||
3971 4940 3976 5036 3990 5130 4013 5225 4045 5316 4085 5404
|
||||
4133 5486 4190 5565 4253 5637 4324 5703 4399 5760 4482 5811
|
||||
4569 5853 4659 5886 4751 5909 4847 5923 4943 5927 5038 5921
|
||||
5132 5905 5225 5880 5314 5844 5398 5800 5477 5747 5551 5686
|
||||
5617 5616 5675 5541 5723 5460 5764 5373 5794 5283 5813 5190
|
||||
5822 5096 5820 5001 6221 4993
|
||||
2 3 0 1 0 7 51 -1 44 0.000 0 0 -1 0 0 11
|
||||
7857 2250 7786 2181 7713 2113 7638 2047 7562 1983 7834 1689
|
||||
7910 1753 7985 1819 8058 1887 8130 1957 7857 2250
|
||||
2 3 0 1 0 7 51 -1 10 0.000 0 0 -1 0 0 66
|
||||
4775 693 4875 688 4975 684 5074 684 5174 685 5274 689
|
||||
5373 695 5473 703 5572 714 5671 727 5770 742 5868 759
|
||||
5966 779 6063 801 6160 825 6256 851 6352 880 6447 911
|
||||
6541 944 6634 979 6727 1016 6819 1055 6909 1097 6999 1140
|
||||
7088 1186 7176 1234 7262 1283 7348 1335 7432 1388 7515 1444
|
||||
7597 1501 7677 1560 7756 1621 7834 1684 7562 1978 7484 1915
|
||||
7404 1855 7323 1797 7241 1741 7157 1687 7072 1635 6985 1585
|
||||
6897 1538 6808 1492 6719 1449 6627 1409 6535 1370 6442 1334
|
||||
6349 1300 6254 1269 6158 1240 6062 1213 5966 1189 5868 1167
|
||||
5770 1148 5672 1131 5573 1117 5474 1105 5375 1096 5275 1089
|
||||
5176 1085 5076 1084 4976 1085 4877 1088 4777 1094 4775 693
|
||||
2 3 0 1 0 7 51 -1 44 0.000 0 0 -1 0 0 11
|
||||
2900 8609 2813 8559 2728 8507 2644 8453 2562 8397 2798 8074
|
||||
2881 8130 2965 8183 3051 8235 3138 8283 2900 8609
|
||||
2 3 0 1 0 7 51 -1 15 0.000 0 0 -1 0 0 88
|
||||
4777 691 4678 699 4578 709 4479 721 4381 736 4282 753
|
||||
4184 772 4087 793 3990 817 3894 843 3798 871 3703 901
|
||||
3609 934 3515 968 3422 1005 3330 1044 3239 1085 3149 1129
|
||||
3061 1174 2973 1221 2886 1271 2800 1322 2716 1375 2633 1431
|
||||
2551 1488 2471 1547 2392 1608 2314 1671 2238 1735 2164 1802
|
||||
2091 1870 2019 1939 1950 2011 1881 2084 1815 2158 1751 2234
|
||||
1688 2312 1627 2391 1568 2471 1511 2553 1455 2636 1402 2720
|
||||
1351 2806 1301 2893 1254 2981 1209 3070 1593 3195 1640 3107
|
||||
1689 3020 1740 2935 1793 2850 1849 2767 1906 2686 1966 2606
|
||||
2028 2528 2091 2451 2157 2376 2224 2302 2294 2231 2365 2161
|
||||
2438 2093 2513 2027 2589 1963 2667 1901 2747 1840 2828 1782
|
||||
2910 1726 2994 1673 3080 1621 3166 1571 3254 1524 3343 1479
|
||||
3433 1437 3525 1396 3617 1358 3710 1323 3804 1289 3899 1258
|
||||
3994 1230 4091 1204 4188 1181 4285 1159 4383 1141 4482 1125
|
||||
4580 1111 4680 1100 4779 1092 4777 691
|
||||
2 3 0 1 0 7 51 -1 10 0.000 0 0 -1 0 0 87
|
||||
1457 7260 1403 7176 1352 7090 1302 7004 1254 6916 1209 6827
|
||||
1165 6738 1124 6647 1085 6555 1048 6462 1013 6369 981 6274
|
||||
951 6179 923 6083 897 5987 874 5890 853 5792 834 5694
|
||||
817 5596 803 5497 791 5398 782 5299 775 5199 770 5100
|
||||
768 5000 768 4900 770 4800 775 4701 782 4601 791 4502
|
||||
803 4403 817 4304 833 4206 852 4107 873 4010 896 3913
|
||||
922 3816 950 3721 980 3625 1012 3531 1046 3437 1083 3345
|
||||
1122 3253 1163 3162 1206 3072 1590 3197 1546 3287 1504 3377
|
||||
1465 3469 1427 3561 1392 3655 1360 3749 1330 3844 1303 3940
|
||||
1278 4037 1255 4134 1235 4232 1218 4330 1203 4428 1191 4527
|
||||
1181 4627 1174 4726 1170 4826 1168 4926 1168 5025 1172 5125
|
||||
1178 5225 1186 5324 1197 5423 1211 5522 1227 5620 1246 5718
|
||||
1267 5816 1291 5912 1317 6009 1346 6104 1378 6199 1412 6292
|
||||
1448 6385 1487 6477 1528 6568 1571 6658 1617 6746 1665 6834
|
||||
1716 6920 1768 7004 1457 7260
|
||||
2 3 0 1 0 7 51 -1 15 0.000 0 0 -1 0 0 56
|
||||
3131 8283 3219 8330 3308 8374 3399 8416 3490 8456 3583 8492
|
||||
3677 8527 3771 8559 3866 8589 3962 8615 4059 8640 4156 8662
|
||||
4254 8681 4352 8697 4451 8711 4550 8723 4650 8731 4749 8737
|
||||
4849 8741 4949 8741 5048 8739 5148 8735 5247 8727 5347 8717
|
||||
5446 8705 5544 8689 5592 9087 5493 9102 5394 9115 5295 9125
|
||||
5195 9133 5096 9138 4996 9141 4896 9141 4797 9139 4697 9135
|
||||
4597 9129 4498 9119 4399 9108 4300 9094 4202 9078 4104 9059
|
||||
4006 9038 3909 9015 3813 8989 3717 8961 3622 8931 3527 8899
|
||||
3434 8864 3341 8827 3250 8788 3159 8746 3069 8703 2980 8657
|
||||
2893 8609 3131 8283
|
||||
2 3 0 1 0 7 51 -1 15 0.000 0 0 -1 0 0 34
|
||||
2568 8394 2487 8336 2407 8276 2328 8214 2252 8151 2176 8085
|
||||
2103 8018 2030 7949 1960 7878 1891 7806 1824 7732 1759 7657
|
||||
1696 7579 1634 7501 1575 7421 1517 7340 1461 7257 1772 7001
|
||||
1827 7085 1884 7167 1944 7247 2005 7325 2068 7403 2134 7478
|
||||
2201 7551 2270 7623 2341 7693 2414 7761 2489 7827 2565 7891
|
||||
2643 7953 2723 8013 2804 8071 2568 8394
|
||||
2 1 0 1 0 7 51 -1 15 0.000 0 0 -1 0 0 39
|
||||
3201 2496 3282 2437 3365 2382 3449 2329 3535 2278 3622 2231
|
||||
3711 2186 3802 2144 3893 2105 3986 2070 4080 2037 4175 2007
|
||||
4271 1980 4368 1956 4465 1936 4563 1918 4662 1904 4761 1893
|
||||
4860 1884 4960 1880 4943 2281 4844 2287 4745 2297 4646 2310
|
||||
4548 2327 4451 2348 4354 2372 4259 2400 4164 2431 4071 2465
|
||||
3979 2504 3889 2545 3800 2590 3713 2637 3627 2689 3544 2743
|
||||
3463 2800 3383 2860 3122 2557
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 1518
|
||||
8976 7025 9019 6934 9060 6843 9098 6751 9135 6658 9169 6565
|
||||
9202 6470 9232 6375 9260 6279 9286 6183 9310 6086 9332 5989
|
||||
9351 5891 9368 5793 9383 5694 9396 5595 9407 5496 9415 5396
|
||||
9421 5297 9425 5197 9426 5097 9426 4997 9423 4897 9418 4798
|
||||
9410 4698 9401 4599 9389 4500 9375 4401 9358 4303 9340 4205
|
||||
9319 4107 9296 4010 9271 3913 9244 3817 9214 3722 9182 3627
|
||||
9149 3533 9113 3440 9075 3348 9035 3257 8992 3166 8948 3077
|
||||
8902 2988 8854 2901 8804 2815 8752 2729 8697 2646 8642 2563
|
||||
8584 2482 8524 2401 8463 2323 8399 2246 8335 2170 8268 2096
|
||||
8199 2023 8130 1952 8058 1882 7985 1814 7910 1748 7834 1684
|
||||
7756 1621 7677 1560 7597 1501 7515 1444 7432 1388 7348 1335
|
||||
7262 1283 7176 1234 7088 1186 6999 1140 6909 1097 6819 1055
|
||||
6727 1016 6634 979 6541 944 6447 911 6352 880 6256 851
|
||||
6160 825 6063 801 5966 779 5868 759 5770 742 5671 727
|
||||
5572 714 5473 703 5373 695 5274 689 5174 685 5074 684
|
||||
4975 684 4875 688 4775 693 4676 701 4576 711 4477 723
|
||||
4379 738 4280 755 4182 774 4085 795 3988 819 3892 845
|
||||
3796 873 3701 903 3607 936 3513 970 3420 1007 3328 1046
|
||||
3237 1087 3147 1131 3059 1176 2971 1223 2884 1273 2798 1324
|
||||
2714 1377 2631 1433 2549 1490 2469 1549 2390 1610 2312 1673
|
||||
2236 1737 2162 1804 2089 1872 2017 1941 1948 2013 1879 2086
|
||||
1813 2160 1749 2236 1686 2314 1625 2393 1566 2473 1509 2555
|
||||
1453 2638 1400 2722 1349 2808 1299 2895 1252 2983 1207 3072
|
||||
1164 3162 1123 3253 1084 3345 1047 3437 1013 3531 981 3625
|
||||
951 3721 923 3816 897 3913 874 4010 853 4107 834 4206
|
||||
818 4304 804 4403 792 4502 783 4601 776 4701 771 4800
|
||||
769 4900 769 5000 771 5100 776 5199 783 5299 792 5398
|
||||
804 5497 818 5596 835 5694 854 5792 875 5890 898 5987
|
||||
924 6083 952 6179 982 6274 1014 6369 1049 6462 1086 6555
|
||||
1125 6647 1166 6738 1210 6827 1255 6916 1303 7004 1353 7090
|
||||
1404 7176 1458 7260 1514 7343 1572 7424 1631 7504 1693 7582
|
||||
1756 7660 1821 7735 1888 7809 1957 7881 2027 7952 2100 8021
|
||||
2173 8088 2249 8154 2325 8217 2404 8279 2484 8339 2565 8397
|
||||
2647 8453 2731 8507 2816 8559 2903 8609 2990 8657 3079 8703
|
||||
3169 8746 3260 8788 3351 8827 3444 8864 3537 8899 3632 8931
|
||||
3727 8961 3823 8989 3919 9015 4016 9038 4114 9059 4212 9078
|
||||
4310 9094 4409 9108 4508 9119 4607 9129 4707 9135 4807 9139
|
||||
4906 9141 5006 9141 5106 9138 5205 9133 5305 9125 5404 9115
|
||||
5503 9102 5602 9087 5700 9070 5798 9050 5895 9028 5992 9003
|
||||
6088 8977 6183 8948 6278 8916 6372 8882 6465 8846 6557 8808
|
||||
6648 8768 6739 8725 6828 8680 6916 8633 7003 8584 7088 8533
|
||||
7173 8480 7256 8424 7337 8367 7417 8307 7496 8246 7573 8183
|
||||
7649 8118 7723 8051 7795 7982 7866 7912 7935 7840 8002 7766
|
||||
8068 7691 8131 7614 8193 7535 8252 7455 8310 7374 8365 7291
|
||||
8419 7207 8470 7121 8520 7035 8567 6947 8612 6858 8655 6768
|
||||
8696 6677 8734 6585 8770 6492 8804 6398 8835 6303 8865 6208
|
||||
8891 6112 8916 6015 8938 5917 8957 5820 8974 5721 8989 5623
|
||||
9002 5524 9011 5424 9019 5325 9024 5225 9026 5126 9026 5026
|
||||
9024 4926 9019 4826 9011 4727 9001 4628 8989 4529 8974 4430
|
||||
8957 4332 8937 4234 8915 4137 8891 4040 8864 3944 8835 3849
|
||||
8803 3754 8769 3660 8733 3567 8694 3475 8653 3384 8610 3294
|
||||
8564 3206 8517 3118 8467 3031 8415 2946 8361 2862 8305 2780
|
||||
8247 2699 8187 2619 8125 2541 8061 2465 7995 2390 7927 2317
|
||||
7857 2245 7786 2176 7713 2108 7638 2042 7562 1978 7484 1915
|
||||
7404 1855 7323 1797 7241 1741 7157 1687 7072 1635 6985 1585
|
||||
6897 1538 6808 1492 6719 1449 6627 1409 6535 1370 6442 1334
|
||||
6349 1300 6254 1269 6158 1240 6062 1213 5966 1189 5868 1167
|
||||
5770 1148 5672 1131 5573 1117 5474 1105 5375 1096 5275 1089
|
||||
5176 1085 5076 1084 4976 1085 4877 1088 4777 1094 4678 1102
|
||||
4578 1113 4480 1127 4381 1143 4283 1161 4186 1183 4089 1206
|
||||
3992 1232 3897 1260 3802 1291 3708 1325 3615 1360 3523 1398
|
||||
3431 1439 3341 1481 3252 1526 3164 1573 3078 1623 2992 1675
|
||||
2908 1728 2826 1784 2745 1842 2665 1903 2587 1965 2511 2029
|
||||
2436 2095 2363 2163 2292 2233 2222 2304 2155 2378 2089 2453
|
||||
2026 2530 1964 2608 1904 2688 1847 2769 1791 2852 1738 2937
|
||||
1687 3022 1638 3109 1591 3197 1547 3287 1505 3377 1466 3469
|
||||
1428 3561 1393 3655 1361 3749 1331 3844 1304 3940 1279 4037
|
||||
1256 4134 1236 4232 1219 4330 1204 4428 1192 4527 1182 4627
|
||||
1175 4726 1171 4826 1169 4926 1169 5025 1173 5125 1179 5225
|
||||
1187 5324 1198 5423 1212 5522 1228 5620 1247 5718 1268 5816
|
||||
1292 5912 1318 6009 1347 6104 1379 6199 1413 6292 1449 6385
|
||||
1488 6477 1529 6568 1572 6658 1618 6746 1666 6834 1717 6920
|
||||
1769 7004 1824 7088 1881 7170 1941 7250 2002 7328 2065 7406
|
||||
2131 7481 2198 7554 2267 7626 2338 7696 2411 7764 2486 7830
|
||||
2562 7894 2640 7956 2720 8016 2801 8074 2884 8130 2968 8183
|
||||
3054 8235 3141 8283 3229 8330 3318 8374 3409 8416 3500 8456
|
||||
3593 8492 3687 8527 3781 8559 3876 8589 3972 8615 4069 8640
|
||||
4166 8662 4264 8681 4362 8697 4461 8711 4560 8723 4660 8731
|
||||
4759 8737 4859 8741 4959 8741 5058 8739 5158 8735 5257 8727
|
||||
5357 8717 5456 8705 5554 8689 5652 8671 5750 8651 5847 8628
|
||||
5943 8602 6039 8574 6133 8543 6227 8509 6320 8473 6412 8435
|
||||
6503 8394 6593 8351 6682 8305 6769 8257 6855 8206 6940 8154
|
||||
7023 8099 7105 8041 7185 7982 7263 7920 7340 7857 7415 7791
|
||||
7488 7723 7559 7653 7629 7582 7696 7508 7761 7433 7825 7356
|
||||
7886 7277 7945 7197 8002 7115 8057 7032 8109 6947 8159 6861
|
||||
8207 6773 8252 6684 8295 6594 8335 6503 8373 6411 8408 6317
|
||||
8441 6223 8471 6128 8498 6032 8523 5936 8545 5839 8565 5741
|
||||
8582 5642 8596 5544 8608 5445 8616 5345 8622 5246 8626 5146
|
||||
8626 5047 8624 4947 8619 4847 8611 4748 8601 4649 8588 4550
|
||||
8572 4451 8554 4353 8532 4256 8508 4159 8482 4063 8453 3968
|
||||
8421 3873 8386 3780 8349 3687 8310 3596 8268 3505 8223 3416
|
||||
8176 3328 8127 3242 8075 3156 8021 3073 7964 2991 7905 2910
|
||||
7845 2831 7781 2754 7716 2678 7649 2605 7580 2533 7508 2464
|
||||
7435 2396 7360 2330 7283 2267 7204 2206 7124 2146 7042 2090
|
||||
6959 2035 6874 1983 6787 1933 6700 1886 6611 1841 6520 1799
|
||||
6429 1759 6336 1722 6243 1687 6149 1655 6053 1626 5957 1599
|
||||
5860 1575 5763 1554 5665 1536 5567 1520 5468 1507 5369 1497
|
||||
5269 1490 5169 1485 5070 1484 4970 1485 4871 1489 4771 1496
|
||||
4672 1505 4573 1518 4474 1533 4376 1551 4279 1572 4182 1595
|
||||
4086 1621 3990 1650 3896 1682 3802 1716 3710 1753 3618 1793
|
||||
3528 1835 3439 1880 3351 1927 3265 1977 3180 2029 3096 2084
|
||||
3015 2141 2935 2200 2856 2262 2780 2325 2705 2391 2632 2459
|
||||
2561 2529 2492 2602 2425 2676 2361 2752 2299 2829 2238 2909
|
||||
2181 2990 2125 3073 2072 3157 2021 3243 1973 3330 1928 3419
|
||||
1885 3509 1844 3600 1807 3692 1772 3786 1739 3880 1710 3975
|
||||
1683 4071 1659 4168 1638 4265 1619 4363 1604 4462 1591 4560
|
||||
1581 4660 1574 4759 1570 4859 1569 4958 1570 5058 1575 5158
|
||||
1583 5257 1593 5356 1606 5455 1623 5553 1642 5651 1663 5748
|
||||
1688 5845 1716 5941 1746 6036 1779 6130 1815 6223 1853 6315
|
||||
1894 6405 1938 6495 1985 6583 2034 6670 2085 6755 2139 6839
|
||||
2196 6921 2255 7001 2316 7080 2379 7157 2445 7232 2513 7305
|
||||
2583 7376 2655 7445 2729 7511 2805 7576 2883 7638 2962 7698
|
||||
3044 7755 3127 7810 3212 7863 3298 7913 3385 7960 3474 8005
|
||||
3565 8047 3656 8087 3749 8124 3843 8158 3937 8189 4033 8217
|
||||
4129 8243 4226 8265 4324 8285 4422 8302 4521 8315 4620 8326
|
||||
4719 8334 4819 8339 4918 8341 5018 8340 5118 8336 5217 8329
|
||||
5316 8319 5415 8306 5513 8290 5611 8271 5708 8250 5805 8225
|
||||
5901 8197 5995 8167 6089 8134 6182 8098 6274 8059 6365 8017
|
||||
6454 7973 6542 7926 6628 7876 6713 7824 6796 7769 6878 7712
|
||||
6957 7652 7035 7590 7111 7525 7185 7459 7257 7390 7327 7318
|
||||
7394 7245 7460 7170 7523 7093 7584 7014 7642 6933 7697 6850
|
||||
7751 6766 7801 6680 7849 6593 7894 6504 7937 6414 7977 6323
|
||||
8013 6230 8048 6136 8079 6042 8107 5946 8132 5850 8155 5753
|
||||
8174 5655 8190 5557 8204 5458 8214 5359 8221 5260 8225 5160
|
||||
8226 5060 8224 4961 8219 4861 8211 4762 8200 4663 8185 4564
|
||||
8168 4466 8148 4369 8124 4272 8098 4176 8068 4081 8036 3986
|
||||
8001 3893 7963 3801 7922 3710 7878 3621 7832 3533 7783 3446
|
||||
7731 3361 7676 3278 7619 3196 7560 3116 7497 3038 7433 2962
|
||||
7366 2889 7297 2817 7226 2747 7152 2680 7077 2615 6999 2552
|
||||
6920 2492 6838 2435 6755 2380 6670 2328 6584 2278 6496 2231
|
||||
6407 2187 6316 2146 6224 2107 6131 2072 6037 2040 5942 2010
|
||||
5846 1984 5749 1960 5652 1940 5553 1923 5455 1909 5356 1898
|
||||
5257 1890 5157 1885 5057 1884 4958 1886 4858 1890 4759 1899
|
||||
4660 1910 4561 1924 4463 1942 4366 1962 4269 1986 4173 2013
|
||||
4078 2043 3984 2076 3891 2111 3800 2150 3709 2192 3620 2237
|
||||
3533 2284 3447 2335 3363 2388 3280 2443 3199 2502 3120 2563
|
||||
3044 2626 2969 2692 2896 2760 2826 2831 2758 2904 2693 2979
|
||||
2630 3056 2569 3135 2511 3216 2456 3298 2403 3383 2353 3469
|
||||
2306 3557 2262 3646 2221 3737 2183 3829 2148 3922 2116 4016
|
||||
2087 4112 2061 4208 2038 4305 2019 4403 2002 4501 1989 4599
|
||||
1979 4698 1973 4798 1969 4897 1969 4997 1973 5096 1979 5196
|
||||
1989 5295 2002 5394 2018 5492 2038 5590 2060 5687 2086 5783
|
||||
2115 5878 2148 5972 2183 6065 2221 6157 2263 6248 2307 6337
|
||||
2354 6424 2405 6510 2458 6595 2513 6677 2572 6758 2633 6836
|
||||
2697 6913 2763 6987 2832 7059 2903 7129 2976 7196 3052 7261
|
||||
3130 7323 3209 7383 3291 7439 3375 7494 3460 7545 3547 7593
|
||||
3636 7639 3726 7681 3817 7720 3910 7757 4004 7790 4099 7820
|
||||
4195 7846 4291 7870 4389 7890 4487 7907 4586 7920 4685 7930
|
||||
4784 7937 4884 7941 4983 7941 5083 7937 5182 7931 5281 7920
|
||||
5380 7907 5478 7890 5575 7870 5672 7846 5768 7820 5863 7789
|
||||
5956 7756 6049 7720 6140 7680 6230 7637 6319 7592 6405 7543
|
||||
6490 7491 6574 7436 6655 7379 6734 7318 6811 7256 6886 7190
|
||||
6958 7122 7029 7051 7096 6978 7162 6903 7224 6826 7284 6746
|
||||
7341 6664 7395 6581 7446 6495 7494 6408 7539 6319 7581 6229
|
||||
7620 6138 7655 6045 7688 5950 7717 5855 7742 5759 7765 5662
|
||||
7784 5564 7799 5466 7811 5367 7819 5268 7824 5169 7826 5069
|
||||
7824 4970 7818 4870 7809 4771 7797 4673 7781 4574 7762 4477
|
||||
7739 4380 7712 4284 7683 4189 7650 4095 7614 4002 7574 3911
|
||||
7531 3821 7485 3733 7436 3646 7384 3562 7329 3479 7271 3398
|
||||
7210 3319 7146 3243 7080 3169 7011 3097 6940 3028 6866 2961
|
||||
6790 2897 6711 2836 6630 2778 6548 2722 6463 2670 6377 2621
|
||||
6288 2574 6199 2532 6108 2492 6015 2456 5921 2423 5826 2393
|
||||
5730 2367 5633 2345 5535 2326 5437 2310 5338 2298 5239 2290
|
||||
5140 2285 5040 2284 4941 2287 4842 2293 4743 2303 4644 2316
|
||||
4546 2333 4449 2354 4352 2378 4257 2406 4162 2437 4069 2471
|
||||
3977 2510 3887 2551 3798 2596 3711 2643 3625 2695 3542 2749
|
||||
3461 2806 3381 2866 3305 2930 3230 2995 3158 3064 3089 3135
|
||||
3022 3209 2958 3285 2897 3364 2839 3445 2784 3528 2732 3612
|
||||
2684 3699 2638 3788 2596 3878 2558 3970 2523 4062 2491 4157
|
||||
2463 4252 2438 4349 2418 4446 2400 4544 2387 4642 2377 4741
|
||||
2371 4841 2369 4940 2371 5040 2376 5139 2385 5238 2398 5336
|
||||
2414 5435 2435 5532 2459 5628 2486 5724 2518 5818 2552 5911
|
||||
2591 6003 2633 6093 2678 6182 2726 6269 2778 6353 2833 6436
|
||||
2892 6517 2953 6595 3017 6671 3084 6744 3154 6815 3227 6883
|
||||
3302 6948 3379 7010 3459 7069 3541 7125 3626 7178 3712 7227
|
||||
3800 7274 3890 7316 3981 7355 4074 7391 4168 7422 4264 7451
|
||||
4360 7475 4457 7496 4555 7512 4654 7525 4753 7534 4852 7539
|
||||
4952 7541 5051 7538 5150 7532 5249 7521 5347 7507 5445 7488
|
||||
5542 7466 5638 7441 5733 7411 5826 7377 5918 7340 6009 7300
|
||||
6098 7255 6185 7208 6270 7156 6354 7102 6434 7044 6513 6983
|
||||
6589 6919 6662 6852 6733 6782 6800 6709 6865 6634 6927 6556
|
||||
6985 6475 7040 6393 7092 6308 7140 6221 7185 6132 7226 6042
|
||||
7264 5950 7297 5856 7327 5762 7353 5666 7375 5569 7393 5471
|
||||
7408 5373 7418 5274 7424 5175 7426 5076 7424 4976 7418 4877
|
||||
7407 4778 7393 4680 7375 4582 7353 4485 7326 4390 7296 4295
|
||||
7262 4202 7224 4110 7183 4020 7137 3931 7088 3845 7036 3760
|
||||
6980 3679 6921 3599 6858 3522 6792 3447 6724 3376 6652 3307
|
||||
6577 3241 6500 3179 6421 3119 6338 3064 6254 3011 6167 2963
|
||||
6079 2918 5989 2876 5897 2839 5803 2805 5708 2776 5612 2750
|
||||
5515 2729 5418 2712 5319 2699 5220 2690 5121 2685 5022 2685
|
||||
4923 2688 4824 2697 4725 2709 4627 2725 4530 2746 4434 2771
|
||||
4339 2800 4245 2833 4153 2869 4063 2910 3974 2955 3887 3004
|
||||
3803 3056 3721 3112 3641 3171 3564 3234 3491 3300 3419 3369
|
||||
3351 3441 3286 3516 3225 3594 3167 3675 3112 3758 3061 3843
|
||||
3015 3930 2971 4020 2932 4111 2897 4204 2866 4298 2839 4394
|
||||
2817 4491 2799 4588 2785 4686 2775 4785 2770 4884 2770 4983
|
||||
2773 5082 2782 5181 2794 5280 2811 5378 2832 5474 2858 5570
|
||||
2888 5665 2922 5758 2960 5849 3003 5939 3049 6027 3100 6113
|
||||
3154 6196 3212 6276 3273 6354 3338 6429 3406 6501 3477 6570
|
||||
3552 6636 3629 6698 3709 6756 3792 6811 3878 6861 3965 6908
|
||||
4054 6951 4146 6990 4239 7024 4333 7054 4429 7080 4526 7101
|
||||
4624 7118 4722 7130 4821 7137 4920 7140 5019 7139 5118 7132
|
||||
5216 7122 5315 7106 5412 7086 5508 7061 5602 7032 5696 6999
|
||||
5787 6961 5877 6919 5965 6873 6050 6822 6133 6768 6213 6709
|
||||
6290 6648 6365 6582 6436 6513 6504 6440 6568 6365 6628 6286
|
||||
6685 6205 6737 6121 6786 6035 6830 5946 6870 5855 6906 5763
|
||||
6937 5669 6964 5573 6986 5477 7003 5379 7015 5281 7023 5182
|
||||
7025 5083 7023 4984 7016 4885 7005 4787 6988 4689 6967 4592
|
||||
6941 4497 6910 4403 6874 4310 6835 4219 6790 4131 6742 4045
|
||||
6689 3961 6632 3880 6571 3802 6506 3727 6437 3655 6366 3587
|
||||
6290 3523 6212 3462 6131 3406 6047 3354 5960 3306 5871 3262
|
||||
5780 3223 5687 3189 5593 3159 5497 3134 5400 3115 5302 3100
|
||||
5204 3090 5105 3085 5006 3086 4907 3091 4809 3101 4711 3117
|
||||
4614 3137 4518 3163 4424 3193 4332 3229 4241 3269 4153 3313
|
||||
4067 3363 3984 3416 3904 3474 3827 3536 3753 3602 3683 3672
|
||||
3617 3746 3554 3822 3496 3902 3442 3985 3393 4071 3348 4159
|
||||
3308 4249 3273 4342 3243 4436 3218 4532 3198 4628 3183 4727
|
||||
3174 4825 3170 4924 3171 5022 3178 5121 3190 5219 3207 5317
|
||||
3230 5413 3258 5508 3291 5601 3329 5692 3372 5781 3419 5868
|
||||
3472 5951 3529 6032 3590 6109 3656 6183 3725 6254 3799 6320
|
||||
3875 6382 3956 6439 4039 6492 4125 6541 4214 6584 4305 6622
|
||||
4398 6655 4493 6683 4589 6705 4687 6722 4785 6734 4883 6739
|
||||
4982 6739 5080 6734 5179 6723 5276 6706 5372 6683 5467 6655
|
||||
5560 6622 5650 6584 5738 6540 5824 6491 5907 6437 5987 6378
|
||||
6062 6315 6134 6248 6202 6176 6266 6101 6325 6022 6379 5939
|
||||
6429 5854 6473 5766 6511 5675 6545 5582 6572 5488 6594 5392
|
||||
6610 5295 6620 5196 6625 5098 6623 4999 6615 4901 6602 4803
|
||||
6582 4707 6557 4612 6526 4518 6489 4427 6446 4338 6399 4252
|
||||
6346 4169 6288 4089 6225 4013 6157 3941 6086 3874 6009 3811
|
||||
5930 3753 5847 3701 5761 3654 5671 3612 5580 3575 5486 3545
|
||||
5391 3521 5294 3503 5196 3491 5098 3486 5000 3487 4901 3494
|
||||
4804 3507 4708 3527 4613 3553 4520 3585 4429 3623 4341 3667
|
||||
4257 3717 4175 3772 4097 3832 4024 3898 3955 3967 3891 4042
|
||||
3832 4121 3779 4203 3731 4289 3689 4378 3653 4469 3623 4563
|
||||
3600 4658 3584 4755 3574 4853 3570 4951 3574 5049 3584 5147
|
||||
3601 5243 3625 5338 3655 5431 3692 5523 3735 5611 3784 5696
|
||||
3838 5777 3899 5854 3965 5927 4036 5995 4111 6057 4191 6114
|
||||
4275 6166 4361 6211 4451 6249 4544 6281 4639 6306 4735 6324
|
||||
4832 6335 4930 6339 5028 6336 5125 6325 5221 6308 5316 6283
|
||||
5409 6251 5498 6212 5584 6167 5668 6115 5747 6057 5821 5994
|
||||
5889 5925 5953 5850 6011 5771 6062 5688 6107 5602 6145 5511
|
||||
6176 5419 6199 5324 6215 5228 6223 5130 6223 5033 6216 4936
|
||||
6201 4840 6178 4745 6148 4652 6110 4562 6066 4476 6013 4393
|
||||
5955 4315 5891 4242 5821 4175 5745 4114 5664 4059 5580 4011
|
||||
5492 3971 5400 3938 5306 3913 5210 3896 5114 3887 5016 3887
|
||||
4919 3895 4824 3912 4731 3936 4639 3969 4550 4010 4467 4058
|
||||
4388 4113 4313 4176 4245 4245 4183 4320 4129 4399 4082 4484
|
||||
4042 4573 4011 4664 3989 4757 3976 4854 3971 4951 3976 5047
|
||||
3990 5141 4013 5236 4045 5327 4085 5415 4133 5497 4190 5576
|
||||
4253 5648 4324 5714 4399 5771 4482 5822 4569 5864 4659 5897
|
||||
4751 5920 4847 5934 4943 5938 5038 5932 5132 5916 5225 5891
|
||||
5314 5855 5398 5811 5477 5758 5551 5697 5617 5627 5675 5552
|
||||
5723 5471 5764 5384 5794 5294 5813 5201 5822 5107 5820 5012
|
||||
2 3 0 1 0 7 51 -1 15 0.000 0 0 -1 0 0 87
|
||||
8610 6858 8653 6768 8694 6677 8732 6585 8768 6492 8802 6398
|
||||
8833 6303 8863 6208 8889 6112 8914 6015 8936 5917 8955 5820
|
||||
8972 5721 8987 5623 9000 5524 9009 5424 9017 5325 9022 5225
|
||||
9024 5126 9024 5026 9022 4926 9017 4826 9009 4727 8999 4628
|
||||
8987 4529 8972 4430 8955 4332 8935 4234 8913 4137 8889 4040
|
||||
8862 3944 8833 3849 8801 3754 8767 3660 8731 3567 8692 3475
|
||||
8651 3384 8608 3294 8562 3206 8515 3118 8465 3031 8802 2815
|
||||
8852 2901 8900 2988 8946 3077 8990 3166 9033 3257 9073 3348
|
||||
9111 3440 9147 3533 9180 3627 9212 3722 9242 3817 9269 3913
|
||||
9294 4010 9317 4107 9338 4205 9356 4303 9373 4401 9387 4500
|
||||
9399 4599 9408 4698 9416 4798 9421 4897 9424 4997 9424 5097
|
||||
9423 5197 9419 5297 9413 5396 9405 5496 9394 5595 9381 5694
|
||||
9366 5793 9349 5891 9330 5989 9308 6086 9284 6183 9258 6279
|
||||
9230 6375 9200 6470 9167 6565 9133 6658 9096 6751 9058 6843
|
||||
9017 6934 8974 7025 8610 6858
|
||||
2 3 0 1 0 7 51 -1 10 0.000 0 0 -1 0 0 24
|
||||
7857 2229 7927 2301 7995 2374 8061 2449 8125 2525 8187 2603
|
||||
8247 2683 8305 2764 8361 2846 8415 2930 8467 3015 8804 2799
|
||||
8752 2713 8697 2630 8642 2547 8584 2466 8524 2385 8463 2307
|
||||
8399 2230 8335 2154 8268 2080 8199 2007 8130 1936 7857 2229
|
||||
2 3 0 1 0 7 51 -1 15 0.000 0 0 -1 0 0 11
|
||||
5358 1880 5259 1872 5159 1867 5059 1866 4960 1868 4943 2269
|
||||
5042 2266 5142 2267 5241 2272 5340 2280 5358 1880
|
||||
4 0 0 50 -1 18 18 5.6723 4 210 855 3887 5718 Data 1\001
|
||||
4 0 0 50 -1 18 18 0.3665 4 210 870 3644 2548 Data n\001
|
||||
4 0 0 50 -1 18 16 6.2308 4 210 375 4959 2160 EH\001
|
||||
4 0 0 50 -1 18 16 5.9341 4 210 615 5634 2205 CRC\001
|
||||
4 0 0 50 -1 18 16 5.2185 4 210 375 7519 3590 EH\001
|
||||
4 0 0 50 -1 18 18 5.5152 4 210 840 6802 2753 ECC 1\001
|
||||
4 0 0 50 -1 18 18 4.7997 4 210 840 7857 4388 ECC 1\001
|
||||
4 0 0 50 -1 18 18 5.2360 4 210 855 5927 4128 Data 2\001
|
||||
4 0 0 50 -1 18 18 5.4629 4 210 855 3407 5683 Data 3\001
|
||||
4 0 0 50 -1 18 18 0.8727 4 45 225 3812 3853 ...\001
|
||||
4 0 0 50 -1 18 18 2.1817 4 45 225 2837 6736 ...\001
|
||||
4 0 0 50 -1 18 18 1.3963 4 210 1110 2235 5070 Data n-1\001
|
||||
4 0 0 50 -1 18 18 0.4712 4 210 840 5957 8108 ECC 2\001
|
||||
4 0 0 50 -1 18 16 4.9742 4 210 375 1734 5575 EH\001
|
||||
4 0 0 50 -1 18 18 5.5152 4 210 840 2332 6982 ECC 3\001
|
||||
4 0 0 50 -1 18 18 4.7124 4 210 840 1679 4545 ECC 3\001
|
||||
4 0 0 50 -1 18 18 1.3439 4 45 225 1878 4355 ...\001
|
||||
4 0 0 50 -1 18 18 4.7997 4 210 840 9090 4500 ECC k\001
|
||||
4 0 0 50 -1 18 16 5.5327 4 210 375 7656 1911 EH\001
|
||||
4 0 0 50 -1 18 14 5.3756 4 180 930 7980 2175 ECC k-1\001
|
||||
4 0 0 50 -1 18 16 5.9341 4 210 1080 5928 1059 ECC k-1\001
|
||||
4 0 0 50 -1 18 16 5.6549 4 210 375 2652 8329 EH\001
|
||||
4 0 0 50 -1 18 18 0.5760 4 210 1080 2366 2008 ECC k-2\001
|
||||
4 0 0 50 -1 18 18 4.7997 4 210 1080 857 4629 ECC k-3\001
|
||||
4 0 0 50 -1 18 18 0.2618 4 45 225 5681 8920 ...\001
|
||||
4 0 0 50 -1 18 18 6.1087 4 210 1080 3569 8844 ECC k-4\001
|
||||
4 0 0 50 -1 18 18 5.5327 4 210 1080 1612 7378 ECC k-4\001
|
||||
789
documentation/codec-specs/spiral-rs03.eps
Normal file
789
documentation/codec-specs/spiral-rs03.eps
Normal file
@@ -0,0 +1,789 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: spiral.fig
|
||||
%%Creator: fig2dev Version 3.2 Patchlevel 5
|
||||
%%CreationDate: Thu Oct 29 10:43:58 2009
|
||||
%%For: cg@wanderer (Carsten Gnoerlich)
|
||||
%%BoundingBox: 0 0 519 489
|
||||
%Magnification: 1.0000
|
||||
%%EndComments
|
||||
%%BeginProlog
|
||||
/MyAppDict 100 dict dup begin def
|
||||
/$F2psDict 200 dict def
|
||||
$F2psDict begin
|
||||
$F2psDict /mtrx matrix put
|
||||
/col-1 {0 setgray} bind def
|
||||
/col0 {0.000 0.000 0.000 srgb} bind def
|
||||
/col1 {0.000 0.000 1.000 srgb} bind def
|
||||
/col2 {0.000 1.000 0.000 srgb} bind def
|
||||
/col3 {0.000 1.000 1.000 srgb} bind def
|
||||
/col4 {1.000 0.000 0.000 srgb} bind def
|
||||
/col5 {1.000 0.000 1.000 srgb} bind def
|
||||
/col6 {1.000 1.000 0.000 srgb} bind def
|
||||
/col7 {1.000 1.000 1.000 srgb} bind def
|
||||
/col8 {0.000 0.000 0.560 srgb} bind def
|
||||
/col9 {0.000 0.000 0.690 srgb} bind def
|
||||
/col10 {0.000 0.000 0.820 srgb} bind def
|
||||
/col11 {0.530 0.810 1.000 srgb} bind def
|
||||
/col12 {0.000 0.560 0.000 srgb} bind def
|
||||
/col13 {0.000 0.690 0.000 srgb} bind def
|
||||
/col14 {0.000 0.820 0.000 srgb} bind def
|
||||
/col15 {0.000 0.560 0.560 srgb} bind def
|
||||
/col16 {0.000 0.690 0.690 srgb} bind def
|
||||
/col17 {0.000 0.820 0.820 srgb} bind def
|
||||
/col18 {0.560 0.000 0.000 srgb} bind def
|
||||
/col19 {0.690 0.000 0.000 srgb} bind def
|
||||
/col20 {0.820 0.000 0.000 srgb} bind def
|
||||
/col21 {0.560 0.000 0.560 srgb} bind def
|
||||
/col22 {0.690 0.000 0.690 srgb} bind def
|
||||
/col23 {0.820 0.000 0.820 srgb} bind def
|
||||
/col24 {0.500 0.190 0.000 srgb} bind def
|
||||
/col25 {0.630 0.250 0.000 srgb} bind def
|
||||
/col26 {0.750 0.380 0.000 srgb} bind def
|
||||
/col27 {1.000 0.500 0.500 srgb} bind def
|
||||
/col28 {1.000 0.630 0.630 srgb} bind def
|
||||
/col29 {1.000 0.750 0.750 srgb} bind def
|
||||
/col30 {1.000 0.880 0.880 srgb} bind def
|
||||
/col31 {1.000 0.840 0.000 srgb} bind def
|
||||
|
||||
end
|
||||
|
||||
% This junk string is used by the show operators
|
||||
/PATsstr 1 string def
|
||||
/PATawidthshow { % cx cy cchar rx ry string
|
||||
% Loop over each character in the string
|
||||
{ % cx cy cchar rx ry char
|
||||
% Show the character
|
||||
dup % cx cy cchar rx ry char char
|
||||
PATsstr dup 0 4 -1 roll put % cx cy cchar rx ry char (char)
|
||||
false charpath % cx cy cchar rx ry char
|
||||
/clip load PATdraw
|
||||
% Move past the character (charpath modified the
|
||||
% current point)
|
||||
currentpoint % cx cy cchar rx ry char x y
|
||||
newpath
|
||||
moveto % cx cy cchar rx ry char
|
||||
% Reposition by cx,cy if the character in the string is cchar
|
||||
3 index eq { % cx cy cchar rx ry
|
||||
4 index 4 index rmoveto
|
||||
} if
|
||||
% Reposition all characters by rx ry
|
||||
2 copy rmoveto % cx cy cchar rx ry
|
||||
} forall
|
||||
pop pop pop pop pop % -
|
||||
currentpoint
|
||||
newpath
|
||||
moveto
|
||||
} bind def
|
||||
/PATcg {
|
||||
7 dict dup begin
|
||||
/lw currentlinewidth def
|
||||
/lc currentlinecap def
|
||||
/lj currentlinejoin def
|
||||
/ml currentmiterlimit def
|
||||
/ds [ currentdash ] def
|
||||
/cc [ currentrgbcolor ] def
|
||||
/cm matrix currentmatrix def
|
||||
end
|
||||
} bind def
|
||||
% PATdraw - calculates the boundaries of the object and
|
||||
% fills it with the current pattern
|
||||
/PATdraw { % proc
|
||||
save exch
|
||||
PATpcalc % proc nw nh px py
|
||||
5 -1 roll exec % nw nh px py
|
||||
newpath
|
||||
PATfill % -
|
||||
restore
|
||||
} bind def
|
||||
% PATfill - performs the tiling for the shape
|
||||
/PATfill { % nw nh px py PATfill -
|
||||
PATDict /CurrentPattern get dup begin
|
||||
setfont
|
||||
% Set the coordinate system to Pattern Space
|
||||
PatternGState PATsg
|
||||
% Set the color for uncolored pattezns
|
||||
PaintType 2 eq { PATDict /PColor get PATsc } if
|
||||
% Create the string for showing
|
||||
3 index string % nw nh px py str
|
||||
% Loop for each of the pattern sources
|
||||
0 1 Multi 1 sub { % nw nh px py str source
|
||||
% Move to the starting location
|
||||
3 index 3 index % nw nh px py str source px py
|
||||
moveto % nw nh px py str source
|
||||
% For multiple sources, set the appropriate color
|
||||
Multi 1 ne { dup PC exch get PATsc } if
|
||||
% Set the appropriate string for the source
|
||||
0 1 7 index 1 sub { 2 index exch 2 index put } for pop
|
||||
% Loop over the number of vertical cells
|
||||
3 index % nw nh px py str nh
|
||||
{ % nw nh px py str
|
||||
currentpoint % nw nh px py str cx cy
|
||||
2 index oldshow % nw nh px py str cx cy
|
||||
YStep add moveto % nw nh px py str
|
||||
} repeat % nw nh px py str
|
||||
} for
|
||||
5 { pop } repeat
|
||||
end
|
||||
} bind def
|
||||
|
||||
% PATkshow - kshow with the current pattezn
|
||||
/PATkshow { % proc string
|
||||
exch bind % string proc
|
||||
1 index 0 get % string proc char
|
||||
% Loop over all but the last character in the string
|
||||
0 1 4 index length 2 sub {
|
||||
% string proc char idx
|
||||
% Find the n+1th character in the string
|
||||
3 index exch 1 add get % string proc char char+1
|
||||
exch 2 copy % strinq proc char+1 char char+1 char
|
||||
% Now show the nth character
|
||||
PATsstr dup 0 4 -1 roll put % string proc chr+1 chr chr+1 (chr)
|
||||
false charpath % string proc char+1 char char+1
|
||||
/clip load PATdraw
|
||||
% Move past the character (charpath modified the current point)
|
||||
currentpoint newpath moveto
|
||||
% Execute the user proc (should consume char and char+1)
|
||||
mark 3 1 roll % string proc char+1 mark char char+1
|
||||
4 index exec % string proc char+1 mark...
|
||||
cleartomark % string proc char+1
|
||||
} for
|
||||
% Now display the last character
|
||||
PATsstr dup 0 4 -1 roll put % string proc (char+1)
|
||||
false charpath % string proc
|
||||
/clip load PATdraw
|
||||
neewath
|
||||
pop pop % -
|
||||
} bind def
|
||||
% PATmp - the makepattern equivalent
|
||||
/PATmp { % patdict patmtx PATmp patinstance
|
||||
exch dup length 7 add % We will add 6 new entries plus 1 FID
|
||||
dict copy % Create a new dictionary
|
||||
begin
|
||||
% Matrix to install when painting the pattern
|
||||
TilingType PATtcalc
|
||||
/PatternGState PATcg def
|
||||
PatternGState /cm 3 -1 roll put
|
||||
% Check for multi pattern sources (Level 1 fast color patterns)
|
||||
currentdict /Multi known not { /Multi 1 def } if
|
||||
% Font dictionary definitions
|
||||
/FontType 3 def
|
||||
% Create a dummy encoding vector
|
||||
/Encoding 256 array def
|
||||
3 string 0 1 255 {
|
||||
Encoding exch dup 3 index cvs cvn put } for pop
|
||||
/FontMatrix matrix def
|
||||
/FontBBox BBox def
|
||||
/BuildChar {
|
||||
mark 3 1 roll % mark dict char
|
||||
exch begin
|
||||
Multi 1 ne {PaintData exch get}{pop} ifelse % mark [paintdata]
|
||||
PaintType 2 eq Multi 1 ne or
|
||||
{ XStep 0 FontBBox aload pop setcachedevice }
|
||||
{ XStep 0 setcharwidth } ifelse
|
||||
currentdict % mark [paintdata] dict
|
||||
/PaintProc load % mark [paintdata] dict paintproc
|
||||
end
|
||||
gsave
|
||||
false PATredef exec true PATredef
|
||||
grestore
|
||||
cleartomark % -
|
||||
} bind def
|
||||
currentdict
|
||||
end % newdict
|
||||
/foo exch % /foo newlict
|
||||
definefont % newfont
|
||||
} bind def
|
||||
% PATpcalc - calculates the starting point and width/height
|
||||
% of the tile fill for the shape
|
||||
/PATpcalc { % - PATpcalc nw nh px py
|
||||
PATDict /CurrentPattern get begin
|
||||
gsave
|
||||
% Set up the coordinate system to Pattern Space
|
||||
% and lock down pattern
|
||||
PatternGState /cm get setmatrix
|
||||
BBox aload pop pop pop translate
|
||||
% Determine the bounding box of the shape
|
||||
pathbbox % llx lly urx ury
|
||||
grestore
|
||||
% Determine (nw, nh) the # of cells to paint width and height
|
||||
PatHeight div ceiling % llx lly urx qh
|
||||
4 1 roll % qh llx lly urx
|
||||
PatWidth div ceiling % qh llx lly qw
|
||||
4 1 roll % qw qh llx lly
|
||||
PatHeight div floor % qw qh llx ph
|
||||
4 1 roll % ph qw qh llx
|
||||
PatWidth div floor % ph qw qh pw
|
||||
4 1 roll % pw ph qw qh
|
||||
2 index sub cvi abs % pw ph qs qh-ph
|
||||
exch 3 index sub cvi abs exch % pw ph nw=qw-pw nh=qh-ph
|
||||
% Determine the starting point of the pattern fill
|
||||
%(px, py)
|
||||
4 2 roll % nw nh pw ph
|
||||
PatHeight mul % nw nh pw py
|
||||
exch % nw nh py pw
|
||||
PatWidth mul exch % nw nh px py
|
||||
end
|
||||
} bind def
|
||||
|
||||
% Save the original routines so that we can use them later on
|
||||
/oldfill /fill load def
|
||||
/oldeofill /eofill load def
|
||||
/oldstroke /stroke load def
|
||||
/oldshow /show load def
|
||||
/oldashow /ashow load def
|
||||
/oldwidthshow /widthshow load def
|
||||
/oldawidthshow /awidthshow load def
|
||||
/oldkshow /kshow load def
|
||||
|
||||
% These defs are necessary so that subsequent procs don't bind in
|
||||
% the originals
|
||||
/fill { oldfill } bind def
|
||||
/eofill { oldeofill } bind def
|
||||
/stroke { oldstroke } bind def
|
||||
/show { oldshow } bind def
|
||||
/ashow { oldashow } bind def
|
||||
/widthshow { oldwidthshow } bind def
|
||||
/awidthshow { oldawidthshow } bind def
|
||||
/kshow { oldkshow } bind def
|
||||
/PATredef {
|
||||
MyAppDict begin
|
||||
{
|
||||
/fill { /clip load PATdraw newpath } bind def
|
||||
/eofill { /eoclip load PATdraw newpath } bind def
|
||||
/stroke { PATstroke } bind def
|
||||
/show { 0 0 null 0 0 6 -1 roll PATawidthshow } bind def
|
||||
/ashow { 0 0 null 6 3 roll PATawidthshow }
|
||||
bind def
|
||||
/widthshow { 0 0 3 -1 roll PATawidthshow }
|
||||
bind def
|
||||
/awidthshow { PATawidthshow } bind def
|
||||
/kshow { PATkshow } bind def
|
||||
} {
|
||||
/fill { oldfill } bind def
|
||||
/eofill { oldeofill } bind def
|
||||
/stroke { oldstroke } bind def
|
||||
/show { oldshow } bind def
|
||||
/ashow { oldashow } bind def
|
||||
/widthshow { oldwidthshow } bind def
|
||||
/awidthshow { oldawidthshow } bind def
|
||||
/kshow { oldkshow } bind def
|
||||
} ifelse
|
||||
end
|
||||
} bind def
|
||||
false PATredef
|
||||
% Conditionally define setcmykcolor if not available
|
||||
/setcmykcolor where { pop } {
|
||||
/setcmykcolor {
|
||||
1 sub 4 1 roll
|
||||
3 {
|
||||
3 index add neg dup 0 lt { pop 0 } if 3 1 roll
|
||||
} repeat
|
||||
setrgbcolor - pop
|
||||
} bind def
|
||||
} ifelse
|
||||
/PATsc { % colorarray
|
||||
aload length % c1 ... cn length
|
||||
dup 1 eq { pop setgray } { 3 eq { setrgbcolor } { setcmykcolor
|
||||
} ifelse } ifelse
|
||||
} bind def
|
||||
/PATsg { % dict
|
||||
begin
|
||||
lw setlinewidth
|
||||
lc setlinecap
|
||||
lj setlinejoin
|
||||
ml setmiterlimit
|
||||
ds aload pop setdash
|
||||
cc aload pop setrgbcolor
|
||||
cm setmatrix
|
||||
end
|
||||
} bind def
|
||||
|
||||
/PATDict 3 dict def
|
||||
/PATsp {
|
||||
true PATredef
|
||||
PATDict begin
|
||||
/CurrentPattern exch def
|
||||
% If it's an uncolored pattern, save the color
|
||||
CurrentPattern /PaintType get 2 eq {
|
||||
/PColor exch def
|
||||
} if
|
||||
/CColor [ currentrgbcolor ] def
|
||||
end
|
||||
} bind def
|
||||
% PATstroke - stroke with the current pattern
|
||||
/PATstroke {
|
||||
countdictstack
|
||||
save
|
||||
mark
|
||||
{
|
||||
currentpoint strokepath moveto
|
||||
PATpcalc % proc nw nh px py
|
||||
clip newpath PATfill
|
||||
} stopped {
|
||||
(*** PATstroke Warning: Path is too complex, stroking
|
||||
with gray) =
|
||||
cleartomark
|
||||
restore
|
||||
countdictstack exch sub dup 0 gt
|
||||
{ { end } repeat } { pop } ifelse
|
||||
gsave 0.5 setgray oldstroke grestore
|
||||
} { pop restore pop } ifelse
|
||||
newpath
|
||||
} bind def
|
||||
/PATtcalc { % modmtx tilingtype PATtcalc tilematrix
|
||||
% Note: tiling types 2 and 3 are not supported
|
||||
gsave
|
||||
exch concat % tilingtype
|
||||
matrix currentmatrix exch % cmtx tilingtype
|
||||
% Tiling type 1 and 3: constant spacing
|
||||
2 ne {
|
||||
% Distort the pattern so that it occupies
|
||||
% an integral number of device pixels
|
||||
dup 4 get exch dup 5 get exch % tx ty cmtx
|
||||
XStep 0 dtransform
|
||||
round exch round exch % tx ty cmtx dx.x dx.y
|
||||
XStep div exch XStep div exch % tx ty cmtx a b
|
||||
0 YStep dtransform
|
||||
round exch round exch % tx ty cmtx a b dy.x dy.y
|
||||
YStep div exch YStep div exch % tx ty cmtx a b c d
|
||||
7 -3 roll astore % { a b c d tx ty }
|
||||
} if
|
||||
grestore
|
||||
} bind def
|
||||
/PATusp {
|
||||
false PATredef
|
||||
PATDict begin
|
||||
CColor PATsc
|
||||
end
|
||||
} bind def
|
||||
|
||||
% left45
|
||||
11 dict begin
|
||||
/PaintType 1 def
|
||||
/PatternType 1 def
|
||||
/TilingType 1 def
|
||||
/BBox [0 0 1 1] def
|
||||
/XStep 1 def
|
||||
/YStep 1 def
|
||||
/PatWidth 1 def
|
||||
/PatHeight 1 def
|
||||
/Multi 2 def
|
||||
/PaintData [
|
||||
{ clippath } bind
|
||||
{ 20 20 true [ 20 0 0 -20 0 20 ]
|
||||
{<8020004010002008001004000802000401000200
|
||||
8001004000802000401080200040100020080010
|
||||
0400080200040100020080010040008020004010>}
|
||||
imagemask } bind
|
||||
] def
|
||||
/PaintProc {
|
||||
pop
|
||||
exec fill
|
||||
} def
|
||||
currentdict
|
||||
end
|
||||
/P4 exch def
|
||||
|
||||
% right45
|
||||
11 dict begin
|
||||
/PaintType 1 def
|
||||
/PatternType 1 def
|
||||
/TilingType 1 def
|
||||
/BBox [0 0 1 1] def
|
||||
/XStep 1 def
|
||||
/YStep 1 def
|
||||
/PatWidth 1 def
|
||||
/PatHeight 1 def
|
||||
/Multi 2 def
|
||||
/PaintData [
|
||||
{ clippath } bind
|
||||
{ 20 20 true [ 20 0 0 -20 0 20 ]
|
||||
{<0040100080200100400200800401000802001004
|
||||
0020080040100080200000401000802001004002
|
||||
0080040100080200100400200800401000802000>}
|
||||
imagemask } bind
|
||||
] def
|
||||
/PaintProc {
|
||||
pop
|
||||
exec fill
|
||||
} def
|
||||
currentdict
|
||||
end
|
||||
/P5 exch def
|
||||
|
||||
% crosshatch45
|
||||
11 dict begin
|
||||
/PaintType 1 def
|
||||
/PatternType 1 def
|
||||
/TilingType 1 def
|
||||
/BBox [0 0 1 1] def
|
||||
/XStep 1 def
|
||||
/YStep 1 def
|
||||
/PatWidth 1 def
|
||||
/PatHeight 1 def
|
||||
/Multi 2 def
|
||||
/PaintData [
|
||||
{ clippath } bind
|
||||
{ 20 20 true [ 20 0 0 -20 0 20 ]
|
||||
{<8020004050102088201104400a02800401000a02
|
||||
8011044020882040501080200040501020882011
|
||||
04400a02800401000a0280110440208820405010>}
|
||||
imagemask } bind
|
||||
] def
|
||||
/PaintProc {
|
||||
pop
|
||||
exec fill
|
||||
} def
|
||||
currentdict
|
||||
end
|
||||
/P6 exch def
|
||||
|
||||
% horizontal lines
|
||||
11 dict begin
|
||||
/PaintType 1 def
|
||||
/PatternType 1 def
|
||||
/TilingType 1 def
|
||||
/BBox [0 0 1 1] def
|
||||
/XStep 1 def
|
||||
/YStep 1 def
|
||||
/PatWidth 1 def
|
||||
/PatHeight 1 def
|
||||
/Multi 2 def
|
||||
/PaintData [
|
||||
{ clippath } bind
|
||||
{ 16 8 true [ 16 0 0 -8 0 8 ]
|
||||
{< ffff000000000000ffff000000000000>}
|
||||
imagemask } bind
|
||||
] def
|
||||
/PaintProc {
|
||||
pop
|
||||
exec fill
|
||||
} def
|
||||
currentdict
|
||||
end
|
||||
/P9 exch def
|
||||
|
||||
% crosshatch lines
|
||||
11 dict begin
|
||||
/PaintType 1 def
|
||||
/PatternType 1 def
|
||||
/TilingType 1 def
|
||||
/BBox [0 0 1 1] def
|
||||
/XStep 1 def
|
||||
/YStep 1 def
|
||||
/PatWidth 1 def
|
||||
/PatHeight 1 def
|
||||
/Multi 2 def
|
||||
/PaintData [
|
||||
{ clippath } bind
|
||||
{ 16 16 true [ 16 0 0 -16 0 16 ]
|
||||
{<ffff111111111111ffff111111111111ffff111111111111
|
||||
ffff111111111111>}
|
||||
imagemask } bind
|
||||
] def
|
||||
/PaintProc {
|
||||
pop
|
||||
exec fill
|
||||
} def
|
||||
currentdict
|
||||
end
|
||||
/P11 exch def
|
||||
|
||||
/cp {closepath} bind def
|
||||
/ef {eofill} bind def
|
||||
/gr {grestore} bind def
|
||||
/gs {gsave} bind def
|
||||
/sa {save} bind def
|
||||
/rs {restore} bind def
|
||||
/l {lineto} bind def
|
||||
/m {moveto} bind def
|
||||
/rm {rmoveto} bind def
|
||||
/n {newpath} bind def
|
||||
/s {stroke} bind def
|
||||
/sh {show} bind def
|
||||
/slc {setlinecap} bind def
|
||||
/slj {setlinejoin} bind def
|
||||
/slw {setlinewidth} bind def
|
||||
/srgb {setrgbcolor} bind def
|
||||
/rot {rotate} bind def
|
||||
/sc {scale} bind def
|
||||
/sd {setdash} bind def
|
||||
/ff {findfont} bind def
|
||||
/sf {setfont} bind def
|
||||
/scf {scalefont} bind def
|
||||
/sw {stringwidth} bind def
|
||||
/tr {translate} bind def
|
||||
/tnt {dup dup currentrgbcolor
|
||||
4 -2 roll dup 1 exch sub 3 -1 roll mul add
|
||||
4 -2 roll dup 1 exch sub 3 -1 roll mul add
|
||||
4 -2 roll dup 1 exch sub 3 -1 roll mul add srgb}
|
||||
bind def
|
||||
/shd {dup dup currentrgbcolor 4 -2 roll mul 4 -2 roll mul
|
||||
4 -2 roll mul srgb} bind def
|
||||
/reencdict 12 dict def /ReEncode { reencdict begin
|
||||
/newcodesandnames exch def /newfontname exch def /basefontname exch def
|
||||
/basefontdict basefontname findfont def /newfont basefontdict maxlength dict def
|
||||
basefontdict { exch dup /FID ne { dup /Encoding eq
|
||||
{ exch dup length array copy newfont 3 1 roll put }
|
||||
{ exch newfont 3 1 roll put } ifelse } { pop pop } ifelse } forall
|
||||
newfont /FontName newfontname put newcodesandnames aload pop
|
||||
128 1 255 { newfont /Encoding get exch /.notdef put } for
|
||||
newcodesandnames length 2 idiv { newfont /Encoding get 3 1 roll put } repeat
|
||||
newfontname newfont definefont pop end } def
|
||||
/isovec [
|
||||
8#055 /minus 8#200 /grave 8#201 /acute 8#202 /circumflex 8#203 /tilde
|
||||
8#204 /macron 8#205 /breve 8#206 /dotaccent 8#207 /dieresis
|
||||
8#210 /ring 8#211 /cedilla 8#212 /hungarumlaut 8#213 /ogonek 8#214 /caron
|
||||
8#220 /dotlessi 8#230 /oe 8#231 /OE
|
||||
8#240 /space 8#241 /exclamdown 8#242 /cent 8#243 /sterling
|
||||
8#244 /currency 8#245 /yen 8#246 /brokenbar 8#247 /section 8#250 /dieresis
|
||||
8#251 /copyright 8#252 /ordfeminine 8#253 /guillemotleft 8#254 /logicalnot
|
||||
8#255 /hyphen 8#256 /registered 8#257 /macron 8#260 /degree 8#261 /plusminus
|
||||
8#262 /twosuperior 8#263 /threesuperior 8#264 /acute 8#265 /mu 8#266 /paragraph
|
||||
8#267 /periodcentered 8#270 /cedilla 8#271 /onesuperior 8#272 /ordmasculine
|
||||
8#273 /guillemotright 8#274 /onequarter 8#275 /onehalf
|
||||
8#276 /threequarters 8#277 /questiondown 8#300 /Agrave 8#301 /Aacute
|
||||
8#302 /Acircumflex 8#303 /Atilde 8#304 /Adieresis 8#305 /Aring
|
||||
8#306 /AE 8#307 /Ccedilla 8#310 /Egrave 8#311 /Eacute
|
||||
8#312 /Ecircumflex 8#313 /Edieresis 8#314 /Igrave 8#315 /Iacute
|
||||
8#316 /Icircumflex 8#317 /Idieresis 8#320 /Eth 8#321 /Ntilde 8#322 /Ograve
|
||||
8#323 /Oacute 8#324 /Ocircumflex 8#325 /Otilde 8#326 /Odieresis 8#327 /multiply
|
||||
8#330 /Oslash 8#331 /Ugrave 8#332 /Uacute 8#333 /Ucircumflex
|
||||
8#334 /Udieresis 8#335 /Yacute 8#336 /Thorn 8#337 /germandbls 8#340 /agrave
|
||||
8#341 /aacute 8#342 /acircumflex 8#343 /atilde 8#344 /adieresis 8#345 /aring
|
||||
8#346 /ae 8#347 /ccedilla 8#350 /egrave 8#351 /eacute
|
||||
8#352 /ecircumflex 8#353 /edieresis 8#354 /igrave 8#355 /iacute
|
||||
8#356 /icircumflex 8#357 /idieresis 8#360 /eth 8#361 /ntilde 8#362 /ograve
|
||||
8#363 /oacute 8#364 /ocircumflex 8#365 /otilde 8#366 /odieresis 8#367 /divide
|
||||
8#370 /oslash 8#371 /ugrave 8#372 /uacute 8#373 /ucircumflex
|
||||
8#374 /udieresis 8#375 /yacute 8#376 /thorn 8#377 /ydieresis] def
|
||||
/Helvetica-Bold /Helvetica-Bold-iso isovec ReEncode
|
||||
/$F2psBegin {$F2psDict begin /$F2psEnteredState save def} def
|
||||
/$F2psEnd {$F2psEnteredState restore end} def
|
||||
|
||||
/pageheader {
|
||||
save
|
||||
newpath 0 489 moveto 0 0 lineto 519 0 lineto 519 489 lineto closepath clip newpath
|
||||
-51.1 497.5 translate
|
||||
1 -1 scale
|
||||
$F2psBegin
|
||||
10 setmiterlimit
|
||||
0 slj 0 slc
|
||||
0.06299 0.06299 sc
|
||||
} bind def
|
||||
/pagefooter {
|
||||
$F2psEnd
|
||||
restore
|
||||
} bind def
|
||||
%%EndProlog
|
||||
pageheader
|
||||
%
|
||||
% Fig objects follow
|
||||
%
|
||||
%
|
||||
% here starts figure with depth 51
|
||||
% Polyline
|
||||
0 slj
|
||||
0 slc
|
||||
7.500 slw
|
||||
n 5697 4365 m 5650 4567 l 5563 4752 l 5444 4923 l 5289 5062 l 5114 5176 l
|
||||
4923 5253 l 4716 5289 l 4504 5289 l 4298 5253 l 4102 5181 l
|
||||
3916 5073 l 3756 4933 l 3622 4768 l 3518 4582 l 3451 4381 l
|
||||
3415 4169 l 3931 4128 l 3973 4314 l 4060 4479 l 4184 4618 l
|
||||
4339 4716 l 4520 4768 l 4701 4763 l 4871 4711 l 5015 4613 l
|
||||
5124 4474 l 5176 4309 l
|
||||
cp gs col7 0.80 shd ef gr gs col0 s gr
|
||||
% Polyline
|
||||
n 5395 5613 m 5490 5558 l 5671 5424 l 5826 5269 l 5965 5093 l 6074 4902 l
|
||||
6156 4696 l 6208 4484 l 6229 4262 l 6213 4045 l 6172 3829 l
|
||||
6100 3622 l 5996 3426 l 5867 3250 l 5712 3090 l 5639 3031 l
|
||||
5339 3455 l 5485 3601 l 5594 3772 l 5671 3958 l 5702 4159 l
|
||||
5695 4365 l 5650 4571 l 5556 4770 l 5425 4938 l 5279 5070 l
|
||||
5110 5178 l
|
||||
cp gs col7 0.80 shd ef gr gs col0 s gr
|
||||
% Polyline
|
||||
n 2040 5074 m 1996 4943 l 1929 4716 l 1887 4484 l 1861 4252 l 1856 4014 l
|
||||
1867 3782 l 1903 3545 l 1954 3318 l 2027 3090 l 2114 2874 l
|
||||
2223 2662 l 2348 2459 l 2786 2737 l 2682 2905 l 2574 3111 l
|
||||
2491 3328 l 2429 3550 l 2388 3777 l 2372 4009 l 2378 4241 l
|
||||
2409 4474 l 2460 4696 l 2538 4918 l
|
||||
cp gs col7 0.80 shd ef gr gs col0 s gr
|
||||
% Polyline
|
||||
n 5639 3031 m 5537 2961 l 5346 2858 l 5139 2786 l 4928 2745 l 4711 2739 l
|
||||
4494 2765 l 4288 2822 l 4086 2915 l 3911 3034 l 3751 3183 l
|
||||
3622 3354 l 3518 3545 l 3446 3746 l 3415 3958 l 3411 4170 l
|
||||
3933 4125 l 3942 3932 l 3999 3751 l 4097 3581 l 4231 3441 l
|
||||
4401 3338 l 4587 3276 l 4783 3256 l 4985 3281 l 5170 3349 l
|
||||
5341 3457 l
|
||||
cp gs col7 0.80 shd ef gr gs col0 s gr
|
||||
% Polyline
|
||||
n 5378 194 m 5470 210 l 5707 262 l 5940 324 l 6172 401 l 6394 494 l
|
||||
6616 597 l 6827 716 l 7029 845 l 7225 990 l 7416 1144 l
|
||||
7591 1310 l 7763 1484 l 7383 1829 l 7209 1655 l 7029 1495 l
|
||||
6843 1346 l 6642 1212 l 6435 1088 l 6223 984 l 6001 892 l
|
||||
5774 814 l 5537 752 l 5305 706 l
|
||||
cp gs col7 0.60 shd ef gr gs col0 s gr
|
||||
% Polyline
|
||||
n 7516 3005 m 7452 2848 l 7338 2636 l 7204 2440 l 7060 2254 l 6900 2079 l
|
||||
6724 1914 l 6538 1764 l 6342 1635 l 6136 1516 l 5924 1413 l
|
||||
5697 1330 l 5470 1268 l 5256 1230 l 5191 1740 l 5496 1810 l
|
||||
5712 1888 l 5924 1991 l 6125 2110 l 6316 2244 l 6492 2399 l
|
||||
6652 2569 l 6796 2755 l 6920 2951 l 7029 3158 l
|
||||
cp gs /PC [[1.00 1.00 1.00] [0.00 0.00 0.00]] def
|
||||
15.00 15.00 sc P9 [16 0 0 -8 346.07 82.00] PATmp PATsp ef gr PATusp gs col0 s gr
|
||||
% Polyline
|
||||
n 4457 164 m 4465 164 l gs col0 s gr
|
||||
% Polyline
|
||||
n 4991 154 m 4747 148 l 4461 169 l 4262 184 l 4024 220 l 3787 272 l
|
||||
3555 339 l 3327 422 l 3105 515 l 2889 623 l 2677 742 l
|
||||
2476 876 l 2791 1289 l 2992 1155 l 3204 1041 l 3420 938 l
|
||||
3648 855 l 3875 783 l 4107 732 l 4344 690 l 4712 655 l
|
||||
4951 669 l 5067 680 l 5301 699 l 5381 194 l 5232 174 l
|
||||
|
||||
4990 153 l gs col7 0.60 shd ef gr gs col0 s gr
|
||||
% Polyline
|
||||
n 8269 2194 m 8277 2194 l gs col0 s gr
|
||||
% Polyline
|
||||
n 7803 2409 m 7674 2208 l 7529 2012 l 7375 1831 l 7762 1485 l 7917 1666 l
|
||||
8061 1862 l 8195 2063 l 8268 2184 l 8404 2420 l 8493 2639 l
|
||||
8526 2714 l 8608 2941 l 8675 3173 l 8732 3410 l 8774 3648 l
|
||||
8799 3890 l 8815 4133 l 8810 4376 l 8293 4359 l 8299 4247 l
|
||||
8288 4004 l 8268 3767 l 8226 3529 l 8175 3297 l 8102 3065 l
|
||||
8020 2837 l 7924 2620 l
|
||||
cp gs col7 0.60 shd ef gr gs col0 s gr
|
||||
% Polyline
|
||||
n 7256 4061 m 7230 3829 l 7184 3601 l 7116 3374 l 7031 3160 l 7511 3000 l
|
||||
7633 3287 l 7695 3514 l 7741 3746 l 7771 4050 l 7779 4313 l
|
||||
7764 4533 l 7746 4696 l 7700 4928 l 7638 5160 l 7555 5382 l
|
||||
7457 5599 l 7349 5811 l 7141 6133 l 6719 5816 l 6853 5625 l
|
||||
6972 5424 l 7070 5207 l 7147 4990 l 7209 4763 l 7256 4505 l
|
||||
7259 4283 l
|
||||
cp gs col7 0.60 shd ef gr gs col0 s gr
|
||||
% Polyline
|
||||
n 3678 1960 m 3477 2074 l 3286 2208 l 3111 2357 l 2951 2528 l 2793 2734 l
|
||||
2347 2461 l 2491 2270 l 2646 2089 l 2816 1924 l 2997 1774 l
|
||||
3193 1640 l 3400 1521 l
|
||||
cp gs col7 0.80 shd ef gr gs col0 s gr
|
||||
% Polyline
|
||||
n 5248 1223 m 4988 1193 l 4768 1186 l 4530 1191 l 4293 1222 l 4060 1268 l
|
||||
3938 1298 l 4112 1790 l 4339 1738 l 4572 1707 l 4764 1699 l
|
||||
4953 1708 l
|
||||
5183 1733 l gs /PC [[1.00 1.00 1.00] [0.00 0.00 0.00]] def
|
||||
15.00 15.00 sc P6 [16 0 0 -16 262.53 79.07] PATmp PATsp ef gr PATusp gs col0 s gr
|
||||
% Polyline
|
||||
n 4446 7361 m 4324 7354 l 4086 7323 l 4221 6822 l 4476 6851 l 4687 6862 l
|
||||
4936 6836 l 5155 6791 l 5387 6735 l 5609 6657 l 5821 6559 l
|
||||
6027 6446 l 6218 6311 l 6399 6162 l 6569 5996 l 6716 5828 l
|
||||
7136 6133 l 7075 6203 l 6915 6378 l 6745 6549 l 6564 6698 l
|
||||
6368 6838 l 6167 6962 l 5950 7070 l 5733 7163 l 5506 7240 l
|
||||
5274 7297 l 5041 7339 l 5006 7341 l 4710 7372 l
|
||||
cp gs col7 0.60 shd ef gr gs col0 s gr
|
||||
% Polyline
|
||||
n 8293 4369 m 8288 4489 l 8262 4727 l 8221 4964 l 8164 5196 l 8092 5429 l
|
||||
8004 5651 l 7901 5873 l 7788 6079 l 7659 6286 l 7514 6477 l
|
||||
7359 6662 l 7194 6838 l 7013 6998 l 6827 7148 l 6626 7287 l
|
||||
6420 7411 l 6208 7524 l 5986 7617 l 5759 7700 l 5527 7767 l
|
||||
5294 7819 l 5052 7855 l 4814 7881 l 4572 7886 l 4329 7875 l
|
||||
4091 7850 l 3854 7808 l 3617 7751 l 3389 7679 l 3162 7597 l
|
||||
2940 7493 l 2729 7380 l 2522 7256 l 2326 7117 l 2140 6962 l
|
||||
1965 6797 l 1794 6621 l 1639 6440 l 1495 6244 l 1366 6043 l
|
||||
1247 5831 l 1144 5609 l 1056 5387 l 979 5155 l 917 4923 l
|
||||
870 4685 l 839 4448 l 824 4205 l 824 3963 l 834 3720 l
|
||||
865 3483 l 906 3245 l 968 3008 l 1041 2781 l 1128 2554 l
|
||||
1226 2332 l 1340 2120 l 1469 1914 l 1608 1717 l 1763 1526 l
|
||||
1923 1351 l 2099 1181 l 2280 1026 l 2471 879 l 2781 1289 l
|
||||
2600 1428 l 2419 1588 l 2249 1759 l 2094 1939 l 1949 2130 l
|
||||
1820 2332 l 1701 2538 l 1603 2760 l 1516 2982 l 1448 3209 l
|
||||
1397 3447 l 1361 3684 l 1340 3921 l 1340 4159 l 1356 4401 l
|
||||
1386 4634 l 1438 4871 l 1500 5098 l 1583 5325 l 1681 5542 l
|
||||
1799 5754 l 1923 5955 l 2068 6146 l 2228 6327 l 2393 6497 l
|
||||
2574 6652 l 2770 6797 l 2971 6926 l 3178 7034 l 3400 7132 l
|
||||
3622 7215 l 3854 7277 l 4091 7316 l 4226 6826 l 3988 6781 l
|
||||
3761 6714 l 3544 6631 l 3327 6533 l 3126 6415 l 2935 6275 l
|
||||
2754 6126 l 2589 5955 l 2434 5775 l 2300 5584 l 2181 5382 l
|
||||
2078 5165 l 2040 5077 l 2539 4927 l 2631 5129 l 2749 5325 l
|
||||
2889 5511 l 3044 5687 l 3214 5836 l 3400 5976 l 3601 6089 l
|
||||
3813 6182 l 4030 6255 l 4257 6306 l 4484 6327 l 4716 6332 l
|
||||
4943 6306 l 5170 6260 l 5387 6187 l 5599 6095 l 5800 5976 l
|
||||
5981 5836 l 6151 5682 l 6301 5511 l 6435 5320 l 6543 5119 l
|
||||
6631 4907 l 6693 4685 l 6729 4463 l 6745 4231 l 6734 4004 l
|
||||
6693 3777 l 6631 3560 l 6543 3349 l 6435 3147 l 6306 2961 l
|
||||
6151 2791 l 5981 2641 l 5795 2512 l 5594 2404 l 5382 2316 l
|
||||
5160 2259 l 4938 2223 l 4711 2218 l 4484 2239 l 4262 2285 l
|
||||
4045 2357 l 3844 2456 l 3653 2579 l 3477 2724 l 3322 2889 l
|
||||
3188 3070 l 3075 3266 l 2987 3472 l 2930 3689 l 2894 3916 l
|
||||
2889 4138 l 2914 4365 l 2966 4582 l 3044 4794 l 3152 4990 l
|
||||
3281 5176 l 3431 5341 l 3601 5485 l 3792 5604 l 3993 5697 l
|
||||
4205 5764 l 4427 5805 l 4649 5816 l 4871 5795 l 5088 5744 l
|
||||
5294 5666 l
|
||||
5391 5617 l gs col0 s gr
|
||||
% Polyline
|
||||
n 3398 1518 m 3618 1408 l 3933 1298 l 4103 1783 l 3913 1843 l 3673 1953 l
|
||||
|
||||
3403 1523 l gs /PC [[1.00 1.00 1.00] [0.00 0.00 0.00]] def
|
||||
15.00 15.00 sc P4 [16 0 0 -16 226.53 86.53] PATmp PATsp ef gr PATusp gs col0 s gr
|
||||
% Polyline
|
||||
n 8805 4372 m 8797 4575 l 8771 4792 l 8741 4952 l 8701 5142 l 8212 5047 l
|
||||
8257 4800 l 8280 4605 l
|
||||
8295 4365 l gs /PC [[1.00 1.00 1.00] [0.00 0.00 0.00]] def
|
||||
15.00 15.00 sc P11 [16 0 0 -16 547.47 291.00] PATmp PATsp ef gr PATusp gs col0 s gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
3879 3551 m
|
||||
gs 1 -1 sc 30.0 rot (Data 2) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
4195 5076 m
|
||||
gs 1 -1 sc (Data 1) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
5809 3837 m
|
||||
gs 1 -1 sc 270.0 rot (Data 3) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
2329 4449 m
|
||||
gs 1 -1 sc 90.0 rot (Data n-1) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
6121 1907 m
|
||||
gs 1 -1 sc 320.0 rot (CRC) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
6061 779 m
|
||||
gs 1 -1 sc 332.0 rot (ECC m-1) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
2357 1309 m
|
||||
gs 1 -1 sc 38.0 rot (...) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
3841 7062 m
|
||||
gs 1 -1 sc 345.0 rot (...) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
4974 5562 m
|
||||
gs 1 -1 sc 20.0 rot (...) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
2311 5075 m
|
||||
gs 1 -1 sc 295.0 rot (...) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
3406 839 m
|
||||
gs 1 -1 sc 15.0 rot (ECC m-2) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
2712 2589 m
|
||||
gs 1 -1 sc 42.0 rot (Data n) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 254.00 scf sf
|
||||
3631 1786 m
|
||||
gs 1 -1 sc 20.0 rot (EH) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 254.00 scf sf
|
||||
4106 1596 m
|
||||
gs 1 -1 sc 4.0 rot (padding) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
8010 2385 m
|
||||
gs 1 -1 sc 290.0 rot (ECC m) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
7515 5130 m
|
||||
gs 1 -1 sc 80.0 rot (ECC 1) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 317.50 scf sf
|
||||
5201 7212 m
|
||||
gs 1 -1 sc 20.0 rot (ECC 2) col0 sh gr
|
||||
/Helvetica-Bold-iso ff 206.38 scf sf
|
||||
8885 5175 m
|
||||
gs 1 -1 sc 80.0 rot (unused) col0 sh gr
|
||||
% here ends figure;
|
||||
pagefooter
|
||||
showpage
|
||||
%%Trailer
|
||||
end
|
||||
%EOF
|
||||
138
documentation/codec-specs/spiral-rs03.fig
Normal file
138
documentation/codec-specs/spiral-rs03.fig
Normal file
@@ -0,0 +1,138 @@
|
||||
#FIG 3.2 Produced by xfig version 3.2.5
|
||||
Landscape
|
||||
Center
|
||||
Metric
|
||||
A4
|
||||
100.00
|
||||
Single
|
||||
-2
|
||||
1200 2
|
||||
2 3 0 1 0 7 51 -1 16 0.000 0 0 -1 0 0 29
|
||||
5697 4365 5650 4567 5563 4752 5444 4923 5289 5062 5114 5176
|
||||
4923 5253 4716 5289 4504 5289 4298 5253 4102 5181 3916 5073
|
||||
3756 4933 3622 4768 3518 4582 3451 4381 3415 4169 3931 4128
|
||||
3973 4314 4060 4479 4184 4618 4339 4716 4520 4768 4701 4763
|
||||
4871 4711 5015 4613 5124 4474 5176 4309 5697 4365
|
||||
2 3 0 1 0 7 51 -1 16 0.000 0 0 -1 0 0 28
|
||||
5395 5613 5490 5558 5671 5424 5826 5269 5965 5093 6074 4902
|
||||
6156 4696 6208 4484 6229 4262 6213 4045 6172 3829 6100 3622
|
||||
5996 3426 5867 3250 5712 3090 5639 3031 5339 3455 5485 3601
|
||||
5594 3772 5671 3958 5702 4159 5695 4365 5650 4571 5556 4770
|
||||
5425 4938 5279 5070 5110 5178 5395 5613
|
||||
2 3 0 1 0 7 51 -1 16 0.000 0 0 -1 0 0 25
|
||||
2040 5074 1996 4943 1929 4716 1887 4484 1861 4252 1856 4014
|
||||
1867 3782 1903 3545 1954 3318 2027 3090 2114 2874 2223 2662
|
||||
2348 2459 2786 2737 2682 2905 2574 3111 2491 3328 2429 3550
|
||||
2388 3777 2372 4009 2378 4241 2409 4474 2460 4696 2538 4918
|
||||
2040 5074
|
||||
2 3 0 1 0 7 51 -1 16 0.000 0 0 -1 0 0 28
|
||||
5639 3031 5537 2961 5346 2858 5139 2786 4928 2745 4711 2739
|
||||
4494 2765 4288 2822 4086 2915 3911 3034 3751 3183 3622 3354
|
||||
3518 3545 3446 3746 3415 3958 3411 4170 3933 4125 3942 3932
|
||||
3999 3751 4097 3581 4231 3441 4401 3338 4587 3276 4783 3256
|
||||
4985 3281 5170 3349 5341 3457 5639 3031
|
||||
2 3 0 1 0 7 51 -1 12 0.000 0 0 -1 0 0 25
|
||||
5378 194 5470 210 5707 262 5940 324 6172 401 6394 494
|
||||
6616 597 6827 716 7029 845 7225 990 7416 1144 7591 1310
|
||||
7763 1484 7383 1829 7209 1655 7029 1495 6843 1346 6642 1212
|
||||
6435 1088 6223 984 6001 892 5774 814 5537 752 5305 706
|
||||
5378 194
|
||||
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 183
|
||||
8293 4369 8288 4489 8262 4727 8221 4964 8164 5196 8092 5429
|
||||
8004 5651 7901 5873 7788 6079 7659 6286 7514 6477 7359 6662
|
||||
7194 6838 7013 6998 6827 7148 6626 7287 6420 7411 6208 7524
|
||||
5986 7617 5759 7700 5527 7767 5294 7819 5052 7855 4814 7881
|
||||
4572 7886 4329 7875 4091 7850 3854 7808 3617 7751 3389 7679
|
||||
3162 7597 2940 7493 2729 7380 2522 7256 2326 7117 2140 6962
|
||||
1965 6797 1794 6621 1639 6440 1495 6244 1366 6043 1247 5831
|
||||
1144 5609 1056 5387 979 5155 917 4923 870 4685 839 4448
|
||||
824 4205 824 3963 834 3720 865 3483 906 3245 968 3008
|
||||
1041 2781 1128 2554 1226 2332 1340 2120 1469 1914 1608 1717
|
||||
1763 1526 1923 1351 2099 1181 2280 1026 2471 879 2781 1289
|
||||
2600 1428 2419 1588 2249 1759 2094 1939 1949 2130 1820 2332
|
||||
1701 2538 1603 2760 1516 2982 1448 3209 1397 3447 1361 3684
|
||||
1340 3921 1340 4159 1356 4401 1386 4634 1438 4871 1500 5098
|
||||
1583 5325 1681 5542 1799 5754 1923 5955 2068 6146 2228 6327
|
||||
2393 6497 2574 6652 2770 6797 2971 6926 3178 7034 3400 7132
|
||||
3622 7215 3854 7277 4091 7316 4226 6826 3988 6781 3761 6714
|
||||
3544 6631 3327 6533 3126 6415 2935 6275 2754 6126 2589 5955
|
||||
2434 5775 2300 5584 2181 5382 2078 5165 2040 5077 2539 4927
|
||||
2631 5129 2749 5325 2889 5511 3044 5687 3214 5836 3400 5976
|
||||
3601 6089 3813 6182 4030 6255 4257 6306 4484 6327 4716 6332
|
||||
4943 6306 5170 6260 5387 6187 5599 6095 5800 5976 5981 5836
|
||||
6151 5682 6301 5511 6435 5320 6543 5119 6631 4907 6693 4685
|
||||
6729 4463 6745 4231 6734 4004 6693 3777 6631 3560 6543 3349
|
||||
6435 3147 6306 2961 6151 2791 5981 2641 5795 2512 5594 2404
|
||||
5382 2316 5160 2259 4938 2223 4711 2218 4484 2239 4262 2285
|
||||
4045 2357 3844 2456 3653 2579 3477 2724 3322 2889 3188 3070
|
||||
3075 3266 2987 3472 2930 3689 2894 3916 2889 4138 2914 4365
|
||||
2966 4582 3044 4794 3152 4990 3281 5176 3431 5341 3601 5485
|
||||
3792 5604 3993 5697 4205 5764 4427 5805 4649 5816 4871 5795
|
||||
5088 5744 5294 5666 5391 5617
|
||||
2 3 0 1 0 7 51 -1 49 0.000 0 0 -1 0 0 26
|
||||
7516 3005 7452 2848 7338 2636 7204 2440 7060 2254 6900 2079
|
||||
6724 1914 6538 1764 6342 1635 6136 1516 5924 1413 5697 1330
|
||||
5470 1268 5256 1230 5191 1740 5496 1810 5712 1888 5924 1991
|
||||
6125 2110 6316 2244 6492 2399 6652 2569 6796 2755 6920 2951
|
||||
7029 3158 7516 3005
|
||||
2 1 0 1 0 7 51 -1 45 0.000 0 0 -1 0 0 1
|
||||
4461 164
|
||||
2 1 0 1 0 7 51 -1 12 0.000 0 0 -1 0 0 27
|
||||
4991 154 4747 148 4461 169 4262 184 4024 220 3787 272
|
||||
3555 339 3327 422 3105 515 2889 623 2677 742 2476 876
|
||||
2791 1289 2992 1155 3204 1041 3420 938 3648 855 3875 783
|
||||
4107 732 4344 690 4712 655 4951 669 5067 680 5301 699
|
||||
5381 194 5232 174 4990 153
|
||||
2 1 0 1 0 7 51 -1 12 0.000 0 0 -1 0 0 1
|
||||
8273 2194
|
||||
2 3 0 1 0 7 51 -1 12 0.000 0 0 -1 0 0 29
|
||||
7803 2409 7674 2208 7529 2012 7375 1831 7762 1485 7917 1666
|
||||
8061 1862 8195 2063 8268 2184 8404 2420 8493 2639 8526 2714
|
||||
8608 2941 8675 3173 8732 3410 8774 3648 8799 3890 8815 4133
|
||||
8810 4376 8293 4359 8299 4247 8288 4004 8268 3767 8226 3529
|
||||
8175 3297 8102 3065 8020 2837 7924 2620 7803 2409
|
||||
2 3 0 1 0 7 51 -1 12 0.000 0 0 -1 0 0 28
|
||||
7256 4061 7230 3829 7184 3601 7116 3374 7031 3160 7511 3000
|
||||
7633 3287 7695 3514 7741 3746 7771 4050 7779 4313 7764 4533
|
||||
7746 4696 7700 4928 7638 5160 7555 5382 7457 5599 7349 5811
|
||||
7141 6133 6719 5816 6853 5625 6972 5424 7070 5207 7147 4990
|
||||
7209 4763 7256 4505 7259 4283 7256 4061
|
||||
2 3 0 1 0 7 51 -1 16 0.000 0 0 -1 0 0 14
|
||||
3678 1960 3477 2074 3286 2208 3111 2357 2951 2528 2793 2734
|
||||
2347 2461 2491 2270 2646 2089 2816 1924 2997 1774 3193 1640
|
||||
3400 1521 3678 1960
|
||||
2 1 0 1 0 7 50 -1 44 0.000 0 0 -1 0 0 7
|
||||
3398 1518 3618 1408 3933 1298 4103 1783 3913 1843 3673 1953
|
||||
3403 1523
|
||||
2 1 0 1 0 7 51 -1 46 0.000 0 0 -1 0 0 13
|
||||
5248 1223 4988 1193 4768 1186 4530 1191 4293 1222 4060 1268
|
||||
3938 1298 4112 1790 4339 1738 4572 1707 4764 1699 4953 1708
|
||||
5183 1733
|
||||
2 3 0 1 0 7 51 -1 12 0.000 0 0 -1 0 0 31
|
||||
4446 7361 4324 7354 4086 7323 4221 6822 4476 6851 4687 6862
|
||||
4936 6836 5155 6791 5387 6735 5609 6657 5821 6559 6027 6446
|
||||
6218 6311 6399 6162 6569 5996 6716 5828 7136 6133 7075 6203
|
||||
6915 6378 6745 6549 6564 6698 6368 6838 6167 6962 5950 7070
|
||||
5733 7163 5506 7240 5274 7297 5041 7339 5006 7341 4710 7372
|
||||
4446 7361
|
||||
2 1 0 1 0 7 50 -1 51 0.000 0 0 -1 0 0 9
|
||||
8805 4372 8797 4575 8771 4792 8741 4952 8701 5142 8212 5047
|
||||
8257 4800 8280 4605 8295 4365
|
||||
4 0 0 50 -1 18 20 0.5236 4 240 975 3879 3551 Data 2\001
|
||||
4 0 0 50 -1 18 20 0.0000 4 240 975 4195 5076 Data 1\001
|
||||
4 0 0 50 -1 18 20 4.7124 4 240 975 5809 3837 Data 3\001
|
||||
4 0 0 50 -1 18 20 1.5708 4 240 1290 2329 4449 Data n-1\001
|
||||
4 0 0 50 -1 18 20 5.5851 4 240 720 6121 1907 CRC\001
|
||||
4 0 0 50 -1 18 20 5.7945 4 240 1380 6061 779 ECC m-1\001
|
||||
4 0 0 50 -1 18 20 0.6632 4 45 270 2357 1309 ...\001
|
||||
4 0 0 50 -1 18 20 6.0214 4 45 270 3841 7062 ...\001
|
||||
4 0 0 50 -1 18 20 0.3491 4 45 270 4974 5562 ...\001
|
||||
4 0 0 50 -1 18 20 5.1487 4 45 270 2311 5075 ...\001
|
||||
4 0 0 50 -1 18 20 0.2618 4 240 1380 3406 839 ECC m-2\001
|
||||
4 0 0 50 -1 18 20 0.7330 4 240 1005 2712 2589 Data n\001
|
||||
4 0 0 50 -1 18 16 0.3491 4 210 375 3631 1786 EH\001
|
||||
4 0 0 50 -1 18 16 0.0698 4 270 1110 4106 1596 padding\001
|
||||
4 0 0 50 -1 18 20 5.0615 4 240 1095 8010 2385 ECC m\001
|
||||
4 0 0 50 -1 18 20 1.3963 4 240 975 7515 5130 ECC 1\001
|
||||
4 0 0 50 -1 18 20 0.3491 4 240 975 5201 7212 ECC 2\001
|
||||
4 0 0 50 -1 18 13 1.3963 4 165 780 8885 5175 unused\001
|
||||
125
documentation/codec-specs/title.eps
Normal file
125
documentation/codec-specs/title.eps
Normal file
@@ -0,0 +1,125 @@
|
||||
%!PS-Adobe-3.0 EPSF-3.0
|
||||
%%Title: title.fig
|
||||
%%Creator: fig2dev Version 3.2 Patchlevel 5e
|
||||
%%CreationDate: Tue Mar 17 12:44:06 2015
|
||||
%%BoundingBox: 0 0 559 687
|
||||
%Magnification: 1.0000
|
||||
%%EndComments
|
||||
%%BeginProlog
|
||||
/$F2psDict 200 dict def
|
||||
$F2psDict begin
|
||||
$F2psDict /mtrx matrix put
|
||||
/col-1 {0 setgray} bind def
|
||||
/col0 {0.000 0.000 0.000 srgb} bind def
|
||||
/col1 {0.000 0.000 1.000 srgb} bind def
|
||||
/col2 {0.000 1.000 0.000 srgb} bind def
|
||||
/col3 {0.000 1.000 1.000 srgb} bind def
|
||||
/col4 {1.000 0.000 0.000 srgb} bind def
|
||||
/col5 {1.000 0.000 1.000 srgb} bind def
|
||||
/col6 {1.000 1.000 0.000 srgb} bind def
|
||||
/col7 {1.000 1.000 1.000 srgb} bind def
|
||||
/col8 {0.000 0.000 0.560 srgb} bind def
|
||||
/col9 {0.000 0.000 0.690 srgb} bind def
|
||||
/col10 {0.000 0.000 0.820 srgb} bind def
|
||||
/col11 {0.530 0.810 1.000 srgb} bind def
|
||||
/col12 {0.000 0.560 0.000 srgb} bind def
|
||||
/col13 {0.000 0.690 0.000 srgb} bind def
|
||||
/col14 {0.000 0.820 0.000 srgb} bind def
|
||||
/col15 {0.000 0.560 0.560 srgb} bind def
|
||||
/col16 {0.000 0.690 0.690 srgb} bind def
|
||||
/col17 {0.000 0.820 0.820 srgb} bind def
|
||||
/col18 {0.560 0.000 0.000 srgb} bind def
|
||||
/col19 {0.690 0.000 0.000 srgb} bind def
|
||||
/col20 {0.820 0.000 0.000 srgb} bind def
|
||||
/col21 {0.560 0.000 0.560 srgb} bind def
|
||||
/col22 {0.690 0.000 0.690 srgb} bind def
|
||||
/col23 {0.820 0.000 0.820 srgb} bind def
|
||||
/col24 {0.500 0.190 0.000 srgb} bind def
|
||||
/col25 {0.630 0.250 0.000 srgb} bind def
|
||||
/col26 {0.750 0.380 0.000 srgb} bind def
|
||||
/col27 {1.000 0.500 0.500 srgb} bind def
|
||||
/col28 {1.000 0.630 0.630 srgb} bind def
|
||||
/col29 {1.000 0.750 0.750 srgb} bind def
|
||||
/col30 {1.000 0.880 0.880 srgb} bind def
|
||||
/col31 {1.000 0.840 0.000 srgb} bind def
|
||||
|
||||
end
|
||||
|
||||
/cp {closepath} bind def
|
||||
/ef {eofill} bind def
|
||||
/gr {grestore} bind def
|
||||
/gs {gsave} bind def
|
||||
/sa {save} bind def
|
||||
/rs {restore} bind def
|
||||
/l {lineto} bind def
|
||||
/m {moveto} bind def
|
||||
/rm {rmoveto} bind def
|
||||
/n {newpath} bind def
|
||||
/s {stroke} bind def
|
||||
/sh {show} bind def
|
||||
/slc {setlinecap} bind def
|
||||
/slj {setlinejoin} bind def
|
||||
/slw {setlinewidth} bind def
|
||||
/srgb {setrgbcolor} bind def
|
||||
/rot {rotate} bind def
|
||||
/sc {scale} bind def
|
||||
/sd {setdash} bind def
|
||||
/ff {findfont} bind def
|
||||
/sf {setfont} bind def
|
||||
/scf {scalefont} bind def
|
||||
/sw {stringwidth} bind def
|
||||
/tr {translate} bind def
|
||||
/tnt {dup dup currentrgbcolor
|
||||
4 -2 roll dup 1 exch sub 3 -1 roll mul add
|
||||
4 -2 roll dup 1 exch sub 3 -1 roll mul add
|
||||
4 -2 roll dup 1 exch sub 3 -1 roll mul add srgb}
|
||||
bind def
|
||||
/shd {dup dup currentrgbcolor 4 -2 roll mul 4 -2 roll mul
|
||||
4 -2 roll mul srgb} bind def
|
||||
/$F2psBegin {$F2psDict begin /$F2psEnteredState save def} def
|
||||
/$F2psEnd {$F2psEnteredState restore end} def
|
||||
|
||||
/pageheader {
|
||||
save
|
||||
newpath 0 687 moveto 0 0 lineto 559 0 lineto 559 687 lineto closepath clip newpath
|
||||
-471.8 846.3 translate
|
||||
1 -1 scale
|
||||
$F2psBegin
|
||||
10 setmiterlimit
|
||||
0 slj 0 slc
|
||||
0.06299 0.06299 sc
|
||||
} bind def
|
||||
/pagefooter {
|
||||
$F2psEnd
|
||||
restore
|
||||
} bind def
|
||||
%%EndProlog
|
||||
pageheader
|
||||
%
|
||||
% Fig objects follow
|
||||
%
|
||||
%
|
||||
% here starts figure with depth 50
|
||||
% Polyline
|
||||
0 slj
|
||||
0 slc
|
||||
210.000 slw
|
||||
n 13500 2700 m 13500 4725 l
|
||||
16155 4725 l gs col0 s gr
|
||||
% Polyline
|
||||
n 16200 13275 m 7650 13275 l 7650 2700 l 13500 2700 l 16200 4725 l
|
||||
16200 13275 l cp gs col0 s gr
|
||||
/Helvetica-Bold ff 2540.00 scf sf
|
||||
8280 12555 m
|
||||
gs 1 -1 sc (00111) col1 sh gr
|
||||
/Helvetica-Bold ff 2540.00 scf sf
|
||||
8235 7560 m
|
||||
gs 1 -1 sc (01110) col0 sh gr
|
||||
/Helvetica-Bold ff 2540.00 scf sf
|
||||
8235 9990 m
|
||||
gs 1 -1 sc (10011) col0 sh gr
|
||||
% here ends figure;
|
||||
pagefooter
|
||||
showpage
|
||||
%%Trailer
|
||||
%EOF
|
||||
16
documentation/codec-specs/title.fig
Normal file
16
documentation/codec-specs/title.fig
Normal file
@@ -0,0 +1,16 @@
|
||||
#FIG 3.2 Produced by xfig version 3.2.5c
|
||||
Landscape
|
||||
Center
|
||||
Metric
|
||||
A4
|
||||
100.00
|
||||
Single
|
||||
-2
|
||||
1200 2
|
||||
2 1 0 15 0 7 50 -1 -1 0.000 0 0 -1 0 0 3
|
||||
13500 2700 13500 4725 16155 4725
|
||||
2 1 0 15 0 7 50 -1 -1 0.000 0 0 -1 0 0 6
|
||||
16200 13275 7650 13275 7650 2700 13500 2700 16200 4725 16200 13275
|
||||
4 0 1 50 -1 18 160 0.0000 4 1995 7425 8280 12555 00111\001
|
||||
4 0 0 50 -1 18 160 0.0000 4 1995 7425 8235 7560 01110\001
|
||||
4 0 0 50 -1 18 160 0.0000 4 1995 7425 8235 9990 10011\001
|
||||
1
documentation/config/version.tex
Normal file
1
documentation/config/version.tex
Normal file
@@ -0,0 +1 @@
|
||||
\newcommand{\projectversion}{0.79.6}
|
||||
@@ -1,276 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<title>Overview</title>
|
||||
<link rel="stylesheet" type="text/css" href="../include/dvdisaster.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!--- Title header --->
|
||||
<table width="100%" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td align="left">
|
||||
<font size="+3"><b>dvdisaster</b></font>
|
||||
<i>Version 0.72</i>
|
||||
</td>
|
||||
<td align="right">
|
||||
<font size="+3"> </font><a href="http://dvdisaster.net/de/">Zur Internet-Version</a>
|
||||
|
||||
<a href="../en/download.html"></a>
|
||||
<a href="../ru/download.html"></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<!--- Language chooser or separator --->
|
||||
<table width="100%" cellpadding="0" border="0">
|
||||
<tr bgcolor="#000000">
|
||||
<td colspan="2" width="100%"><img width=1 height=1 alt=""></td>
|
||||
</tr>
|
||||
<tr><td colspan="2" width="100%" height="10">
|
||||
<img width=1 height=1 alt="">
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
<!--- Main body (Navigation, actual page content, optional news column) --->
|
||||
<table width="100%" cellspacing=0>
|
||||
<tr>
|
||||
<!--- Navigation --->
|
||||
<td bgcolor="#f0f0f0" valign="top" width="20%">
|
||||
<table width="100%" cellpadding="10">
|
||||
<tr>
|
||||
<td>
|
||||
<font size="-1"><b>Inhalt</b></font>
|
||||
<table width="100%" cellpadding="0" cellspacing="0">
|
||||
<tr bgcolor="#000000">
|
||||
<td width="100%"><img width=1 height=1 alt=""></td>
|
||||
</tr>
|
||||
</table><p>
|
||||
|
||||
<table width="100%">
|
||||
|
||||
<tr><td colspan=3><font size="-1"><a href="news.html">Neuigkeiten</a></font></td></tr>
|
||||
<tr><td></td><td></td><td height="10"></td></tr>
|
||||
<tr><td colspan=3><font size="-1"><a href="index.html">Überblick</a></font></td></tr>
|
||||
<tr><td></td><td></td><td height="10"></td></tr>
|
||||
<tr><td colspan=3><font size="-1"><a href="howtos.html">Typische Anwendungen</a></font></td></tr>
|
||||
<tr><td></td><td></td><td height="10"></td></tr>
|
||||
<tr><td colspan=3><font size="-1">Herunterladen</font></td></tr>
|
||||
<tr><td valign="top" width="1%">·</td><td colspan=2><font size="-1"><a href="download10.html">Systemvoraussetzungen</a></font></td></tr>
|
||||
<tr><td valign="top" width="1%">·</td><td colspan=2><font size="-1"><a href="download20.html">Digitale Unterschrift</a></font></td></tr>
|
||||
<tr><td valign="top" width="1%">·</td><td colspan=2><font size="-1"><a href="download30.html">Installation</a></font></td></tr>
|
||||
<tr><td></td><td></td><td height="10"></td></tr>
|
||||
<tr><td colspan=3><font size="-1"><a href="qa.html">Fragen und Antworten</a></font></td></tr>
|
||||
<tr><td></td><td></td><td height="10"></td></tr>
|
||||
<tr><td colspan=3><font size="-1"><a href="feedback.html">Fehler berichten</a></font></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td></td>
|
||||
|
||||
<!--- Actual page contents --->
|
||||
<td valign="top" width="77%" rowspan="2">
|
||||
|
||||
<!--- Insert actual page content below --->
|
||||
|
||||
<h3>dvdisaster herunterladen</h3>
|
||||
|
||||
dvdisaster unterstützt die Betriebssysteme Darwin/Mac OS X, FreeBSD, GNU/Linux, NetBSD und Windows in den <a href="download10.html">aktuellen Versionen</a>.
|
||||
Es wird Ihnen
|
||||
als <a href="http://www.germany.fsfeurope.org/documents/freesoftware.de.html">freie Software</a>
|
||||
unter der <a href="http://dvdisaster.cvs.sourceforge.net/dvdisaster/dvdisaster/COPYING?view=markup">GNU General Public License v2</a><a href="download.html#gpl3"><sup>*)</sup></a> zur
|
||||
Verfügung gestellt.<p>
|
||||
|
||||
Laden Sie sich bitte entweder den Quellkode oder eine Binärversion
|
||||
aus der folgenden Liste herunter. Die Pakete können mit
|
||||
einer <a href="download20.html">digitalen Unterschrift</a> auf
|
||||
ihren Ursprungszustand überprüft werden.<p>
|
||||
|
||||
<ul>
|
||||
<li>Die Quellkode-Version enthält eine Datei <tt>INSTALL</tt> mit weiteren
|
||||
Informationen zum Übersetzen des Programmes.</li>
|
||||
<li>Für Mac OS X laden Sie bitte das ZIP-Archiv herunter und packen es an einer
|
||||
beliebigen Stelle aus. Bitte beachten Sie die
|
||||
<a href="download30.html#mac">speziellen Hinweise für Mac OS X</a>.</li>
|
||||
<li>Um die Binärversion <a href="download30.html#win">für Windows zu installieren</a>,
|
||||
rufen Sie das Programm nach dem Herunterladen auf und folgen dem Dialog.</li>
|
||||
</ul>
|
||||
|
||||
<!---
|
||||
<b>Alpha-/Entwickler-Versionen</b> - neu und experimentell für erfahrene Benutzer!<p>
|
||||
|
||||
Sie sind eingeladen, die nächste dvdisaster-Version auszuprobieren,
|
||||
aber beachten Sie bitte, daß diese Version noch Fehler und
|
||||
Kompatibilitätsprobleme enthalten kann. Die neueste experimentelle Version
|
||||
ist <a href="download40">0.72</a>.
|
||||
--->
|
||||
|
||||
<pre> </pre>
|
||||
|
||||
<b>Stabile Version</b> - zum Einstieg empfohlen<p>
|
||||
|
||||
<table class="download" cellpadding="0" cellspacing="5">
|
||||
<tr><td><b>dvdisaster-0.72</b></td><td align="right">04-Jul-2009</td></tr>
|
||||
<tr bgcolor="#000000"><td colspan="2"><img width=1 height=1 alt=""></td></tr>
|
||||
<tr><td colspan="2">
|
||||
<table>
|
||||
<tr><td align="right"> Quellkode für alle Betriebssysteme: </td>
|
||||
<td><a href="http://prdownloads.sourceforge.net/dvdisaster/dvdisaster-0.72.tar.bz2?download">dvdisaster-0.72.tar.bz2</a></td></tr>
|
||||
<tr><td align="right">Digitale Unterschrift: </td>
|
||||
<td><a href="http://prdownloads.sourceforge.net/dvdisaster/dvdisaster-0.72.tar.bz2.gpg?download">dvdisaster-0.72.tar.bz2.gpg</a></td></tr>
|
||||
<tr><td align="right">Binärversion für Mac OS X 10.5 / x86: </td>
|
||||
<td><a href="http://prdownloads.sourceforge.net/dvdisaster/dvdisaster-0.72.app.zip?download">dvdisaster-0.72.app.zip</a> -- bitte erst den <a href="download30.html#mac">Hinweis</a> lesen</td></tr>
|
||||
<tr><td align="right">Digitale Unterschrift: </td>
|
||||
<td><a href="http://prdownloads.sourceforge.net/dvdisaster/dvdisaster-0.72.app.zip.gpg?download">dvdisaster-0.72.app.zip.gpg</a></td></tr>
|
||||
<tr><td align="right">Binärversion für Windows: </td>
|
||||
<td><a href="http://prdownloads.sourceforge.net/dvdisaster/dvdisaster-0.72-setup.exe?download">dvdisaster-0.72-setup.exe</a></td></tr>
|
||||
<tr><td align="right">Digitale Unterschrift: </td>
|
||||
<td><a href="http://prdownloads.sourceforge.net/dvdisaster/dvdisaster-0.72-setup.exe.gpg?download">dvdisaster-0.72-setup.exe.gpg</a></td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr bgcolor="#000000"><td colspan="2"><img width=1 height=1 alt=""></td></tr>
|
||||
<tr><td colspan="2">
|
||||
Grundlegende Neuerungen in dieser Version:<p>
|
||||
<ul>
|
||||
<li>Unterstützung für <a href="qa10.html#media">Blu-Ray-Datenträger</a></li>
|
||||
<li>"Raw"-Lesen und C2-Überprüfungen für CD-Datenträger</li>
|
||||
<li>Einstellbare Anzahl der Leseversuche</li>
|
||||
<li>Erstes "natives" Mac OS X-Paket </li>
|
||||
<li>NetBSD-Port von Sergey Svishchev</li>
|
||||
<li>Verbesserte Typerkennung für eingelegte Datenträger</li>
|
||||
<li>Informationsfenster für eingelegten Datenträger</li>
|
||||
<li>Überarbeiteter und erweiterter Dialog für Programmeinstellungen</li>
|
||||
<li>Neu gestaltete und erweiterte Dokumentation</li>
|
||||
<li>Russische Übersetzungen von Igor Gorbounov</li>
|
||||
<li>... und unzählige weitere kleine Sachen.</li>
|
||||
</ul>
|
||||
|
||||
<b>0.72</b> Dies ist die erste stabile Version des 0.72er-Zweiges.
|
||||
Igor Gorbounov hat die russische online-Dokumentation vervollständigt
|
||||
und es wurden noch einige kleine Fehler aus dem ersten
|
||||
Veröffentlichungskandidaten behoben.<p>
|
||||
Unter neueren Windows-Versionen wird bei bestimmten Spracheinstellungen
|
||||
nicht die gewünschte Bildschirmsprache dargestellt. Die Behebung
|
||||
dieses Problems ist ziemlich komplex und wird erst mit Version 0.73
|
||||
erfolgen.<p>
|
||||
|
||||
<b>0.72-rc1</b> Erster Kandidat für die stabile Version. (11-Apr-2009)
|
||||
</td></tr></table><p>
|
||||
|
||||
<b>Vorangegangene Version</b> - eine Aktualisierung auf Version 0.72 wird empfohlen.<p>
|
||||
|
||||
<table class="download" cellpadding="0" cellspacing="5">
|
||||
<tr><td><b>dvdisaster-0.70</b></td><td align="right">04-Mär-2008</td></tr>
|
||||
<tr bgcolor="#000000"><td colspan="2"><img width=1 height=1 alt=""></td></tr>
|
||||
<tr><td colspan="2">
|
||||
<table>
|
||||
<tr><td align="right"> Quellkode für alle Betriebssysteme: </td>
|
||||
<td><a href="http://prdownloads.sourceforge.net/dvdisaster/dvdisaster-0.70.6.tar.bz2?download">dvdisaster-0.70.6.tar.bz2</a></td></tr>
|
||||
<tr><td align="right">Digitale Unterschrift: </td>
|
||||
<td><a href="http://prdownloads.sourceforge.net/dvdisaster/dvdisaster-0.70.6.tar.bz2.gpg?download">dvdisaster-0.70.6.tar.bz2.gpg</a></td></tr>
|
||||
<tr><td align="right">Binärversion für Windows: </td>
|
||||
<td><a href="http://prdownloads.sourceforge.net/dvdisaster/dvdisaster-0.70.6-setup.exe?download">dvdisaster-0.70.6-setup.exe</a></td></tr>
|
||||
<tr><td align="right">Digitale Unterschrift: </td>
|
||||
<td><a href="http://prdownloads.sourceforge.net/dvdisaster/dvdisaster-0.70.6-setup.exe.gpg?download">dvdisaster-0.70.6-setup.exe.gpg</a></td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr bgcolor="#000000"><td colspan="2"><img width=1 height=1 alt=""></td></tr>
|
||||
<tr><td colspan="2">
|
||||
Das RS02-Fehlerkorrektur-Verfahren
|
||||
wird in der graphischen Benutzeroberfläche vollständig unterstützt.
|
||||
Damit erzeugte Abbilder können nun auch
|
||||
mit dem angepaßten Leseverfahren verarbeitet werden.<p>
|
||||
|
||||
Julian Einwag hat damit begonnen, dvdisaster
|
||||
für Mac OS X / Darwin anzupassen.<p>
|
||||
|
||||
Daniel Nylander hat die Bildschirmtexte ins Schwedische übersetzt.<p>
|
||||
|
||||
<b>Patches</b> (kleine Änderungen nach Version 0.70; die obigen Dateien wurden erneuert):<p>
|
||||
|
||||
<b>pl6</b> Die Unterstützung von Umlauten in Dateinamen wurde
|
||||
wieder rückgängig gemacht,
|
||||
da sie zur fehlerhaften Bearbeitung von Dateien > 2GB unter Windows führte.
|
||||
Eine korrekte Behandlung von Dateinamen mit Sonderzeichen
|
||||
wird jetzt erst in der
|
||||
experimentellen Version 0.71.25 erprobt. <i>(04-Mär-2008)</i><p>
|
||||
|
||||
<b>pl5</b> Behebt ein Problem mit neueren Linux-Kernen, das unter bestimmten Bedingungen zum
|
||||
Einfrieren des Systems führen kann. Die Behandlung von Umlauten in Dateinamen wurde
|
||||
verbessert.
|
||||
Zurückportierung einiger weiterer
|
||||
Verbesserungen aus 0.71.24. <i>(24-Feb-2008)</i>.<p>
|
||||
|
||||
<b>pl4</b> ist besser kompatibel zu zweischichtigen DVDs
|
||||
(DVD-R DL und DVD+R DL).<br>
|
||||
Einige kleinere Fehler wurden behoben. <i>(20-Jan-2007)</i>.<p>
|
||||
|
||||
<b>pl3</b> behebt einen Fehler bei der Erkennung von nicht unterstützten CDs,
|
||||
der unter Umständen einen blauen Bildschirm unter Windows erzeugte.
|
||||
Abbruchmöglichkeit während der RS02-Erkennung für DVD RW hinzugefügt.
|
||||
<i>(10-Dez-2006)</i>.<p>
|
||||
|
||||
<b>pl2</b> behebt eine fehlerhafte Speicherfreigabe beim Schließen des Programms.
|
||||
Das Auspacken der Bildschirmfotos für die Dokumentation auf PPC-Plattformen wurde
|
||||
korrigiert. Nur die Quellkode-Archive wurden erneuert.
|
||||
<i>(03-Okt-2006)</i>.<p>
|
||||
|
||||
<b>pl1</b> behebt einen Fehler im angepaßten Lesen für RS02, durch den unter bestimmten
|
||||
Bedingungen nicht genügend Daten für eine erfolgreiche Wiederherstellung gelesen wurden.
|
||||
Ein paar kleine Verbesserungen an der Dokumentation und der Benutzbarkeit sind auch dabei.
|
||||
<i>(30-Jul-2006)</i>
|
||||
</td></tr></table><p>
|
||||
|
||||
Der Quellkode von dvdisaster kann auch direkt im
|
||||
<a href="http://sourceforge.net/cvs/?group_id=157550">CVS-Archiv</a>
|
||||
betrachtet werden. Einige interessante Dateien darin sind:
|
||||
<ul>
|
||||
<li><a href="http://dvdisaster.cvs.sourceforge.net/dvdisaster/dvdisaster/CHANGELOG?view=markup">CHANGELOG</a>- was hat sich in den letzten Versionen geändert (in Englisch);</li>
|
||||
<li><a href="http://dvdisaster.cvs.sourceforge.net/dvdisaster/dvdisaster/CREDITS.de?view=markup">CREDITS.de</a>- wer bei dem Projekt bisher mitgemacht hat;</li>
|
||||
<li><a href="http://dvdisaster.cvs.sourceforge.net/dvdisaster/dvdisaster/INSTALL?view=markup">INSTALL</a> - Installationshinweise (in Englisch);</li>
|
||||
<li><a href="http://dvdisaster.cvs.sourceforge.net/dvdisaster/dvdisaster/README?view=markup">README</a> - eine Übersicht zum Quellkodearchiv (in Englisch).</li>
|
||||
</ul>
|
||||
|
||||
<pre> </pre>
|
||||
|
||||
<table width="30%" cellpadding="0"><tr bgcolor="#000000"><td><img width=1 height=1 alt=""></td></tr></table>
|
||||
<a name="gpl3"><sup>*)</sup>dvdisaster wird zu einem späteren Zeitpunkt zur GNU General Public License Version 3 wechseln.</a>
|
||||
|
||||
<!--- do not change below --->
|
||||
|
||||
</td> <!--- end of page contents --->
|
||||
|
||||
</tr>
|
||||
<tr valign="bottom">
|
||||
<td bgcolor="#f0f0f0">
|
||||
<table cellpadding="10"><tr><td><a href="http://dvdisaster.net/legacy/de/index.html"><font size="-1">Alte Dokumentation (V0.70)</font></a></td></tr></table>
|
||||
</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
|
||||
</tr>
|
||||
</table> <!--- end of main body table --->
|
||||
|
||||
|
||||
<!--- Page footer --->
|
||||
<table width="100%" cellpadding="0" border="0">
|
||||
<tr><td colspan="2" width="100%" height="10"><img width=1 height=1 alt=""></td>
|
||||
</tr>
|
||||
<tr bgcolor="#000000"><td colspan="2" width="100%"><img width=1 height=1 alt=""></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<font size="-1">
|
||||
<i> Copyright 2004-2009 Carsten Gnörlich.<br>
|
||||
Die unveränderte Wiedergabe und Verteilung dieses gesamten Textes in beliebiger Form ist gestattet, sofern dieser Hinweis erhalten bleibt.
|
||||
</i>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr bgcolor="#000000"><td colspan="2" width="100%"><img width=1 height=1 alt=""></td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,188 +0,0 @@
|
||||
<?php
|
||||
# dvdisaster: German homepage translation
|
||||
# Copyright (C) 2004-2009 Carsten Gnörlich
|
||||
#
|
||||
# UTF-8 trigger: äöüß
|
||||
#
|
||||
# Include our PHP sub routines, then call begin_page()
|
||||
# to start the HTML page, insert the header,
|
||||
# navigation and news if appropriate.
|
||||
|
||||
require("../include/dvdisaster.php");
|
||||
require("../include/footnote.php");
|
||||
begin_page();
|
||||
?>
|
||||
|
||||
<!--- Insert actual page content below --->
|
||||
|
||||
<h3>dvdisaster herunterladen</h3>
|
||||
|
||||
dvdisaster unterstützt die Betriebssysteme Darwin/Mac OS X, FreeBSD, GNU/Linux, NetBSD und Windows in den <a href="download10.php">aktuellen Versionen</a>.
|
||||
Es wird Ihnen
|
||||
als <a href="http://www.germany.fsfeurope.org/documents/freesoftware.de.html">freie Software</a>
|
||||
unter der <a href="http://dvdisaster.cvs.sourceforge.net/dvdisaster/dvdisaster/COPYING?view=markup">GNU General Public License v2</a><a href="#gpl3"><sup>*)</sup></a> zur
|
||||
Verfügung gestellt.<p>
|
||||
|
||||
Laden Sie sich bitte entweder den Quellkode oder eine Binärversion
|
||||
aus der folgenden Liste herunter. Die Pakete können mit
|
||||
einer <a href="download20.php">digitalen Unterschrift</a> auf
|
||||
ihren Ursprungszustand überprüft werden.<p>
|
||||
|
||||
<ul>
|
||||
<li>Die Quellkode-Version enthält eine Datei <tt>INSTALL</tt> mit weiteren
|
||||
Informationen zum Übersetzen des Programmes.</li>
|
||||
<li>Für Mac OS X laden Sie bitte das ZIP-Archiv herunter und packen es an einer
|
||||
beliebigen Stelle aus. Bitte beachten Sie die
|
||||
<a href="download30.php#mac">speziellen Hinweise für Mac OS X</a>.</li>
|
||||
<li>Um die Binärversion <a href="download30.php#win">für Windows zu installieren</a>,
|
||||
rufen Sie das Programm nach dem Herunterladen auf und folgen dem Dialog.</li>
|
||||
</ul>
|
||||
|
||||
<!---
|
||||
<b>Alpha-/Entwickler-Versionen</b> - neu und experimentell für erfahrene Benutzer!<p>
|
||||
|
||||
Sie sind eingeladen, die nächste dvdisaster-Version auszuprobieren,
|
||||
aber beachten Sie bitte, daß diese Version noch Fehler und
|
||||
Kompatibilitätsprobleme enthalten kann. Die neueste experimentelle Version
|
||||
ist <a href="download40.php"><?php echo $cooked_version ?></a>.
|
||||
--->
|
||||
|
||||
<pre> </pre>
|
||||
|
||||
<b>Stabile Version</b> - zum Einstieg empfohlen<p>
|
||||
|
||||
<table class="download" cellpadding="0" cellspacing="5">
|
||||
<tr><td><b>dvdisaster-0.72</b></td><td align="right">04-Jul-2009</td></tr>
|
||||
<tr bgcolor="#000000"><td colspan="2"><img width=1 height=1 alt=""></td></tr>
|
||||
<tr><td colspan="2">
|
||||
<table>
|
||||
<tr><td align="right"> Quellkode für alle Betriebssysteme: </td>
|
||||
<td><a href="http://prdownloads.sourceforge.net/dvdisaster/dvdisaster-0.72.tar.bz2?download">dvdisaster-0.72.tar.bz2</a></td></tr>
|
||||
<tr><td align="right">Digitale Unterschrift: </td>
|
||||
<td><a href="http://prdownloads.sourceforge.net/dvdisaster/dvdisaster-0.72.tar.bz2.gpg?download">dvdisaster-0.72.tar.bz2.gpg</a></td></tr>
|
||||
<tr><td align="right">Binärversion für Mac OS X 10.5 / x86: </td>
|
||||
<td><a href="http://prdownloads.sourceforge.net/dvdisaster/dvdisaster-0.72.app.zip?download">dvdisaster-0.72.app.zip</a> -- bitte erst den <a href="download30.php#mac">Hinweis</a> lesen</td></tr>
|
||||
<tr><td align="right">Digitale Unterschrift: </td>
|
||||
<td><a href="http://prdownloads.sourceforge.net/dvdisaster/dvdisaster-0.72.app.zip.gpg?download">dvdisaster-0.72.app.zip.gpg</a></td></tr>
|
||||
<tr><td align="right">Binärversion für Windows: </td>
|
||||
<td><a href="http://prdownloads.sourceforge.net/dvdisaster/dvdisaster-0.72-setup.exe?download">dvdisaster-0.72-setup.exe</a></td></tr>
|
||||
<tr><td align="right">Digitale Unterschrift: </td>
|
||||
<td><a href="http://prdownloads.sourceforge.net/dvdisaster/dvdisaster-0.72-setup.exe.gpg?download">dvdisaster-0.72-setup.exe.gpg</a></td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr bgcolor="#000000"><td colspan="2"><img width=1 height=1 alt=""></td></tr>
|
||||
<tr><td colspan="2">
|
||||
Grundlegende Neuerungen in dieser Version:<p>
|
||||
<ul>
|
||||
<li>Unterstützung für <a href="qa10.php#media">Blu-Ray-Datenträger</a></li>
|
||||
<li>"Raw"-Lesen und C2-Überprüfungen für CD-Datenträger</li>
|
||||
<li>Einstellbare Anzahl der Leseversuche</li>
|
||||
<li>Erstes "natives" Mac OS X-Paket </li>
|
||||
<li>NetBSD-Port von Sergey Svishchev</li>
|
||||
<li>Verbesserte Typerkennung für eingelegte Datenträger</li>
|
||||
<li>Informationsfenster für eingelegten Datenträger</li>
|
||||
<li>Überarbeiteter und erweiterter Dialog für Programmeinstellungen</li>
|
||||
<li>Neu gestaltete und erweiterte Dokumentation</li>
|
||||
<li>Russische Übersetzungen von Igor Gorbounov</li>
|
||||
<li>... und unzählige weitere kleine Sachen.</li>
|
||||
</ul>
|
||||
|
||||
<b>0.72</b> Dies ist die erste stabile Version des 0.72er-Zweiges.
|
||||
Igor Gorbounov hat die russische online-Dokumentation vervollständigt
|
||||
und es wurden noch einige kleine Fehler aus dem ersten
|
||||
Veröffentlichungskandidaten behoben.<p>
|
||||
Unter neueren Windows-Versionen wird bei bestimmten Spracheinstellungen
|
||||
nicht die gewünschte Bildschirmsprache dargestellt. Die Behebung
|
||||
dieses Problems ist ziemlich komplex und wird erst mit Version 0.73
|
||||
erfolgen.<p>
|
||||
|
||||
<b>0.72-rc1</b> Erster Kandidat für die stabile Version. (11-Apr-2009)
|
||||
</td></tr></table><p>
|
||||
|
||||
<b>Vorangegangene Version</b> - eine Aktualisierung auf Version 0.72 wird empfohlen.<p>
|
||||
|
||||
<table class="download" cellpadding="0" cellspacing="5">
|
||||
<tr><td><b>dvdisaster-0.70</b></td><td align="right">04-Mär-2008</td></tr>
|
||||
<tr bgcolor="#000000"><td colspan="2"><img width=1 height=1 alt=""></td></tr>
|
||||
<tr><td colspan="2">
|
||||
<table>
|
||||
<tr><td align="right"> Quellkode für alle Betriebssysteme: </td>
|
||||
<td><a href="http://prdownloads.sourceforge.net/dvdisaster/dvdisaster-0.70.6.tar.bz2?download">dvdisaster-0.70.6.tar.bz2</a></td></tr>
|
||||
<tr><td align="right">Digitale Unterschrift: </td>
|
||||
<td><a href="http://prdownloads.sourceforge.net/dvdisaster/dvdisaster-0.70.6.tar.bz2.gpg?download">dvdisaster-0.70.6.tar.bz2.gpg</a></td></tr>
|
||||
<tr><td align="right">Binärversion für Windows: </td>
|
||||
<td><a href="http://prdownloads.sourceforge.net/dvdisaster/dvdisaster-0.70.6-setup.exe?download">dvdisaster-0.70.6-setup.exe</a></td></tr>
|
||||
<tr><td align="right">Digitale Unterschrift: </td>
|
||||
<td><a href="http://prdownloads.sourceforge.net/dvdisaster/dvdisaster-0.70.6-setup.exe.gpg?download">dvdisaster-0.70.6-setup.exe.gpg</a></td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr bgcolor="#000000"><td colspan="2"><img width=1 height=1 alt=""></td></tr>
|
||||
<tr><td colspan="2">
|
||||
Das RS02-Fehlerkorrektur-Verfahren
|
||||
wird in der graphischen Benutzeroberfläche vollständig unterstützt.
|
||||
Damit erzeugte Abbilder können nun auch
|
||||
mit dem angepaßten Leseverfahren verarbeitet werden.<p>
|
||||
|
||||
Julian Einwag hat damit begonnen, dvdisaster
|
||||
für Mac OS X / Darwin anzupassen.<p>
|
||||
|
||||
Daniel Nylander hat die Bildschirmtexte ins Schwedische übersetzt.<p>
|
||||
|
||||
<b>Patches</b> (kleine Änderungen nach Version 0.70; die obigen Dateien wurden erneuert):<p>
|
||||
|
||||
<b>pl6</b> Die Unterstützung von Umlauten in Dateinamen wurde
|
||||
wieder rückgängig gemacht,
|
||||
da sie zur fehlerhaften Bearbeitung von Dateien > 2GB unter Windows führte.
|
||||
Eine korrekte Behandlung von Dateinamen mit Sonderzeichen
|
||||
wird jetzt erst in der
|
||||
experimentellen Version 0.71.25 erprobt. <i>(04-Mär-2008)</i><p>
|
||||
|
||||
<b>pl5</b> Behebt ein Problem mit neueren Linux-Kernen, das unter bestimmten Bedingungen zum
|
||||
Einfrieren des Systems führen kann. Die Behandlung von Umlauten in Dateinamen wurde
|
||||
verbessert.
|
||||
Zurückportierung einiger weiterer
|
||||
Verbesserungen aus 0.71.24. <i>(24-Feb-2008)</i>.<p>
|
||||
|
||||
<b>pl4</b> ist besser kompatibel zu zweischichtigen DVDs
|
||||
(DVD-R DL und DVD+R DL).<br>
|
||||
Einige kleinere Fehler wurden behoben. <i>(20-Jan-2007)</i>.<p>
|
||||
|
||||
<b>pl3</b> behebt einen Fehler bei der Erkennung von nicht unterstützten CDs,
|
||||
der unter Umständen einen blauen Bildschirm unter Windows erzeugte.
|
||||
Abbruchmöglichkeit während der RS02-Erkennung für DVD RW hinzugefügt.
|
||||
<i>(10-Dez-2006)</i>.<p>
|
||||
|
||||
<b>pl2</b> behebt eine fehlerhafte Speicherfreigabe beim Schließen des Programms.
|
||||
Das Auspacken der Bildschirmfotos für die Dokumentation auf PPC-Plattformen wurde
|
||||
korrigiert. Nur die Quellkode-Archive wurden erneuert.
|
||||
<i>(03-Okt-2006)</i>.<p>
|
||||
|
||||
<b>pl1</b> behebt einen Fehler im angepaßten Lesen für RS02, durch den unter bestimmten
|
||||
Bedingungen nicht genügend Daten für eine erfolgreiche Wiederherstellung gelesen wurden.
|
||||
Ein paar kleine Verbesserungen an der Dokumentation und der Benutzbarkeit sind auch dabei.
|
||||
<i>(30-Jul-2006)</i>
|
||||
</td></tr></table><p>
|
||||
|
||||
Der Quellkode von dvdisaster kann auch direkt im
|
||||
<a href="http://sourceforge.net/cvs/?group_id=157550">CVS-Archiv</a>
|
||||
betrachtet werden. Einige interessante Dateien darin sind:
|
||||
<ul>
|
||||
<li><a href="http://dvdisaster.cvs.sourceforge.net/dvdisaster/dvdisaster/CHANGELOG?view=markup">CHANGELOG</a>- was hat sich in den letzten Versionen geändert (in Englisch);</li>
|
||||
<li><a href="http://dvdisaster.cvs.sourceforge.net/dvdisaster/dvdisaster/CREDITS.de?view=markup">CREDITS.de</a>- wer bei dem Projekt bisher mitgemacht hat;</li>
|
||||
<li><a href="http://dvdisaster.cvs.sourceforge.net/dvdisaster/dvdisaster/INSTALL?view=markup">INSTALL</a> - Installationshinweise (in Englisch);</li>
|
||||
<li><a href="http://dvdisaster.cvs.sourceforge.net/dvdisaster/dvdisaster/README?view=markup">README</a> - eine Übersicht zum Quellkodearchiv (in Englisch).</li>
|
||||
</ul>
|
||||
|
||||
<pre> </pre>
|
||||
|
||||
<?php
|
||||
footnote("*","gpl3","dvdisaster wird zu einem späteren Zeitpunkt zur GNU General Public License Version 3 wechseln.");
|
||||
?>
|
||||
|
||||
<!--- do not change below --->
|
||||
|
||||
<?php
|
||||
# end_page() adds the footer line and closes the HTML properly.
|
||||
|
||||
end_page();
|
||||
?>
|
||||
@@ -1,139 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<title>Overview</title>
|
||||
<link rel="stylesheet" type="text/css" href="../include/dvdisaster.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!--- Title header --->
|
||||
<table width="100%" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td align="left">
|
||||
<font size="+3"><b>dvdisaster</b></font>
|
||||
<i>Version 0.72</i>
|
||||
</td>
|
||||
<td align="right">
|
||||
<font size="+3"> </font><a href="http://dvdisaster.net/de/">Zur Internet-Version</a>
|
||||
|
||||
<a href="../en/download10.html"></a>
|
||||
<a href="../ru/download10.html"></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<!--- Language chooser or separator --->
|
||||
<table width="100%" cellpadding="0" border="0">
|
||||
<tr bgcolor="#000000">
|
||||
<td colspan="2" width="100%"><img width=1 height=1 alt=""></td>
|
||||
</tr>
|
||||
<tr><td colspan="2" width="100%" height="10">
|
||||
<img width=1 height=1 alt="">
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
<!--- Main body (Navigation, actual page content, optional news column) --->
|
||||
<table width="100%" cellspacing=0>
|
||||
<tr>
|
||||
<!--- Navigation --->
|
||||
<td bgcolor="#f0f0f0" valign="top" width="20%">
|
||||
<table width="100%" cellpadding="10">
|
||||
<tr>
|
||||
<td>
|
||||
<font size="-1"><b>Inhalt</b></font>
|
||||
<table width="100%" cellpadding="0" cellspacing="0">
|
||||
<tr bgcolor="#000000">
|
||||
<td width="100%"><img width=1 height=1 alt=""></td>
|
||||
</tr>
|
||||
</table><p>
|
||||
|
||||
<table width="100%">
|
||||
|
||||
<tr><td colspan=3><font size="-1"><a href="news.html">Neuigkeiten</a></font></td></tr>
|
||||
<tr><td></td><td></td><td height="10"></td></tr>
|
||||
<tr><td colspan=3><font size="-1"><a href="index.html">Überblick</a></font></td></tr>
|
||||
<tr><td></td><td></td><td height="10"></td></tr>
|
||||
<tr><td colspan=3><font size="-1"><a href="howtos.html">Typische Anwendungen</a></font></td></tr>
|
||||
<tr><td></td><td></td><td height="10"></td></tr>
|
||||
<tr><td colspan=3><font size="-1"><a href="download.html">Herunterladen</a></font></td></tr>
|
||||
<tr><td valign="top" width="1%">·</td><td colspan=2><font size="-1">Systemvoraussetzungen</font></td></tr>
|
||||
<tr><td valign="top" width="1%">·</td><td colspan=2><font size="-1"><a href="download20.html">Digitale Unterschrift</a></font></td></tr>
|
||||
<tr><td valign="top" width="1%">·</td><td colspan=2><font size="-1"><a href="download30.html">Installation</a></font></td></tr>
|
||||
<tr><td></td><td></td><td height="10"></td></tr>
|
||||
<tr><td colspan=3><font size="-1"><a href="qa.html">Fragen und Antworten</a></font></td></tr>
|
||||
<tr><td></td><td></td><td height="10"></td></tr>
|
||||
<tr><td colspan=3><font size="-1"><a href="feedback.html">Fehler berichten</a></font></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td></td>
|
||||
|
||||
<!--- Actual page contents --->
|
||||
<td valign="top" width="77%" rowspan="2">
|
||||
|
||||
<!--- Insert actual page content below --->
|
||||
|
||||
<h3>Systemanforderungen</h3>
|
||||
|
||||
<ul>
|
||||
<li>Prozessoren: x86, PowerPC oder Sparc;<p></li>
|
||||
<li>Rechenleistung vergleichbar mit oder besser als P4 mit 2Ghz;<p>
|
||||
<li>ein aktuelles CD-/DVD-/BD-Laufwerk mit ATAPI- oder SCSI-Schnittstelle;<p></li>
|
||||
<li>ausreichend Festplattenplatz zum Abspeichern eines ISO-Abbildes der bearbeiteten Datenträger.</li>
|
||||
</ul>
|
||||
|
||||
<h3>Betriebssysteme</h3>
|
||||
|
||||
<ul>
|
||||
<li><a name="#freebsd"></a><b>FreeBSD</b> ab Version <b>6.0</b><br>
|
||||
(für ATAPI-Laufwerke muß das Kernelmodul <i>atapicam</i> geladen werden - siehe INSTALL-Dokument)<p>
|
||||
</li>
|
||||
<li><b>GNU/Linux</b> ab Kernel <b>2.6.7</b><p>
|
||||
</li>
|
||||
<li><b>Mac OS X</b> ab Version 10.4 (Tiger),<br>
|
||||
auf x86 und PowerPC-Hardware.<p>
|
||||
</li>
|
||||
<li><b>NetBSD</b> ab Version 3.1.<p></li>
|
||||
|
||||
<li><b>Windows 2000</b>, <b>Windows XP</b> oder <b>Windows Vista (R).</b>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<!--- do not change below --->
|
||||
|
||||
</td> <!--- end of page contents --->
|
||||
|
||||
</tr>
|
||||
<tr valign="bottom">
|
||||
<td bgcolor="#f0f0f0">
|
||||
<table cellpadding="10"><tr><td><a href="http://dvdisaster.net/legacy/de/index.html"><font size="-1">Alte Dokumentation (V0.70)</font></a></td></tr></table>
|
||||
</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
|
||||
</tr>
|
||||
</table> <!--- end of main body table --->
|
||||
|
||||
|
||||
<!--- Page footer --->
|
||||
<table width="100%" cellpadding="0" border="0">
|
||||
<tr><td colspan="2" width="100%" height="10"><img width=1 height=1 alt=""></td>
|
||||
</tr>
|
||||
<tr bgcolor="#000000"><td colspan="2" width="100%"><img width=1 height=1 alt=""></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<font size="-1">
|
||||
<i> Copyright 2004-2009 Carsten Gnörlich.<br>
|
||||
Die unveränderte Wiedergabe und Verteilung dieses gesamten Textes in beliebiger Form ist gestattet, sofern dieser Hinweis erhalten bleibt.
|
||||
</i>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr bgcolor="#000000"><td colspan="2" width="100%"><img width=1 height=1 alt=""></td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,49 +0,0 @@
|
||||
<?php
|
||||
# dvdisaster: German homepage translation
|
||||
# Copyright (C) 2004-2009 Carsten Gnörlich
|
||||
#
|
||||
# UTF-8 trigger: äöüß
|
||||
#
|
||||
# Include our PHP sub routines, then call begin_page()
|
||||
# to start the HTML page, insert the header,
|
||||
# navigation and news if appropriate.
|
||||
|
||||
require("../include/dvdisaster.php");
|
||||
begin_page();
|
||||
?>
|
||||
|
||||
<!--- Insert actual page content below --->
|
||||
|
||||
<h3>Systemanforderungen</h3>
|
||||
|
||||
<ul>
|
||||
<li>Prozessoren: x86, PowerPC oder Sparc;<p></li>
|
||||
<li>Rechenleistung vergleichbar mit oder besser als P4 mit 2Ghz;<p>
|
||||
<li>ein aktuelles CD-/DVD-/BD-Laufwerk mit ATAPI- oder SCSI-Schnittstelle;<p></li>
|
||||
<li>ausreichend Festplattenplatz zum Abspeichern eines ISO-Abbildes der bearbeiteten Datenträger.</li>
|
||||
</ul>
|
||||
|
||||
<h3>Betriebssysteme</h3>
|
||||
|
||||
<ul>
|
||||
<li><a name="#freebsd"></a><b>FreeBSD</b> ab Version <b>6.0</b><br>
|
||||
(für ATAPI-Laufwerke muß das Kernelmodul <i>atapicam</i> geladen werden - siehe INSTALL-Dokument)<p>
|
||||
</li>
|
||||
<li><b>GNU/Linux</b> ab Kernel <b>2.6.7</b><p>
|
||||
</li>
|
||||
<li><b>Mac OS X</b> ab Version 10.4 (Tiger),<br>
|
||||
auf x86 und PowerPC-Hardware.<p>
|
||||
</li>
|
||||
<li><b>NetBSD</b> ab Version 3.1.<p></li>
|
||||
|
||||
<li><b>Windows 2000</b>, <b>Windows XP</b> oder <b>Windows Vista (R).</b>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<!--- do not change below --->
|
||||
|
||||
<?php
|
||||
# end_page() adds the footer line and closes the HTML properly.
|
||||
|
||||
end_page();
|
||||
?>
|
||||
@@ -1,136 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<title>Overview</title>
|
||||
<link rel="stylesheet" type="text/css" href="../include/dvdisaster.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!--- Title header --->
|
||||
<table width="100%" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td align="left">
|
||||
<font size="+3"><b>dvdisaster</b></font>
|
||||
<i>Version 0.72</i>
|
||||
</td>
|
||||
<td align="right">
|
||||
<font size="+3"> </font><a href="http://dvdisaster.net/de/">Zur Internet-Version</a>
|
||||
|
||||
<a href="../en/download20.html"></a>
|
||||
<a href="../ru/download20.html"></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<!--- Language chooser or separator --->
|
||||
<table width="100%" cellpadding="0" border="0">
|
||||
<tr bgcolor="#000000">
|
||||
<td colspan="2" width="100%"><img width=1 height=1 alt=""></td>
|
||||
</tr>
|
||||
<tr><td colspan="2" width="100%" height="10">
|
||||
<img width=1 height=1 alt="">
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
<!--- Main body (Navigation, actual page content, optional news column) --->
|
||||
<table width="100%" cellspacing=0>
|
||||
<tr>
|
||||
<!--- Navigation --->
|
||||
<td bgcolor="#f0f0f0" valign="top" width="20%">
|
||||
<table width="100%" cellpadding="10">
|
||||
<tr>
|
||||
<td>
|
||||
<font size="-1"><b>Inhalt</b></font>
|
||||
<table width="100%" cellpadding="0" cellspacing="0">
|
||||
<tr bgcolor="#000000">
|
||||
<td width="100%"><img width=1 height=1 alt=""></td>
|
||||
</tr>
|
||||
</table><p>
|
||||
|
||||
<table width="100%">
|
||||
|
||||
<tr><td colspan=3><font size="-1"><a href="news.html">Neuigkeiten</a></font></td></tr>
|
||||
<tr><td></td><td></td><td height="10"></td></tr>
|
||||
<tr><td colspan=3><font size="-1"><a href="index.html">Überblick</a></font></td></tr>
|
||||
<tr><td></td><td></td><td height="10"></td></tr>
|
||||
<tr><td colspan=3><font size="-1"><a href="howtos.html">Typische Anwendungen</a></font></td></tr>
|
||||
<tr><td></td><td></td><td height="10"></td></tr>
|
||||
<tr><td colspan=3><font size="-1"><a href="download.html">Herunterladen</a></font></td></tr>
|
||||
<tr><td valign="top" width="1%">·</td><td colspan=2><font size="-1"><a href="download10.html">Systemvoraussetzungen</a></font></td></tr>
|
||||
<tr><td valign="top" width="1%">·</td><td colspan=2><font size="-1">Digitale Unterschrift</font></td></tr>
|
||||
<tr><td valign="top" width="1%">·</td><td colspan=2><font size="-1"><a href="download30.html">Installation</a></font></td></tr>
|
||||
<tr><td></td><td></td><td height="10"></td></tr>
|
||||
<tr><td colspan=3><font size="-1"><a href="qa.html">Fragen und Antworten</a></font></td></tr>
|
||||
<tr><td></td><td></td><td height="10"></td></tr>
|
||||
<tr><td colspan=3><font size="-1"><a href="feedback.html">Fehler berichten</a></font></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td></td>
|
||||
|
||||
<!--- Actual page contents --->
|
||||
<td valign="top" width="77%" rowspan="2">
|
||||
|
||||
<!--- Insert actual page content below --->
|
||||
|
||||
<h3>Digitale Unterschrift</h3>
|
||||
|
||||
Die herunterladbaren Pakete enthalten
|
||||
eine mit <a href="http://www.gnupg.org/gnupg.html">GnuPG</a> erstellte
|
||||
digitale Unterschrift, damit Sie nachprüfen können,
|
||||
ob sich die Software in ihrem ursprünglichen Zustand befindet.<p>
|
||||
|
||||
Die Unterschrift wurde mit dem folgenden
|
||||
<a href="../pubkey.asc">Öffentlichen Schlüssel</a> erzeugt:
|
||||
|
||||
<a href="../pubkey.asc">
|
||||
<pre>
|
||||
pub 1024D/F5F6C46C 2003-08-22
|
||||
Key fingerprint = 12B3 1535 AF90 3ADE 9E73 BA7E 5A59 0EFE F5F6 C46C
|
||||
uid dvdisaster (pkg signing key #1)
|
||||
sub 1024g/091AD320 2003-08-22
|
||||
</pre></a>
|
||||
|
||||
Sie können den Fingerabdruck des öffentlichen Schlüssels auch direkt von
|
||||
den Entwicklern erhalten, indem Sie eine E-Mail
|
||||
an <img src="../images/email.png" align="top"> schreiben. Bitte verwenden Sie
|
||||
den Betreff "GPG finger print".
|
||||
|
||||
<!--- do not change below --->
|
||||
|
||||
</td> <!--- end of page contents --->
|
||||
|
||||
</tr>
|
||||
<tr valign="bottom">
|
||||
<td bgcolor="#f0f0f0">
|
||||
<table cellpadding="10"><tr><td><a href="http://dvdisaster.net/legacy/de/index.html"><font size="-1">Alte Dokumentation (V0.70)</font></a></td></tr></table>
|
||||
</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
|
||||
</tr>
|
||||
</table> <!--- end of main body table --->
|
||||
|
||||
|
||||
<!--- Page footer --->
|
||||
<table width="100%" cellpadding="0" border="0">
|
||||
<tr><td colspan="2" width="100%" height="10"><img width=1 height=1 alt=""></td>
|
||||
</tr>
|
||||
<tr bgcolor="#000000"><td colspan="2" width="100%"><img width=1 height=1 alt=""></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<font size="-1">
|
||||
<i> Copyright 2004-2009 Carsten Gnörlich.<br>
|
||||
Die unveränderte Wiedergabe und Verteilung dieses gesamten Textes in beliebiger Form ist gestattet, sofern dieser Hinweis erhalten bleibt.
|
||||
</i>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr bgcolor="#000000"><td colspan="2" width="100%"><img width=1 height=1 alt=""></td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user