69 cvReleaseVideoWriter(&m_pVideoWriter);
81 cvReleaseVideoWriter(&m_pVideoWriter);
85 m_pVideoWriter = cvCreateVideoWriter(pFileName, nFourCC, fps, cvSize(width, height));
87 return m_pVideoWriter != 0;
93 bool bRet = cvWriteFrame(m_pVideoWriter, pIplImage) == 0;
94 cvReleaseImageHeader(&pIplImage);
103 cvReleaseVideoWriter(&m_pVideoWriter);
IplImage * Adapt(const CByteImage *pImage, bool bAllocateMemory=false)
Converts a CByteImage to an IplImage.
bool OpenVideoWriter(const char *pFileName, int nFourCC, float fps, int width, int height)
bool WriteFrame(CByteImage *pImage)
Data structure for the representation of 8-bit grayscale images and 24-bit RGB (or HSV) color images ...