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

Unified Diff: webrtc/media/base/videocommon.h

Issue 1934503002: Delete unused video capture code for cropping, non-square pixels, and ARGB. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Delete test case VideoCapturerTest.ScreencastScaledSuperLarge. Created 4 years, 7 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 | « webrtc/media/base/videocapturer_unittest.cc ('k') | webrtc/media/base/videocommon.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/base/videocommon.h
diff --git a/webrtc/media/base/videocommon.h b/webrtc/media/base/videocommon.h
index d8d7f9cdd387f03672a821d61a243d5866ebb281..757100b07d4436f42aac442dbcfd24ec3dc324e3 100644
--- a/webrtc/media/base/videocommon.h
+++ b/webrtc/media/base/videocommon.h
@@ -135,31 +135,6 @@ inline std::string GetFourccName(uint32_t fourcc) {
return name;
}
-// Computes a scale less to fit in max_pixels while maintaining aspect ratio.
-void ComputeScaleMaxPixels(int frame_width, int frame_height, int max_pixels,
- int* scaled_width, int* scaled_height);
-
-// For low fps, max pixels limit is set to Retina MacBookPro 15" resolution of
-// 2880 x 1800 as of 4/18/2013.
-// For high fps, maximum pixels limit is set based on common 24" monitor
-// resolution of 2048 x 1280 as of 6/13/2013. The Retina resolution is
-// therefore reduced to 1440 x 900.
-void ComputeScale(int frame_width, int frame_height, int fps,
- int* scaled_width, int* scaled_height);
-
-// Compute the frame size that conversion should crop to based on aspect ratio.
-// Ensures size is multiple of 2 due to I420 and conversion limitations.
-void ComputeCrop(int cropped_format_width, int cropped_format_height,
- int frame_width, int frame_height,
- int pixel_width, int pixel_height,
- int rotation,
- int* cropped_width, int* cropped_height);
-
-// Compute the frame size that makes pixels square pixel aspect ratio.
-void ComputeScaleToSquarePixels(int in_width, int in_height,
- int pixel_width, int pixel_height,
- int* scaled_width, int* scaled_height);
-
//////////////////////////////////////////////////////////////////////////////
// Definition of VideoFormat.
//////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « webrtc/media/base/videocapturer_unittest.cc ('k') | webrtc/media/base/videocommon.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698