From 1f400130e701977780ba64193ce29315c818d027 Mon Sep 17 00:00:00 2001 From: wanchao-xu Date: Fri, 3 Nov 2023 15:31:52 +0800 Subject: [PATCH] Format the source code. --- .../lib/src/utils/websocket_web.dart | 1 - .../tizen/inc/flutter_video_renderer.h | 3 +-- .../include/base/fixed_size_function.h | 21 +++++++------------ .../libwebrtc/include/base/portable.h | 19 ++++++----------- .../libwebrtc/include/base/refcountedobject.h | 3 +-- .../libwebrtc/include/base/scoped_ref_ptr.h | 18 ++++++---------- .../libwebrtc/include/rtc_audio_frame.h | 10 +++------ .../libwebrtc/include/rtc_data_channel.h | 3 +-- .../libwebrtc/include/rtc_desktop_capturer.h | 5 +---- .../libwebrtc/include/rtc_dtmf_sender.h | 7 ++----- .../libwebrtc/include/rtc_frame_cryptor.h | 3 +-- .../libwebrtc/include/rtc_ice_candidate.h | 4 +--- .../libwebrtc/include/rtc_ice_transport.h | 3 +-- .../libwebrtc/include/rtc_peerconnection.h | 18 ++++++---------- .../include/rtc_peerconnection_factory.h | 12 ++++------- .../libwebrtc/include/rtc_rtp_capabilities.h | 1 - .../libwebrtc/include/rtc_rtp_parameters.h | 1 - .../libwebrtc/include/rtc_rtp_receiver.h | 1 - .../libwebrtc/include/rtc_rtp_sender.h | 1 - .../libwebrtc/include/rtc_rtp_transceiver.h | 3 +-- .../include/rtc_session_description.h | 4 ++-- .../libwebrtc/include/rtc_video_device.h | 6 ++---- .../libwebrtc/include/rtc_video_frame.h | 21 ++++++------------- .../libwebrtc/include/rtc_video_track.h | 3 +-- 24 files changed, 54 insertions(+), 117 deletions(-) diff --git a/packages/flutter_webrtc/example/flutter_webrtc_demo/lib/src/utils/websocket_web.dart b/packages/flutter_webrtc/example/flutter_webrtc_demo/lib/src/utils/websocket_web.dart index e70424daf..ea1856ec7 100644 --- a/packages/flutter_webrtc/example/flutter_webrtc_demo/lib/src/utils/websocket_web.dart +++ b/packages/flutter_webrtc/example/flutter_webrtc_demo/lib/src/utils/websocket_web.dart @@ -2,7 +2,6 @@ import 'dart:html'; class SimpleWebSocket { - SimpleWebSocket(this._url) { _url = _url.replaceAll('https:', 'wss:'); } diff --git a/packages/flutter_webrtc/tizen/inc/flutter_video_renderer.h b/packages/flutter_webrtc/tizen/inc/flutter_video_renderer.h index 28ab45286..7eb598ef3 100644 --- a/packages/flutter_webrtc/tizen/inc/flutter_video_renderer.h +++ b/packages/flutter_webrtc/tizen/inc/flutter_video_renderer.h @@ -19,8 +19,7 @@ class FlutterVideoRenderer FlutterVideoRenderer() = default; ~FlutterVideoRenderer(); - void initialize(TextureRegistrar* registrar, - BinaryMessenger* messenger, + void initialize(TextureRegistrar* registrar, BinaryMessenger* messenger, std::unique_ptr texture, int64_t texture_id); diff --git a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/base/fixed_size_function.h b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/base/fixed_size_function.h index bb2ce3569..1070b4523 100644 --- a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/base/fixed_size_function.h +++ b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/base/fixed_size_function.h @@ -56,29 +56,24 @@ struct fixed_function_vtable } // namespace details -template class fixed_size_function; -template class fixed_size_function { public: // Compile-time information using is_copyable = - std::integral_constant; + std::integral_constant; using is_movable = - std::integral_constant; + std::integral_constant; using result_type = Ret; diff --git a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/base/portable.h b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/base/portable.h index a0d722885..b403af9cd 100644 --- a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/base/portable.h +++ b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/base/portable.h @@ -82,9 +82,7 @@ class string { } }; -inline std::string to_std_string(const string& str) { - return str.std_string(); -} +inline std::string to_std_string(const string& str) { return str.std_string(); } template class identity { @@ -244,8 +242,7 @@ class map { }*/ template - static my_pair* to_array(const std::map& m, - KC convertKey, + static my_pair* to_array(const std::map& m, KC convertKey, VC convertValue) { my_pair* data = new my_pair[m.size()]; my_pair* dp = data; @@ -278,8 +275,7 @@ class map { : m_vec(to_array(m, identity(), identity()), m.size()) {} template - map(const std::map& m, - KC convertKey = identity(), + map(const std::map& m, KC convertKey = identity(), VC convertValue = identity()) : m_vec(to_array(m, convertKey, convertValue), m.size()) {} @@ -320,8 +316,7 @@ class map { const my_pair* get(K2 key, int (*cmp)(K2, const K&)) const { for (size_t i = 0; i < m_vec.size(); ++i) { const my_pair* dp = m_vec.data() + i; - if (!cmp(key, dp->key)) - return dp; + if (!cmp(key, dp->key)) return dp; } return 0; } @@ -428,14 +423,12 @@ class local_ptr { : m_ptr(0), m_destroy(0) {} // copying does not persist value local_ptr& operator=(const local_ptr&) { return *this; } ~local_ptr() { - if (m_ptr) - m_destroy(m_ptr); + if (m_ptr) m_destroy(m_ptr); } const T* get() const { return m_ptr; } T* get() { return m_ptr; } void set(T* ptr, void (*dtor)(T*)) { - if (m_ptr) - m_destroy(m_ptr); + if (m_ptr) m_destroy(m_ptr); m_ptr = ptr; m_destroy = dtor; } diff --git a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/base/refcountedobject.h b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/base/refcountedobject.h index 50feef73f..9beea333f 100644 --- a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/base/refcountedobject.h +++ b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/base/refcountedobject.h @@ -26,8 +26,7 @@ class RefCountedObject : public T { template RefCountedObject(P0&& p0, P1&& p1, Args&&... args) - : T(std::forward(p0), - std::forward(p1), + : T(std::forward(p0), std::forward(p1), std::forward(args)...) {} virtual int AddRef() const { return AtomicOps::Increment(&ref_count_); } diff --git a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/base/scoped_ref_ptr.h b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/base/scoped_ref_ptr.h index 1a134b61b..9f00839cb 100644 --- a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/base/scoped_ref_ptr.h +++ b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/base/scoped_ref_ptr.h @@ -73,19 +73,16 @@ class scoped_refptr { scoped_refptr() : ptr_(NULL) {} scoped_refptr(T* p) : ptr_(p) { - if (ptr_) - ptr_->AddRef(); + if (ptr_) ptr_->AddRef(); } scoped_refptr(const scoped_refptr& r) : ptr_(r.ptr_) { - if (ptr_) - ptr_->AddRef(); + if (ptr_) ptr_->AddRef(); } template scoped_refptr(const scoped_refptr& r) : ptr_(r.get()) { - if (ptr_) - ptr_->AddRef(); + if (ptr_) ptr_->AddRef(); } // Move constructors. @@ -95,8 +92,7 @@ class scoped_refptr { scoped_refptr(scoped_refptr&& r) : ptr_(r.release()) {} ~scoped_refptr() { - if (ptr_) - ptr_->Release(); + if (ptr_) ptr_->Release(); } T* get() const { return ptr_; } @@ -116,10 +112,8 @@ class scoped_refptr { scoped_refptr& operator=(T* p) { // AddRef first so that self assignment should work - if (p) - p->AddRef(); - if (ptr_) - ptr_->Release(); + if (p) p->AddRef(); + if (ptr_) ptr_->Release(); ptr_ = p; return *this; } diff --git a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_audio_frame.h b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_audio_frame.h index 995d60541..3f276a167 100644 --- a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_audio_frame.h +++ b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_audio_frame.h @@ -23,8 +23,7 @@ class AudioFrame { * @param num_channels: the number of audio channels. * @return AudioFrame*: a pointer to the newly created AudioFrame. */ - MEDIA_MANAGER_API static AudioFrame* Create(int id, - uint32_t timestamp, + MEDIA_MANAGER_API static AudioFrame* Create(int id, uint32_t timestamp, const int16_t* data, size_t samples_per_channel, int sample_rate_hz, @@ -45,11 +44,8 @@ class AudioFrame { * @param sample_rate_hz: the sample rate in Hz. * @param num_channels: the number of audio channels. */ - virtual void UpdateFrame(int id, - uint32_t timestamp, - const int16_t* data, - size_t samples_per_channel, - int sample_rate_hz, + virtual void UpdateFrame(int id, uint32_t timestamp, const int16_t* data, + size_t samples_per_channel, int sample_rate_hz, size_t num_channels = 1) = 0; /** diff --git a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_data_channel.h b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_data_channel.h index c386041fb..183d5da6d 100644 --- a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_data_channel.h +++ b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_data_channel.h @@ -74,8 +74,7 @@ class RTCDataChannel : public RefCountInterface { * The data buffer, its size, and a boolean indicating whether the data is * binary are passed as parameters. */ - virtual void Send(const uint8_t* data, - uint32_t size, + virtual void Send(const uint8_t* data, uint32_t size, bool binary = false) = 0; /** diff --git a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_desktop_capturer.h b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_desktop_capturer.h index a11f6cd45..9d2e955ab 100644 --- a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_desktop_capturer.h +++ b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_desktop_capturer.h @@ -63,10 +63,7 @@ class RTCDesktopCapturer : public RefCountInterface { * * @return The current capture state after attempting to start capture. */ - virtual CaptureState Start(uint32_t fps, - uint32_t x, - uint32_t y, - uint32_t w, + virtual CaptureState Start(uint32_t fps, uint32_t x, uint32_t y, uint32_t w, uint32_t h) = 0; /** diff --git a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_dtmf_sender.h b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_dtmf_sender.h index 0a98414ad..7f42cc56b 100644 --- a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_dtmf_sender.h +++ b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_dtmf_sender.h @@ -25,13 +25,10 @@ class RTCDtmfSender : public RefCountInterface { virtual void UnregisterObserver() = 0; - virtual bool InsertDtmf(const string tones, - int duration, + virtual bool InsertDtmf(const string tones, int duration, int inter_tone_gap) = 0; - virtual bool InsertDtmf(const string tones, - int duration, - int inter_tone_gap, + virtual bool InsertDtmf(const string tones, int duration, int inter_tone_gap, int comma_delay) = 0; virtual bool CanInsertDtmf() = 0; diff --git a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_frame_cryptor.h b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_frame_cryptor.h index 534c00811..7e0436cdd 100644 --- a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_frame_cryptor.h +++ b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_frame_cryptor.h @@ -44,8 +44,7 @@ class KeyProvider : public RefCountInterface { virtual vector ExportSharedKey(int key_index) = 0; /// Set the key at the given index. - virtual bool SetKey(const string participant_id, - int index, + virtual bool SetKey(const string participant_id, int index, vector key) = 0; virtual vector RatchetKey(const string participant_id, diff --git a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_ice_candidate.h b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_ice_candidate.h index c60bd6c9c..82da46edb 100644 --- a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_ice_candidate.h +++ b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_ice_candidate.h @@ -8,9 +8,7 @@ namespace libwebrtc { class RTCIceCandidate : public RefCountInterface { public: static LIB_WEBRTC_API scoped_refptr Create( - const string sdp, - const string sdp_mid, - int sdp_mline_index, + const string sdp, const string sdp_mid, int sdp_mline_index, SdpParseError* error); public: diff --git a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_ice_transport.h b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_ice_transport.h index 7da3a9330..b6c1ee5a6 100644 --- a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_ice_transport.h +++ b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_ice_transport.h @@ -66,8 +66,7 @@ class IceTransportFactory { virtual ~IceTransportFactory() = default; virtual scoped_refptr CreateIceTransport( - const std::string& transport_name, - int component, + const std::string& transport_name, int component, IceTransportInit init) = 0; }; diff --git a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_peerconnection.h b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_peerconnection.h index db553a0fe..35ea2ad3e 100644 --- a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_peerconnection.h +++ b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_peerconnection.h @@ -179,8 +179,7 @@ class RTCPeerConnection : public RefCountInterface { const string stream_id) = 0; virtual scoped_refptr CreateDataChannel( - const string label, - RTCDataChannelInit* dataChannelDict) = 0; + const string label, RTCDataChannelInit* dataChannelDict) = 0; virtual void CreateOffer(OnSdpCreateSuccess success, OnSdpCreateFailure failure, @@ -194,13 +193,11 @@ class RTCPeerConnection : public RefCountInterface { virtual void Close() = 0; - virtual void SetLocalDescription(const string sdp, - const string type, + virtual void SetLocalDescription(const string sdp, const string type, OnSetSdpSuccess success, OnSetSdpFailure failure) = 0; - virtual void SetRemoteDescription(const string sdp, - const string type, + virtual void SetRemoteDescription(const string sdp, const string type, OnSetSdpSuccess success, OnSetSdpFailure failure) = 0; @@ -210,8 +207,7 @@ class RTCPeerConnection : public RefCountInterface { virtual void GetRemoteDescription(OnGetSdpSuccess success, OnGetSdpFailure failure) = 0; - virtual void AddCandidate(const string mid, - int mid_mline_index, + virtual void AddCandidate(const string mid, int mid_mline_index, const string candiate) = 0; virtual void RegisterRTCPeerConnectionObserver( @@ -242,15 +238,13 @@ class RTCPeerConnection : public RefCountInterface { scoped_refptr track) = 0; virtual scoped_refptr AddTrack( - scoped_refptr track, - const vector streamIds) = 0; + scoped_refptr track, const vector streamIds) = 0; virtual scoped_refptr AddTransceiver( RTCMediaType media_type) = 0; virtual scoped_refptr AddTransceiver( - RTCMediaType media_type, - scoped_refptr init) = 0; + RTCMediaType media_type, scoped_refptr init) = 0; virtual bool RemoveTrack(scoped_refptr render) = 0; diff --git a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_peerconnection_factory.h b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_peerconnection_factory.h index 33ee6bb87..cb024672c 100644 --- a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_peerconnection_factory.h +++ b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_peerconnection_factory.h @@ -1,10 +1,9 @@ #ifndef LIB_WEBRTC_RTC_PEERCONNECTION_FACTORY_HXX #define LIB_WEBRTC_RTC_PEERCONNECTION_FACTORY_HXX -#include "rtc_types.h" - #include "rtc_audio_source.h" #include "rtc_audio_track.h" +#include "rtc_types.h" #ifdef RTC_DESKTOP_DEVICE #include "rtc_desktop_device.h" #endif @@ -42,8 +41,7 @@ class RTCPeerConnectionFactory : public RefCountInterface { const string audio_source_label) = 0; virtual scoped_refptr CreateVideoSource( - scoped_refptr capturer, - const string video_source_label, + scoped_refptr capturer, const string video_source_label, scoped_refptr constraints) = 0; #ifdef RTC_DESKTOP_DEVICE virtual scoped_refptr CreateDesktopSource( @@ -52,12 +50,10 @@ class RTCPeerConnectionFactory : public RefCountInterface { scoped_refptr constraints) = 0; #endif virtual scoped_refptr CreateAudioTrack( - scoped_refptr source, - const string track_id) = 0; + scoped_refptr source, const string track_id) = 0; virtual scoped_refptr CreateVideoTrack( - scoped_refptr source, - const string track_id) = 0; + scoped_refptr source, const string track_id) = 0; virtual scoped_refptr CreateStream( const string stream_id) = 0; diff --git a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_rtp_capabilities.h b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_rtp_capabilities.h index f9b65308c..39b49765f 100644 --- a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_rtp_capabilities.h +++ b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_rtp_capabilities.h @@ -3,7 +3,6 @@ #include "base/refcount.h" #include "base/scoped_ref_ptr.h" - #include "rtc_rtp_parameters.h" #include "rtc_types.h" diff --git a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_rtp_parameters.h b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_rtp_parameters.h index 7550f22ef..3ef87155d 100644 --- a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_rtp_parameters.h +++ b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_rtp_parameters.h @@ -3,7 +3,6 @@ #include "base/refcount.h" #include "base/scoped_ref_ptr.h" - #include "rtc_types.h" namespace libwebrtc { diff --git a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_rtp_receiver.h b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_rtp_receiver.h index 61f6f7345..a72f2b8a0 100644 --- a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_rtp_receiver.h +++ b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_rtp_receiver.h @@ -3,7 +3,6 @@ #include "base/refcount.h" #include "base/scoped_ref_ptr.h" - #include "rtc_rtp_parameters.h" #include "rtc_types.h" diff --git a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_rtp_sender.h b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_rtp_sender.h index d90af3cfc..9c2f73249 100644 --- a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_rtp_sender.h +++ b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_rtp_sender.h @@ -3,7 +3,6 @@ #include "base/refcount.h" #include "base/scoped_ref_ptr.h" - #include "rtc_rtp_parameters.h" #include "rtc_types.h" diff --git a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_rtp_transceiver.h b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_rtp_transceiver.h index d53f0036a..ecf24f45b 100644 --- a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_rtp_transceiver.h +++ b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_rtp_transceiver.h @@ -13,8 +13,7 @@ namespace libwebrtc { class RTCRtpTransceiverInit : public RefCountInterface { public: LIB_WEBRTC_API static scoped_refptr Create( - RTCRtpTransceiverDirection direction, - const vector stream_ids, + RTCRtpTransceiverDirection direction, const vector stream_ids, const vector> encodings); virtual RTCRtpTransceiverDirection direction() = 0; diff --git a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_session_description.h b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_session_description.h index 4975d9f61..84aa2abbc 100644 --- a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_session_description.h +++ b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_session_description.h @@ -9,8 +9,8 @@ class RTCSessionDescription : public RefCountInterface { public: enum SdpType { kOffer = 0, kPrAnswer, kAnswer }; - static LIB_WEBRTC_API scoped_refptr - Create(const string type, const string sdp, SdpParseError* error); + static LIB_WEBRTC_API scoped_refptr Create( + const string type, const string sdp, SdpParseError* error); public: virtual const string sdp() const = 0; diff --git a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_video_device.h b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_video_device.h index f1c778966..130849767 100644 --- a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_video_device.h +++ b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_video_device.h @@ -20,8 +20,7 @@ class RTCVideoDevice : public RefCountInterface { public: virtual uint32_t NumberOfDevices() = 0; - virtual int32_t GetDeviceName(uint32_t deviceNumber, - char* deviceNameUTF8, + virtual int32_t GetDeviceName(uint32_t deviceNumber, char* deviceNameUTF8, uint32_t deviceNameLength, char* deviceUniqueIdUTF8, uint32_t deviceUniqueIdUTF8Length, @@ -29,8 +28,7 @@ class RTCVideoDevice : public RefCountInterface { uint32_t productUniqueIdUTF8Length = 0) = 0; virtual scoped_refptr Create(const char* name, - uint32_t index, - size_t width, + uint32_t index, size_t width, size_t height, size_t target_fps) = 0; diff --git a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_video_frame.h b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_video_frame.h index cc123f195..a69023f05 100644 --- a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_video_frame.h +++ b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_video_frame.h @@ -17,18 +17,12 @@ class RTCVideoFrame : public RefCountInterface { }; public: - LIB_WEBRTC_API static scoped_refptr - Create(int width, int height, const uint8_t* buffer, int length); + LIB_WEBRTC_API static scoped_refptr Create( + int width, int height, const uint8_t* buffer, int length); LIB_WEBRTC_API static scoped_refptr Create( - int width, - int height, - const uint8_t* data_y, - int stride_y, - const uint8_t* data_u, - int stride_u, - const uint8_t* data_v, - int stride_v); + int width, int height, const uint8_t* data_y, int stride_y, + const uint8_t* data_u, int stride_u, const uint8_t* data_v, int stride_v); virtual scoped_refptr Copy() = 0; @@ -50,11 +44,8 @@ class RTCVideoFrame : public RefCountInterface { virtual int StrideU() const = 0; virtual int StrideV() const = 0; - virtual int ConvertToARGB(Type type, - uint8_t* dst_argb, - int dst_stride_argb, - int dest_width, - int dest_height) = 0; + virtual int ConvertToARGB(Type type, uint8_t* dst_argb, int dst_stride_argb, + int dest_width, int dest_height) = 0; protected: virtual ~RTCVideoFrame() {} diff --git a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_video_track.h b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_video_track.h index 7fe55eb38..46850c586 100644 --- a/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_video_track.h +++ b/packages/flutter_webrtc/tizen/third_party/libwebrtc/include/rtc_video_track.h @@ -1,9 +1,8 @@ #ifndef LIB_WEBRTC_RTC_VIDEO_TRACK_HXX #define LIB_WEBRTC_RTC_VIDEO_TRACK_HXX -#include "rtc_types.h" - #include "rtc_media_track.h" +#include "rtc_types.h" #include "rtc_video_frame.h" #include "rtc_video_renderer.h"