summaryrefslogtreecommitdiff
path: root/modules/gdnative/videodecoder/video_stream_gdnative.cpp
AgeCommit message (Collapse)Author
2020-05-14Style: Enforce braces around if blocks and loopsRémi Verschelde
Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
2020-05-14Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde
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.
2020-05-14Port member initialization from constructor to declaration (C++11)Rémi Verschelde
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.
2020-04-20Exposed RenderingDevice to script APIJuan Linietsky
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.
2020-04-02Replace NULL with nullptrlupoDharkael
2020-02-28Removed interactive loader, added proper thread loading.Juan Linietsky
2020-02-18PoolVector is gone, replaced by VectorJuan Linietsky
Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are sugar for `Vector<Type>`.
2020-02-11Texture refactorJuan Linietsky
-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
2020-01-01Update copyright statements to 2020Rémi Verschelde
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.
2019-11-27VideoStreamGDNative: Fix playing video files without audio streammarcosjouron
2019-10-24Refactor VideoPlayer and VideoStreamSeleckyErik
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
2019-09-25Merge pull request #32199 from starryalley/fix_seekRémi Verschelde
Fix VideostreamGDNative seek
2019-09-19Fix VideostreamGDNative audio buffer handlingMark Kuo
Fix the audio buffer start when there are previous remains
2019-09-19Fix VideostreamGDNative seekMark Kuo
When seeking video, make sure audio buffers are reset and video time is updated.
2019-05-04Fixes VideostreamGDNative crash on audio_channel=0.Anish
Added an if case to check if the mix_callback exists before running any of the audio code. Fixes: #28644
2019-04-08Small fixes, mostly dupicated codeqarmin
2019-03-11Fixes segfault on opening incompatible files.Anish
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.
2019-03-06Fixed crash on loading GDNative videos.Anish
Fixed issue with loading a resource supported by the gdnative videodecoders that does not exist.
2019-02-27Fix -Wsign-compare warnings.marxin
I decided to modify code in a defensive way. Ideally functions like size() or length() should return an unsigned type.
2019-02-12Fix copyright year in VideoStreamGDNativeRémi Verschelde
2019-01-12Fixed infinite loop at end of video.Anish
A missing condition caused infinite looping, despite the video playing flag being set to false. Small change to fix. Fixes: #20552
2018-12-13Adapt GDNative VideoStream to use ResourceFormatLoaderRémi Verschelde
Same logic as used for Webm and Theora support in #19937 and #21084, fixing issues when exporting projects.
2018-12-13Fix includes and initialization for GDNative VideodecoderRémi Verschelde
Fixes warnings and a crash when running the destructor with an uninitialized pcm pointer.
2018-12-13Added interface for GDNative Videodecoder.Anish
Interface and callback api added for Videodecoder support. Should be able to construct any format videodecoder using only the given interface. GSoC 2018 project.