-
Notifications
You must be signed in to change notification settings - Fork 549
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from OpenShot/master
Grab latest changes
- Loading branch information
Showing
78 changed files
with
2,252 additions
and
1,023 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
.. Copyright (c) 2008-2018 OpenShot Studios, LLC | ||
(http://www.openshotstudios.com). This file is part of | ||
OpenShot Video Editor (http://www.openshot.org), an open-source project | ||
dedicated to delivering high quality video editing and animation solutions | ||
to the world. | ||
.. OpenShot Video Editor 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. | ||
.. OpenShot Video Editor 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 OpenShot Library. If not, see <http://www.gnu.org/licenses/>. | ||
Contributing | ||
============ | ||
|
||
Did you find a bug? | ||
------------------- | ||
|
||
- **Please check if this bug was already reported** by searching on | ||
GitHub under | ||
`Issues <https://github.com/OpenShot/openshot-qt/issues>`__. | ||
|
||
- If you're unable to find an open issue addressing the problem, `open | ||
a new one <https://github.com/OpenShot/openshot-qt/issues/new>`__. Be | ||
sure to include a **title and clear description**, as much relevant | ||
information as possible, and the steps to reproduce the crash or | ||
issue. | ||
|
||
- Please **attach log files** if you are reporting a crash. Otherwise, | ||
we will not be able to determine the cause of the crash. | ||
|
||
Please download our latest daily installer: | ||
""""""""""""""""""""""""""""""""""""""""""" | ||
1. `www.openshot.org/download <https://www.openshot.org/download>`__ - click the '**DAILY BUILDS**' button, then grab the latest build from the list. | ||
(Use the buttons below to download installers for a different Operating System.) | ||
2. Then enable 'Debug Mode (Verbose)' in the Preferences | ||
3. Quit OpenShot and delete both log files: | ||
|
||
- **Windows**: OpenShot stores its logs in your user profile | ||
directory (``%USERPROFILE%``, e.g. ``C:\Users\username\``) | ||
|
||
- ``%USERPROFILE%/.openshot_qt/openshot_qt.log`` | ||
- ``%USERPROFILE%/.openshot_qt/libopenshot.log`` | ||
|
||
- **Linux/MacOS**: OpenShot stores its logs in your home directory | ||
(``$HOME``, e.g. ``/home/username/``) | ||
|
||
- ``$HOME/.openshot_qt/openshot_qt.log`` | ||
- ``$HOME/.openshot_qt/libopenshot.log`` | ||
|
||
4. Re-launch OpenShot and trigger the crash as quickly as possible (to | ||
keep the log files small) | ||
5. Attach **both** log files | ||
|
||
Did you write a patch that fixes a bug? | ||
--------------------------------------- | ||
|
||
- Open a new GitHub pull request with the patch. | ||
|
||
- Ensure the PR description clearly describes the problem and solution. | ||
Include the relevant issue number if applicable. | ||
|
||
- Before submitting, please ensure your PR passes all build / | ||
compilation / and unit tests. | ||
|
||
OpenShot Video Editor is a volunteer effort, and a labor of love. Please | ||
be patient with any issues you find, and feel free to get involved and | ||
help us fix them! | ||
|
||
Thanks! | ||
|
||
OpenShot Team |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,4 +44,5 @@ Table of Contents: | |
titles | ||
profiles | ||
developers | ||
learn_more | ||
contributing | ||
learn_more |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
""" | ||
@file | ||
@brief This file deals with value conversions | ||
@author Jonathan Thomas <jonathan@openshot.org> | ||
@author Frank Dana <ferdnyc AT gmail com> | ||
@section LICENSE | ||
Copyright (c) 2008-2018 OpenShot Studios, LLC | ||
(http://www.openshotstudios.com). This file is part of | ||
OpenShot Video Editor (http://www.openshot.org), an open-source project | ||
dedicated to delivering high quality video editing and animation solutions | ||
to the world. | ||
OpenShot Video Editor 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. | ||
OpenShot Video Editor 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 OpenShot Library. If not, see <http://www.gnu.org/licenses/>. | ||
""" | ||
|
||
import math | ||
|
||
def zoomToSeconds(zoomValue): | ||
""" Convert zoom factor (slider position) into scale-seconds """ | ||
|
||
if (zoomValue <= 5): | ||
# Under 1 minute, convert to seconds (exponential) | ||
return 2**zoomValue | ||
elif (zoomValue <= 11): | ||
# convert to N minutes (exponential), in seconds | ||
return 60 * (2**(zoomValue-6)) | ||
else: | ||
# Over 1 hour, convert to N hours (exponential), in seconds | ||
return 3600 * (2**(zoomValue-12)) | ||
|
||
|
||
def secondsToZoom(scaleValue): | ||
""" Convert a number of seconds to a timeline zoom factor """ | ||
|
||
return int(math.log(scaleValue,2)) | ||
|
Oops, something went wrong.