render: remove alpha request option
This commit is contained in:
@@ -28,22 +28,11 @@ namespace olive {
|
||||
|
||||
class GenerateJob : public AcceleratedJob {
|
||||
public:
|
||||
enum AlphaChannelSetting {
|
||||
kAlphaAuto,
|
||||
kAlphaForceOn,
|
||||
kAlphaForceOff
|
||||
};
|
||||
|
||||
GenerateJob()
|
||||
{
|
||||
alpha_channel_required_ = kAlphaAuto;
|
||||
requested_format_ = VideoParams::kFormatInvalid;
|
||||
}
|
||||
|
||||
AlphaChannelSetting GetAlphaChannelRequired() const { return alpha_channel_required_; }
|
||||
|
||||
void SetAlphaChannelRequired(AlphaChannelSetting e) { alpha_channel_required_ = e; }
|
||||
|
||||
VideoParams::Format GetRequestedFormat() const { return requested_format_; }
|
||||
|
||||
void SetRequestedFormat(VideoParams::Format f) { requested_format_ = f; }
|
||||
@@ -52,8 +41,6 @@ public:
|
||||
void SetColorspace(const QString &s) { colorspace_ = s; }
|
||||
|
||||
private:
|
||||
AlphaChannelSetting alpha_channel_required_;
|
||||
|
||||
VideoParams::Format requested_format_;
|
||||
|
||||
QString colorspace_;
|
||||
|
||||
@@ -232,7 +232,6 @@ void Renderer::BlitColorManaged(const ColorTransformJob &color_job, Texture *des
|
||||
job.Insert(QStringLiteral("ove_cropmatrix"), NodeValue(NodeValue::kMatrix, color_job.GetCropMatrix().inverted()));
|
||||
job.Insert(QStringLiteral("ove_maintex_alpha"), NodeValue(NodeValue::kInt, int(color_job.GetInputAlphaAssociation())));
|
||||
job.Insert(color_job.GetValues());
|
||||
job.SetAlphaChannelRequired(color_job.GetAlphaChannelRequired());
|
||||
|
||||
foreach (const ColorContext::LUT& l, color_ctx.lut3d_textures) {
|
||||
job.Insert(l.name, NodeValue(NodeValue::kTexture, QVariant::fromValue(l.texture)));
|
||||
|
||||
Reference in New Issue
Block a user