mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-14 11:54:39 +00:00
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
This commit is contained in:
parent
7592bf1e42
commit
16ec9b1e13
10 changed files with 49 additions and 38 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue