summaryrefslogtreecommitdiffstats
path: root/modules/gdnative/videodecoder
Commit message (Collapse)AuthorAgeFilesLines
* Add override keywords.Marcel Admiraal2020-07-101-18/+18
|
* VideoStreamGDNative: close file in cleanupMark Kuo2020-06-281-0/+5
| | | | We should close the file handle when we are done.
* Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-142-7/+14
| | | | | Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-143-12/+0
| | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
* Port member initialization from constructor to declaration (C++11)Rémi Verschelde2020-05-142-38/+21
| | | | | | | | | | Using `clang-tidy`'s `modernize-use-default-member-init` check and manual review of the changes, and some extra manual changes that `clang-tidy` failed to do. Also went manually through all of `core` to find occurrences that `clang-tidy` couldn't handle, especially all initializations done in a constructor without using initializer lists.
* Exposed RenderingDevice to script APIJuan Linietsky2020-04-202-2/+2
| | | | | | | | | | | | | Also added an easier way to load native GLSL shaders. Extras: Had to fix no-cache for subresources in resource loader, it was not properly working, making shaders not properly reload. Note: The precommit hooks are broken because they don't seem to support enums from one class being used in another. Feel free to fix this after merging this PR.
* Replace NULL with nullptrlupoDharkael2020-04-022-28/+28
|
* Merge pull request #37504 from qarmin/out_of_bound_cursorRémi Verschelde2020-04-021-1/+1
|\ | | | | Fix array out of bounds access caused by uninitialised variables
| * Fix out of bound array access caused by unassigned variableRafał Mikrut2020-04-011-1/+1
| |
* | SCons: Format buildsystem files with psf/blackRémi Verschelde2020-03-301-4/+4
|/ | | | | | | | | | | | | | | | | | | | | Configured for a max line length of 120 characters. psf/black is very opinionated and purposely doesn't leave much room for configuration. The output is mostly OK so that should be fine for us, but some things worth noting: - Manually wrapped strings will be reflowed, so by using a line length of 120 for the sake of preserving readability for our long command calls, it also means that some manually wrapped strings are back on the same line and should be manually merged again. - Code generators using string concatenation extensively look awful, since black puts each operand on a single line. We need to refactor these generators to use more pythonic string formatting, for which many options are available (`%`, `format` or f-strings). - CI checks and a pre-commit hook will be added to ensure that future buildsystem changes are well-formatted.
* Adding missing include guards to header files identified by LGTM.Rajat Goswami2020-03-231-0/+5
| | | | This addresses the issue godotengine/godot#37143
* Removed interactive loader, added proper thread loading.Juan Linietsky2020-02-282-2/+2
|
* PoolVector is gone, replaced by VectorJuan Linietsky2020-02-181-1/+1
| | | | | Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are sugar for `Vector<Type>`.
* Texture refactorJuan Linietsky2020-02-112-4/+8
| | | | | | | | -Texture renamed to Texture2D -TextureLayered as base now inherits 2Darray, cubemap and cubemap array -Removed all references to flags in textures (they will go in the shader) -Texture3D gone for now (will come back later done properly) -Create base rasterizer for RenderDevice, RasterizerRD
* Update copyright statements to 2020Rémi Verschelde2020-01-014-8/+8
| | | | | | | | | | | Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
* VideoStreamGDNative: Fix playing video files without audio streammarcosjouron2019-11-271-3/+7
|
* Refactor VideoPlayer and VideoStreamSeleckyErik2019-10-242-2/+2
| | | | | | | | | | | | VideoStream: - Fix const correctenss VideoPlayer: - Remove unused member variable last_frame - Move _mix_audios function definition to source file - Fix function parameter naming to match p_ convention - Fix const correctness - Add null checking
* Merge pull request #32199 from starryalley/fix_seekRémi Verschelde2019-09-252-1/+14
|\ | | | | Fix VideostreamGDNative seek
| * Fix VideostreamGDNative seekMark Kuo2019-09-192-1/+14
| | | | | | | | | | When seeking video, make sure audio buffers are reset and video time is updated.
* | Fix VideostreamGDNative audio buffer handlingMark Kuo2019-09-191-1/+1
|/ | | | Fix the audio buffer start when there are previous remains
* Unexpose subclasses of ResourceFormatLoader and -SaverRémi Verschelde2019-06-181-1/+0
| | | | | | | | | | | | | | ResourceFormatLoader and ResourceFormatSaver are meant to be overridden to add support for different formats in ResourceLoader and ResourceSaver. Those should be exposed as they can be overridden in plugins. On the other hand, all predefined subclasses of those two base classes are only meant to register support for new file and resource types, but should not and cannot be used directly from script, so they should not be exposed. Also unexposed ResourceImporterOGGVorbis (and thus its base class ResourceImporter) which are editor-only.
* Fixes VideostreamGDNative crash on audio_channel=0.Anish2019-05-041-16/+18
| | | | | | | Added an if case to check if the mix_callback exists before running any of the audio code. Fixes: #28644
* SCons: Always use env.Prepend for CPPPATHRémi Verschelde2019-04-301-1/+1
| | | | | | Include paths are processed from left to right, so we use Prepend to ensure that paths to bundled thirdparty files will have precedence over system paths (e.g. `/usr/include` should have lowest priority).
* Small fixes, mostly dupicated codeqarmin2019-04-081-1/+1
|
* Fixes segfault on opening incompatible files.Anish2019-03-111-9/+11
| | | | | | If a file cannot be opened by the plugin connected, the engine would crash. This has been fixed by quitting the open_file() method early.
* Fixed crash on loading GDNative videos.Anish2019-03-061-1/+1
| | | | | Fixed issue with loading a resource supported by the gdnative videodecoders that does not exist.
* Fix -Wsign-compare warnings.marxin2019-02-271-2/+2
| | | | | I decided to modify code in a defensive way. Ideally functions like size() or length() should return an unsigned type.
* Fix copyright year in VideoStreamGDNativeRémi Verschelde2019-02-124-8/+8
|
* Fixed infinite loop at end of video.Anish2019-01-121-1/+1
| | | | | | | | A missing condition caused infinite looping, despite the video playing flag being set to false. Small change to fix. Fixes: #20552
* Consistency in resource format saver/loader de-registrationRémi Verschelde2019-01-101-0/+1
| | | | | | | | | | Some used 'is_valid()' checks, others not. Validity is already checked in 'unref()', and 'remove_resource_format_*()' has an ERR_FAIL condition on 'is_null()' already (which shouldn't happen since we're only unregistering things that we previously registered. Also add missing GDCLASS statement in ResourceFormatLoaderVideoStreamGDNative, missed in #20552 which was last amended before #19501 was merged.
* Remove vsgdnative loader on exitMarcin Zawiejski2019-01-101-5/+5
|
* Adapt GDNative VideoStream to use ResourceFormatLoaderRémi Verschelde2018-12-135-160/+55
| | | | | Same logic as used for Webm and Theora support in #19937 and #21084, fixing issues when exporting projects.
* Fix includes and initialization for GDNative VideodecoderRémi Verschelde2018-12-136-22/+32
| | | | | Fixes warnings and a crash when running the destructor with an uninitialized pcm pointer.
* Added interface for GDNative Videodecoder.Anish2018-12-137-0/+780
Interface and callback api added for Videodecoder support. Should be able to construct any format videodecoder using only the given interface. GSoC 2018 project.