aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDichenZhang1 <140119224+DichenZhang1@users.noreply.github.com>2024-01-31 21:49:02 -0800
committerGitHub <noreply@github.com>2024-01-31 21:49:02 -0800
commitf33d42eb5d19b0a3b90a89279be6e29912777341 (patch)
tree670034dc37d4da31c0d22080d7edbb1020a280c4
parentf25419dacb1b24900a9d15bfcd37a7a512d2cce4 (diff)
downloadlibultrahdr-f33d42eb5d19b0a3b90a89279be6e29912777341.tar.gz
Update jpegr.h
-rw-r--r--lib/include/ultrahdr/jpegr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/include/ultrahdr/jpegr.h b/lib/include/ultrahdr/jpegr.h
index 40dc56b..57dea96 100644
--- a/lib/include/ultrahdr/jpegr.h
+++ b/lib/include/ultrahdr/jpegr.h
@@ -103,8 +103,6 @@ struct jpegr_uncompressed_struct {
ultrahdr_color_gamut colorGamut;
// Values below are optional
- // Pixel format.
- ultrahdr_pixel_format pixelFormat = ULTRAHDR_PIX_FMT_UNSPECIFIED;
// Pointer to chroma data, if it's NULL, chroma plane is considered to be immediately
// after the luma plane.
void* chroma_data = nullptr;
@@ -120,6 +118,8 @@ struct jpegr_uncompressed_struct {
// NOTE: if chroma_data is nullptr, chroma_stride is irrelevant. Just as the way,
// chroma_data is derived from luma ptr, chroma stride is derived from luma stride.
size_t chroma_stride = 0;
+ // Pixel format.
+ ultrahdr_pixel_format pixelFormat = ULTRAHDR_PIX_FMT_UNSPECIFIED;
};
/*