OpenCV  2.4.13.6
Open Source Computer Vision
cv::gpu::VideoWriter_GPU Class Reference

#include <gpu.hpp>

Classes

class  EncoderCallBack
 
struct  EncoderParams
 

Public Types

enum  SurfaceFormat {
  SF_UYVY = 0, SF_YUY2, SF_YV12, SF_NV12,
  SF_IYUV, SF_BGR, SF_GRAY = SF_BGR
}
 

Public Member Functions

 VideoWriter_GPU ()
 
 VideoWriter_GPU (const std::string &fileName, cv::Size frameSize, double fps, SurfaceFormat format=SF_BGR)
 
 VideoWriter_GPU (const std::string &fileName, cv::Size frameSize, double fps, const EncoderParams &params, SurfaceFormat format=SF_BGR)
 
 VideoWriter_GPU (const cv::Ptr< EncoderCallBack > &encoderCallback, cv::Size frameSize, double fps, SurfaceFormat format=SF_BGR)
 
 VideoWriter_GPU (const cv::Ptr< EncoderCallBack > &encoderCallback, cv::Size frameSize, double fps, const EncoderParams &params, SurfaceFormat format=SF_BGR)
 
 ~VideoWriter_GPU ()
 
void open (const std::string &fileName, cv::Size frameSize, double fps, SurfaceFormat format=SF_BGR)
 
void open (const std::string &fileName, cv::Size frameSize, double fps, const EncoderParams &params, SurfaceFormat format=SF_BGR)
 
void open (const cv::Ptr< EncoderCallBack > &encoderCallback, cv::Size frameSize, double fps, SurfaceFormat format=SF_BGR)
 
void open (const cv::Ptr< EncoderCallBack > &encoderCallback, cv::Size frameSize, double fps, const EncoderParams &params, SurfaceFormat format=SF_BGR)
 
bool isOpened () const
 
void close ()
 
void write (const cv::gpu::GpuMat &image, bool lastFrame=false)
 
EncoderParams getParams () const
 

Member Enumeration Documentation

§ SurfaceFormat

Enumerator
SF_UYVY 
SF_YUY2 
SF_YV12 
SF_NV12 
SF_IYUV 
SF_BGR 
SF_GRAY 

Constructor & Destructor Documentation

§ VideoWriter_GPU() [1/5]

cv::gpu::VideoWriter_GPU::VideoWriter_GPU ( )

§ VideoWriter_GPU() [2/5]

cv::gpu::VideoWriter_GPU::VideoWriter_GPU ( const std::string &  fileName,
cv::Size  frameSize,
double  fps,
SurfaceFormat  format = SF_BGR 
)

§ VideoWriter_GPU() [3/5]

cv::gpu::VideoWriter_GPU::VideoWriter_GPU ( const std::string &  fileName,
cv::Size  frameSize,
double  fps,
const EncoderParams params,
SurfaceFormat  format = SF_BGR 
)

§ VideoWriter_GPU() [4/5]

cv::gpu::VideoWriter_GPU::VideoWriter_GPU ( const cv::Ptr< EncoderCallBack > &  encoderCallback,
cv::Size  frameSize,
double  fps,
SurfaceFormat  format = SF_BGR 
)

§ VideoWriter_GPU() [5/5]

cv::gpu::VideoWriter_GPU::VideoWriter_GPU ( const cv::Ptr< EncoderCallBack > &  encoderCallback,
cv::Size  frameSize,
double  fps,
const EncoderParams params,
SurfaceFormat  format = SF_BGR 
)

§ ~VideoWriter_GPU()

cv::gpu::VideoWriter_GPU::~VideoWriter_GPU ( )

Member Function Documentation

§ close()

void cv::gpu::VideoWriter_GPU::close ( )

§ getParams()

EncoderParams cv::gpu::VideoWriter_GPU::getParams ( ) const

§ isOpened()

bool cv::gpu::VideoWriter_GPU::isOpened ( ) const

§ open() [1/4]

void cv::gpu::VideoWriter_GPU::open ( const std::string &  fileName,
cv::Size  frameSize,
double  fps,
SurfaceFormat  format = SF_BGR 
)

§ open() [2/4]

void cv::gpu::VideoWriter_GPU::open ( const std::string &  fileName,
cv::Size  frameSize,
double  fps,
const EncoderParams params,
SurfaceFormat  format = SF_BGR 
)

§ open() [3/4]

void cv::gpu::VideoWriter_GPU::open ( const cv::Ptr< EncoderCallBack > &  encoderCallback,
cv::Size  frameSize,
double  fps,
SurfaceFormat  format = SF_BGR 
)

§ open() [4/4]

void cv::gpu::VideoWriter_GPU::open ( const cv::Ptr< EncoderCallBack > &  encoderCallback,
cv::Size  frameSize,
double  fps,
const EncoderParams params,
SurfaceFormat  format = SF_BGR 
)

§ write()

void cv::gpu::VideoWriter_GPU::write ( const cv::gpu::GpuMat image,
bool  lastFrame = false 
)

The documentation for this class was generated from the following file: