qmediacapturesession.sip 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. // qmediacapturesession.sip generated by MetaSIP
  2. //
  3. // This file is part of the QtMultimedia Python extension module.
  4. //
  5. // Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
  6. //
  7. // This file is part of PyQt6.
  8. //
  9. // This file may be used under the terms of the GNU General Public License
  10. // version 3.0 as published by the Free Software Foundation and appearing in
  11. // the file LICENSE included in the packaging of this file. Please review the
  12. // following information to ensure the GNU General Public License version 3.0
  13. // requirements will be met: http://www.gnu.org/copyleft/gpl.html.
  14. //
  15. // If you do not wish to use this file under the terms of the GPL version 3.0
  16. // then you may purchase a commercial license. For more information contact
  17. // info@riverbankcomputing.com.
  18. //
  19. // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
  20. // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  21. %If (Qt_6_2_0 -)
  22. class QMediaCaptureSession : public QObject
  23. {
  24. %TypeHeaderCode
  25. #include <qmediacapturesession.h>
  26. %End
  27. public:
  28. explicit QMediaCaptureSession(QObject *parent /TransferThis/ = 0);
  29. virtual ~QMediaCaptureSession();
  30. QAudioInput *audioInput() const;
  31. void setAudioInput(QAudioInput *device);
  32. QCamera *camera() const;
  33. void setCamera(QCamera *camera);
  34. QImageCapture *imageCapture();
  35. void setImageCapture(QImageCapture *imageCapture);
  36. QMediaRecorder *recorder();
  37. void setRecorder(QMediaRecorder *recorder);
  38. void setVideoOutput(QObject *output);
  39. QObject *videoOutput() const;
  40. void setVideoSink(QVideoSink *sink);
  41. QVideoSink *videoSink() const;
  42. void setAudioOutput(QAudioOutput *output);
  43. QAudioOutput *audioOutput() const;
  44. signals:
  45. void audioInputChanged();
  46. void cameraChanged();
  47. void imageCaptureChanged();
  48. void recorderChanged();
  49. void videoOutputChanged();
  50. void audioOutputChanged();
  51. public:
  52. %If (Qt_6_5_0 -)
  53. QScreenCapture *screenCapture();
  54. %End
  55. %If (Qt_6_5_0 -)
  56. void setScreenCapture(QScreenCapture *screenCapture);
  57. %End
  58. signals:
  59. %If (Qt_6_5_0 -)
  60. void screenCaptureChanged();
  61. %End
  62. public:
  63. %If (Qt_6_6_0 -)
  64. QWindowCapture *windowCapture();
  65. %End
  66. %If (Qt_6_6_0 -)
  67. void setWindowCapture(QWindowCapture *windowCapture);
  68. %End
  69. signals:
  70. %If (Qt_6_6_0 -)
  71. void windowCaptureChanged();
  72. %End
  73. public:
  74. %If (Qt_6_8_0 -)
  75. QAudioBufferInput *audioBufferInput() const;
  76. %End
  77. %If (Qt_6_8_0 -)
  78. void setAudioBufferInput(QAudioBufferInput *input);
  79. %End
  80. %If (Qt_6_8_0 -)
  81. QVideoFrameInput *videoFrameInput() const;
  82. %End
  83. %If (Qt_6_8_0 -)
  84. void setVideoFrameInput(QVideoFrameInput *input);
  85. %End
  86. signals:
  87. %If (Qt_6_8_0 -)
  88. void audioBufferInputChanged();
  89. %End
  90. %If (Qt_6_8_0 -)
  91. void videoFrameInputChanged();
  92. %End
  93. };
  94. %End