Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spelling errors #55

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mediapipe/docs/cycles.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion mediapipe/docs/hello_world_android.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
```
Expand Down
2 changes: 1 addition & 1 deletion mediapipe/docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ protected void onCreate(Bundle savedInstanceState) {
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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ protected void onCreate(Bundle savedInstanceState) {
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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ protected void onCreate(Bundle savedInstanceState) {
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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ protected void onCreate(Bundle savedInstanceState) {
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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ protected void onCreate(Bundle savedInstanceState) {
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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ protected void onCreate(Bundle savedInstanceState) {
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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ protected void onCreate(Bundle savedInstanceState) {
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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ protected void onCreate(Bundle savedInstanceState) {
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);

Expand Down
6 changes: 3 additions & 3 deletions mediapipe/framework/graph_validation_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<CalculatorGraphConfig>(R"(
type: "PassThroughGraph"
input_stream: "INPUT:stream_1"
Expand Down Expand Up @@ -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 =
Expand All @@ -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"(
Expand Down
2 changes: 1 addition & 1 deletion mediapipe/framework/profiler/graph_profiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -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() {}
};
Expand Down
2 changes: 1 addition & 1 deletion mediapipe/framework/profiler/graph_profiler_stub.h
Original file line number Diff line number Diff line change
Expand Up @@ -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() {}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public ExternalTextureConverter(
* Sets the input surface texture.
*
* <p>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.
Expand Down
2 changes: 1 addition & 1 deletion mediapipe/util/audio_decoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down