363 |
void status_update(status_t *s, int type, int length, int quant) |
void status_update(status_t *s, int type, int length, int quant) |
364 |
{ |
{ |
365 |
s->count[0]++; |
s->count[0]++; |
|
s->count[type]++; |
|
366 |
|
|
367 |
status_debugoutput(s, type, length, quant); |
status_debugoutput(s, type, length, quant); |
368 |
|
|
369 |
if (type == 4) type = 2; /* XVID_TYPE_SVOP to XVID_TYPE_PVOP */ |
if (type == XVID_TYPE_SVOP) type = XVID_TYPE_PVOP; |
370 |
|
s->count[type]++; |
371 |
|
|
372 |
if (s->min_quant[0]==0 || quant<s->min_quant[0]) s->min_quant[0] = quant; |
if (s->min_quant[0]==0 || quant<s->min_quant[0]) s->min_quant[0] = quant; |
373 |
if (s->max_quant[0]==0 || quant>s->max_quant[0]) s->max_quant[0] = quant; |
if (s->max_quant[0]==0 || quant>s->max_quant[0]) s->max_quant[0] = quant; |