Mercurial > libavcodec.hg
comparison mpegvideo.c @ 1555:27073c5532dc libavcodec
move blocks away MpegEncContext (7.4 -> 5.8k)
author | michael |
---|---|
date | Wed, 22 Oct 2003 12:01:21 +0000 |
parents | d736e24bf303 |
children | 5ebb4ae753d3 |
comparison
equal
deleted
inserted
replaced
1554:d736e24bf303 | 1555:27073c5532dc |
---|---|
446 CHECKED_ALLOCZ(s->q_intra_matrix, 64*32 * sizeof(int)) | 446 CHECKED_ALLOCZ(s->q_intra_matrix, 64*32 * sizeof(int)) |
447 CHECKED_ALLOCZ(s->q_inter_matrix, 64*32 * sizeof(int)) | 447 CHECKED_ALLOCZ(s->q_inter_matrix, 64*32 * sizeof(int)) |
448 CHECKED_ALLOCZ(s->q_intra_matrix16, 64*32*2 * sizeof(uint16_t)) | 448 CHECKED_ALLOCZ(s->q_intra_matrix16, 64*32*2 * sizeof(uint16_t)) |
449 CHECKED_ALLOCZ(s->q_inter_matrix16, 64*32*2 * sizeof(uint16_t)) | 449 CHECKED_ALLOCZ(s->q_inter_matrix16, 64*32*2 * sizeof(uint16_t)) |
450 } | 450 } |
451 CHECKED_ALLOCZ(s->blocks, 64*6*2 * sizeof(DCTELEM)) | |
451 | 452 |
452 CHECKED_ALLOCZ(s->picture, MAX_PICTURE_COUNT * sizeof(Picture)) | 453 CHECKED_ALLOCZ(s->picture, MAX_PICTURE_COUNT * sizeof(Picture)) |
453 | 454 |
454 CHECKED_ALLOCZ(s->error_status_table, mb_array_size*sizeof(uint8_t)) | 455 CHECKED_ALLOCZ(s->error_status_table, mb_array_size*sizeof(uint8_t)) |
455 | 456 |
567 av_freep(&s->lambda_table); | 568 av_freep(&s->lambda_table); |
568 av_freep(&s->q_intra_matrix); | 569 av_freep(&s->q_intra_matrix); |
569 av_freep(&s->q_inter_matrix); | 570 av_freep(&s->q_inter_matrix); |
570 av_freep(&s->q_intra_matrix16); | 571 av_freep(&s->q_intra_matrix16); |
571 av_freep(&s->q_inter_matrix16); | 572 av_freep(&s->q_inter_matrix16); |
573 av_freep(&s->blocks); | |
572 | 574 |
573 for(i=0; i<MAX_PICTURE_COUNT; i++){ | 575 for(i=0; i<MAX_PICTURE_COUNT; i++){ |
574 free_picture(s, &s->picture[i]); | 576 free_picture(s, &s->picture[i]); |
575 } | 577 } |
576 av_freep(&s->picture); | 578 av_freep(&s->picture); |