Mpeg.cpp/h indentation

This commit is contained in:
Florin9doi 2020-06-27 09:53:01 +03:00 committed by refractionpcsx2
parent 3119e0a2e7
commit be1c97a18b
2 changed files with 15 additions and 15 deletions

View File

@ -74,7 +74,7 @@ int get_macroblock_modes()
macroblock_modes = tab->modes; macroblock_modes = tab->modes;
if ((!(decoder.frame_pred_frame_dct)) && if ((!(decoder.frame_pred_frame_dct)) &&
(decoder.picture_structure == FRAME_PICTURE)) (decoder.picture_structure == FRAME_PICTURE))
{ {
macroblock_modes |= GETBITS(1) * DCT_TYPE_INTERLACED; macroblock_modes |= GETBITS(1) * DCT_TYPE_INTERLACED;
} }
@ -308,20 +308,20 @@ static __fi int get_chroma_dc_dct_diff()
int dc_diff; int dc_diff;
u16 code = UBITS(5); u16 code = UBITS(5);
if (code<31) if (code<31)
{ {
size = DCtable.chrom0[code].size; size = DCtable.chrom0[code].size;
DUMPBITS(DCtable.chrom0[code].len); DUMPBITS(DCtable.chrom0[code].len);
} }
else else
{ {
code = UBITS(10) - 0x3e0; code = UBITS(10) - 0x3e0;
size = DCtable.chrom1[code].size; size = DCtable.chrom1[code].size;
DUMPBITS(DCtable.chrom1[code].len); DUMPBITS(DCtable.chrom1[code].len);
} }
if (size==0) if (size==0)
dc_diff = 0; dc_diff = 0;
else else
{ {
dc_diff = GETBITS(size); dc_diff = GETBITS(size);
@ -331,7 +331,7 @@ static __fi int get_chroma_dc_dct_diff()
dc_diff-= (1<<size) - 1; dc_diff-= (1<<size) - 1;
} }
} }
return dc_diff; return dc_diff;
} }
@ -400,19 +400,19 @@ static bool get_intra_block()
tab = &DCT.tab2[(code >> 4) - 16]; tab = &DCT.tab2[(code >> 4) - 16];
} }
else if (code >= 128) else if (code >= 128)
{ {
tab = &DCT.tab3[(code >> 3) - 16]; tab = &DCT.tab3[(code >> 3) - 16];
} }
else if (code >= 64) else if (code >= 64)
{ {
tab = &DCT.tab4[(code >> 2) - 16]; tab = &DCT.tab4[(code >> 2) - 16];
} }
else if (code >= 32) else if (code >= 32)
{ {
tab = &DCT.tab5[(code >> 1) - 16]; tab = &DCT.tab5[(code >> 1) - 16];
} }
else if (code >= 16) else if (code >= 16)
{ {
tab = &DCT.tab6[code - 16]; tab = &DCT.tab6[code - 16];
} }
else else
@ -507,9 +507,9 @@ static bool get_non_intra_block(int * last)
s16 * dest = decoder.DCTblock; s16 * dest = decoder.DCTblock;
u16 code; u16 code;
/* decode AC coefficients */ /* decode AC coefficients */
for (i= ipu_cmd.pos[4] ; ; i++) for (i= ipu_cmd.pos[4] ; ; i++)
{ {
switch (ipu_cmd.pos[5]) switch (ipu_cmd.pos[5])
{ {
case 0: case 0:

View File

@ -59,7 +59,7 @@ enum picture_structure
/* picture coding type */ /* picture coding type */
enum picture_coding_type enum picture_coding_type
{ {
I_TYPE =1, I_TYPE = 1,
P_TYPE = 2, P_TYPE = 2,
B_TYPE = 3, B_TYPE = 3,
D_TYPE = 4 D_TYPE = 4