AscendStream
Function Usage
Constructor of the AscendStream class.
Prototype
Prototype 1:
1 | explicit AscendStream::AscendStream(int32_t deviceId = 0); |
Prototype 2:
1 | explicit AscendStream::AscendStream(int32_t deviceId, AscendStream::FlagType flag); // You can pass FlagType to construct fast and asynchronous streams. If the construction fails, the std::runtime_error exception is thrown. |
Parameters
Parameter |
Input/Output |
Description |
||
|---|---|---|---|---|
deviceId |
Input |
Specifies the device ID for the stream. |
||
flag |
Input |
Indicates the flag type of the current stream. The data structure is as follows:
Data structure description:
|
Parent topic: AscendStream