summaryrefslogtreecommitdiff
path: root/modules/gdnative/videodecoder
AgeCommit message (Collapse)Author
2020-04-02Replace NULL with nullptrlupoDharkael
2020-04-02Merge pull request #37504 from qarmin/out_of_bound_cursorRémi Verschelde
Fix array out of bounds access caused by uninitialised variables
2020-04-01Fix out of bound array access caused by unassigned variableRafał Mikrut
2020-03-30SCons: Format buildsystem files with psf/blackRémi Verschelde
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.
2020-03-23Adding missing include guards to header files identified by LGTM.Rajat Goswami
This addresses the issue godotengine/godot#37143
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-06-18Unexpose subclasses of ResourceFormatLoader and -SaverRémi Verschelde
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.
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-30SCons: Always use env.Prepend for CPPPATHRémi Verschelde
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).
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
2019-01-10Consistency in resource format saver/loader de-registrationRémi Verschelde
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.
2019-01-10Remove vsgdnative loader on exitMarcin Zawiejski
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.