You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Migrating tr1 to std, adding C++11 support to build scripts, fixing crash in FFmpegReader (caused by shared_ptr, buffer, and last_video_frame corruption). Much improved stability with this change. Thanks to Craig and Peter for the help!
This commit is contained in:
@@ -63,7 +63,7 @@ void ChromaKey::init_effect_details()
|
||||
|
||||
// This method is required for all derived classes of EffectBase, and returns a
|
||||
// modified openshot::Frame object
|
||||
tr1::shared_ptr<Frame> ChromaKey::GetFrame(tr1::shared_ptr<Frame> frame, long int frame_number)
|
||||
std::shared_ptr<Frame> ChromaKey::GetFrame(std::shared_ptr<Frame> frame, long int frame_number)
|
||||
{
|
||||
// Determine the current HSL (Hue, Saturation, Lightness) for the Chrome
|
||||
int threshold = fuzz.GetInt(frame_number);
|
||||
@@ -72,7 +72,7 @@ tr1::shared_ptr<Frame> ChromaKey::GetFrame(tr1::shared_ptr<Frame> frame, long in
|
||||
long mask_B = color.blue.GetInt(frame_number);
|
||||
|
||||
// Get source image's pixels
|
||||
tr1::shared_ptr<QImage> image = frame->GetImage();
|
||||
std::shared_ptr<QImage> image = frame->GetImage();
|
||||
unsigned char *pixels = (unsigned char *) image->bits();
|
||||
|
||||
// Loop through pixels
|
||||
|
||||
Reference in New Issue
Block a user