Fixed output example in Windows.
This commit is contained in:
parent
4910b07139
commit
f4a605ee6c
1 changed files with 5 additions and 4 deletions
|
@ -40,18 +40,19 @@ struct StreamProcess
|
||||||
{
|
{
|
||||||
HANDLE stdinReadPipe;
|
HANDLE stdinReadPipe;
|
||||||
HANDLE stdinWritePipe;
|
HANDLE stdinWritePipe;
|
||||||
SECURITY_ATTRIBUTES pipeAttributes;
|
struct SECURITY_ATTRIBUTES pipeAttributes;
|
||||||
STARTUPINFOA startupInfo;
|
struct STARTUPINFOA startupInfo;
|
||||||
PROCESS_INFORMATION procInfo;
|
struct PROCESS_INFORMATION procInfo;
|
||||||
};
|
};
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
// Set the parameters of the stream.
|
// Set the parameters of the stream.
|
||||||
const char cmd[1024];
|
char cmd[1024];
|
||||||
const char format[] = "RGB24";
|
const char format[] = "RGB24";
|
||||||
int width = 640;
|
int width = 640;
|
||||||
int height = 480;
|
int height = 480;
|
||||||
|
memset(cmd, 0, 1024);
|
||||||
snprintf(cmd,
|
snprintf(cmd,
|
||||||
1024,
|
1024,
|
||||||
"AkVCamManager stream %s %s %d %d",
|
"AkVCamManager stream %s %s %d %d",
|
||||||
|
|
Loading…
Reference in a new issue