footagepropertiesdialog: show colorspace and alpha association properties on
image streams
This commit is contained in:
@@ -72,7 +72,8 @@ FootagePropertiesDialog::FootagePropertiesDialog(QWidget *parent, Footage *foota
|
||||
|
||||
switch (stream->type()) {
|
||||
case Stream::kVideo:
|
||||
stacked_widget_->addWidget(new VideoStreamProperties(std::static_pointer_cast<VideoStream>(stream)));
|
||||
case Stream::kImage:
|
||||
stacked_widget_->addWidget(new VideoStreamProperties(std::static_pointer_cast<ImageStream>(stream)));
|
||||
break;
|
||||
case Stream::kAudio:
|
||||
stacked_widget_->addWidget(new AudioStreamProperties(std::static_pointer_cast<AudioStream>(stream)));
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace OCIO = OCIO_NAMESPACE::v1;
|
||||
#include "project/project.h"
|
||||
#include "undo/undostack.h"
|
||||
|
||||
VideoStreamProperties::VideoStreamProperties(VideoStreamPtr stream) :
|
||||
VideoStreamProperties::VideoStreamProperties(ImageStreamPtr stream) :
|
||||
stream_(stream)
|
||||
{
|
||||
QGridLayout* video_layout = new QGridLayout(this);
|
||||
@@ -67,7 +67,7 @@ void VideoStreamProperties::Accept(QUndoCommand *parent)
|
||||
}
|
||||
}
|
||||
|
||||
VideoStreamProperties::VideoStreamChangeCommand::VideoStreamChangeCommand(VideoStreamPtr stream,
|
||||
VideoStreamProperties::VideoStreamChangeCommand::VideoStreamChangeCommand(ImageStreamPtr stream,
|
||||
bool premultiplied,
|
||||
QString colorspace,
|
||||
QUndoCommand *parent) :
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
class VideoStreamProperties : public StreamProperties
|
||||
{
|
||||
public:
|
||||
VideoStreamProperties(VideoStreamPtr stream);
|
||||
VideoStreamProperties(ImageStreamPtr stream);
|
||||
|
||||
virtual void Accept(QUndoCommand* parent) override;
|
||||
|
||||
@@ -39,7 +39,7 @@ private:
|
||||
/**
|
||||
* @brief Attached video stream
|
||||
*/
|
||||
VideoStreamPtr stream_;
|
||||
ImageStreamPtr stream_;
|
||||
|
||||
/**
|
||||
* @brief Setting for associated/premultiplied alpha
|
||||
@@ -53,7 +53,7 @@ private:
|
||||
|
||||
class VideoStreamChangeCommand : public QUndoCommand {
|
||||
public:
|
||||
VideoStreamChangeCommand(VideoStreamPtr stream,
|
||||
VideoStreamChangeCommand(ImageStreamPtr stream,
|
||||
bool premultiplied,
|
||||
QString colorspace,
|
||||
QUndoCommand* parent = nullptr);
|
||||
@@ -62,7 +62,7 @@ private:
|
||||
virtual void undo() override;
|
||||
|
||||
private:
|
||||
VideoStreamPtr stream_;
|
||||
ImageStreamPtr stream_;
|
||||
|
||||
bool new_premultiplied_;
|
||||
QString new_colorspace_;
|
||||
|
||||
Reference in New Issue
Block a user