Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Unified Diff: media/video/capture/video_capture_types.h

Issue 897483002: Refactored pixel format resize operations in media/video/capture into a function called VideoCaptu… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added checks for unsupported pixel formats. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/video/capture/video_capture_device_unittest.cc ('k') | media/video/capture/video_capture_types.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/capture/video_capture_types.h
diff --git a/media/video/capture/video_capture_types.h b/media/video/capture/video_capture_types.h
index f8e8cab9ebaa4ed48aee99fd319333249d8a2354..3869876260abaf77a68b428a82d45ae478ee69e0 100644
--- a/media/video/capture/video_capture_types.h
+++ b/media/video/capture/video_capture_types.h
@@ -67,6 +67,10 @@ class MEDIA_EXPORT VideoCaptureFormat {
std::string ToString() const;
static std::string PixelFormatToString(VideoPixelFormat format);
+ // Returns the required buffer size to hold an image of a given
+ // VideoCaptureFormat with no padding and tightly packed.
+ size_t ImageAllocationSize() const;
+
// Checks that all values are in the expected range. All limits are specified
// in media::Limits.
bool IsValid() const;
« no previous file with comments | « media/video/capture/video_capture_device_unittest.cc ('k') | media/video/capture/video_capture_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698