diff --git a/mediapipe/docs/cycles.md b/mediapipe/docs/cycles.md index ab5cfc184..5b43e0e8d 100644 --- a/mediapipe/docs/cycles.md +++ b/mediapipe/docs/cycles.md @@ -61,7 +61,7 @@ ordering and ignores packet timestamps, which will eliminate this inconvenience. By default, MediaPipe calls the `Close()` method of a non-source calculator when all of its input streams are done. In the example graph, we want to stop the adder node as soon as the integer source is done. This is accomplished by -configuring the adder node with an alternative input stream hander, +configuring the adder node with an alternative input stream handler, `EarlyCloseInputStreamHandler`. ## Relevant Source Code diff --git a/mediapipe/docs/hello_world_android.md b/mediapipe/docs/hello_world_android.md index 5fc12e5df..35f628349 100644 --- a/mediapipe/docs/hello_world_android.md +++ b/mediapipe/docs/hello_world_android.md @@ -643,7 +643,7 @@ Initialize the asset manager in `onCreate(Bundle)` before initializing `eglManager`: ``` -// Initilize asset manager so that MediaPipe native libraries can access the app assets, e.g., +// Initialize asset manager so that MediaPipe native libraries can access the app assets, e.g., // binary graphs. AndroidAssetUtil.initializeNativeAssetManager(this); ``` diff --git a/mediapipe/docs/troubleshooting.md b/mediapipe/docs/troubleshooting.md index 62ef8c6c3..e407f6198 100644 --- a/mediapipe/docs/troubleshooting.md +++ b/mediapipe/docs/troubleshooting.md @@ -41,7 +41,7 @@ When the library for a calculator is linked into an application binary, the calculator is automatically registered by name through the [`REGISTER_CALCULATOR`] macro using the [`registration.h`] library. Note that [`REGISTER_CALCULATOR`] can register a calculator with a namespace prefix, -identical to its C++ namespace. In this case, the calcultor graph must also use +identical to its C++ namespace. In this case, the calculator graph must also use the same namespace prefix. ## Out Of Memory error diff --git a/mediapipe/examples/android/src/java/com/google/mediapipe/apps/edgedetectiongpu/MainActivity.java b/mediapipe/examples/android/src/java/com/google/mediapipe/apps/edgedetectiongpu/MainActivity.java index a0623d420..9c45cbd39 100644 --- a/mediapipe/examples/android/src/java/com/google/mediapipe/apps/edgedetectiongpu/MainActivity.java +++ b/mediapipe/examples/android/src/java/com/google/mediapipe/apps/edgedetectiongpu/MainActivity.java @@ -75,7 +75,7 @@ public class MainActivity extends AppCompatActivity { previewDisplayView = new SurfaceView(this); setupPreviewDisplayView(); - // Initilize asset manager so that MediaPipe native libraries can access the app assets, e.g., + // Initialize asset manager so that MediaPipe native libraries can access the app assets, e.g., // binary graphs. AndroidAssetUtil.initializeNativeAssetManager(this); diff --git a/mediapipe/examples/android/src/java/com/google/mediapipe/apps/facedetectioncpu/MainActivity.java b/mediapipe/examples/android/src/java/com/google/mediapipe/apps/facedetectioncpu/MainActivity.java index 15511dcd4..05ef0e756 100644 --- a/mediapipe/examples/android/src/java/com/google/mediapipe/apps/facedetectioncpu/MainActivity.java +++ b/mediapipe/examples/android/src/java/com/google/mediapipe/apps/facedetectioncpu/MainActivity.java @@ -76,7 +76,7 @@ public class MainActivity extends AppCompatActivity { previewDisplayView = new SurfaceView(this); setupPreviewDisplayView(); - // Initilize asset manager so that MediaPipe native libraries can access the app assets, e.g., + // Initialize asset manager so that MediaPipe native libraries can access the app assets, e.g., // binary graphs. AndroidAssetUtil.initializeNativeAssetManager(this); diff --git a/mediapipe/examples/android/src/java/com/google/mediapipe/apps/facedetectiongpu/MainActivity.java b/mediapipe/examples/android/src/java/com/google/mediapipe/apps/facedetectiongpu/MainActivity.java index 9ee86d662..91e533455 100644 --- a/mediapipe/examples/android/src/java/com/google/mediapipe/apps/facedetectiongpu/MainActivity.java +++ b/mediapipe/examples/android/src/java/com/google/mediapipe/apps/facedetectiongpu/MainActivity.java @@ -76,7 +76,7 @@ public class MainActivity extends AppCompatActivity { previewDisplayView = new SurfaceView(this); setupPreviewDisplayView(); - // Initilize asset manager so that MediaPipe native libraries can access the app assets, e.g., + // Initialize asset manager so that MediaPipe native libraries can access the app assets, e.g., // binary graphs. AndroidAssetUtil.initializeNativeAssetManager(this); diff --git a/mediapipe/examples/android/src/java/com/google/mediapipe/apps/hairsegmentationgpu/MainActivity.java b/mediapipe/examples/android/src/java/com/google/mediapipe/apps/hairsegmentationgpu/MainActivity.java index a7c80be4e..16022d9d2 100644 --- a/mediapipe/examples/android/src/java/com/google/mediapipe/apps/hairsegmentationgpu/MainActivity.java +++ b/mediapipe/examples/android/src/java/com/google/mediapipe/apps/hairsegmentationgpu/MainActivity.java @@ -76,7 +76,7 @@ public class MainActivity extends AppCompatActivity { previewDisplayView = new SurfaceView(this); setupPreviewDisplayView(); - // Initilize asset manager so that MediaPipe native libraries can access the app assets, e.g., + // Initialize asset manager so that MediaPipe native libraries can access the app assets, e.g., // binary graphs. AndroidAssetUtil.initializeNativeAssetManager(this); diff --git a/mediapipe/examples/android/src/java/com/google/mediapipe/apps/handdetectiongpu/MainActivity.java b/mediapipe/examples/android/src/java/com/google/mediapipe/apps/handdetectiongpu/MainActivity.java index 9fe2b097e..cc95bbbfb 100644 --- a/mediapipe/examples/android/src/java/com/google/mediapipe/apps/handdetectiongpu/MainActivity.java +++ b/mediapipe/examples/android/src/java/com/google/mediapipe/apps/handdetectiongpu/MainActivity.java @@ -76,7 +76,7 @@ public class MainActivity extends AppCompatActivity { previewDisplayView = new SurfaceView(this); setupPreviewDisplayView(); - // Initilize asset manager so that MediaPipe native libraries can access the app assets, e.g., + // Initialize asset manager so that MediaPipe native libraries can access the app assets, e.g., // binary graphs. AndroidAssetUtil.initializeNativeAssetManager(this); diff --git a/mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu/MainActivity.java b/mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu/MainActivity.java index ea694b302..5e69f62e3 100644 --- a/mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu/MainActivity.java +++ b/mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu/MainActivity.java @@ -76,7 +76,7 @@ public class MainActivity extends AppCompatActivity { previewDisplayView = new SurfaceView(this); setupPreviewDisplayView(); - // Initilize asset manager so that MediaPipe native libraries can access the app assets, e.g., + // Initialize asset manager so that MediaPipe native libraries can access the app assets, e.g., // binary graphs. AndroidAssetUtil.initializeNativeAssetManager(this); diff --git a/mediapipe/examples/android/src/java/com/google/mediapipe/apps/objectdetectioncpu/MainActivity.java b/mediapipe/examples/android/src/java/com/google/mediapipe/apps/objectdetectioncpu/MainActivity.java index 9a113c9fd..c6bdb8d58 100644 --- a/mediapipe/examples/android/src/java/com/google/mediapipe/apps/objectdetectioncpu/MainActivity.java +++ b/mediapipe/examples/android/src/java/com/google/mediapipe/apps/objectdetectioncpu/MainActivity.java @@ -76,7 +76,7 @@ public class MainActivity extends AppCompatActivity { previewDisplayView = new SurfaceView(this); setupPreviewDisplayView(); - // Initilize asset manager so that MediaPipe native libraries can access the app assets, e.g., + // Initialize asset manager so that MediaPipe native libraries can access the app assets, e.g., // binary graphs. AndroidAssetUtil.initializeNativeAssetManager(this); diff --git a/mediapipe/examples/android/src/java/com/google/mediapipe/apps/objectdetectiongpu/MainActivity.java b/mediapipe/examples/android/src/java/com/google/mediapipe/apps/objectdetectiongpu/MainActivity.java index 8983e321a..c436ef7f1 100644 --- a/mediapipe/examples/android/src/java/com/google/mediapipe/apps/objectdetectiongpu/MainActivity.java +++ b/mediapipe/examples/android/src/java/com/google/mediapipe/apps/objectdetectiongpu/MainActivity.java @@ -76,7 +76,7 @@ public class MainActivity extends AppCompatActivity { previewDisplayView = new SurfaceView(this); setupPreviewDisplayView(); - // Initilize asset manager so that MediaPipe native libraries can access the app assets, e.g., + // Initialize asset manager so that MediaPipe native libraries can access the app assets, e.g., // binary graphs. AndroidAssetUtil.initializeNativeAssetManager(this); diff --git a/mediapipe/framework/graph_validation_test.cc b/mediapipe/framework/graph_validation_test.cc index 403385523..c3ffc8314 100644 --- a/mediapipe/framework/graph_validation_test.cc +++ b/mediapipe/framework/graph_validation_test.cc @@ -32,7 +32,7 @@ namespace mediapipe { namespace { // Shows validation success for a graph and a subgraph. -TEST(ValidatedGraphConfigTest, InitilizeGraphFromProtos) { +TEST(ValidatedGraphConfigTest, InitializeGraphFromProtos) { auto config_1 = ParseTextProtoOrDie(R"( type: "PassThroughGraph" input_stream: "INPUT:stream_1" @@ -102,7 +102,7 @@ TEST(ValidatedGraphConfigTest, InitilizeGraphFromProtos) { } // Shows validation failure due to an unregistered subgraph. -TEST(ValidatedGraphConfigTest, InitilizeGraphFromLinker) { +TEST(ValidatedGraphConfigTest, InitializeGraphFromLinker) { EXPECT_FALSE(SubgraphRegistry::IsRegistered("DubQuadTestSubgraph")); ValidatedGraphConfig builder_1; ::mediapipe::Status status_1 = @@ -114,7 +114,7 @@ TEST(ValidatedGraphConfigTest, InitilizeGraphFromLinker) { } // Shows validation success for a graph and a template subgraph. -TEST(ValidatedGraphConfigTest, InitilizeTemplateFromProtos) { +TEST(ValidatedGraphConfigTest, InitializeTemplateFromProtos) { mediapipe::tool::TemplateParser::Parser parser; CalculatorGraphTemplate config_1; CHECK(parser.ParseFromString(R"( diff --git a/mediapipe/framework/profiler/graph_profiler.h b/mediapipe/framework/profiler/graph_profiler.h index a94b894dc..49a82f827 100644 --- a/mediapipe/framework/profiler/graph_profiler.h +++ b/mediapipe/framework/profiler/graph_profiler.h @@ -362,7 +362,7 @@ class GlContextProfilerStub { // Not copyable or movable. GlContextProfilerStub(const GlContextProfilerStub&) = delete; GlContextProfilerStub& operator=(const GlContextProfilerStub&) = delete; - bool Initialze() { return false; } + bool Initialize() { return false; } void MarkTimestamp(int node_id, Timestamp input_timestamp, bool is_finish) {} void LogAllTimestamps() {} }; diff --git a/mediapipe/framework/profiler/graph_profiler_stub.h b/mediapipe/framework/profiler/graph_profiler_stub.h index eca1b0dba..afaf533e8 100644 --- a/mediapipe/framework/profiler/graph_profiler_stub.h +++ b/mediapipe/framework/profiler/graph_profiler_stub.h @@ -111,7 +111,7 @@ class GlContextProfilerStub { // Not copyable or movable. GlContextProfilerStub(const GlContextProfilerStub&) = delete; GlContextProfilerStub& operator=(const GlContextProfilerStub&) = delete; - bool Initialze() { return false; } + bool Initialize() { return false; } void MarkTimestamp(int node_id, Timestamp input_timestamp, bool is_finish) {} void LogAllTimestamps() {} }; diff --git a/mediapipe/java/com/google/mediapipe/components/ExternalTextureConverter.java b/mediapipe/java/com/google/mediapipe/components/ExternalTextureConverter.java index 3dfc9cb10..122f598ea 100644 --- a/mediapipe/java/com/google/mediapipe/components/ExternalTextureConverter.java +++ b/mediapipe/java/com/google/mediapipe/components/ExternalTextureConverter.java @@ -88,7 +88,7 @@ public class ExternalTextureConverter implements TextureFrameProducer { * Sets the input surface texture. * *

The provided width and height will be the size of the converted texture, so if the input - * surface texture is rotated (as expressed by its transfomration matrix) the provided width and + * surface texture is rotated (as expressed by its transformation matrix) the provided width and * height should be swapped. */ // TODO: Clean up setSurfaceTexture methods. diff --git a/mediapipe/util/audio_decoder.h b/mediapipe/util/audio_decoder.h index c2e7d77e6..c7a56ba71 100644 --- a/mediapipe/util/audio_decoder.h +++ b/mediapipe/util/audio_decoder.h @@ -82,7 +82,7 @@ class BasePacketProcessor { // Corrects the given PTS for MPEG PTS rollover. Assumed to be called with // the PTS of each frame in decode order. We detect a rollover whenever the - // PTS timestamp changes by more than 2^33/2 (half the timstamp space). For + // PTS timestamp changes by more than 2^33/2 (half the timestamp space). For // video this means every 26.5h with 1 PTS tick = 1/90000 of a second. // Example timeline: // CorrectPtsForRollover(0) -> 0