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

Unified Diff: media/video/capture/screen/differ_block.h

Issue 16252006: Refactor BlockDifference() to use MediaInitializer(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix android. Cleanup checks. Created 7 years, 6 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/media.gyp ('k') | media/video/capture/screen/differ_block.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/capture/screen/differ_block.h
diff --git a/media/video/capture/screen/differ_block.h b/media/video/capture/screen/differ_block.h
index 8b211e2e65d2d887fb22ee51e6b9fca022375213..d3c5d33b362e5696f356ba28a1afa3355b10f9fa 100644
--- a/media/video/capture/screen/differ_block.h
+++ b/media/video/capture/screen/differ_block.h
@@ -10,12 +10,19 @@
namespace media {
-// Size (in pixels) of each square block used for diffing. This must be a
-// multiple of sizeof(uint64)/8.
-const int kBlockSize = 32;
-
-// Format: BGRA 32 bit.
-const int kBytesPerPixel = 4;
+enum {
+ // Size (in pixels) of each square block used for diffing. This must be a
+ // multiple of sizeof(uint64)/8.
+ kBlockSize = 32,
+
+ // Format: BGRA 32 bit.
+ kBytesPerPixel = 4,
+};
+
+// Selects the optimal CPU specific BlockDifference() method at runtime. Must
+// be called prior to using BlockDifference. Called during media library init;
+// most users should not need to call this function.
+MEDIA_EXPORT void InitializeCPUSpecificBlockDifference();
// Low level functions to compare 2 blocks of pixels. Zero means the blocks
// are identical. One - the blocks are different.
« no previous file with comments | « media/media.gyp ('k') | media/video/capture/screen/differ_block.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698