1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-03 11:50:27 +00:00

Expose CameraFeed::set_ycbcr_images

This commit is contained in:
KOGA Mitsuhiro
2025-04-14 01:48:03 +09:00
parent 7864ac8019
commit f4f5b104f5
2 changed files with 9 additions and 0 deletions

View File

@@ -101,6 +101,14 @@
Sets YCbCr image for this feed.
</description>
</method>
<method name="set_ycbcr_images">
<return type="void" />
<param index="0" name="y_image" type="Image" />
<param index="1" name="cbcr_image" type="Image" />
<description>
Sets Y and CbCr images for this feed.
</description>
</method>
</methods>
<members>
<member name="feed_is_active" type="bool" setter="set_active" getter="is_active" default="false">

View File

@@ -50,6 +50,7 @@ void CameraFeed::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_rgb_image", "rgb_image"), &CameraFeed::set_rgb_image);
ClassDB::bind_method(D_METHOD("set_ycbcr_image", "ycbcr_image"), &CameraFeed::set_ycbcr_image);
ClassDB::bind_method(D_METHOD("set_ycbcr_images", "y_image", "cbcr_image"), &CameraFeed::set_ycbcr_images);
ClassDB::bind_method(D_METHOD("set_external", "width", "height"), &CameraFeed::set_external);
ClassDB::bind_method(D_METHOD("get_texture_tex_id", "feed_image_type"), &CameraFeed::get_texture_tex_id);