ruby-qt6-qtmultimedia 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.rspec +2 -0
- data/.rubocop.yml +10 -0
- data/LICENSE +185 -0
- data/README.md +3 -0
- data/Rakefile +23 -0
- data/ext/qt6/qtmultimedia/extconf.rb +6 -0
- data/ext/qt6/qtmultimedia/qaudiodevice-rb.cpp +42 -0
- data/ext/qt6/qtmultimedia/qaudiodevice-rb.hpp +5 -0
- data/ext/qt6/qtmultimedia/qaudioformat-rb.cpp +91 -0
- data/ext/qt6/qtmultimedia/qaudioformat-rb.hpp +5 -0
- data/ext/qt6/qtmultimedia/qaudioinput-rb.cpp +31 -0
- data/ext/qt6/qtmultimedia/qaudioinput-rb.hpp +5 -0
- data/ext/qt6/qtmultimedia/qaudiooutput-rb.cpp +31 -0
- data/ext/qt6/qtmultimedia/qaudiooutput-rb.hpp +5 -0
- data/ext/qt6/qtmultimedia/qaudiosink-rb.cpp +40 -0
- data/ext/qt6/qtmultimedia/qaudiosink-rb.hpp +5 -0
- data/ext/qt6/qtmultimedia/qaudiosource-rb.cpp +40 -0
- data/ext/qt6/qtmultimedia/qaudiosource-rb.hpp +5 -0
- data/ext/qt6/qtmultimedia/qcamera-rb.cpp +181 -0
- data/ext/qt6/qtmultimedia/qcamera-rb.hpp +5 -0
- data/ext/qt6/qtmultimedia/qcameradevice-rb.cpp +37 -0
- data/ext/qt6/qtmultimedia/qcameradevice-rb.hpp +5 -0
- data/ext/qt6/qtmultimedia/qcameraformat-rb.cpp +21 -0
- data/ext/qt6/qtmultimedia/qcameraformat-rb.hpp +5 -0
- data/ext/qt6/qtmultimedia/qcapturablewindow-rb.cpp +18 -0
- data/ext/qt6/qtmultimedia/qcapturablewindow-rb.hpp +5 -0
- data/ext/qt6/qtmultimedia/qimagecapture-rb.cpp +86 -0
- data/ext/qt6/qtmultimedia/qimagecapture-rb.hpp +5 -0
- data/ext/qt6/qtmultimedia/qmediacapturesession-rb.cpp +62 -0
- data/ext/qt6/qtmultimedia/qmediacapturesession-rb.hpp +5 -0
- data/ext/qt6/qtmultimedia/qmediadevices-rb.cpp +32 -0
- data/ext/qt6/qtmultimedia/qmediadevices-rb.hpp +5 -0
- data/ext/qt6/qtmultimedia/qmediaformat-rb.cpp +103 -0
- data/ext/qt6/qtmultimedia/qmediaformat-rb.hpp +5 -0
- data/ext/qt6/qtmultimedia/qmediametadata-rb.cpp +57 -0
- data/ext/qt6/qtmultimedia/qmediametadata-rb.hpp +5 -0
- data/ext/qt6/qtmultimedia/qmediaplayer-rb.cpp +125 -0
- data/ext/qt6/qtmultimedia/qmediaplayer-rb.hpp +5 -0
- data/ext/qt6/qtmultimedia/qmediarecorder-rb.cpp +113 -0
- data/ext/qt6/qtmultimedia/qmediarecorder-rb.hpp +5 -0
- data/ext/qt6/qtmultimedia/qscreencapture-rb.cpp +45 -0
- data/ext/qt6/qtmultimedia/qscreencapture-rb.hpp +5 -0
- data/ext/qt6/qtmultimedia/qsoundeffect-rb.cpp +63 -0
- data/ext/qt6/qtmultimedia/qsoundeffect-rb.hpp +5 -0
- data/ext/qt6/qtmultimedia/qtaudio-rb.cpp +38 -0
- data/ext/qt6/qtmultimedia/qtaudio-rb.hpp +5 -0
- data/ext/qt6/qtmultimedia/qtmultimedia-rb.cpp +75 -0
- data/ext/qt6/qtmultimedia/qtmultimedia-rb.hpp +3 -0
- data/ext/qt6/qtmultimedia/qtmultimediaversion-rb.cpp +9 -0
- data/ext/qt6/qtmultimedia/qtmultimediaversion-rb.hpp +5 -0
- data/ext/qt6/qtmultimedia/qtvideo-rb.cpp +20 -0
- data/ext/qt6/qtmultimedia/qtvideo-rb.hpp +5 -0
- data/ext/qt6/qtmultimedia/qvideoframe-rb.cpp +66 -0
- data/ext/qt6/qtmultimedia/qvideoframe-rb.hpp +5 -0
- data/ext/qt6/qtmultimedia/qvideoframeformat-rb.cpp +122 -0
- data/ext/qt6/qtmultimedia/qvideoframeformat-rb.hpp +5 -0
- data/ext/qt6/qtmultimedia/qvideoframeinput-rb.cpp +26 -0
- data/ext/qt6/qtmultimedia/qvideoframeinput-rb.hpp +5 -0
- data/ext/qt6/qtmultimedia/qvideosink-rb.cpp +29 -0
- data/ext/qt6/qtmultimedia/qvideosink-rb.hpp +5 -0
- data/ext/qt6/qtmultimedia/qwindowcapture-rb.cpp +47 -0
- data/ext/qt6/qtmultimedia/qwindowcapture-rb.hpp +5 -0
- data/ext/qt6/qtmultimedia/t-qtmultimedia-rb.cpp +20 -0
- data/ext/qt6/qtmultimedia/t-qtmultimedia-rb.hpp +5 -0
- data/lib/qt6/qtmultimedia/qaudiodevice.rb +38 -0
- data/lib/qt6/qtmultimedia/qaudioformat.rb +23 -0
- data/lib/qt6/qtmultimedia/qaudioinput.rb +28 -0
- data/lib/qt6/qtmultimedia/qaudiooutput.rb +28 -0
- data/lib/qt6/qtmultimedia/qaudiosink.rb +25 -0
- data/lib/qt6/qtmultimedia/qaudiosource.rb +25 -0
- data/lib/qt6/qtmultimedia/qcamera.rb +79 -0
- data/lib/qt6/qtmultimedia/qcameradevice.rb +38 -0
- data/lib/qt6/qtmultimedia/qcameraformat.rb +16 -0
- data/lib/qt6/qtmultimedia/qcapturablewindow.rb +16 -0
- data/lib/qt6/qtmultimedia/qimagecapture.rb +44 -0
- data/lib/qt6/qtmultimedia/qmediacapturesession.rb +32 -0
- data/lib/qt6/qtmultimedia/qmediadevices.rb +25 -0
- data/lib/qt6/qtmultimedia/qmediaformat.rb +29 -0
- data/lib/qt6/qtmultimedia/qmediametadata.rb +19 -0
- data/lib/qt6/qtmultimedia/qmediaplayer.rb +59 -0
- data/lib/qt6/qtmultimedia/qmediarecorder.rb +50 -0
- data/lib/qt6/qtmultimedia/qscreencapture.rb +32 -0
- data/lib/qt6/qtmultimedia/qsoundeffect.rb +38 -0
- data/lib/qt6/qtmultimedia/qtaudio.rb +14 -0
- data/lib/qt6/qtmultimedia/qtmultimediaversion.rb +6 -0
- data/lib/qt6/qtmultimedia/qtvideo.rb +10 -0
- data/lib/qt6/qtmultimedia/qvideoframe.rb +29 -0
- data/lib/qt6/qtmultimedia/qvideoframeformat.rb +33 -0
- data/lib/qt6/qtmultimedia/qvideoframeinput.rb +24 -0
- data/lib/qt6/qtmultimedia/qvideosink.rb +25 -0
- data/lib/qt6/qtmultimedia/qwindowcapture.rb +32 -0
- data/lib/qt6/qtmultimedia/version.rb +7 -0
- data/lib/qt6/qtmultimedia.rb +36 -0
- metadata +178 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
#include "qvideoframe-rb.hpp"
|
|
2
|
+
#include <qvideoframe.h>
|
|
3
|
+
#include <rice/qt6/qenum.hpp>
|
|
4
|
+
|
|
5
|
+
#include <QPainter>
|
|
6
|
+
|
|
7
|
+
RICE4RUBYQT6_USE_NAMESPACE
|
|
8
|
+
|
|
9
|
+
Class rb_cQVideoFrame;
|
|
10
|
+
|
|
11
|
+
void Init_qvideoframe(Module rb_mQt6QtMultimedia)
|
|
12
|
+
{
|
|
13
|
+
rb_cQVideoFrame =
|
|
14
|
+
// RubyQt6::QtMultimedia::QVideoFrame
|
|
15
|
+
define_class_under<QVideoFrame>(rb_mQt6QtMultimedia, "QVideoFrame")
|
|
16
|
+
// Constructor
|
|
17
|
+
.define_constructor(Constructor<QVideoFrame>())
|
|
18
|
+
.define_constructor(Constructor<QVideoFrame, const QImage &>(), Arg("image"))
|
|
19
|
+
.define_constructor(Constructor<QVideoFrame, const QVideoFrameFormat &>(), Arg("format"))
|
|
20
|
+
// Public Functions
|
|
21
|
+
.define_method<uchar *(QVideoFrame::*)(int)>("bits", &QVideoFrame::bits, Arg("plane"))
|
|
22
|
+
.define_method("bytes_per_line", &QVideoFrame::bytesPerLine, Arg("plane"))
|
|
23
|
+
.define_method("end_time", &QVideoFrame::endTime)
|
|
24
|
+
.define_method("handle_type", &QVideoFrame::handleType)
|
|
25
|
+
.define_method("height", &QVideoFrame::height)
|
|
26
|
+
.define_method("mapped?", &QVideoFrame::isMapped)
|
|
27
|
+
.define_method("readable?", &QVideoFrame::isReadable)
|
|
28
|
+
.define_method("valid?", &QVideoFrame::isValid)
|
|
29
|
+
.define_method("writable?", &QVideoFrame::isWritable)
|
|
30
|
+
.define_method("map", &QVideoFrame::map, Arg("mode"))
|
|
31
|
+
.define_method("map_mode", &QVideoFrame::mapMode)
|
|
32
|
+
.define_method("mapped_bytes", &QVideoFrame::mappedBytes, Arg("plane"))
|
|
33
|
+
.define_method("mirrored", &QVideoFrame::mirrored)
|
|
34
|
+
.define_method("paint", &QVideoFrame::paint, Arg("painter"), Arg("rect"), Arg("options"))
|
|
35
|
+
.define_method("pixel_format", &QVideoFrame::pixelFormat)
|
|
36
|
+
.define_method("plane_count", &QVideoFrame::planeCount)
|
|
37
|
+
.define_method("rotation", &QVideoFrame::rotation)
|
|
38
|
+
.define_method("set_end_time", &QVideoFrame::setEndTime, Arg("time"))
|
|
39
|
+
.define_method("set_mirrored", &QVideoFrame::setMirrored, Arg("mirrored"))
|
|
40
|
+
.define_method("set_rotation", &QVideoFrame::setRotation, Arg("angle"))
|
|
41
|
+
.define_method("set_start_time", &QVideoFrame::setStartTime, Arg("time"))
|
|
42
|
+
.define_method("set_stream_frame_rate", &QVideoFrame::setStreamFrameRate, Arg("rate"))
|
|
43
|
+
.define_method("set_subtitle_text", &QVideoFrame::setSubtitleText, Arg("text"))
|
|
44
|
+
.define_method("size", &QVideoFrame::size)
|
|
45
|
+
.define_method("start_time", &QVideoFrame::startTime)
|
|
46
|
+
.define_method("stream_frame_rate", &QVideoFrame::streamFrameRate)
|
|
47
|
+
.define_method("subtitle_text", &QVideoFrame::subtitleText)
|
|
48
|
+
.define_method("surface_format", &QVideoFrame::surfaceFormat)
|
|
49
|
+
.define_method("to_image", &QVideoFrame::toImage)
|
|
50
|
+
.define_method("unmap", &QVideoFrame::unmap)
|
|
51
|
+
.define_method("width", &QVideoFrame::width);
|
|
52
|
+
|
|
53
|
+
Data_Type<QVideoFrame::HandleType> rb_cQVideoFrameHandleType =
|
|
54
|
+
// RubyQt6::QtMultimedia::QVideoFrame::HandleType
|
|
55
|
+
define_qenum_under<QVideoFrame::HandleType>(rb_cQVideoFrame, "HandleType");
|
|
56
|
+
define_qenum_value_under(rb_cQVideoFrameHandleType, "NoHandle", QVideoFrame::HandleType::NoHandle);
|
|
57
|
+
define_qenum_value_under(rb_cQVideoFrameHandleType, "RhiTextureHandle", QVideoFrame::HandleType::RhiTextureHandle);
|
|
58
|
+
|
|
59
|
+
Data_Type<QVideoFrame::MapMode> rb_cQVideoFrameMapMode =
|
|
60
|
+
// RubyQt6::QtMultimedia::QVideoFrame::MapMode
|
|
61
|
+
define_qenum_under<QVideoFrame::MapMode>(rb_cQVideoFrame, "MapMode");
|
|
62
|
+
define_qenum_value_under(rb_cQVideoFrameMapMode, "NotMapped", QVideoFrame::MapMode::NotMapped);
|
|
63
|
+
define_qenum_value_under(rb_cQVideoFrameMapMode, "ReadOnly", QVideoFrame::MapMode::ReadOnly);
|
|
64
|
+
define_qenum_value_under(rb_cQVideoFrameMapMode, "WriteOnly", QVideoFrame::MapMode::WriteOnly);
|
|
65
|
+
define_qenum_value_under(rb_cQVideoFrameMapMode, "ReadWrite", QVideoFrame::MapMode::ReadWrite);
|
|
66
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
#include "qvideoframeformat-rb.hpp"
|
|
2
|
+
#include <qvideoframeformat.h>
|
|
3
|
+
#include <rice/qt6/qenum.hpp>
|
|
4
|
+
|
|
5
|
+
#include <QVideoFrame>
|
|
6
|
+
|
|
7
|
+
RICE4RUBYQT6_USE_NAMESPACE
|
|
8
|
+
|
|
9
|
+
Class rb_cQVideoFrameFormat;
|
|
10
|
+
|
|
11
|
+
void Init_qvideoframeformat(Module rb_mQt6QtMultimedia)
|
|
12
|
+
{
|
|
13
|
+
rb_cQVideoFrameFormat =
|
|
14
|
+
// RubyQt6::QtMultimedia::QVideoFrameFormat
|
|
15
|
+
define_class_under<QVideoFrameFormat>(rb_mQt6QtMultimedia, "QVideoFrameFormat")
|
|
16
|
+
// Constructor
|
|
17
|
+
.define_constructor(Constructor<QVideoFrameFormat>())
|
|
18
|
+
.define_constructor(Constructor<QVideoFrameFormat, const QSize &, QVideoFrameFormat::PixelFormat>(), Arg("size"), Arg("pixel_format"))
|
|
19
|
+
// Public Functions
|
|
20
|
+
.define_method("color_range", &QVideoFrameFormat::colorRange)
|
|
21
|
+
.define_method("color_space", &QVideoFrameFormat::colorSpace)
|
|
22
|
+
.define_method("color_transfer", &QVideoFrameFormat::colorTransfer)
|
|
23
|
+
.define_method("detach", &QVideoFrameFormat::detach)
|
|
24
|
+
.define_method("fragment_shader_file_name", &QVideoFrameFormat::fragmentShaderFileName)
|
|
25
|
+
.define_method("frame_height", &QVideoFrameFormat::frameHeight)
|
|
26
|
+
.define_method("frame_size", &QVideoFrameFormat::frameSize)
|
|
27
|
+
.define_method("frame_width", &QVideoFrameFormat::frameWidth)
|
|
28
|
+
.define_method("mirrored?", &QVideoFrameFormat::isMirrored)
|
|
29
|
+
.define_method("valid?", &QVideoFrameFormat::isValid)
|
|
30
|
+
.define_method("max_luminance", &QVideoFrameFormat::maxLuminance)
|
|
31
|
+
.define_method("pixel_format", &QVideoFrameFormat::pixelFormat)
|
|
32
|
+
.define_method("plane_count", &QVideoFrameFormat::planeCount)
|
|
33
|
+
.define_method("rotation", &QVideoFrameFormat::rotation)
|
|
34
|
+
.define_method("scan_line_direction", &QVideoFrameFormat::scanLineDirection)
|
|
35
|
+
.define_method("set_color_range", &QVideoFrameFormat::setColorRange, Arg("range"))
|
|
36
|
+
.define_method("set_color_space", &QVideoFrameFormat::setColorSpace, Arg("color_space"))
|
|
37
|
+
.define_method("set_color_transfer", &QVideoFrameFormat::setColorTransfer, Arg("color_transfer"))
|
|
38
|
+
.define_method<void (QVideoFrameFormat::*)(const QSize &)>("set_frame_size", &QVideoFrameFormat::setFrameSize, Arg("size"))
|
|
39
|
+
.define_method<void (QVideoFrameFormat::*)(int, int)>("set_frame_size", &QVideoFrameFormat::setFrameSize, Arg("width"), Arg("height"))
|
|
40
|
+
.define_method("set_max_luminance", &QVideoFrameFormat::setMaxLuminance, Arg("lum"))
|
|
41
|
+
.define_method("set_mirrored", &QVideoFrameFormat::setMirrored, Arg("mirrored"))
|
|
42
|
+
.define_method("set_rotation", &QVideoFrameFormat::setRotation, Arg("rotation"))
|
|
43
|
+
.define_method("set_scan_line_direction", &QVideoFrameFormat::setScanLineDirection, Arg("direction"))
|
|
44
|
+
.define_method("set_stream_frame_rate", &QVideoFrameFormat::setStreamFrameRate, Arg("rate"))
|
|
45
|
+
.define_method("set_viewport", &QVideoFrameFormat::setViewport, Arg("viewport"))
|
|
46
|
+
.define_method("stream_frame_rate", &QVideoFrameFormat::streamFrameRate)
|
|
47
|
+
.define_method("viewport", &QVideoFrameFormat::viewport)
|
|
48
|
+
// Static Public Members
|
|
49
|
+
.define_singleton_function("image_format_from_pixel_format", &QVideoFrameFormat::imageFormatFromPixelFormat, Arg("format"))
|
|
50
|
+
.define_singleton_function("pixel_format_from_image_format", &QVideoFrameFormat::pixelFormatFromImageFormat, Arg("format"))
|
|
51
|
+
.define_singleton_function("pixel_format_to_string", &QVideoFrameFormat::pixelFormatToString, Arg("pixel_format"));
|
|
52
|
+
|
|
53
|
+
Data_Type<QVideoFrameFormat::ColorRange> rb_cQVideoFrameFormatColorRange =
|
|
54
|
+
// RubyQt6::QtMultimedia::QVideoFrameFormat::ColorRange
|
|
55
|
+
define_qenum_under<QVideoFrameFormat::ColorRange>(rb_cQVideoFrameFormat, "ColorRange");
|
|
56
|
+
define_qenum_value_under(rb_cQVideoFrameFormatColorRange, "ColorRange_Unknown", QVideoFrameFormat::ColorRange::ColorRange_Unknown);
|
|
57
|
+
define_qenum_value_under(rb_cQVideoFrameFormatColorRange, "ColorRange_Video", QVideoFrameFormat::ColorRange::ColorRange_Video);
|
|
58
|
+
define_qenum_value_under(rb_cQVideoFrameFormatColorRange, "ColorRange_Full", QVideoFrameFormat::ColorRange::ColorRange_Full);
|
|
59
|
+
|
|
60
|
+
Data_Type<QVideoFrameFormat::ColorSpace> rb_cQVideoFrameFormatColorSpace =
|
|
61
|
+
// RubyQt6::QtMultimedia::QVideoFrameFormat::ColorSpace
|
|
62
|
+
define_qenum_under<QVideoFrameFormat::ColorSpace>(rb_cQVideoFrameFormat, "ColorSpace");
|
|
63
|
+
define_qenum_value_under(rb_cQVideoFrameFormatColorSpace, "ColorSpace_Undefined", QVideoFrameFormat::ColorSpace::ColorSpace_Undefined);
|
|
64
|
+
define_qenum_value_under(rb_cQVideoFrameFormatColorSpace, "ColorSpace_BT601", QVideoFrameFormat::ColorSpace::ColorSpace_BT601);
|
|
65
|
+
define_qenum_value_under(rb_cQVideoFrameFormatColorSpace, "ColorSpace_BT709", QVideoFrameFormat::ColorSpace::ColorSpace_BT709);
|
|
66
|
+
define_qenum_value_under(rb_cQVideoFrameFormatColorSpace, "ColorSpace_AdobeRgb", QVideoFrameFormat::ColorSpace::ColorSpace_AdobeRgb);
|
|
67
|
+
define_qenum_value_under(rb_cQVideoFrameFormatColorSpace, "ColorSpace_BT2020", QVideoFrameFormat::ColorSpace::ColorSpace_BT2020);
|
|
68
|
+
|
|
69
|
+
Data_Type<QVideoFrameFormat::ColorTransfer> rb_cQVideoFrameFormatColorTransfer =
|
|
70
|
+
// RubyQt6::QtMultimedia::QVideoFrameFormat::ColorTransfer
|
|
71
|
+
define_qenum_under<QVideoFrameFormat::ColorTransfer>(rb_cQVideoFrameFormat, "ColorTransfer");
|
|
72
|
+
define_qenum_value_under(rb_cQVideoFrameFormatColorTransfer, "ColorTransfer_Unknown", QVideoFrameFormat::ColorTransfer::ColorTransfer_Unknown);
|
|
73
|
+
define_qenum_value_under(rb_cQVideoFrameFormatColorTransfer, "ColorTransfer_BT709", QVideoFrameFormat::ColorTransfer::ColorTransfer_BT709);
|
|
74
|
+
define_qenum_value_under(rb_cQVideoFrameFormatColorTransfer, "ColorTransfer_BT601", QVideoFrameFormat::ColorTransfer::ColorTransfer_BT601);
|
|
75
|
+
define_qenum_value_under(rb_cQVideoFrameFormatColorTransfer, "ColorTransfer_Linear", QVideoFrameFormat::ColorTransfer::ColorTransfer_Linear);
|
|
76
|
+
define_qenum_value_under(rb_cQVideoFrameFormatColorTransfer, "ColorTransfer_Gamma22", QVideoFrameFormat::ColorTransfer::ColorTransfer_Gamma22);
|
|
77
|
+
define_qenum_value_under(rb_cQVideoFrameFormatColorTransfer, "ColorTransfer_Gamma28", QVideoFrameFormat::ColorTransfer::ColorTransfer_Gamma28);
|
|
78
|
+
define_qenum_value_under(rb_cQVideoFrameFormatColorTransfer, "ColorTransfer_ST2084", QVideoFrameFormat::ColorTransfer::ColorTransfer_ST2084);
|
|
79
|
+
define_qenum_value_under(rb_cQVideoFrameFormatColorTransfer, "ColorTransfer_STD_B67", QVideoFrameFormat::ColorTransfer::ColorTransfer_STD_B67);
|
|
80
|
+
|
|
81
|
+
Data_Type<QVideoFrameFormat::Direction> rb_cQVideoFrameFormatDirection =
|
|
82
|
+
// RubyQt6::QtMultimedia::QVideoFrameFormat::Direction
|
|
83
|
+
define_qenum_under<QVideoFrameFormat::Direction>(rb_cQVideoFrameFormat, "Direction");
|
|
84
|
+
define_qenum_value_under(rb_cQVideoFrameFormatDirection, "TopToBottom", QVideoFrameFormat::Direction::TopToBottom);
|
|
85
|
+
define_qenum_value_under(rb_cQVideoFrameFormatDirection, "BottomToTop", QVideoFrameFormat::Direction::BottomToTop);
|
|
86
|
+
|
|
87
|
+
Data_Type<QVideoFrameFormat::PixelFormat> rb_cQVideoFrameFormatPixelFormat =
|
|
88
|
+
// RubyQt6::QtMultimedia::QVideoFrameFormat::PixelFormat
|
|
89
|
+
define_qenum_under<QVideoFrameFormat::PixelFormat>(rb_cQVideoFrameFormat, "PixelFormat");
|
|
90
|
+
define_qenum_value_under(rb_cQVideoFrameFormatPixelFormat, "Format_Invalid", QVideoFrameFormat::PixelFormat::Format_Invalid);
|
|
91
|
+
define_qenum_value_under(rb_cQVideoFrameFormatPixelFormat, "Format_ARGB8888", QVideoFrameFormat::PixelFormat::Format_ARGB8888);
|
|
92
|
+
define_qenum_value_under(rb_cQVideoFrameFormatPixelFormat, "Format_ARGB8888_Premultiplied", QVideoFrameFormat::PixelFormat::Format_ARGB8888_Premultiplied);
|
|
93
|
+
define_qenum_value_under(rb_cQVideoFrameFormatPixelFormat, "Format_XRGB8888", QVideoFrameFormat::PixelFormat::Format_XRGB8888);
|
|
94
|
+
define_qenum_value_under(rb_cQVideoFrameFormatPixelFormat, "Format_BGRA8888", QVideoFrameFormat::PixelFormat::Format_BGRA8888);
|
|
95
|
+
define_qenum_value_under(rb_cQVideoFrameFormatPixelFormat, "Format_BGRA8888_Premultiplied", QVideoFrameFormat::PixelFormat::Format_BGRA8888_Premultiplied);
|
|
96
|
+
define_qenum_value_under(rb_cQVideoFrameFormatPixelFormat, "Format_BGRX8888", QVideoFrameFormat::PixelFormat::Format_BGRX8888);
|
|
97
|
+
define_qenum_value_under(rb_cQVideoFrameFormatPixelFormat, "Format_ABGR8888", QVideoFrameFormat::PixelFormat::Format_ABGR8888);
|
|
98
|
+
define_qenum_value_under(rb_cQVideoFrameFormatPixelFormat, "Format_XBGR8888", QVideoFrameFormat::PixelFormat::Format_XBGR8888);
|
|
99
|
+
define_qenum_value_under(rb_cQVideoFrameFormatPixelFormat, "Format_RGBA8888", QVideoFrameFormat::PixelFormat::Format_RGBA8888);
|
|
100
|
+
define_qenum_value_under(rb_cQVideoFrameFormatPixelFormat, "Format_RGBX8888", QVideoFrameFormat::PixelFormat::Format_RGBX8888);
|
|
101
|
+
define_qenum_value_under(rb_cQVideoFrameFormatPixelFormat, "Format_AYUV", QVideoFrameFormat::PixelFormat::Format_AYUV);
|
|
102
|
+
define_qenum_value_under(rb_cQVideoFrameFormatPixelFormat, "Format_AYUV_Premultiplied", QVideoFrameFormat::PixelFormat::Format_AYUV_Premultiplied);
|
|
103
|
+
define_qenum_value_under(rb_cQVideoFrameFormatPixelFormat, "Format_YUV420P", QVideoFrameFormat::PixelFormat::Format_YUV420P);
|
|
104
|
+
define_qenum_value_under(rb_cQVideoFrameFormatPixelFormat, "Format_YUV422P", QVideoFrameFormat::PixelFormat::Format_YUV422P);
|
|
105
|
+
define_qenum_value_under(rb_cQVideoFrameFormatPixelFormat, "Format_YV12", QVideoFrameFormat::PixelFormat::Format_YV12);
|
|
106
|
+
define_qenum_value_under(rb_cQVideoFrameFormatPixelFormat, "Format_UYVY", QVideoFrameFormat::PixelFormat::Format_UYVY);
|
|
107
|
+
define_qenum_value_under(rb_cQVideoFrameFormatPixelFormat, "Format_YUYV", QVideoFrameFormat::PixelFormat::Format_YUYV);
|
|
108
|
+
define_qenum_value_under(rb_cQVideoFrameFormatPixelFormat, "Format_NV12", QVideoFrameFormat::PixelFormat::Format_NV12);
|
|
109
|
+
define_qenum_value_under(rb_cQVideoFrameFormatPixelFormat, "Format_NV21", QVideoFrameFormat::PixelFormat::Format_NV21);
|
|
110
|
+
define_qenum_value_under(rb_cQVideoFrameFormatPixelFormat, "Format_IMC1", QVideoFrameFormat::PixelFormat::Format_IMC1);
|
|
111
|
+
define_qenum_value_under(rb_cQVideoFrameFormatPixelFormat, "Format_IMC2", QVideoFrameFormat::PixelFormat::Format_IMC2);
|
|
112
|
+
define_qenum_value_under(rb_cQVideoFrameFormatPixelFormat, "Format_IMC3", QVideoFrameFormat::PixelFormat::Format_IMC3);
|
|
113
|
+
define_qenum_value_under(rb_cQVideoFrameFormatPixelFormat, "Format_IMC4", QVideoFrameFormat::PixelFormat::Format_IMC4);
|
|
114
|
+
define_qenum_value_under(rb_cQVideoFrameFormatPixelFormat, "Format_Y8", QVideoFrameFormat::PixelFormat::Format_Y8);
|
|
115
|
+
define_qenum_value_under(rb_cQVideoFrameFormatPixelFormat, "Format_Y16", QVideoFrameFormat::PixelFormat::Format_Y16);
|
|
116
|
+
define_qenum_value_under(rb_cQVideoFrameFormatPixelFormat, "Format_P010", QVideoFrameFormat::PixelFormat::Format_P010);
|
|
117
|
+
define_qenum_value_under(rb_cQVideoFrameFormatPixelFormat, "Format_P016", QVideoFrameFormat::PixelFormat::Format_P016);
|
|
118
|
+
define_qenum_value_under(rb_cQVideoFrameFormatPixelFormat, "Format_SamplerExternalOES", QVideoFrameFormat::PixelFormat::Format_SamplerExternalOES);
|
|
119
|
+
define_qenum_value_under(rb_cQVideoFrameFormatPixelFormat, "Format_Jpeg", QVideoFrameFormat::PixelFormat::Format_Jpeg);
|
|
120
|
+
define_qenum_value_under(rb_cQVideoFrameFormatPixelFormat, "Format_SamplerRect", QVideoFrameFormat::PixelFormat::Format_SamplerRect);
|
|
121
|
+
define_qenum_value_under(rb_cQVideoFrameFormatPixelFormat, "Format_YUV420P10", QVideoFrameFormat::PixelFormat::Format_YUV420P10);
|
|
122
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
#include "qvideoframeinput-rb.hpp"
|
|
2
|
+
#include <qvideoframeinput.h>
|
|
3
|
+
|
|
4
|
+
#include <QMediaCaptureSession>
|
|
5
|
+
#include <QVideoFrame>
|
|
6
|
+
|
|
7
|
+
RICE4RUBYQT6_USE_NAMESPACE
|
|
8
|
+
|
|
9
|
+
Class rb_cQVideoFrameInput;
|
|
10
|
+
|
|
11
|
+
void Init_qvideoframeinput(Module rb_mQt6QtMultimedia)
|
|
12
|
+
{
|
|
13
|
+
rb_cQVideoFrameInput =
|
|
14
|
+
// RubyQt6::QtMultimedia::QVideoFrameInput
|
|
15
|
+
define_class_under<QVideoFrameInput, QObject>(rb_mQt6QtMultimedia, "QVideoFrameInput")
|
|
16
|
+
// RubyQt6-Defined Functions
|
|
17
|
+
.define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QVideoFrameInput::staticMetaObject; })
|
|
18
|
+
// Constructor
|
|
19
|
+
.define_constructor(Constructor<QVideoFrameInput, const QVideoFrameFormat &, QObject *>(), Arg("format"), Arg("parent"))
|
|
20
|
+
// Public Functions
|
|
21
|
+
.define_method("capture_session", &QVideoFrameInput::captureSession)
|
|
22
|
+
.define_method("format", &QVideoFrameInput::format)
|
|
23
|
+
.define_method("send_video_frame", &QVideoFrameInput::sendVideoFrame, Arg("frame"));
|
|
24
|
+
// Signals
|
|
25
|
+
// .define_method("ready_to_send_video_frame", &QVideoFrameInput::readyToSendVideoFrame);
|
|
26
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#include "qvideosink-rb.hpp"
|
|
2
|
+
#include <qvideosink.h>
|
|
3
|
+
|
|
4
|
+
#include <QVideoFrame>
|
|
5
|
+
|
|
6
|
+
RICE4RUBYQT6_USE_NAMESPACE
|
|
7
|
+
|
|
8
|
+
Class rb_cQVideoSink;
|
|
9
|
+
|
|
10
|
+
void Init_qvideosink(Module rb_mQt6QtMultimedia)
|
|
11
|
+
{
|
|
12
|
+
rb_cQVideoSink =
|
|
13
|
+
// RubyQt6::QtMultimedia::QVideoSink
|
|
14
|
+
define_class_under<QVideoSink, QObject>(rb_mQt6QtMultimedia, "QVideoSink")
|
|
15
|
+
// RubyQt6-Defined Functions
|
|
16
|
+
.define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QVideoSink::staticMetaObject; })
|
|
17
|
+
// Constructor
|
|
18
|
+
.define_constructor(Constructor<QVideoSink, QObject *>(), Arg("parent"))
|
|
19
|
+
// Public Functions
|
|
20
|
+
.define_method("set_subtitle_text", &QVideoSink::setSubtitleText, Arg("subtitle"))
|
|
21
|
+
.define_method("set_video_frame", &QVideoSink::setVideoFrame, Arg("frame"))
|
|
22
|
+
.define_method("subtitle_text", &QVideoSink::subtitleText)
|
|
23
|
+
.define_method("video_frame", &QVideoSink::videoFrame)
|
|
24
|
+
.define_method("video_size", &QVideoSink::videoSize);
|
|
25
|
+
// Signals
|
|
26
|
+
// .define_method("subtitle_text_changed", &QVideoSink::subtitleTextChanged, Arg("subtitle_text"))
|
|
27
|
+
// .define_method("video_frame_changed", &QVideoSink::videoFrameChanged, Arg("frame"))
|
|
28
|
+
// .define_method("video_size_changed", &QVideoSink::videoSizeChanged);
|
|
29
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
#include "qwindowcapture-rb.hpp"
|
|
2
|
+
#include <qwindowcapture.h>
|
|
3
|
+
#include <rice/qt6/qenum.hpp>
|
|
4
|
+
|
|
5
|
+
#include <QMediaCaptureSession>
|
|
6
|
+
|
|
7
|
+
RICE4RUBYQT6_USE_NAMESPACE
|
|
8
|
+
|
|
9
|
+
Class rb_cQWindowCapture;
|
|
10
|
+
|
|
11
|
+
void Init_qwindowcapture(Module rb_mQt6QtMultimedia)
|
|
12
|
+
{
|
|
13
|
+
rb_cQWindowCapture =
|
|
14
|
+
// RubyQt6::QtMultimedia::QWindowCapture
|
|
15
|
+
define_class_under<QWindowCapture, QObject>(rb_mQt6QtMultimedia, "QWindowCapture")
|
|
16
|
+
// RubyQt6-Defined Functions
|
|
17
|
+
.define_singleton_function("_static_meta_object", []() -> const QMetaObject * { return &QWindowCapture::staticMetaObject; })
|
|
18
|
+
// Constructor
|
|
19
|
+
.define_constructor(Constructor<QWindowCapture, QObject *>(), Arg("parent"))
|
|
20
|
+
// Public Functions
|
|
21
|
+
.define_method("capture_session", &QWindowCapture::captureSession)
|
|
22
|
+
.define_method("error", &QWindowCapture::error)
|
|
23
|
+
.define_method("error_string", &QWindowCapture::errorString)
|
|
24
|
+
.define_method("active?", &QWindowCapture::isActive)
|
|
25
|
+
.define_method("set_window", &QWindowCapture::setWindow, Arg("window"))
|
|
26
|
+
.define_method("window", &QWindowCapture::window)
|
|
27
|
+
// Public Slots
|
|
28
|
+
.define_method("set_active", &QWindowCapture::setActive, Arg("active"))
|
|
29
|
+
.define_method("start", &QWindowCapture::start)
|
|
30
|
+
.define_method("stop", &QWindowCapture::stop)
|
|
31
|
+
// Signals
|
|
32
|
+
// .define_method("active_changed", &QWindowCapture::activeChanged, Arg("active"))
|
|
33
|
+
// .define_method("error_changed", &QWindowCapture::errorChanged)
|
|
34
|
+
// .define_method("error_occurred", &QWindowCapture::errorOccurred, Arg("error"), Arg("error_string"))
|
|
35
|
+
// .define_method("window_changed", &QWindowCapture::windowChanged, Arg("window"))
|
|
36
|
+
// Static Public Members
|
|
37
|
+
.define_singleton_function("capturable_windows", &QWindowCapture::capturableWindows);
|
|
38
|
+
|
|
39
|
+
Data_Type<QWindowCapture::Error> rb_cQWindowCaptureError =
|
|
40
|
+
// RubyQt6::QtMultimedia::QWindowCapture::Error
|
|
41
|
+
define_qenum_under<QWindowCapture::Error>(rb_cQWindowCapture, "Error");
|
|
42
|
+
define_qenum_value_under(rb_cQWindowCaptureError, "NoError", QWindowCapture::Error::NoError);
|
|
43
|
+
define_qenum_value_under(rb_cQWindowCaptureError, "InternalError", QWindowCapture::Error::InternalError);
|
|
44
|
+
define_qenum_value_under(rb_cQWindowCaptureError, "CapturingNotSupported", QWindowCapture::Error::CapturingNotSupported);
|
|
45
|
+
define_qenum_value_under(rb_cQWindowCaptureError, "CaptureFailed", QWindowCapture::Error::CaptureFailed);
|
|
46
|
+
define_qenum_value_under(rb_cQWindowCaptureError, "NotFound", QWindowCapture::Error::NotFound);
|
|
47
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#include "t-qtmultimedia-rb.hpp"
|
|
2
|
+
#include <rice/qt6/qlist.hpp>
|
|
3
|
+
|
|
4
|
+
#include <QAudioDevice>
|
|
5
|
+
#include <QCameraDevice>
|
|
6
|
+
#include <QMediaFormat>
|
|
7
|
+
|
|
8
|
+
RICE4RUBYQT6_USE_NAMESPACE
|
|
9
|
+
|
|
10
|
+
void Init_t_qtmultimedia(Module rb_mQt6T)
|
|
11
|
+
{
|
|
12
|
+
// QList<QAudioDevice>
|
|
13
|
+
define_qlist_under<QAudioDevice>(rb_mQt6T);
|
|
14
|
+
|
|
15
|
+
// QList<QCameraDevice>
|
|
16
|
+
define_qlist_under<QCameraDevice>(rb_mQt6T);
|
|
17
|
+
|
|
18
|
+
// QList<QMediaFormat::FileFormat>
|
|
19
|
+
define_qlist_under<QMediaFormat::FileFormat>(rb_mQt6T);
|
|
20
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module RubyQt6
|
|
4
|
+
module QtMultimedia
|
|
5
|
+
# @see https://doc.qt.io/qt-6/qaudiodevice.html
|
|
6
|
+
class QAudioDevice
|
|
7
|
+
# @!parse class Mode; end
|
|
8
|
+
rubyqt6_declare_enum_under QAudioDevice, QAudioDevice::Mode
|
|
9
|
+
|
|
10
|
+
# @!parse
|
|
11
|
+
QtCore::QVariant.register(
|
|
12
|
+
_qvariant_register_metatype,
|
|
13
|
+
method(:_qvariant_from_value),
|
|
14
|
+
method(:_qvariant_to_value),
|
|
15
|
+
from: self
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
# @!visibility private
|
|
19
|
+
alias_method :_initialize, :initialize
|
|
20
|
+
|
|
21
|
+
# @return [QAudioDevice]
|
|
22
|
+
def initialize
|
|
23
|
+
_initialize
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# @!visibility private
|
|
27
|
+
def ==(other)
|
|
28
|
+
return false unless other.is_a?(self.class)
|
|
29
|
+
self.class._operator_equal(self, other)
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# @!visibility private
|
|
33
|
+
def inspect
|
|
34
|
+
T.inspect_struct(self, id: id.to_s, description: description.to_s)
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module RubyQt6
|
|
4
|
+
module QtMultimedia
|
|
5
|
+
# @see https://doc.qt.io/qt-6/qaudioformat.html
|
|
6
|
+
class QAudioFormat
|
|
7
|
+
# @!parse class AudioChannelPosition; end
|
|
8
|
+
# @!parse class ChannelConfig ; end
|
|
9
|
+
# @!parse class SampleFormat ; end
|
|
10
|
+
rubyqt6_declare_enum_under QAudioFormat, QAudioFormat::AudioChannelPosition
|
|
11
|
+
rubyqt6_declare_enum_under QAudioFormat, QAudioFormat::ChannelConfig
|
|
12
|
+
rubyqt6_declare_enum_under QAudioFormat, QAudioFormat::SampleFormat
|
|
13
|
+
|
|
14
|
+
# @!visibility private
|
|
15
|
+
alias_method :_initialize, :initialize
|
|
16
|
+
|
|
17
|
+
# @return [QAudioFormat]
|
|
18
|
+
def initialize
|
|
19
|
+
_initialize
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module RubyQt6
|
|
4
|
+
module QtMultimedia
|
|
5
|
+
# @see https://doc.qt.io/qt-6/qaudioinput.html
|
|
6
|
+
class QAudioInput < RubyQt6::QtCore::QObject
|
|
7
|
+
# @!parse
|
|
8
|
+
q_object do
|
|
9
|
+
signal "deviceChanged()"
|
|
10
|
+
signal "mutedChanged(bool)"
|
|
11
|
+
signal "volumeChanged(float)"
|
|
12
|
+
slot "setDevice(QAudioDevice)"
|
|
13
|
+
slot "setMuted(bool)"
|
|
14
|
+
slot "setVolume(float)"
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# @!visibility private
|
|
18
|
+
alias_method :_initialize, :initialize
|
|
19
|
+
|
|
20
|
+
# @param parent [QObject]
|
|
21
|
+
# @return [QAudioInput]
|
|
22
|
+
def initialize(parent = nil)
|
|
23
|
+
_initialize(parent)
|
|
24
|
+
_take_ownership_from_ruby(self)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module RubyQt6
|
|
4
|
+
module QtMultimedia
|
|
5
|
+
# @see https://doc.qt.io/qt-6/qaudiooutput.html
|
|
6
|
+
class QAudioOutput < RubyQt6::QtCore::QObject
|
|
7
|
+
# @!parse
|
|
8
|
+
q_object do
|
|
9
|
+
signal "deviceChanged()"
|
|
10
|
+
signal "mutedChanged(bool)"
|
|
11
|
+
signal "volumeChanged(float)"
|
|
12
|
+
slot "setDevice(QAudioDevice)"
|
|
13
|
+
slot "setMuted(bool)"
|
|
14
|
+
slot "setVolume(float)"
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# @!visibility private
|
|
18
|
+
alias_method :_initialize, :initialize
|
|
19
|
+
|
|
20
|
+
# @param parent [QObject]
|
|
21
|
+
# @return [QAudioOutput]
|
|
22
|
+
def initialize(parent = nil)
|
|
23
|
+
_initialize(parent)
|
|
24
|
+
_take_ownership_from_ruby(self)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module RubyQt6
|
|
4
|
+
module QtMultimedia
|
|
5
|
+
# @see https://doc.qt.io/qt-6/qaudiosink.html
|
|
6
|
+
class QAudioSink < RubyQt6::QtCore::QObject
|
|
7
|
+
# @!parse
|
|
8
|
+
q_object do
|
|
9
|
+
signal "stateChanged(QtAudio::State)"
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# @!visibility private
|
|
13
|
+
alias_method :_initialize, :initialize
|
|
14
|
+
|
|
15
|
+
# @param device [QAudioDevice]
|
|
16
|
+
# @param format [QAudioFormat]
|
|
17
|
+
# @param parent [QObject]
|
|
18
|
+
# @return [QAudioSink]
|
|
19
|
+
def initialize(device, format, parent = nil)
|
|
20
|
+
_initialize(device, format, parent)
|
|
21
|
+
_take_ownership_from_ruby(self)
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module RubyQt6
|
|
4
|
+
module QtMultimedia
|
|
5
|
+
# @see https://doc.qt.io/qt-6/qaudiosource.html
|
|
6
|
+
class QAudioSource < RubyQt6::QtCore::QObject
|
|
7
|
+
# @!parse
|
|
8
|
+
q_object do
|
|
9
|
+
signal "stateChanged(QtAudio::State)"
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# @!visibility private
|
|
13
|
+
alias_method :_initialize, :initialize
|
|
14
|
+
|
|
15
|
+
# @param device [QAudioDevice]
|
|
16
|
+
# @param format [QAudioFormat]
|
|
17
|
+
# @param parent [QObject]
|
|
18
|
+
# @return [QAudioSource]
|
|
19
|
+
def initialize(device, format, parent = nil)
|
|
20
|
+
_initialize(device, format, parent)
|
|
21
|
+
_take_ownership_from_ruby(self)
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module RubyQt6
|
|
4
|
+
module QtMultimedia
|
|
5
|
+
# @see https://doc.qt.io/qt-6/qcamera.html
|
|
6
|
+
class QCamera < RubyQt6::QtCore::QObject
|
|
7
|
+
# @!parse class Error ; end
|
|
8
|
+
# @!parse class ExposureMode ; end
|
|
9
|
+
# @!parse class Feature ; end
|
|
10
|
+
# @!parse class FlashMode ; end
|
|
11
|
+
# @!parse class FocusMode ; end
|
|
12
|
+
# @!parse class TorchMode ; end
|
|
13
|
+
# @!parse class WhiteBalanceMode; end
|
|
14
|
+
rubyqt6_declare_enum_under QCamera, QCamera::Error
|
|
15
|
+
rubyqt6_declare_enum_under QCamera, QCamera::ExposureMode
|
|
16
|
+
rubyqt6_declare_enum_under QCamera, QCamera::Feature, alias: false
|
|
17
|
+
rubyqt6_declare_enum_under QCamera, QCamera::FlashMode
|
|
18
|
+
rubyqt6_declare_enum_under QCamera, QCamera::FocusMode
|
|
19
|
+
rubyqt6_declare_enum_under QCamera, QCamera::TorchMode
|
|
20
|
+
rubyqt6_declare_enum_under QCamera, QCamera::WhiteBalanceMode
|
|
21
|
+
|
|
22
|
+
# @!parse
|
|
23
|
+
q_object do
|
|
24
|
+
signal "activeChanged(bool)"
|
|
25
|
+
signal "brightnessChanged()"
|
|
26
|
+
signal "cameraDeviceChanged()"
|
|
27
|
+
signal "cameraFormatChanged()"
|
|
28
|
+
signal "colorTemperatureChanged()"
|
|
29
|
+
signal "contrastChanged()"
|
|
30
|
+
signal "customFocusPointChanged()"
|
|
31
|
+
signal "errorChanged()"
|
|
32
|
+
signal "errorOccurred(QCamera::Error,QString)"
|
|
33
|
+
signal "exposureCompensationChanged(float)"
|
|
34
|
+
signal "exposureModeChanged()"
|
|
35
|
+
signal "exposureTimeChanged(float)"
|
|
36
|
+
signal "flashModeChanged()"
|
|
37
|
+
signal "flashReady(bool)"
|
|
38
|
+
signal "focusDistanceChanged(float)"
|
|
39
|
+
signal "focusModeChanged()"
|
|
40
|
+
signal "focusPointChanged()"
|
|
41
|
+
signal "hueChanged()"
|
|
42
|
+
signal "isoSensitivityChanged(int)"
|
|
43
|
+
signal "manualExposureTimeChanged(float)"
|
|
44
|
+
signal "manualIsoSensitivityChanged(int)"
|
|
45
|
+
signal "maximumZoomFactorChanged(float)"
|
|
46
|
+
signal "minimumZoomFactorChanged(float)"
|
|
47
|
+
signal "saturationChanged()"
|
|
48
|
+
signal "supportedFeaturesChanged()"
|
|
49
|
+
signal "torchModeChanged()"
|
|
50
|
+
signal "whiteBalanceModeChanged()"
|
|
51
|
+
signal "zoomFactorChanged(float)"
|
|
52
|
+
slot "setActive(bool)"
|
|
53
|
+
slot "setAutoExposureTime()"
|
|
54
|
+
slot "setAutoIsoSensitivity()"
|
|
55
|
+
slot "setColorTemperature(int)"
|
|
56
|
+
slot "setExposureCompensation(float)"
|
|
57
|
+
slot "setExposureMode(ExposureMode)"
|
|
58
|
+
slot "setFlashMode(FlashMode)"
|
|
59
|
+
slot "setManualExposureTime(float)"
|
|
60
|
+
slot "setManualIsoSensitivity(int)"
|
|
61
|
+
slot "setTorchMode(TorchMode)"
|
|
62
|
+
slot "setWhiteBalanceMode(WhiteBalanceMode)"
|
|
63
|
+
slot "start()"
|
|
64
|
+
slot "stop()"
|
|
65
|
+
slot "zoomTo(float,float)"
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# @!visibility private
|
|
69
|
+
alias_method :_initialize, :initialize
|
|
70
|
+
|
|
71
|
+
# @param parent [QObject]
|
|
72
|
+
# @return [QCamera]
|
|
73
|
+
def initialize(parent = nil)
|
|
74
|
+
_initialize(parent)
|
|
75
|
+
_take_ownership_from_ruby(self)
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module RubyQt6
|
|
4
|
+
module QtMultimedia
|
|
5
|
+
# @see https://doc.qt.io/qt-6/qcameradevice.html
|
|
6
|
+
class QCameraDevice
|
|
7
|
+
# @!parse class Position; end
|
|
8
|
+
rubyqt6_declare_enum_under QCameraDevice, QCameraDevice::Position
|
|
9
|
+
|
|
10
|
+
# @!parse
|
|
11
|
+
QtCore::QVariant.register(
|
|
12
|
+
_qvariant_register_metatype,
|
|
13
|
+
method(:_qvariant_from_value),
|
|
14
|
+
method(:_qvariant_to_value),
|
|
15
|
+
from: self
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
# @!visibility private
|
|
19
|
+
alias_method :_initialize, :initialize
|
|
20
|
+
|
|
21
|
+
# @return [QCameraDevice]
|
|
22
|
+
def initialize
|
|
23
|
+
_initialize
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# @!visibility private
|
|
27
|
+
def ==(other)
|
|
28
|
+
return false unless other.is_a?(self.class)
|
|
29
|
+
self.class._operator_equal(self, other)
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# @!visibility private
|
|
33
|
+
def inspect
|
|
34
|
+
T.inspect_struct(self, id: id.to_s, description: description.to_s)
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|