Click here to Skip to main content
15,925,440 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralTab Control Pin
Max Santos10-May-02 4:07
Max Santos10-May-02 4:07 
GeneralRe: Tab Control Pin
Prem Kumar10-May-02 4:09
Prem Kumar10-May-02 4:09 
GeneralRe: Tab Control Pin
Martin Ziacek10-May-02 4:21
Martin Ziacek10-May-02 4:21 
GeneralRe: Tab Control Pin
Tom Archer10-May-02 7:55
Tom Archer10-May-02 7:55 
GeneralRe: Tab Control Pin
Max Santos10-May-02 8:56
Max Santos10-May-02 8:56 
GeneralRe: Tab Control Pin
Tom Archer10-May-02 11:20
Tom Archer10-May-02 11:20 
GeneralAVIFILE and KEYFRAME Pin
Zizilamoroso10-May-02 3:57
Zizilamoroso10-May-02 3:57 
GeneralRe: AVIFILE and KEYFRAME Pin
Dana Holt10-May-02 4:07
Dana Holt10-May-02 4:07 
Here's a snippet I have used for writing AVI files. I have always used DWFLAGS = 0 for normal frames.

// Get a frame
CCapture::SnatchDIB( &m_rcWindow,
m_hwndWindow,
m_hdcWindow,
&pDIB,
&m_rcBitmap,
m_bWindowNotAligned);

LPBITMAPINFO pBitmapInfo = (LPBITMAPINFO)pDIB;

// Is it time for a key frame?
if (dwNextKeyFrame <= 0) {

dwFrameType = AVIIF_KEYFRAME;

dwNextKeyFrame = m_CaptureProfile.dwVideoFPS;

} else {

dwFrameType = 0;

}


// Write it to the stream
if (pBitmapInfo != NULL) {

TRACE("Writing frame %d...\n", dwFramesWritten);

AVIStreamWrite( m_pAVIStreamCompressed,
dwFramesWritten,
1,
(LPBYTE)pBitmapInfo + pBitmapInfo->bmiHeader.biSize + pBitmapInfo->bmiHeader.biClrUsed * sizeof(RGBQUAD),
pBitmapInfo->bmiHeader.biSizeImage,
dwFrameType,
NULL,
NULL);

dwFramesWritten++;

dwNextKeyFrame--;

}



--
Dana Holt
Xenos Software
GeneralRe: AVIFILE and KEYFRAME Pin
Zizilamoroso10-May-02 4:19
Zizilamoroso10-May-02 4:19 
GeneralRe: AVIFILE and KEYFRAME Pin
Dana Holt10-May-02 4:43
Dana Holt10-May-02 4:43 
GeneralRe: AVIFILE and KEYFRAME Pin
Zizilamoroso10-May-02 5:04
Zizilamoroso10-May-02 5:04 
GeneralRe: AVIFILE and KEYFRAME Pin
Dana Holt10-May-02 5:46
Dana Holt10-May-02 5:46 
GeneralRe: AVIFILE and KEYFRAME Pin
Zizilamoroso10-May-02 6:01
Zizilamoroso10-May-02 6:01 
GeneralRe: AVIFILE and KEYFRAME Pin
Dana Holt10-May-02 6:32
Dana Holt10-May-02 6:32 
GeneralRe: AVIFILE and KEYFRAME Pin
Zizilamoroso10-May-02 6:08
Zizilamoroso10-May-02 6:08 
GeneralRe: AVIFILE and KEYFRAME Pin
Dana Holt10-May-02 6:38
Dana Holt10-May-02 6:38 
GeneralRe: AVIFILE and KEYFRAME Pin
Zizilamoroso10-May-02 6:17
Zizilamoroso10-May-02 6:17 
GeneralRe: AVIFILE and KEYFRAME Pin
Dana Holt10-May-02 6:31
Dana Holt10-May-02 6:31 
GeneralRe: AVIFILE and KEYFRAME Pin
Zizilamoroso10-May-02 6:51
Zizilamoroso10-May-02 6:51 
Generalpopup keyboard Pin
jimNLX10-May-02 3:56
jimNLX10-May-02 3:56 
QuestionWhere is the project's path? Pin
Hans Ruck10-May-02 3:31
Hans Ruck10-May-02 3:31 
GeneralCancel while working Pin
Vis10-May-02 3:21
Vis10-May-02 3:21 
GeneralRe: Cancel while working Pin
Hans Ruck10-May-02 3:36
Hans Ruck10-May-02 3:36 
GeneralRe: Cancel while working Pin
Vis10-May-02 3:44
Vis10-May-02 3:44 
GeneralRe: Cancel while working Pin
Hans Ruck10-May-02 3:57
Hans Ruck10-May-02 3:57 

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.