/**************************************************************************/ /* movie_writer.cpp */ /**************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ /* https://godotengine.org */ /**************************************************************************/ /* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ /* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ /* */ /* Permission is hereby granted, free of charge, to any person obtaining */ /* a copy of this software and associated documentation files (the */ /* "Software"), to deal in the Software without restriction, including */ /* without limitation the rights to use, copy, modify, merge, publish, */ /* distribute, sublicense, and/or sell copies of the Software, and to */ /* permit persons to whom the Software is furnished to do so, subject to */ /* the following conditions: */ /* */ /* The above copyright notice and this permission notice shall be */ /* included in all copies or substantial portions of the Software. */ /* */ /* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ /* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ /* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ /* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /**************************************************************************/ #include "movie_writer.h" #include "core/config/project_settings.h" #include "core/io/dir_access.h" #include "core/os/time.h" #include "servers/display_server.h" #include "servers/rendering_server.h" MovieWriter *MovieWriter::writers[MovieWriter::MAX_WRITERS]; uint32_t MovieWriter::writer_count = …; void MovieWriter::add_writer(MovieWriter *p_writer) { … } MovieWriter *MovieWriter::find_writer_for_file(const String &p_file) { … } uint32_t MovieWriter::get_audio_mix_rate() const { … } AudioServer::SpeakerMode MovieWriter::get_audio_speaker_mode() const { … } Error MovieWriter::write_begin(const Size2i &p_movie_size, uint32_t p_fps, const String &p_base_path) { … } Error MovieWriter::write_frame(const Ref<Image> &p_image, const int32_t *p_audio_data) { … } void MovieWriter::write_end() { … } bool MovieWriter::handles_file(const String &p_path) const { … } void MovieWriter::get_supported_extensions(List<String> *r_extensions) const { … } void MovieWriter::begin(const Size2i &p_movie_size, uint32_t p_fps, const String &p_base_path) { … } void MovieWriter::_bind_methods() { … } void MovieWriter::set_extensions_hint() { … } void MovieWriter::add_frame() { … } void MovieWriter::end() { … }