/**************************************************************************/ /* camera_feed.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 "camera_feed.h" #include "servers/rendering_server.h" void CameraFeed::_bind_methods() { … } int CameraFeed::get_id() const { … } bool CameraFeed::is_active() const { … } void CameraFeed::set_active(bool p_is_active) { … } String CameraFeed::get_name() const { … } void CameraFeed::set_name(String p_name) { … } int CameraFeed::get_base_width() const { … } int CameraFeed::get_base_height() const { … } CameraFeed::FeedDataType CameraFeed::get_datatype() const { … } CameraFeed::FeedPosition CameraFeed::get_position() const { … } void CameraFeed::set_position(CameraFeed::FeedPosition p_position) { … } Transform2D CameraFeed::get_transform() const { … } void CameraFeed::set_transform(const Transform2D &p_transform) { … } RID CameraFeed::get_texture(CameraServer::FeedImage p_which) { … } uint64_t CameraFeed::get_texture_tex_id(CameraServer::FeedImage p_which) { … } CameraFeed::CameraFeed() { … } CameraFeed::CameraFeed(String p_name, FeedPosition p_position) { … } CameraFeed::~CameraFeed() { … } void CameraFeed::set_rgb_image(const Ref<Image> &p_rgb_img) { … } void CameraFeed::set_ycbcr_image(const Ref<Image> &p_ycbcr_img) { … } void CameraFeed::set_ycbcr_images(const Ref<Image> &p_y_img, const Ref<Image> &p_cbcr_img) { … } void CameraFeed::set_external(int p_width, int p_height) { … } bool CameraFeed::activate_feed() { … } void CameraFeed::deactivate_feed() { … } bool CameraFeed::set_format(int p_index, const Dictionary &p_parameters) { … } Array CameraFeed::get_formats() const { … } CameraFeed::FeedFormat CameraFeed::get_format() const { … }