|
简单的jpeg转成avi的类(3) : flags (f), priority (p), init_frames (in), scale (sc) , rate (r), start (st), length (l), buff_sz (bs) , quality (q) ,sample_sz (ss) { for (int i = 0; i < 4; ++i) { type[i] = t[i]; handler[i] = h[i]; } } AVI_strh (AVI_strh const& strh) { flags = strh.flags; priority = strh.priority; init_frames = strh.init_frames; scale = strh.scale; rate = strh.rate; start = strh.start; length = strh.length; buff_sz = strh.buff_sz; quality = strh.quality; sample_sz = strh.sample_sz; for (int i = 0; i < 4; ++i) { type[i] = strh.type[i]; handler[i] = strh.handler[i]; } } ~AVI_strh () {} friend ostream& operator << (ostream& out, AVI_strh const& strh) { out << strh.type[0] << strh.type[1] << strh.type[2] << strh.type[3]; out << strh.handler[0] << strh.handler[1] << strh.handler[2] << strh.handler[3]; out << strh.flags << strh.priority << strh.init_frames << strh.scale << strh.rate; out << strh.start << strh.length << strh.buff_sz << strh.quality << strh.sample_sz; return out; } }; struct AVI_strf { DWORD sz; DWORD width; DWORD height; DWORD planes_bit_cnt; unsigned char compression[4]; DWORD image_sz; DWORD XPels_meter; DWORD ypels_meter; DWORD num_colors; // used colors
|