/external/webrtc/talk/media/base/ |
D | videocapturer_unittest.cc | 99 EXPECT_EQ(cricket::CS_RUNNING, capturer_.Start(cricket::VideoFormat( in TEST_F() 102 cricket::VideoFormat::FpsToInterval(30), in TEST_F() 116 EXPECT_EQ(cricket::CS_RUNNING, capturer_.Start(cricket::VideoFormat( in TEST_F() 119 cricket::VideoFormat::FpsToInterval(30), in TEST_F() 124 EXPECT_TRUE(capturer_.Restart(cricket::VideoFormat( in TEST_F() 127 cricket::VideoFormat::FpsToInterval(30), in TEST_F() 139 EXPECT_TRUE(capturer_.Restart(cricket::VideoFormat( in TEST_F() 142 cricket::VideoFormat::FpsToInterval(30), in TEST_F() 149 cricket::VideoFormat format(640, 480, in TEST_F() 150 cricket::VideoFormat::FpsToInterval(30), in TEST_F() [all …]
|
D | videocapturer.h | 145 const std::vector<VideoFormat>* GetSupportedFormats() const; 161 virtual bool GetBestCaptureFormat(const VideoFormat& desired, 162 VideoFormat* best_format); 167 bool StartCapturing(const VideoFormat& capture_format); 180 virtual CaptureState Start(const VideoFormat& capture_format) = 0; 192 const VideoFormat* GetCaptureFormat() const { in GetCaptureFormat() 204 virtual bool Restart(const VideoFormat& capture_format); 233 void ConstrainSupportedFormats(const VideoFormat& max_format); 287 VideoFormat* last_captured_frame_format); 307 void SetCaptureFormat(const VideoFormat* format) { in SetCaptureFormat() [all …]
|
D | capturemanager.cc | 47 void AddCaptureResolution(const VideoFormat& desired_format); 48 bool RemoveCaptureResolution(const VideoFormat& format); 49 VideoFormat GetHighestFormat(VideoCapturer* video_capturer) const; 69 VideoFormat video_format; 100 const VideoFormat& desired_format) { in AddCaptureResolution() 113 bool VideoCapturerState::RemoveCaptureResolution(const VideoFormat& format) { in RemoveCaptureResolution() 128 VideoFormat VideoCapturerState::GetHighestFormat( in GetHighestFormat() 131 VideoFormat highest_format(0, 0, VideoFormat::FpsToInterval(1), FOURCC_ANY); in GetHighestFormat() 133 VideoFormat default_format(kDefaultCaptureFormat); in GetHighestFormat() 184 const VideoFormat& desired_format) { in StartVideoCapture() [all …]
|
D | fakevideocapturer.h | 58 std::vector<cricket::VideoFormat> formats; in FakeVideoCapturer() 59 formats.push_back(cricket::VideoFormat(1280, 720, in FakeVideoCapturer() 60 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420)); in FakeVideoCapturer() 61 formats.push_back(cricket::VideoFormat(640, 480, in FakeVideoCapturer() 62 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420)); in FakeVideoCapturer() 63 formats.push_back(cricket::VideoFormat(320, 240, in FakeVideoCapturer() 64 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420)); in FakeVideoCapturer() 65 formats.push_back(cricket::VideoFormat(160, 120, in FakeVideoCapturer() 66 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420)); in FakeVideoCapturer() 67 formats.push_back(cricket::VideoFormat(1280, 720, in FakeVideoCapturer() [all …]
|
D | videoadapter_unittest.cc | 60 capture_format_.interval = VideoFormat::FpsToInterval(50); in SetUp() 99 const VideoFormat adapted_format = in OnFrameCaptured() 130 VideoFormat adapted_format_; 155 VideoFormat capture_format_; 200 VideoFormat format = capturer_->GetSupportedFormats()->at(0); in TEST_F() 218 VideoFormat request_format = capture_format_; in TEST_F() 235 VideoFormat request_format = capture_format_; in TEST_F() 254 VideoFormat request_format = capture_format_; in TEST_F() 277 VideoFormat adapted_format = adapter_->AdaptFrameResolution( in TEST_F() 293 const VideoFormat adapted_format = adapter_->AdaptFrameResolution( in TEST_F() [all …]
|
D | videocapturer.cc | 139 const std::vector<VideoFormat>* VideoCapturer::GetSupportedFormats() const { in GetSupportedFormats() 143 bool VideoCapturer::StartCapturing(const VideoFormat& capture_format) { in StartCapturing() 184 rtc::scoped_ptr<VideoFormat> capture_format_when_paused( in Pause() 185 capture_format_ ? new VideoFormat(*capture_format_) : NULL); in Pause() 213 bool VideoCapturer::Restart(const VideoFormat& capture_format) { in Restart() 257 const std::vector<VideoFormat>& formats) { in SetSupportedFormats() 262 bool VideoCapturer::GetBestCaptureFormat(const VideoFormat& format, in GetBestCaptureFormat() 263 VideoFormat* best_format) { in GetBestCaptureFormat() 266 const std::vector<VideoFormat>* supported_formats = GetSupportedFormats(); in GetBestCaptureFormat() 273 std::vector<VideoFormat>::const_iterator best = supported_formats->end(); in GetBestCaptureFormat() [all …]
|
D | videoadapter.h | 49 virtual void SetInputFormat(const VideoFormat& format); 50 void SetOutputFormat(const VideoFormat& format); 55 const VideoFormat& input_format(); 59 const VideoFormat& output_format(); 63 VideoFormat AdaptFrameResolution(int in_width, int in_height); 81 VideoFormat input_format_; 82 VideoFormat output_format_; 116 virtual void SetInputFormat(const VideoFormat& format); 155 void OnOutputFormatRequest(const VideoFormat& format);
|
D | videocommon_unittest.cc | 57 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()
|
D | videocommon.h | 192 struct VideoFormat : VideoFormatPod { struct 196 VideoFormat() { in VideoFormat() function 200 VideoFormat(int w, int h, int64_t interval_ns, uint32_t cc) { in VideoFormat() function 204 explicit VideoFormat(const VideoFormatPod& format) { in VideoFormat() argument 234 bool operator==(const VideoFormat& format) const { argument 239 bool operator!=(const VideoFormat& format) const { 243 bool operator<(const VideoFormat& format) const { 259 bool IsPixelRateLess(const VideoFormat& format) const { in IsPixelRateLess() argument
|
D | capturemanager_unittest.cc | 40 {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() 67 bool WasRenderedResolution(cricket::VideoFormat format) { in WasRenderedResolution() 87 cricket::VideoFormat format_vga_; 88 cricket::VideoFormat format_qvga_; 100 cricket::VideoFormat())); in TEST_F()
|
D | videoadapter.cc | 183 void VideoAdapter::SetInputFormat(const VideoFormat& format) { in SetInputFormat() 195 void CoordinatedVideoAdapter::SetInputFormat(const VideoFormat& format) { in SetInputFormat() 224 void VideoAdapter::SetOutputFormat(const VideoFormat& format) { in SetOutputFormat() 237 const VideoFormat& VideoAdapter::input_format() { in input_format() 246 const VideoFormat& VideoAdapter::output_format() { in output_format() 260 VideoFormat VideoAdapter::AdaptFrameResolution(int in_width, int in_height) { in AdaptFrameResolution() 264 SetInputFormat(VideoFormat( in AdaptFrameResolution() 301 return VideoFormat(); // Drop frame. in AdaptFrameResolution() 416 void CoordinatedVideoAdapter::OnOutputFormatRequest(const VideoFormat& format) { in OnOutputFormatRequest() 605 VideoFormat new_output = output_format(); in IsMinimumFormat() [all …]
|
D | capturemanager.h | 69 const VideoFormat& desired_format); 71 const VideoFormat& format); 78 const VideoFormat& previous_format, 79 const VideoFormat& desired_format,
|
/external/webrtc/talk/app/webrtc/test/ |
D | fakeperiodicvideocapturer.h | 42 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/webrtc/talk/app/webrtc/ |
D | videosource_unittest.cc | 63 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 …]
|
D | videosource.cc | 96 cricket::VideoFormat* format_upper_limit) { in SetUpperLimitFromConstraint() 109 cricket::VideoFormat* format_out) { in FromConstraintsForScreencast() 113 cricket::VideoFormat upper_limit(-1, -1, 0, 0); in FromConstraintsForScreencast() 129 const cricket::VideoFormat& format_in, in NewFormatWithConstraints() 131 cricket::VideoFormat* format_out) { in NewFormatWithConstraints() 149 return (value <= cricket::VideoFormat::IntervalToFps(format_in.interval)); in NewFormatWithConstraints() 161 if (value <= cricket::VideoFormat::IntervalToFps(format_in.interval)) in NewFormatWithConstraints() 162 format_out->interval = cricket::VideoFormat::FpsToInterval(value); in NewFormatWithConstraints() 194 std::vector<cricket::VideoFormat>* formats) { in FilterFormatsByConstraint() 195 std::vector<cricket::VideoFormat>::iterator format_it = in FilterFormatsByConstraint() [all …]
|
D | remotevideocapturer_unittest.cc | 36 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()
|
D | androidvideocapturer.cc | 146 std::vector<cricket::VideoFormat> formats; in AndroidVideoCapturer() 152 cricket::VideoFormat format( in AndroidVideoCapturer() 155 cricket::VideoFormat::FpsToInterval(json_value["framerate"].asInt()), in AndroidVideoCapturer() 169 const cricket::VideoFormat& capture_format) { in Start() 172 const int fps = cricket::VideoFormat::IntervalToFps(capture_format.interval); in Start() 236 const cricket::VideoFormat& current = video_adapter()->output_format(); in OnOutputFormatRequest() 237 cricket::VideoFormat format( in OnOutputFormatRequest() 238 width, height, cricket::VideoFormat::FpsToInterval(fps), current.fourcc); in OnOutputFormatRequest() 243 const cricket::VideoFormat& desired, in GetBestCaptureFormat() 244 cricket::VideoFormat* best_format) { in GetBestCaptureFormat()
|
D | remotevideocapturer.h | 51 const cricket::VideoFormat& capture_format) override; 55 bool GetBestCaptureFormat(const cricket::VideoFormat& desired, 56 cricket::VideoFormat* best_format) override;
|
/external/webrtc/talk/media/webrtc/ |
D | webrtcvideocapturer_unittest.cc | 39 using cricket::VideoFormat; 43 const VideoFormat kDefaultVideoFormat = 44 VideoFormat(640, 400, VideoFormat::FpsToInterval(30), cricket::FOURCC_ANY); 98 cricket::VideoFormat format( in TEST_F() 121 VideoFormat format; in TEST_F() 144 cricket::VideoFormat format; in TEST_F()
|
D | webrtcvideocapturer.cc | 85 VideoFormat* format) { in CapabilityToFormat() 100 format->interval = VideoFormat::FpsToInterval(cap.maxFPS); in CapabilityToFormat() 104 static bool FormatToCapability(const VideoFormat& format, in FormatToCapability() 119 cap->maxFPS = VideoFormat::IntervalToFps(format.interval); in FormatToCapability() 191 std::vector<VideoFormat> supported; in Init() 196 VideoFormat format; in Init() 244 bool WebRtcVideoCapturer::GetBestCaptureFormat(const VideoFormat& desired, in GetBestCaptureFormat() 245 VideoFormat* best_format) { in GetBestCaptureFormat() 282 CaptureState WebRtcVideoCapturer::Start(const VideoFormat& capture_format) { in Start()
|
/external/webrtc/talk/session/media/ |
D | channelmanager.h | 140 std::vector<cricket::VideoFormat> GetSupportedFormats( 148 const VideoFormat& video_format); 153 const VideoFormat& video_format); 155 const VideoFormat& previous_format, 156 const VideoFormat& desired_format, 214 std::vector<cricket::VideoFormat>* out_formats) const;
|
/external/webrtc/talk/media/devices/ |
D | filevideocapturer_unittest.cc | 86 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()
|
D | devicemanager.h | 93 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_;
|
D | yuvframescapturer.cc | 128 VideoFormat format(width_, height_, VideoFormat::kMinimumInterval, in Init() 130 std::vector<VideoFormat> supported; in Init() 135 CaptureState YuvFramesCapturer::Start(const VideoFormat& capture_format) { in Start()
|
/external/v4l2_codec2/include/ |
D | C2VDAComponent.h | 170 struct VideoFormat { struct 176 VideoFormat() {} in VideoFormat() function 177 VideoFormat(HalPixelFormat pixelFormat, uint32_t minNumBuffers, media::Size codedSize, 198 void onOutputFormatChanged(std::unique_ptr<VideoFormat> format); 268 VideoFormat mOutputFormat; 271 std::unique_ptr<VideoFormat> mPendingOutputFormat;
|