~mbranton/libopenshot/alpha-channel-fix

« back to all changes in this revision

Viewing changes to include/Frame.h

  • Committer: Jonathan Thomas
  • Date: 2016-09-07 05:40:01 UTC
  • Revision ID: jonathan@openshot.org-20160907054001-v2tbe8uy8a7lk4qw
Added new CacheDisk class, which caches frames to the hard drive, dramatically speeding up preview speeds, at the expense of IO operations. New unittests for caching framework. Fixed a few bugs with Frame constructor, which was causing invalid # width & height. Integrated JSON into the cache framework, to quickly share the state of the cache (including ranges of cached frame numbers). Fixed a bug where some Timeline frames could have no audio samples.

Show diffs side-by-side

added added

removed removed

Lines of Context:
158
158
                ~Frame();
159
159
 
160
160
                /// Add (or replace) pixel data to the frame (based on a solid color)
161
 
                void AddColor(int width, int height, string color);
 
161
                void AddColor(int new_width, int new_height, string color);
162
162
 
163
163
                /// Add (or replace) pixel data to the frame
164
 
                void AddImage(int width, int height, int bytes_per_pixel, QImage::Format type, const unsigned char *pixels_);
 
164
                void AddImage(int new_width, int new_height, int bytes_per_pixel, QImage::Format type, const unsigned char *pixels_);
165
165
 
166
166
                /// Add (or replace) pixel data to the frame
167
167
                void AddImage(tr1::shared_ptr<QImage> new_image);