add H.264 RGB export using libx264rgb

This commit is contained in:
Cobalt Space
2021-10-08 19:38:02 -07:00
parent fc83e439cc
commit b9766bf585
5 changed files with 23 additions and 12 deletions
+10 -8
View File
@@ -232,14 +232,16 @@ void ExportVideoTab::VideoCodecChanged()
{
ExportCodec::Codec codec = GetSelectedCodec();
if (codec == ExportCodec::kCodecH264) {
SetCodecSection(h264_section_);
} else if (codec == ExportCodec::kCodecH265) {
SetCodecSection(h265_section_);
} else if (ExportCodec::IsCodecAStillImage(codec)) {
SetCodecSection(image_section_);
} else {
SetCodecSection(nullptr);
switch (codec) {
case ExportCodec::kCodecH264:
case ExportCodec::kCodecH264rgb:
SetCodecSection(h264_section_);
break;
case ExportCodec::kCodecH265:
SetCodecSection(h265_section_);
break;
default:
SetCodecSection(ExportCodec::IsCodecAStillImage(codec) ? image_section_ : nullptr);
}
// Set default pixel format