#include "media/video/capture/video_capture_types.h"
#include "base/logging.h"
+#include "base/strings/stringprintf.h"
#include "media/base/limits.h"
namespace media {
(pixel_format < PIXEL_FORMAT_MAX);
}
+std::string VideoCaptureFormat::ToString() const {
+ return base::StringPrintf("resolution: %s, fps: %f, pixel format: %s",
+ frame_size.ToString().c_str(),
+ frame_rate,
+ PixelFormatToString(pixel_format).c_str());
+}
+
std::string VideoCaptureFormat::PixelFormatToString(VideoPixelFormat format) {
switch (format) {
case PIXEL_FORMAT_UNKNOWN:
return "";
}
-VideoCaptureParams::VideoCaptureParams() : allow_resolution_change(false) {}
-
+VideoCaptureParams::VideoCaptureParams()
+ : resolution_change_policy(RESOLUTION_POLICY_FIXED) {}
} // namespace media