Fix spelling errors
calcultor -> calculator hander -> handler initilize -> initialize timstamp -> timestamp transfomration -> transformation
This commit is contained in:
parent
731d2b9536
commit
18f6d203a9
|
@ -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
|
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
|
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
|
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`.
|
`EarlyCloseInputStreamHandler`.
|
||||||
|
|
||||||
## Relevant Source Code
|
## Relevant Source Code
|
||||||
|
|
|
@ -643,7 +643,7 @@ Initialize the asset manager in `onCreate(Bundle)` before initializing
|
||||||
`eglManager`:
|
`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.
|
// binary graphs.
|
||||||
AndroidAssetUtil.initializeNativeAssetManager(this);
|
AndroidAssetUtil.initializeNativeAssetManager(this);
|
||||||
```
|
```
|
||||||
|
|
|
@ -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
|
calculator is automatically registered by name through the
|
||||||
[`REGISTER_CALCULATOR`] macro using the [`registration.h`] library. Note that
|
[`REGISTER_CALCULATOR`] macro using the [`registration.h`] library. Note that
|
||||||
[`REGISTER_CALCULATOR`] can register a calculator with a namespace prefix,
|
[`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.
|
the same namespace prefix.
|
||||||
|
|
||||||
## Out Of Memory error
|
## Out Of Memory error
|
||||||
|
|
|
@ -75,7 +75,7 @@ public class MainActivity extends AppCompatActivity {
|
||||||
previewDisplayView = new SurfaceView(this);
|
previewDisplayView = new SurfaceView(this);
|
||||||
setupPreviewDisplayView();
|
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.
|
// binary graphs.
|
||||||
AndroidAssetUtil.initializeNativeAssetManager(this);
|
AndroidAssetUtil.initializeNativeAssetManager(this);
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,7 @@ public class MainActivity extends AppCompatActivity {
|
||||||
previewDisplayView = new SurfaceView(this);
|
previewDisplayView = new SurfaceView(this);
|
||||||
setupPreviewDisplayView();
|
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.
|
// binary graphs.
|
||||||
AndroidAssetUtil.initializeNativeAssetManager(this);
|
AndroidAssetUtil.initializeNativeAssetManager(this);
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,7 @@ public class MainActivity extends AppCompatActivity {
|
||||||
previewDisplayView = new SurfaceView(this);
|
previewDisplayView = new SurfaceView(this);
|
||||||
setupPreviewDisplayView();
|
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.
|
// binary graphs.
|
||||||
AndroidAssetUtil.initializeNativeAssetManager(this);
|
AndroidAssetUtil.initializeNativeAssetManager(this);
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,7 @@ public class MainActivity extends AppCompatActivity {
|
||||||
previewDisplayView = new SurfaceView(this);
|
previewDisplayView = new SurfaceView(this);
|
||||||
setupPreviewDisplayView();
|
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.
|
// binary graphs.
|
||||||
AndroidAssetUtil.initializeNativeAssetManager(this);
|
AndroidAssetUtil.initializeNativeAssetManager(this);
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,7 @@ public class MainActivity extends AppCompatActivity {
|
||||||
previewDisplayView = new SurfaceView(this);
|
previewDisplayView = new SurfaceView(this);
|
||||||
setupPreviewDisplayView();
|
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.
|
// binary graphs.
|
||||||
AndroidAssetUtil.initializeNativeAssetManager(this);
|
AndroidAssetUtil.initializeNativeAssetManager(this);
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,7 @@ public class MainActivity extends AppCompatActivity {
|
||||||
previewDisplayView = new SurfaceView(this);
|
previewDisplayView = new SurfaceView(this);
|
||||||
setupPreviewDisplayView();
|
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.
|
// binary graphs.
|
||||||
AndroidAssetUtil.initializeNativeAssetManager(this);
|
AndroidAssetUtil.initializeNativeAssetManager(this);
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,7 @@ public class MainActivity extends AppCompatActivity {
|
||||||
previewDisplayView = new SurfaceView(this);
|
previewDisplayView = new SurfaceView(this);
|
||||||
setupPreviewDisplayView();
|
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.
|
// binary graphs.
|
||||||
AndroidAssetUtil.initializeNativeAssetManager(this);
|
AndroidAssetUtil.initializeNativeAssetManager(this);
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,7 @@ public class MainActivity extends AppCompatActivity {
|
||||||
previewDisplayView = new SurfaceView(this);
|
previewDisplayView = new SurfaceView(this);
|
||||||
setupPreviewDisplayView();
|
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.
|
// binary graphs.
|
||||||
AndroidAssetUtil.initializeNativeAssetManager(this);
|
AndroidAssetUtil.initializeNativeAssetManager(this);
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ namespace mediapipe {
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
// Shows validation success for a graph and a subgraph.
|
// Shows validation success for a graph and a subgraph.
|
||||||
TEST(ValidatedGraphConfigTest, InitilizeGraphFromProtos) {
|
TEST(ValidatedGraphConfigTest, InitializeGraphFromProtos) {
|
||||||
auto config_1 = ParseTextProtoOrDie<CalculatorGraphConfig>(R"(
|
auto config_1 = ParseTextProtoOrDie<CalculatorGraphConfig>(R"(
|
||||||
type: "PassThroughGraph"
|
type: "PassThroughGraph"
|
||||||
input_stream: "INPUT:stream_1"
|
input_stream: "INPUT:stream_1"
|
||||||
|
@ -102,7 +102,7 @@ TEST(ValidatedGraphConfigTest, InitilizeGraphFromProtos) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Shows validation failure due to an unregistered subgraph.
|
// Shows validation failure due to an unregistered subgraph.
|
||||||
TEST(ValidatedGraphConfigTest, InitilizeGraphFromLinker) {
|
TEST(ValidatedGraphConfigTest, InitializeGraphFromLinker) {
|
||||||
EXPECT_FALSE(SubgraphRegistry::IsRegistered("DubQuadTestSubgraph"));
|
EXPECT_FALSE(SubgraphRegistry::IsRegistered("DubQuadTestSubgraph"));
|
||||||
ValidatedGraphConfig builder_1;
|
ValidatedGraphConfig builder_1;
|
||||||
::mediapipe::Status status_1 =
|
::mediapipe::Status status_1 =
|
||||||
|
@ -114,7 +114,7 @@ TEST(ValidatedGraphConfigTest, InitilizeGraphFromLinker) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Shows validation success for a graph and a template subgraph.
|
// Shows validation success for a graph and a template subgraph.
|
||||||
TEST(ValidatedGraphConfigTest, InitilizeTemplateFromProtos) {
|
TEST(ValidatedGraphConfigTest, InitializeTemplateFromProtos) {
|
||||||
mediapipe::tool::TemplateParser::Parser parser;
|
mediapipe::tool::TemplateParser::Parser parser;
|
||||||
CalculatorGraphTemplate config_1;
|
CalculatorGraphTemplate config_1;
|
||||||
CHECK(parser.ParseFromString(R"(
|
CHECK(parser.ParseFromString(R"(
|
||||||
|
|
|
@ -362,7 +362,7 @@ class GlContextProfilerStub {
|
||||||
// Not copyable or movable.
|
// Not copyable or movable.
|
||||||
GlContextProfilerStub(const GlContextProfilerStub&) = delete;
|
GlContextProfilerStub(const GlContextProfilerStub&) = delete;
|
||||||
GlContextProfilerStub& operator=(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 MarkTimestamp(int node_id, Timestamp input_timestamp, bool is_finish) {}
|
||||||
void LogAllTimestamps() {}
|
void LogAllTimestamps() {}
|
||||||
};
|
};
|
||||||
|
|
|
@ -111,7 +111,7 @@ class GlContextProfilerStub {
|
||||||
// Not copyable or movable.
|
// Not copyable or movable.
|
||||||
GlContextProfilerStub(const GlContextProfilerStub&) = delete;
|
GlContextProfilerStub(const GlContextProfilerStub&) = delete;
|
||||||
GlContextProfilerStub& operator=(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 MarkTimestamp(int node_id, Timestamp input_timestamp, bool is_finish) {}
|
||||||
void LogAllTimestamps() {}
|
void LogAllTimestamps() {}
|
||||||
};
|
};
|
||||||
|
|
|
@ -88,7 +88,7 @@ public class ExternalTextureConverter implements TextureFrameProducer {
|
||||||
* Sets the input surface texture.
|
* Sets the input surface texture.
|
||||||
*
|
*
|
||||||
* <p>The provided width and height will be the size of the converted texture, so if the input
|
* <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.
|
* height should be swapped.
|
||||||
*/
|
*/
|
||||||
// TODO: Clean up setSurfaceTexture methods.
|
// TODO: Clean up setSurfaceTexture methods.
|
||||||
|
|
|
@ -82,7 +82,7 @@ class BasePacketProcessor {
|
||||||
|
|
||||||
// Corrects the given PTS for MPEG PTS rollover. Assumed to be called with
|
// 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
|
// 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.
|
// video this means every 26.5h with 1 PTS tick = 1/90000 of a second.
|
||||||
// Example timeline:
|
// Example timeline:
|
||||||
// CorrectPtsForRollover(0) -> 0
|
// CorrectPtsForRollover(0) -> 0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user