Mercurial > libavcodec.hg
comparison apedec.c @ 5963:80103098c797 libavcodec
spelling
author | vitor |
---|---|
date | Sat, 01 Dec 2007 22:21:04 +0000 |
parents | 9810f0bbacb2 |
children | 1275461ae6f8 |
comparison
equal
deleted
inserted
replaced
5962:a6c9aa23d379 | 5963:80103098c797 |
---|---|
488 } | 488 } |
489 | 489 |
490 /* Keep a count of the blocks decoded in this frame */ | 490 /* Keep a count of the blocks decoded in this frame */ |
491 ctx->blocksdecoded = 0; | 491 ctx->blocksdecoded = 0; |
492 | 492 |
493 /* Initialise the rice structs */ | 493 /* Initialize the rice structs */ |
494 ctx->riceX.k = 10; | 494 ctx->riceX.k = 10; |
495 ctx->riceX.ksum = (1 << ctx->riceX.k) * 16; | 495 ctx->riceX.ksum = (1 << ctx->riceX.k) * 16; |
496 ctx->riceY.k = 10; | 496 ctx->riceY.k = 10; |
497 ctx->riceY.ksum = (1 << ctx->riceY.k) * 16; | 497 ctx->riceY.ksum = (1 << ctx->riceY.k) * 16; |
498 | 498 |
512 | 512 |
513 /* Zero the history buffers */ | 513 /* Zero the history buffers */ |
514 memset(p->historybuffer, 0, PREDICTOR_SIZE * sizeof(int32_t)); | 514 memset(p->historybuffer, 0, PREDICTOR_SIZE * sizeof(int32_t)); |
515 p->buf = p->historybuffer; | 515 p->buf = p->historybuffer; |
516 | 516 |
517 /* Initialise and zero the co-efficients */ | 517 /* Initialize and zero the co-efficients */ |
518 memcpy(p->coeffsA[0], initial_coeffs, sizeof(initial_coeffs)); | 518 memcpy(p->coeffsA[0], initial_coeffs, sizeof(initial_coeffs)); |
519 memcpy(p->coeffsA[1], initial_coeffs, sizeof(initial_coeffs)); | 519 memcpy(p->coeffsA[1], initial_coeffs, sizeof(initial_coeffs)); |
520 memset(p->coeffsB, 0, sizeof(p->coeffsB)); | 520 memset(p->coeffsB, 0, sizeof(p->coeffsB)); |
521 | 521 |
522 p->filterA[0] = p->filterA[1] = 0; | 522 p->filterA[0] = p->filterA[1] = 0; |