Skip to content

EXR: support Tiled files, better detection of channel names, update TinyExr #2821

EXR: support Tiled files, better detection of channel names, update TinyExr

EXR: support Tiled files, better detection of channel names, update TinyExr #2821

Triggered via pull request October 30, 2024 14:33
Status Failure
Total duration 1m 13s
Artifacts

ci.yml

on: pull_request
Commit message check
7s
Commit message check
Code formatting check
1m 1s
Code formatting check
Baseline cmake check
0s
Baseline cmake check
Documentation Build
0s
Documentation Build
Android
0s
Android
Matrix: Linux
Matrix: Mac
Matrix: Windows
Fit to window
Zoom out
Zoom in

Annotations

2 errors
Code formatting check
clang-format issues were found. See CONTRIBUTING.md for more information. diff --git a/renderdoc/core/image_viewer.cpp b/renderdoc/core/image_viewer.cpp index 409b1b3..4d5651e 100644 --- a/renderdoc/core/image_viewer.cpp +++ b/renderdoc/core/image_viewer.cpp @@ -763,7 +763,7 @@ void ImageViewer::RefreshFile() int channels[4] = {-1, -1, -1, -1}; for(int i = 0; i < exrImage.num_channels; i++) { - const char* dotPos = strrchr(exrHeader.channels[i].name, '.'); + const char *dotPos = strrchr(exrHeader.channels[i].name, '.'); const char *name = dotPos ? dotPos + 1 : exrHeader.channels[i].name; switch(name[0]) { @@ -776,7 +776,7 @@ void ImageViewer::RefreshFile() float *rgba = (float *)data; - if (exrImage.images != NULL) + if(exrImage.images != NULL) { // scanline image float **src = (float **)exrImage.images; @@ -805,7 +805,9 @@ void ImageViewer::RefreshFile() const int thisTileWidth = tile.width; const int thisTileHeight = tile.height; float **src = (float **)tile.images; - float *rgba_tile = rgba + (tile.offset_y * fullTileHeight * exrImage.width + tile.offset_x * fullTileWidth) * 4; + float *rgba_tile = + rgba + + (tile.offset_y * fullTileHeight * exrImage.width + tile.offset_x * fullTileWidth) * 4; for(int y = 0; y < thisTileHeight; y++) {
Code formatting check
Process completed with exit code 1.