summaryrefslogtreecommitdiffstats
path: root/scene/gui/video_player.cpp
Commit message (Collapse)AuthorAgeFilesLines
* VideoPlayer: fix possible race conditionMark Kuo2020-06-291-2/+2
| | | | | | In set_stream() we write to 'playback' while accessing the same object in _mix_audio() in audio thread. Protect the 'write' part in set_stream() to avoid possible crash in _mix_audio() function.
* Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-23/+42
| | | | | 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-141-43/+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.
* Variant: Added 64-bit packed arrays, renamed Variant::REAL to FLOAT.Juan Linietsky2020-02-251-3/+3
| | | | | | | | | | | | | | | | | | | | | - Renames PackedIntArray to PackedInt32Array. - Renames PackedFloatArray to PackedFloat32Array. - Adds PackedInt64Array and PackedFloat64Array. - Renames Variant::REAL to Variant::FLOAT for consistency. Packed arrays are for storing large amount of data and creating stuff like meshes, buffers. textures, etc. Forcing them to be 64 is a huge waste of memory. That said, many users requested the ability to have 64 bits packed arrays for their games, so this is just an optional added type. For Variant, the float datatype is always 64 bits, and exposed as `float`. We still have `real_t` which is the datatype that can change from 32 to 64 bits depending on a compile flag (not entirely working right now, but that's the idea). It affects math related datatypes and code only. Neither Variant nor PackedArray make use of real_t, which is only intended for math precision, so the term is removed from there to keep only float.
* Added StringName as a variant type.Juan Linietsky2020-02-211-1/+1
| | | | Also changed all relevant properties defined manually to StringName.
* Texture refactorJuan Linietsky2020-02-111-2/+2
| | | | | | | | -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
* Updates minimum size on VideoPlayer::set_streamHaoyu Qiu2020-01-261-0/+4
|
* Update copyright statements to 2020Rémi Verschelde2020-01-011-2/+2
| | | | | | | | | | | 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.
* Refactor VideoPlayer and VideoStreamSeleckyErik2019-10-241-5/+18
| | | | | | | | | | | | 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
* Update copyright statements to 2019Rémi Verschelde2019-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Fix possible crash with VideoPlayer _mix_audio functionMarcelo Fernandez2018-11-021-39/+18
|
* Fix warnings about unhandled enum value in switch [-Wswitch]Rémi Verschelde2018-09-271-0/+4
| | | | | | | | | | | Fixes GCC 5 warnings of the form: core/io/http_client.cpp:288:9: warning: enumeration value 'STATUS_SSL_HANDSHAKE_ERROR' not handled in switch [-Wswitch] core/io/marshalls.cpp:806:9: warning: enumeration value 'AABB' not handled in switch [-Wswitch] Those can be trivial cases where adding a default fallback is the solution, or more complex issues/hidden bugs where missed values are actually meant to be handled.
* Make core/ includes absolute, remove subfolders from include pathRémi Verschelde2018-09-121-1/+1
| | | | | | This allows more consistency in the manner we include core headers, where previously there would be a mix of absolute, relative and include path-dependent includes.
* Added signal to VideoPlayer to notify when the video finished playingWilson E. Alvarez2018-04-011-6/+9
|
* Bind many more properties to scriptsBojidar Marinov2018-01-121-0/+4
| | | | | | | Notable potentially breaking changes: - PROPERTY_USAGE_NOEDITOR is now PROPERTY_USAGE_STORAGE | PROPERTY_USAGE_NETWORK, without PROPERTY_USAGE_INTERNAL - Some properties were renamed, and sometimes even shadowed by new ones - New getter methods (some virtual) were added
* Fix Video Player issue with audio mix_rate when different than 44100Marcelo Fernandez2018-01-071-7/+1
|
* Add missing copyright headers and fix formattingRémi Verschelde2018-01-051-0/+1
| | | | | | Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
* Update copyright statements to 2018Rémi Verschelde2018-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* initialize bus_index to 0Marcin Zawiejski2017-11-261-0/+1
| | | fixes #13305
* Made Vector::ptrw explicit for writing, compiler was sometimes using the ↵Juan Linietsky2017-11-251-1/+1
| | | | | | wrong function, leading to unnecesary copy on writes and reduced performance.
* Fix video playbackMatt Hughes2017-10-141-8/+136
| | | | | | | | This adds support to - VideoPlayer - VideoStreamWebm - VideoStreamTheora
* Add function set_stream_position to VideoPlayerTerah2017-10-041-0/+7
| | | | Also add docucmentation for set_stream_position in VideoPlayer
* Rename get_position => get_playback_position and seek_pos => seek on audio ↵Marcelo Fernandez2017-09-231-1/+1
| | | | classes
* Rename pos to position in user facing methods and variablesletheed2017-09-201-3/+3
| | | | | | | | | | | Rename user facing methods and variables as well as the corresponding C++ methods according to the folloming changes: * pos -> position * rot -> rotation * loc -> location C++ variables are left as is.
* Dead code tells no talesRémi Verschelde2017-08-271-44/+1
|
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-271-1/+1
|
* Removed unnecessary assignmentsWilson E. Alvarez2017-08-211-1/+0
|
* Removes editor_hint from SceneTreeIgnacio Etcheverry2017-08-191-1/+1
|
* Removes type information from method bindsIgnacio Etcheverry2017-08-101-3/+3
|
* Add "Godot Engine contributors" copyright lineRémi Verschelde2017-04-081-0/+1
|
* A Whole New World (clang-format edition)Rémi Verschelde2017-03-051-91/+77
| | | | | | | | | | | | | | | | | | | | | | | | I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code
* Rename the _MD macro to D_METHODHein-Pieter van Braam2017-02-131-22/+22
| | | | | | This new name also makes its purpose a little clearer This is a step towards fixing #56
* Remove use of _SCS from ADD_METHODHein-Pieter van Braam2017-02-131-7/+7
| | | | This saves typing and is a step towards fixing #56
* WIP new AudioServer, with buses, effects, etc.Juan Linietsky2017-01-211-0/+1
|
* Oops! Audio engine has vanished :DJuan Linietsky2017-01-151-9/+9
|
* Style: Fix whole-line commented codeRémi Verschelde2017-01-141-1/+1
| | | | | They do not play well with clang-format which aligns the `//` part with the rest of the code block, thus producing badly indented commented code.
* - _ready() callback only happens once now, if you want to receive it again, ↵Juan Linietsky2017-01-101-4/+4
| | | | | | | use request_ready() - C++ Nodes mostly do an internal process callback, so it does not conflict with users willing to use their own process callbacks - callbacks such as _input, _process, _fixed_process _unhandled_input, _unhandled_key_input do not requiere calling a function to enable them. They are enabled automatically if found on the script.
* -Conversion of most properties to a simpler syntax, easier to use by scriptJuan Linietsky2017-01-041-5/+5
| | | | | | -Modified help to display properties GDScript can still not make use of them, though.
* ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to ↵Juan Linietsky2017-01-021-22/+22
| | | | | | | | Variant. All usages of "type" to refer to classes were renamed to "class" ClassDB has been exposed to GDScript. OBJ_TYPE() macro is now GDCLASS()
* Welcome in 2017, dear changelog reader!Rémi Verschelde2017-01-011-1/+1
| | | | | | | | That year should bring the long-awaited OpenGL ES 3.0 compatible renderer with state-of-the-art rendering techniques tuned to work as low as middle end handheld devices - without compromising with the possibilities given for higher end desktop games of course. Great times ahead for the Godot community and the gamers that will play our games!
* Don't crash when video is stopped and played againBłażej Szczygieł2016-09-281-1/+2
|
* Remove unused variables (third pass) + dead codeRémi Verschelde2016-07-071-10/+0
| | | | Fixes various gcc 5.4.0 warnings for -Wunused-variable and -Wunused-but-set-variable
* Fix Theora video playback without a Vorbis streamBłażej Szczygieł2016-06-181-2/+9
| | | | | | | - prevent audio resampler errors when number of channels is 0, - don't check for 'audio_done' when there is no audio data. (cherry picked from commit 763b29f34e8c99c2f9559dcc31b59f99d0d6dee3)
* First version of ProfilerJuan Linietsky2016-05-211-1/+1
| | | | | It is now possible to profile GDScript as well as some parts of Godot internals.
* Fix wrong return and argument types in documentationIgnacio Etcheverry2016-05-041-2/+2
|
* renamed function get_video_texutre to get_video_textureAdham Zahran2016-02-081-1/+1
|
* Update copyright to 2016 in headersGeorge Marques2016-01-011-1/+1
|
* fixes crash/deadlock when video is paused and unpaused, might affect audio ↵Ariel Manzur2015-12-261-0/+1
| | | | sync tho
* -fixes to theora video ending sooner than expected, fixes #3066Juan Linietsky2015-12-151-1/+2
|
* ability to get video player textureJuan Linietsky2015-12-121-0/+9
|