Skip to content

Commit 9ee5f87

Browse files
committed
compress_picture_page: add more pix_fmts option
Signed-off-by: Jack Lau <jacklau1222@qq.com>
1 parent 996b3fc commit 9ee5f87

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/builder/src/compress_picture_page.cpp

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,19 @@ void CompressPicturePage::SetupUI() {
108108
// Pixel Format
109109
pixFmtLabel = new QLabel(tr("Pixel Format:"), this);
110110
pixFmtComboBox = new QComboBox(this);
111-
pixFmtComboBox->addItems({"auto","rgb24", "rgba", "yuv420p", "yuv444p", "gray"});
111+
pixFmtComboBox->addItems({
112+
"auto",
113+
// RGB formats
114+
"rgb24", "rgba", "rgb48be", "rgba64be",
115+
// YUV formats (limited range)
116+
"yuv420p", "yuv422p", "yuv444p",
117+
// YUVJ formats (full range, common for JPEG)
118+
"yuvj420p", "yuvj422p", "yuvj444p",
119+
// Grayscale
120+
"gray", "gray16be",
121+
// Other common formats
122+
"bgr24", "bgra"
123+
});
112124
settingsLayout->addWidget(pixFmtLabel, 3, 0);
113125
settingsLayout->addWidget(pixFmtComboBox, 3, 1);
114126

0 commit comments

Comments
 (0)