render: remove alpha request option

This commit is contained in:
itsmattkc
2022-07-20 23:14:16 -07:00
parent 752f073136
commit 5ea97f7a64
22 changed files with 32 additions and 113 deletions
-13
View File
@@ -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_;
-1
View File
@@ -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)));