chore(clang-format-fix): fixing format

This commit is contained in:
Eunchurn Park
2026-01-05 00:48:26 +09:00
parent fbda7aa4f1
commit 8fc51668d0
5 changed files with 28 additions and 26 deletions

View File

@@ -522,7 +522,7 @@ bool Xtc::generateThumbBmp() const {
// Hash-based noise dithering for 1-bit output
uint32_t hash = static_cast<uint32_t>(dstX) * 374761393u + static_cast<uint32_t>(dstY) * 668265263u;
hash = (hash ^ (hash >> 13)) * 1274126177u;
const int threshold = static_cast<int>(hash >> 24); // 0-255
const int threshold = static_cast<int>(hash >> 24); // 0-255
const int adjustedThreshold = 128 + ((threshold - 128) / 2); // Range: 64-192
// Quantize to 1-bit: 0=black, 1=white
@@ -534,7 +534,7 @@ bool Xtc::generateThumbBmp() const {
// Bounds check for row buffer access
if (byteIndex < rowSize) {
if (oneBit) {
rowBuffer[byteIndex] |= (1 << bitOffset); // Set bit for white
rowBuffer[byteIndex] |= (1 << bitOffset); // Set bit for white
} else {
rowBuffer[byteIndex] &= ~(1 << bitOffset); // Clear bit for black
}