/* rgb_video.h * Header file for rgb video class */ /* Author: Diego Iglesias * iglesias@andrew.cmu.edu * You may not use or distribute this software in part or whole * without the authors' consent. */ #ifndef RGB_VIDEO_H_ #define RGB_VIDEO_H_ #include "rgb_frame.h" #include "yuv_video.h" #define INIT_NUM_FRAMES 20 class rgb_video { /* functions */ public: rgb_video(); /* constructor will build rgb video from given filename containing * video data */ rgb_video(char* filename); /* constructor will build rgb video from given yuv video class * doing transformation frame by frame from yuv->rgb */ rgb_video::rgb_video(yuv_video* the_yuv_video); rgb_frame* get_frame(int frame_num); int get_num_frames(); /* variables */ private: int num_frames; int max_num_frames; rgb_frame** the_rgb_video; void insert_frame_at_back(rgb_frame* new_rgb_framep); }; #endif