Home
last modified time | relevance | path

Searched refs:VideoFormat (Results 1 – 25 of 63) sorted by relevance

123

/external/chromium_org/third_party/libjingle/source/talk/media/base/
Dvideocapturer_unittest.cc120 EXPECT_EQ(cricket::CS_RUNNING, capturer_.Start(cricket::VideoFormat( in TEST_F()
123 cricket::VideoFormat::FpsToInterval(30), in TEST_F()
137 EXPECT_EQ(cricket::CS_RUNNING, capturer_.Start(cricket::VideoFormat( in TEST_F()
140 cricket::VideoFormat::FpsToInterval(30), in TEST_F()
145 EXPECT_TRUE(capturer_.Restart(cricket::VideoFormat( in TEST_F()
148 cricket::VideoFormat::FpsToInterval(30), in TEST_F()
160 EXPECT_TRUE(capturer_.Restart(cricket::VideoFormat( in TEST_F()
163 cricket::VideoFormat::FpsToInterval(30), in TEST_F()
170 cricket::VideoFormat format(640, 480, in TEST_F()
171 cricket::VideoFormat::FpsToInterval(30), in TEST_F()
[all …]
Dvideocapturer.h146 const std::vector<VideoFormat>* GetSupportedFormats() const;
162 virtual bool GetBestCaptureFormat(const VideoFormat& desired,
163 VideoFormat* best_format);
168 bool StartCapturing(const VideoFormat& capture_format);
181 virtual CaptureState Start(const VideoFormat& capture_format) = 0;
193 const VideoFormat* GetCaptureFormat() const { in GetCaptureFormat()
205 virtual bool Restart(const VideoFormat& capture_format);
235 void ConstrainSupportedFormats(const VideoFormat& max_format);
304 VideoFormat* last_captured_frame_format);
324 void SetCaptureFormat(const VideoFormat* format) { in SetCaptureFormat()
[all …]
Dcapturemanager.cc47 void AddCaptureResolution(const VideoFormat& desired_format);
48 bool RemoveCaptureResolution(const VideoFormat& format);
49 VideoFormat GetHighestFormat(VideoCapturer* video_capturer) const;
60 VideoFormat video_format;
89 const VideoFormat& desired_format) { in AddCaptureResolution()
101 bool VideoCapturerState::RemoveCaptureResolution(const VideoFormat& format) { in RemoveCaptureResolution()
115 VideoFormat VideoCapturerState::GetHighestFormat( in GetHighestFormat()
117 VideoFormat highest_format(0, 0, VideoFormat::FpsToInterval(1), FOURCC_ANY); in GetHighestFormat()
119 VideoFormat default_format(kDefaultCaptureFormat); in GetHighestFormat()
165 const VideoFormat& desired_format) { in StartVideoCapture()
[all …]
Dfakevideocapturer.h57 std::vector<cricket::VideoFormat> formats; in FakeVideoCapturer()
58 formats.push_back(cricket::VideoFormat(1280, 720, in FakeVideoCapturer()
59 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420)); in FakeVideoCapturer()
60 formats.push_back(cricket::VideoFormat(640, 480, in FakeVideoCapturer()
61 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420)); in FakeVideoCapturer()
62 formats.push_back(cricket::VideoFormat(320, 240, in FakeVideoCapturer()
63 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420)); in FakeVideoCapturer()
64 formats.push_back(cricket::VideoFormat(160, 120, in FakeVideoCapturer()
65 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420)); in FakeVideoCapturer()
72 void ResetSupportedFormats(const std::vector<cricket::VideoFormat>& formats) { in ResetSupportedFormats()
[all …]
Dvideocommon_unittest.cc57 EXPECT_EQ(VideoFormat::kMinimumInterval, VideoFormat::FpsToInterval(0)); in TEST()
58 EXPECT_EQ(rtc::kNumNanosecsPerSec / 20, VideoFormat::FpsToInterval(20)); in TEST()
59 EXPECT_EQ(20, VideoFormat::IntervalToFps(rtc::kNumNanosecsPerSec / 20)); in TEST()
60 EXPECT_EQ(0, VideoFormat::IntervalToFps(0)); in TEST()
65 VideoFormat format; in TEST()
73 VideoFormat format; in TEST()
79 format.interval = VideoFormat::FpsToInterval(20); in TEST()
85 format.interval = VideoFormat::FpsToInterval(20); in TEST()
91 VideoFormat format(640, 480, VideoFormat::FpsToInterval(20), FOURCC_I420); in TEST()
92 VideoFormat format2; in TEST()
Dvideocapturer.cc143 const std::vector<VideoFormat>* VideoCapturer::GetSupportedFormats() const { in GetSupportedFormats()
147 bool VideoCapturer::StartCapturing(const VideoFormat& capture_format) { in StartCapturing()
188 rtc::scoped_ptr<VideoFormat> capture_format_when_paused( in Pause()
189 capture_format_ ? new VideoFormat(*capture_format_) : NULL); in Pause()
217 bool VideoCapturer::Restart(const VideoFormat& capture_format) { in Restart()
251 const std::vector<VideoFormat>& formats) { in SetSupportedFormats()
256 bool VideoCapturer::GetBestCaptureFormat(const VideoFormat& format, in GetBestCaptureFormat()
257 VideoFormat* best_format) { in GetBestCaptureFormat()
260 const std::vector<VideoFormat>* supported_formats = GetSupportedFormats(); in GetBestCaptureFormat()
267 std::vector<VideoFormat>::const_iterator best = supported_formats->end(); in GetBestCaptureFormat()
[all …]
Dvideoadapter_unittest.cc63 capture_format_.interval = VideoFormat::FpsToInterval(50); in SetUp()
176 VideoFormat capture_format_;
221 VideoFormat format = capturer_->GetSupportedFormats()->at(0); in TEST_F()
239 VideoFormat request_format = capture_format_; in TEST_F()
256 VideoFormat request_format = capture_format_; in TEST_F()
275 VideoFormat request_format = capture_format_; in TEST_F()
298 VideoFormat request_format = capture_format_; in TEST_F()
314 VideoFormat request_format = capture_format_; in TEST_F()
328 VideoFormat request_format = capture_format_; in TEST_F()
344 VideoFormat request_format = capture_format_; in TEST_F()
[all …]
Dvideoadapter.h47 virtual void SetInputFormat(const VideoFormat& format);
48 void SetOutputFormat(const VideoFormat& format);
53 const VideoFormat& input_format();
56 const VideoFormat& output_format();
89 VideoFormat input_format_;
90 VideoFormat output_format_;
127 virtual void SetInputFormat(const VideoFormat& format);
166 void OnOutputFormatRequest(const VideoFormat& format);
Dvideocommon.h187 struct VideoFormat : VideoFormatPod { struct
191 VideoFormat() { in VideoFormat() argument
195 VideoFormat(int w, int h, int64 interval_ns, uint32 cc) { in VideoFormat() argument
199 explicit VideoFormat(const VideoFormatPod& format) { in VideoFormat() argument
229 bool operator==(const VideoFormat& format) const { argument
234 bool operator!=(const VideoFormat& format) const {
238 bool operator<(const VideoFormat& format) const {
254 bool IsPixelRateLess(const VideoFormat& format) const { in IsPixelRateLess() argument
Dcapturemanager.h71 const VideoFormat& desired_format);
73 const VideoFormat& format);
80 const VideoFormat& previous_format,
81 const VideoFormat& desired_format,
Dcapturemanager_unittest.cc40 {640, 480, cricket::VideoFormat::FpsToInterval(kFps), cricket::FOURCC_I420},
41 {320, 240, cricket::VideoFormat::FpsToInterval(kFps), cricket::FOURCC_I420}
60 std::vector<cricket::VideoFormat> formats; in PopulateSupportedFormats()
62 formats.push_back(cricket::VideoFormat(kCameraFormats[i])); in PopulateSupportedFormats()
68 bool WasRenderedResolution(cricket::VideoFormat format) { in WasRenderedResolution()
89 cricket::VideoFormat format_vga_;
90 cricket::VideoFormat format_qvga_;
104 cricket::VideoFormat())); in TEST_F()
Dvideoadapter.cc180 void VideoAdapter::SetInputFormat(const VideoFormat& format) { in SetInputFormat()
192 void CoordinatedVideoAdapter::SetInputFormat(const VideoFormat& format) { in SetInputFormat()
221 void VideoAdapter::SetOutputFormat(const VideoFormat& format) { in SetOutputFormat()
234 const VideoFormat& VideoAdapter::input_format() { in input_format()
243 const VideoFormat& VideoAdapter::output_format() { in output_format()
273 VideoFormat format(static_cast<int>(in_frame->GetWidth()), in AdaptFrame()
491 void CoordinatedVideoAdapter::OnOutputFormatRequest(const VideoFormat& format) { in OnOutputFormatRequest()
680 VideoFormat new_output = output_format(); in IsMinimumFormat()
681 VideoFormat input = input_format(); in IsMinimumFormat()
701 VideoFormat new_output = output_format(); in AdaptToMinimumFormat()
[all …]
/external/chromium_org/third_party/libjingle/source/talk/app/webrtc/test/
Dfakeperiodicvideocapturer.h42 std::vector<cricket::VideoFormat> formats; in FakePeriodicVideoCapturer()
43 formats.push_back(cricket::VideoFormat(1280, 720, in FakePeriodicVideoCapturer()
44 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420)); in FakePeriodicVideoCapturer()
45 formats.push_back(cricket::VideoFormat(640, 480, in FakePeriodicVideoCapturer()
46 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420)); in FakePeriodicVideoCapturer()
47 formats.push_back(cricket::VideoFormat(640, 360, in FakePeriodicVideoCapturer()
48 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420)); in FakePeriodicVideoCapturer()
49 formats.push_back(cricket::VideoFormat(320, 240, in FakePeriodicVideoCapturer()
50 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420)); in FakePeriodicVideoCapturer()
51 formats.push_back(cricket::VideoFormat(160, 120, in FakePeriodicVideoCapturer()
[all …]
/external/chromium_org/third_party/libjingle/source/talk/app/webrtc/
Dvideosource.cc95 cricket::VideoFormat* format_upper_limit) { in SetUpperLimitFromConstraint()
108 cricket::VideoFormat* format_out) { in FromConstraintsForScreencast()
112 cricket::VideoFormat upper_limit(-1, -1, 0, 0); in FromConstraintsForScreencast()
128 const cricket::VideoFormat& format_in, in NewFormatWithConstraints()
130 cricket::VideoFormat* format_out) { in NewFormatWithConstraints()
148 return (value <= cricket::VideoFormat::IntervalToFps(format_in.interval)); in NewFormatWithConstraints()
160 if (value <= cricket::VideoFormat::IntervalToFps(format_in.interval)) { in NewFormatWithConstraints()
161 format_out->interval = cricket::VideoFormat::FpsToInterval(value); in NewFormatWithConstraints()
199 std::vector<cricket::VideoFormat>* formats) { in FilterFormatsByConstraint()
200 std::vector<cricket::VideoFormat>::iterator format_it = in FilterFormatsByConstraint()
[all …]
Dvideosource_unittest.cc63 std::vector<cricket::VideoFormat> formats; in TestVideoCapturer()
64 formats.push_back(cricket::VideoFormat(1280, 720, in TestVideoCapturer()
65 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420)); in TestVideoCapturer()
66 formats.push_back(cricket::VideoFormat(640, 480, in TestVideoCapturer()
67 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420)); in TestVideoCapturer()
68 formats.push_back(cricket::VideoFormat(640, 400, in TestVideoCapturer()
69 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420)); in TestVideoCapturer()
70 formats.push_back(cricket::VideoFormat(320, 240, in TestVideoCapturer()
71 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420)); in TestVideoCapturer()
72 formats.push_back(cricket::VideoFormat(352, 288, in TestVideoCapturer()
[all …]
Dremotevideocapturer_unittest.cc36 using cricket::VideoFormat;
92 capturer_.StartCapturing(VideoFormat(kTestFormat))); in TEST_F()
94 EXPECT_EQ(VideoFormat(kTestFormat), in TEST_F()
114 VideoFormat desired = VideoFormat(kTestFormat); in TEST_F()
117 VideoFormat expected_format = VideoFormat(kTestFormat); in TEST_F()
119 VideoFormat best_format; in TEST_F()
Dremotevideocapturer.h51 const cricket::VideoFormat& capture_format) OVERRIDE;
55 virtual bool GetBestCaptureFormat(const cricket::VideoFormat& desired,
56 cricket::VideoFormat* best_format) OVERRIDE;
Dremotevideocapturer.cc40 const cricket::VideoFormat& capture_format) { in Start()
76 const cricket::VideoFormat& desired, cricket::VideoFormat* best_format) { in GetBestCaptureFormat()
/external/chromium_org/third_party/libjingle/source/talk/media/webrtc/
Dwebrtcvideocapturer_unittest.cc37 using cricket::VideoFormat;
41 const VideoFormat kDefaultVideoFormat =
42 VideoFormat(640, 400, VideoFormat::FpsToInterval(30), cricket::FOURCC_ANY);
96 cricket::VideoFormat format( in TEST_F()
118 VideoFormat format; in TEST_F()
141 cricket::VideoFormat format; in TEST_F()
Dwebrtcvideocapturer.cc80 VideoFormat* format) { in CapabilityToFormat()
95 format->interval = VideoFormat::FpsToInterval(cap.maxFPS); in CapabilityToFormat()
99 static bool FormatToCapability(const VideoFormat& format, in FormatToCapability()
114 cap->maxFPS = VideoFormat::IntervalToFps(format.interval); in FormatToCapability()
181 std::vector<VideoFormat> supported; in Init()
186 VideoFormat format; in Init()
232 bool WebRtcVideoCapturer::GetBestCaptureFormat(const VideoFormat& desired, in GetBestCaptureFormat()
233 VideoFormat* best_format) { in GetBestCaptureFormat()
252 CaptureState WebRtcVideoCapturer::Start(const VideoFormat& capture_format) { in Start()
/external/chromium_org/third_party/libjingle/source/talk/media/devices/
Dfilevideocapturer_unittest.cc86 cricket::VideoFormat capture_format_;
112 cricket::VideoFormat desired( in TEST_F()
113 3200, 2400, cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_ANY); in TEST_F()
129 cricket::VideoFormat desired = capturer_->GetSupportedFormats()->at(0); in TEST_F()
139 desired.interval = cricket::VideoFormat::kMinimumInterval; in TEST_F()
163 capture_format_.interval = cricket::VideoFormat::FpsToInterval(50); in TEST_F()
Dyuvframescapturer.cc101 VideoFormat format(width_, height_, VideoFormat::kMinimumInterval, in Init()
103 std::vector<VideoFormat> supported; in Init()
108 CaptureState YuvFramesCapturer::Start(const VideoFormat& capture_format) { in Start()
Ddevicemanager.h93 const VideoFormat& max_format) = 0;
160 const VideoFormat& max_format);
183 bool IsInWhitelist(const std::string& key, VideoFormat* video_format) const;
185 VideoFormat* video_format) const;
204 std::map<std::string, VideoFormat> max_formats_;
/external/chromium_org/content/renderer/media/webrtc/
Dwebrtc_video_capturer_adapter.h43 const cricket::VideoFormat& capture_format) OVERRIDE; in NON_EXPORTED_BASE()
47 virtual bool GetBestCaptureFormat(const cricket::VideoFormat& desired, in NON_EXPORTED_BASE()
48 cricket::VideoFormat* best_format) OVERRIDE; in NON_EXPORTED_BASE()
/external/chromium_org/remoting/host/
Dcast_video_capturer_adapter.h48 virtual bool GetBestCaptureFormat(const cricket::VideoFormat& desired,
49 cricket::VideoFormat* best_format) OVERRIDE;
51 const cricket::VideoFormat& capture_format) OVERRIDE;

123