~mbranton/libopenshot/alpha-channel-fix

« back to all changes in this revision

Viewing changes to src/ReaderBase.cpp

  • Committer: Jonathan Thomas
  • Date: 2016-09-14 09:11:12 UTC
  • Revision ID: jonathan@openshot.org-20160914091112-mcxg747f4zniwscx
Added SetMaxSize for image optimizations in QImageReader and FFmpegReader, which lets the timeline pass down the max size to all clips and readers, so they can optionally optimize the size of images (especially useful for optimizing preview performance). Removed convoluted image scaling code in FFmpegReader, and replaced with simpler version. Also, fixed a few regressions from the new Caching code, primarily a crash when reaching the end of the last clip on the timeline.

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
        info.channel_layout = LAYOUT_MONO;
59
59
        info.audio_stream_index = -1;
60
60
        info.audio_timebase = Fraction();
 
61
        max_width = 0;
 
62
        max_height = 0;
61
63
}
62
64
 
63
65
// Display file information