DivXNetworks, Inc.
Main Page | Namespace List | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals | Related Pages

FeedbackInterface.h

Go to the documentation of this file.
00001 
00016 #ifndef __FeedbackInterface_h
00017 #define __FeedbackInterface_h
00018 
00019 
00020 #include "../common/DivXPortable.h"
00021 #include "../common/Cpu.h"
00022 
00023 #include <string.h>
00024 #include <vector>
00025 
00026 #ifdef DISABLE_FEEDBACKINTERFACE
00027 #define DEBUG_VIRTUAL inline
00028 #else
00029 #define DEBUG_VIRTUAL virtual
00030 #endif
00031 
00032 
00034 class FeedbackInterface
00035 {
00036 public:
00037     DEBUG_VIRTUAL ~FeedbackInterface() {}
00038     DEBUG_VIRTUAL void setDimensions(int width, int height) {}    
00039     DEBUG_VIRTUAL void setMacroblockDouble(const char* type, int x, int y, double value) {}
00040     DEBUG_VIRTUAL void setFrameDouble(const char* type, double value) {}
00041     DEBUG_VIRTUAL void setEncodingDouble(const char* type, double value) {}
00042     DEBUG_VIRTUAL void setFramePointerType(int index, const char* name) {}
00043     DEBUG_VIRTUAL int getActiveImage() {return -1;}
00044     DEBUG_VIRTUAL void setFramePointers(const char* name, const unsigned char* pY, const unsigned char* pU, const unsigned char* pV,
00045         int iStrideY, int iStrideUV) {}
00046     DEBUG_VIRTUAL void notifyBeginFrame(int frame) {}
00047     DEBUG_VIRTUAL bool notifyEndFrame(int) {return false;}
00048 
00057     DEBUG_VIRTUAL void print(int level, const char* fmt, ...) {}
00058 
00059 #ifdef DISABLE_FEEDBACKINTERFACE
00060     static inline void cleanup() {}
00061 #else
00062     static inline void cleanup() { Cpu_cleanup(); }
00063 #endif
00064 };
00065 
00066 
00067 #endif

Generated on Tue Jan 24 16:43:33 2006 for DivX Codec API Documentation.