Click here to Skip to main content
15,902,635 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: TerminateThread() which is calling Interop dll function. Pin
Cool_Dev8-Mar-10 0:06
Cool_Dev8-Mar-10 0:06 
GeneralRe: TerminateThread() which is calling Interop dll function. Pin
CPallini8-Mar-10 0:23
mveCPallini8-Mar-10 0:23 
GeneralRe: TerminateThread() which is calling Interop dll function. Pin
_T("No name")8-Mar-10 0:24
_T("No name")8-Mar-10 0:24 
GeneralRe: TerminateThread() which is calling Interop dll function. Pin
CPallini8-Mar-10 0:30
mveCPallini8-Mar-10 0:30 
GeneralRe: TerminateThread() which is calling Interop dll function. Pin
Cool_Dev8-Mar-10 0:49
Cool_Dev8-Mar-10 0:49 
QuestionVLC player Pin
gmallax7-Mar-10 23:10
gmallax7-Mar-10 23:10 
AnswerRe: VLC player Pin
Cool_Dev8-Mar-10 1:40
Cool_Dev8-Mar-10 1:40 
GeneralRe: VLC player Pin
gmallax9-Mar-10 22:46
gmallax9-Mar-10 22:46 
hi
I have implemented as following:

UINT_PTR test = (UINT_PTR)processedJpegData; //This is the data to be written into AVI
LPVOID p = reinterpret_cast<LPVOID>(test);

if(!g_bCreated)
{
AVISTREAMINFO streamInfo;
memset(&streamInfo, 0, sizeof(streamInfo));
streamInfo.fccType = streamtypeVIDEO;
streamInfo.fccHandler = mmioFOURCC('M', 'J', 'P', 'G');
//streamInfo.fccHandler = mmioFOURCC('X', 'V', 'I', 'D');
streamInfo.dwScale = 1001;
streamInfo.dwRate = 30000;
streamInfo.dwSampleSize = 0;
streamInfo.dwSuggestedBufferSize = 0 ;
SetRect(&streamInfo.rcFrame, 0, 0,0,0);/* 720, 480,frameInfo.m_width, frameInfo.m_height*/

HRESULT hrCreate = AVIFileCreateStream(m_pAVIFile, &m_pVideoStream, &streamInfo);
if (hrCreate!=AVIERR_OK)
return ;


BITMAPINFOHEADER *bi = new BITMAPINFOHEADER();
bi->biSize = sizeof(BITMAPINFOHEADER);
bi->biWidth = 720;
bi->biHeight = 480;
bi->biPlanes = 1;
bi->biBitCount = 16;
bi->biCompression = mmioFOURCC('M', 'J', 'P', 'G'); // 0 = BI_RGB
bi->biSizeImage = size;
bi->biXPelsPerMeter= 0;
bi->biYPelsPerMeter= 0;
bi->biClrUsed = 0;
bi->biClrImportant = 0;

HRESULT hrSetformat = AVIStreamSetFormat(m_pVideoStream, 0,&bi, 40);
if(hrSetformat != 0)
return;

g_nIndex = AVIStreamLength(m_pVideoStream);
g_bCreated=true;
}

HRESULT hrStreamWrite = AVIStreamWrite(m_pVideoStream, g_nIndex++, 1, p,size, AVIIF_KEYFRAME, 0, 0);
if (hrStreamWrite!=AVIERR_OK)
return ;

This executes successfully and creates the AVI file also.But the problem is in playing that AVI file.
AnswerRe: VLC player Pin
mav@octaval8-Mar-10 2:05
mav@octaval8-Mar-10 2:05 
GeneralRe: VLC player Pin
gmallax8-Mar-10 18:24
gmallax8-Mar-10 18:24 
GeneralRe: VLC player Pin
gmallax9-Mar-10 22:45
gmallax9-Mar-10 22:45 
Questionhow to use CHtmlEditView in vc 6.0 Pin
sunnyram7-Mar-10 22:49
sunnyram7-Mar-10 22:49 
GeneralRe: how to use CHtmlEditView in vc 6.0 Pin
Rage8-Mar-10 4:15
professionalRage8-Mar-10 4:15 
GeneralRe: how to use CHtmlEditView in vc 6.0 Pin
sunnyram15-Mar-10 3:06
sunnyram15-Mar-10 3:06 
Questionerror scenerio handling Pin
hrishi3217-Mar-10 22:46
hrishi3217-Mar-10 22:46 
AnswerRe: error scenerio handling Pin
Richard MacCutchan8-Mar-10 1:09
mveRichard MacCutchan8-Mar-10 1:09 
AnswerRe: error scenerio handling Pin
Jonathan Davies8-Mar-10 3:28
Jonathan Davies8-Mar-10 3:28 
QuestionProblem with DLL running in parallel Pin
Llasus7-Mar-10 22:43
Llasus7-Mar-10 22:43 
AnswerRe: Problem with DLL running in parallel Pin
Graham Breach7-Mar-10 23:21
Graham Breach7-Mar-10 23:21 
GeneralRe: Problem with DLL running in parallel Pin
Llasus8-Mar-10 1:50
Llasus8-Mar-10 1:50 
QuestionHow could I monitor the network adapter status ? Pin
EverettJF7-Mar-10 22:10
EverettJF7-Mar-10 22:10 
QuestionRe: How could I monitor the network adapter status ? Pin
Adam Roderick J7-Mar-10 22:39
Adam Roderick J7-Mar-10 22:39 
AnswerRe: How could I monitor the network adapter status ? Pin
EverettJF8-Mar-10 14:12
EverettJF8-Mar-10 14:12 
AnswerRe: How could I monitor the network adapter status ? Pin
Cool_Dev7-Mar-10 22:45
Cool_Dev7-Mar-10 22:45 
QuestionRe: How could I monitor the network adapter status ? Pin
David Crow8-Mar-10 5:52
David Crow8-Mar-10 5:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.