From be1c97a18b833e37b9dc95233192fafdf4e94a9e Mon Sep 17 00:00:00 2001 From: Florin9doi Date: Sat, 27 Jun 2020 09:53:01 +0300 Subject: [PATCH] Mpeg.cpp/h indentation --- pcsx2/IPU/mpeg2lib/Mpeg.cpp | 28 ++++++++++++++-------------- pcsx2/IPU/mpeg2lib/Mpeg.h | 2 +- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/pcsx2/IPU/mpeg2lib/Mpeg.cpp b/pcsx2/IPU/mpeg2lib/Mpeg.cpp index 778adaa9f8..39bca3b480 100644 --- a/pcsx2/IPU/mpeg2lib/Mpeg.cpp +++ b/pcsx2/IPU/mpeg2lib/Mpeg.cpp @@ -74,7 +74,7 @@ int get_macroblock_modes() macroblock_modes = tab->modes; if ((!(decoder.frame_pred_frame_dct)) && - (decoder.picture_structure == FRAME_PICTURE)) + (decoder.picture_structure == FRAME_PICTURE)) { macroblock_modes |= GETBITS(1) * DCT_TYPE_INTERLACED; } @@ -308,20 +308,20 @@ static __fi int get_chroma_dc_dct_diff() int dc_diff; u16 code = UBITS(5); - if (code<31) + if (code<31) { size = DCtable.chrom0[code].size; DUMPBITS(DCtable.chrom0[code].len); } else { - code = UBITS(10) - 0x3e0; - size = DCtable.chrom1[code].size; + code = UBITS(10) - 0x3e0; + size = DCtable.chrom1[code].size; DUMPBITS(DCtable.chrom1[code].len); } - + if (size==0) - dc_diff = 0; + dc_diff = 0; else { dc_diff = GETBITS(size); @@ -331,7 +331,7 @@ static __fi int get_chroma_dc_dct_diff() dc_diff-= (1<> 4) - 16]; } else if (code >= 128) - { + { tab = &DCT.tab3[(code >> 3) - 16]; } else if (code >= 64) - { + { tab = &DCT.tab4[(code >> 2) - 16]; } else if (code >= 32) - { + { tab = &DCT.tab5[(code >> 1) - 16]; } else if (code >= 16) - { + { tab = &DCT.tab6[code - 16]; } else @@ -507,9 +507,9 @@ static bool get_non_intra_block(int * last) s16 * dest = decoder.DCTblock; u16 code; - /* decode AC coefficients */ - for (i= ipu_cmd.pos[4] ; ; i++) - { + /* decode AC coefficients */ + for (i= ipu_cmd.pos[4] ; ; i++) + { switch (ipu_cmd.pos[5]) { case 0: diff --git a/pcsx2/IPU/mpeg2lib/Mpeg.h b/pcsx2/IPU/mpeg2lib/Mpeg.h index a2eef26ba2..6523c88e3f 100644 --- a/pcsx2/IPU/mpeg2lib/Mpeg.h +++ b/pcsx2/IPU/mpeg2lib/Mpeg.h @@ -59,7 +59,7 @@ enum picture_structure /* picture coding type */ enum picture_coding_type { - I_TYPE =1, + I_TYPE = 1, P_TYPE = 2, B_TYPE = 3, D_TYPE = 4