AndroMeta  2.0.0
AndroMeta/include/AndroMeta/MVideoEncoder.h
Go to the documentation of this file.
00001 /*
00002  * Copyright 2009-2012 AndroMeta LLC. All rights reserved.
00003  *
00004  * AndroMeta LLC retains all intellectual property and proprietary 
00005  * rights to this software and related documentation and any modifications 
00006  * thereto.  Any use, reproduction, disclosure, or distribution of this 
00007  * software and related documentation without an express license agreement 
00008  * from AndroMeta LLC is strictly prohibited.
00009  * 
00010  */
00011 
00018 #ifndef ANDROMETA_M_VIDEO_ENCODER_H
00019 #define ANDROMETA_M_VIDEO_ENCODER_H
00020 
00021 #include <AndroMeta/MVideoEncoderBase.h>
00022 #include <AndroMeta/MObject.h>
00023 
00024 namespace Meta{
00025   
00030   class MVideoEncoder : public MVideoEncoderBase{
00031   public:
00044     MVideoEncoder(int width, int height, const mstr& outPath, double
00045                   quality, int timeBase);
00046     
00050     ~MVideoEncoder();
00051     
00059     void addFrame(unsigned char* data, bool flip=false);
00060     
00064     void finalize();
00065     
00069     mnode process(mnode n, uint32_t flags=0);
00070     
00071   private:
00072     MVideoEncoder& operator=(const MVideoEncoder&);
00073     MVideoEncoder(const MVideoEncoder&);
00074     
00075     class MVideoEncoder_* x_;
00076   };
00077   
00078 } // end namespace Meta
00079 
00080 #endif // ANDROMETA_M_VIDEO_ENCODER_H