comparison vqavideo.c @ 2967:ef2149182f1c libavcodec

COSMETICS: Remove all trailing whitespace.
author diego
date Sat, 17 Dec 2005 18:14:38 +0000
parents 18b8b2dcc037
children 0b546eab515d
comparison
equal deleted inserted replaced
2966:564788471dd4 2967:ef2149182f1c
454 /* render the final PAL8 frame */ 454 /* render the final PAL8 frame */
455 if (s->vector_height == 4) 455 if (s->vector_height == 4)
456 index_shift = 4; 456 index_shift = 4;
457 else 457 else
458 index_shift = 3; 458 index_shift = 3;
459 for (y = 0; y < s->frame.linesize[0] * s->height; 459 for (y = 0; y < s->frame.linesize[0] * s->height;
460 y += s->frame.linesize[0] * s->vector_height) { 460 y += s->frame.linesize[0] * s->vector_height) {
461 461
462 for (x = y; x < y + s->width; x += 4, lobytes++, hibytes++) { 462 for (x = y; x < y + s->width; x += 4, lobytes++, hibytes++) {
463 pixel_ptr = x; 463 pixel_ptr = x;
464 464
465 /* get the vector index, the method for which varies according to 465 /* get the vector index, the method for which varies according to
466 * VQA file version */ 466 * VQA file version */
467 switch (s->vqa_version) { 467 switch (s->vqa_version) {
468 468
469 case 1: 469 case 1:
470 /* still need sample media for this case (only one game, "Legend of 470 /* still need sample media for this case (only one game, "Legend of
471 * Kyrandia III : Malcolm's Revenge", is known to use this version) */ 471 * Kyrandia III : Malcolm's Revenge", is known to use this version) */
472 lines = 0; 472 lines = 0;
473 break; 473 break;
474 474
475 case 2: 475 case 2:
515 515
516 s->partial_countdown--; 516 s->partial_countdown--;
517 if (s->partial_countdown == 0) { 517 if (s->partial_countdown == 0) {
518 518
519 /* time to replace codebook */ 519 /* time to replace codebook */
520 memcpy(s->codebook, s->next_codebook_buffer, 520 memcpy(s->codebook, s->next_codebook_buffer,
521 s->next_codebook_buffer_index); 521 s->next_codebook_buffer_index);
522 522
523 /* reset accounting */ 523 /* reset accounting */
524 s->next_codebook_buffer_index = 0; 524 s->next_codebook_buffer_index = 0;
525 s->partial_countdown = s->partial_count; 525 s->partial_countdown = s->partial_count;
538 538
539 s->partial_countdown--; 539 s->partial_countdown--;
540 if (s->partial_countdown == 0) { 540 if (s->partial_countdown == 0) {
541 541
542 /* decompress codebook */ 542 /* decompress codebook */
543 decode_format80(s->next_codebook_buffer, 543 decode_format80(s->next_codebook_buffer,
544 s->next_codebook_buffer_index, 544 s->next_codebook_buffer_index,
545 s->codebook, s->codebook_size, 0); 545 s->codebook, s->codebook_size, 0);
546 546
547 /* reset accounting */ 547 /* reset accounting */
548 s->next_codebook_buffer_index = 0; 548 s->next_codebook_buffer_index = 0;
549 s->partial_countdown = s->partial_count; 549 s->partial_countdown = s->partial_count;