+class VIFrame {
+ unsigned char *img_data;
+ VFrame *vfrm;
+public:
+ VIFrame(int ww, int hh, int vcmdl) {
+ int size = BC_CModels::calculate_datasize(ww, hh, -1, vcmdl);
+ img_data = new unsigned char[size];
+ vfrm = new VFrame(img_data, -1, ww, hh, vcmdl, -1);
+ }
+ ~VIFrame() { delete vfrm; delete [] img_data; }
+
+ operator VFrame *() { return vfrm; }
+};
+