comparison mpegvideo.c @ 1810:fc6b38b5dd40 libavcodec

noise reduction with threads bugfix
author michael
date Tue, 17 Feb 2004 18:57:50 +0000
parents 5dd5b2052f5b
children 3ea589261c6e
comparison
equal deleted inserted replaced
1809:45a7f6690782 1810:fc6b38b5dd40
461 COPY(start_mb_y); 461 COPY(start_mb_y);
462 COPY(end_mb_y); 462 COPY(end_mb_y);
463 COPY(me.map_generation); 463 COPY(me.map_generation);
464 COPY(pb); 464 COPY(pb);
465 COPY(dct_error_sum); 465 COPY(dct_error_sum);
466 COPY(dct_count[0]);
467 COPY(dct_count[1]);
466 #undef COPY 468 #undef COPY
467 } 469 }
468 470
469 static void update_duplicate_context(MpegEncContext *dst, MpegEncContext *src){ 471 static void update_duplicate_context(MpegEncContext *dst, MpegEncContext *src){
470 MpegEncContext bak; 472 MpegEncContext bak;
741 av_freep(&s->q_inter_matrix); 743 av_freep(&s->q_inter_matrix);
742 av_freep(&s->q_intra_matrix16); 744 av_freep(&s->q_intra_matrix16);
743 av_freep(&s->q_inter_matrix16); 745 av_freep(&s->q_inter_matrix16);
744 av_freep(&s->input_picture); 746 av_freep(&s->input_picture);
745 av_freep(&s->reordered_input_picture); 747 av_freep(&s->reordered_input_picture);
746 av_freep(&s->dct_error_sum);
747 av_freep(&s->dct_offset); 748 av_freep(&s->dct_offset);
748 749
749 if(s->picture){ 750 if(s->picture){
750 for(i=0; i<MAX_PICTURE_COUNT; i++){ 751 for(i=0; i<MAX_PICTURE_COUNT; i++){
751 free_picture(s, &s->picture[i]); 752 free_picture(s, &s->picture[i]);
3737 } 3738 }
3738 3739
3739 #ifdef CONFIG_ENCODERS 3740 #ifdef CONFIG_ENCODERS
3740 void ff_copy_bits(PutBitContext *pb, uint8_t *src, int length) 3741 void ff_copy_bits(PutBitContext *pb, uint8_t *src, int length)
3741 { 3742 {
3742 const uint16_t *srcw= src; 3743 const uint16_t *srcw= (uint16_t*)src;
3743 int words= length>>4; 3744 int words= length>>4;
3744 int bits= length&15; 3745 int bits= length&15;
3745 int i; 3746 int i;
3746 3747
3747 if(length==0) return; 3748 if(length==0) return;