Skip to content

Commit 7a2d92b

Browse files
committed
chore: clang-format
1 parent e9ae89c commit 7a2d92b

File tree

6 files changed

+8
-13
lines changed

6 files changed

+8
-13
lines changed

include/tev/Channel.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,11 @@ class Channel {
135135
uint8_t* dataAt(nanogui::Vector2i index) const { return dataAt(index.x() + index.y() * (size_t)mSize.x()); }
136136
uint8_t* dataAt(size_t index) const { return data() + index * mDataStride; }
137137

138-
template <typename T>
139-
T typedDataAt(T* src, nanogui::Vector2i index) const {
138+
template <typename T> T typedDataAt(T* src, nanogui::Vector2i index) const {
140139
return typedDataAt(src, index.x() + index.y() * (size_t)mSize.x());
141140
}
142141

143-
template <typename T>
144-
T typedDataAt(T* src, size_t index) const {
145-
return src[index * mDataStride / sizeof(T)];
146-
}
142+
template <typename T> T typedDataAt(T* src, size_t index) const { return src[index * mDataStride / sizeof(T)]; }
147143

148144
float* floatData() const {
149145
if (mPixelFormat != EPixelFormat::F32) {

include/tev/imageio/GainMap.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,3 @@ namespace tev {
2929
Task<void> applyAppleGainMap(ImageData& image, const ImageData& gainMap, int priority, const AppleMakerNote* amn);
3030

3131
}
32-
33-

src/Task.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ Task<void> awaitAll(std::span<Task<void>> futures) {
6060
}
6161
}
6262

63-
}
63+
} // namespace tev

src/imageio/DdsImageLoader.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,8 @@ Task<vector<ImageData>> DdsImageLoader::load(istream& iStream, const fs::path&,
214214
vector<ImageData> result(1);
215215
ImageData& resultData = result.front();
216216

217-
resultData.channels = makeRgbaInterleavedChannels(numChannels, DirectX::HasAlpha(metadata.format), size, EPixelFormat::F32, EPixelFormat::F32);
217+
resultData.channels =
218+
makeRgbaInterleavedChannels(numChannels, DirectX::HasAlpha(metadata.format), size, EPixelFormat::F32, EPixelFormat::F32);
218219

219220
const auto numPixels = (size_t)size.x() * size.y();
220221
if (numPixels == 0) {

src/imageio/GainMap.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ Task<void> applyAppleGainMap(ImageData& image, const ImageData& gainMap, int pri
6666
bool isAlpha = Channel::isAlpha(image.channels[c].name());
6767
if (isAlpha) {
6868
if (alphaChannelIndex != -1) {
69-
tlog::warning(
70-
) << fmt::format("Image has multiple alpha channels, using the first one: {}", image.channels[alphaChannelIndex].name());
69+
tlog::warning()
70+
<< fmt::format("Image has multiple alpha channels, using the first one: {}", image.channels[alphaChannelIndex].name());
7171
continue;
7272
}
7373

src/imageio/ImageSaver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include <tev/imageio/StbiLdrImageSaver.h>
2525

2626
#ifdef TEV_SUPPORT_JXL
27-
#include <tev/imageio/JxlImageSaver.h>
27+
# include <tev/imageio/JxlImageSaver.h>
2828
#endif
2929

3030
#include <vector>

0 commit comments

Comments
 (0)