summaryrefslogtreecommitdiff
path: root/src/code/z_jpeg.c
diff options
context:
space:
mode:
authorDragorn421 <Dragorn421@users.noreply.github.com>2024-08-28 20:01:41 +0200
committerGitHub <noreply@github.com>2024-08-28 14:01:41 -0400
commit16ec9b1e13abca7ef2a978bd1b99935f2dd3b2ab (patch)
treeb81baa5deb652e6a45b81dff3288a37d180c90ea /src/code/z_jpeg.c
parent7592bf1e42a888c0a1974b019b18a13c520727ee (diff)
T() macro 7 (#2102)
* T() macro in most of the rest of code (except z_message, z_actor, ucode_disas, gfxprint, game, fault, db_camera) * remaining T() macro in boot * format * review
Diffstat (limited to 'src/code/z_jpeg.c')
-rw-r--r--src/code/z_jpeg.c31
1 files changed, 16 insertions, 15 deletions
diff --git a/src/code/z_jpeg.c b/src/code/z_jpeg.c
index 38aec2478..deee31dfd 100644
--- a/src/code/z_jpeg.c
+++ b/src/code/z_jpeg.c
@@ -178,22 +178,23 @@ void Jpeg_ParseMarkers(u8* ptr, JpegContext* ctx) {
case MARKER_SOF: {
// Start of Frame, stores important metadata of the image.
// Only used for extracting the sampling factors (ctx->mode).
- PRINTF("MARKER_SOF %d "
- "精度%02x " // "accuracy"
- "垂直%d " // "vertical"
- "水平%d " // "horizontal"
- "compo%02x "
- "(1:Y)%d (H0=2,V0=1(422) or 2(420))%02x (量子化テーブル)%02x "
- "(2:Cb)%d (H1=1,V1=1)%02x (量子化テーブル)%02x "
- "(3:Cr)%d (H2=1,V2=1)%02x (量子化テーブル)%02x\n",
+ PRINTF(T("MARKER_SOF %d "
+ "精度%02x 垂直%d 水平%d compo%02x "
+ "(1:Y)%d (H0=2,V0=1(422) or 2(420))%02x (量子化テーブル)%02x "
+ "(2:Cb)%d (H1=1,V1=1)%02x (量子化テーブル)%02x "
+ "(3:Cr)%d (H2=1,V2=1)%02x (量子化テーブル)%02x\n",
+ "MARKER_SOF %d "
+ "accuracy%02x vertical%d horizontal%d compo%02x "
+ "(1:Y)%d (H0=2,V0=1(422) or 2(420))%02x (quantization tables)%02x "
+ "(2:Cb)%d (H1=1,V1=1)%02x (quantization tables)%02x "
+ "(3:Cr)%d (H2=1,V2=1)%02x (quantization tables)%02x\n"),
Jpeg_GetUnalignedU16(ptr),
- ptr[2], // precision
- Jpeg_GetUnalignedU16(ptr + 3), // height
- Jpeg_GetUnalignedU16(ptr + 5), // width
- ptr[7], // component count (assumed to be 3)
- ptr[8], ptr[9], ptr[10], // Y component
- ptr[11], ptr[12], ptr[13], // Cb component
- ptr[14], ptr[15], ptr[16] // Cr component
+ // precision, height, width, component count (assumed to be 3)
+ ptr[2], Jpeg_GetUnalignedU16(ptr + 3), Jpeg_GetUnalignedU16(ptr + 5), ptr[7],
+ //
+ ptr[8], ptr[9], ptr[10], // Y component
+ ptr[11], ptr[12], ptr[13], // Cb component
+ ptr[14], ptr[15], ptr[16] // Cr component
);
if (ptr[9] == 0x21) {