mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
rtph261pay: fix indentation
This commit is contained in:
parent
2f016f3f9d
commit
19e7f188fa
1 changed files with 194 additions and 187 deletions
|
@ -195,16 +195,23 @@ static const guint16 mba_table[MBA_LEN][MBA_WID] = {
|
|||
#define MTYPE_WID 4
|
||||
/* [code, mask, nbits, flags] */
|
||||
static const guint16 mtype_table[MTYPE_LEN][MTYPE_WID] = {
|
||||
{0x8000, 0x8000, 1, MTYPE_INTER | MTYPE_CBP | MTYPE_TCOEFF },
|
||||
{0x4000, 0xc000, 2, MTYPE_INTER | MTYPE_MC | MTYPE_FIL | MTYPE_MVD | MTYPE_CBP | MTYPE_TCOEFF },
|
||||
{0x2000, 0xe000, 3, MTYPE_INTER | MTYPE_MC | MTYPE_FIL | MTYPE_MVD },
|
||||
{0x1000, 0xf000, 4, MTYPE_INTRA | MTYPE_TCOEFF },
|
||||
{0x0800, 0xf800, 5, MTYPE_INTER | MTYPE_MQUANT | MTYPE_CBP | MTYPE_TCOEFF },
|
||||
{0x0400, 0xfc00, 6, MTYPE_INTER | MTYPE_MC | MTYPE_FIL | MTYPE_MQUANT | MTYPE_MVD | MTYPE_CBP | MTYPE_TCOEFF },
|
||||
{0x0200, 0xfe00, 7, MTYPE_INTRA | MTYPE_MQUANT | MTYPE_TCOEFF },
|
||||
{0x0100, 0xff00, 8, MTYPE_INTER | MTYPE_MC | MTYPE_MVD | MTYPE_CBP | MTYPE_TCOEFF },
|
||||
{0x0080, 0xff80, 9, MTYPE_INTER | MTYPE_MC | MTYPE_MVD },
|
||||
{0x0040, 0xffc0, 10, MTYPE_INTER | MTYPE_MC | MTYPE_MQUANT | MTYPE_MVD | MTYPE_CBP | MTYPE_TCOEFF },
|
||||
{0x8000, 0x8000, 1, MTYPE_INTER | MTYPE_CBP | MTYPE_TCOEFF},
|
||||
{0x4000, 0xc000, 2,
|
||||
MTYPE_INTER | MTYPE_MC | MTYPE_FIL | MTYPE_MVD | MTYPE_CBP |
|
||||
MTYPE_TCOEFF},
|
||||
{0x2000, 0xe000, 3, MTYPE_INTER | MTYPE_MC | MTYPE_FIL | MTYPE_MVD},
|
||||
{0x1000, 0xf000, 4, MTYPE_INTRA | MTYPE_TCOEFF},
|
||||
{0x0800, 0xf800, 5, MTYPE_INTER | MTYPE_MQUANT | MTYPE_CBP | MTYPE_TCOEFF},
|
||||
{0x0400, 0xfc00, 6,
|
||||
MTYPE_INTER | MTYPE_MC | MTYPE_FIL | MTYPE_MQUANT | MTYPE_MVD |
|
||||
MTYPE_CBP | MTYPE_TCOEFF},
|
||||
{0x0200, 0xfe00, 7, MTYPE_INTRA | MTYPE_MQUANT | MTYPE_TCOEFF},
|
||||
{0x0100, 0xff00, 8,
|
||||
MTYPE_INTER | MTYPE_MC | MTYPE_MVD | MTYPE_CBP | MTYPE_TCOEFF},
|
||||
{0x0080, 0xff80, 9, MTYPE_INTER | MTYPE_MC | MTYPE_MVD},
|
||||
{0x0040, 0xffc0, 10,
|
||||
MTYPE_INTER | MTYPE_MC | MTYPE_MQUANT | MTYPE_MVD | MTYPE_CBP |
|
||||
MTYPE_TCOEFF},
|
||||
};
|
||||
|
||||
#define MVD_LEN 32
|
||||
|
@ -319,7 +326,7 @@ static const guint16 cbp_table[CBP_LEN][4] = {
|
|||
/* [code, mask, nbits, run, level] */
|
||||
static const guint16 tcoeff_table[TCOEFF_LEN][5] = {
|
||||
{0x8000, 0xc000, 2, TCOEFF_EOB, 0}, /* Not available for first coeff */
|
||||
/* {0x8000, 0x8000, 2, 0, 1}, */ /* Available only for first Inter coeff */
|
||||
/* {0x8000, 0x8000, 2, 0, 1}, *//* Available only for first Inter coeff */
|
||||
{0xc000, 0xc000, 3, 0, 1}, /* Not available for first coeff */
|
||||
{0x6000, 0xe000, 4, 1, 1},
|
||||
{0x4000, 0xf000, 5, 0, 2},
|
||||
|
@ -719,7 +726,7 @@ parse_mb_until_pos (GstRtpH261Pay * pay, GstBitReader * br, Gob * gob,
|
|||
}
|
||||
gob->last.gobn = gob->gn;
|
||||
|
||||
if(ret == PARSE_OK) {
|
||||
if (ret == PARSE_OK) {
|
||||
GST_DEBUG_OBJECT (pay,
|
||||
"Split GOBN %d after MBA %d (endpos %u, maxpos %u, nextpos %u)",
|
||||
gob->gn, gob->last.mba, *endpos, maxpos, mb.endpos);
|
||||
|
|
Loading…
Reference in a new issue