www.pudn.com > yuv2avi.zip > yuv2avi.cpp
// yuv2avi.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "yuv2avi.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// The one and only application object
CWinApp theApp;
using namespace std;
int _tmain()
{
int argc=2;
TCHAR* argv[2];
argv[0]="out.yuv";
argv[1]="out.avi";
char sCom[100];
sprintf(sCom,"yuvtoavi.exe %s %s %d %d %d",argv[0], argv[1],352,288,5);
WinExec(sCom,SW_HIDE);
int nRetCode = 0;
return nRetCode;
}