]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Rename copy_picture to ff_copy_picture.
authorcehoyos <cehoyos@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Thu, 2 Oct 2008 00:27:09 +0000 (00:27 +0000)
committercehoyos <cehoyos@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Thu, 2 Oct 2008 00:27:09 +0000 (00:27 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15508 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/h264.c
libavcodec/mpegvideo.c
libavcodec/mpegvideo.h
libavcodec/mpegvideo_enc.c

index b9d63543b3b04991303f148b0a10ac66ccf261d5..6542188eb848b7d889dcda025f4853ff2d210fc3 100644 (file)
@@ -3921,11 +3921,11 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
 
     if(h->slice_type_nos!=FF_I_TYPE){
         s->last_picture_ptr= &h->ref_list[0][0];
-        copy_picture(&s->last_picture, s->last_picture_ptr);
+        ff_copy_picture(&s->last_picture, s->last_picture_ptr);
     }
     if(h->slice_type_nos==FF_B_TYPE){
         s->next_picture_ptr= &h->ref_list[1][0];
-        copy_picture(&s->next_picture, s->next_picture_ptr);
+        ff_copy_picture(&s->next_picture, s->next_picture_ptr);
     }
 
     if(   (h->pps.weighted_pred          && h->slice_type_nos == FF_P_TYPE )
index 588bb7896cf62df79144b75193ca0ce3cc86b73f..4bc32a2316b6685b74784f00a50731ac6c11e384 100644 (file)
@@ -153,7 +153,7 @@ int ff_dct_common_init(MpegEncContext *s)
     return 0;
 }
 
-void copy_picture(Picture *dst, Picture *src){
+void ff_copy_picture(Picture *dst, Picture *src){
     *dst = *src;
     dst->type= FF_BUFFER_TYPE_COPY;
 }
@@ -878,7 +878,7 @@ alloc:
   //      s->current_picture_ptr->quality= s->new_picture_ptr->quality;
     s->current_picture_ptr->key_frame= s->pict_type == FF_I_TYPE;
 
-    copy_picture(&s->current_picture, s->current_picture_ptr);
+    ff_copy_picture(&s->current_picture, s->current_picture_ptr);
 
     if (s->pict_type != FF_B_TYPE) {
         s->last_picture_ptr= s->next_picture_ptr;
@@ -891,8 +891,8 @@ alloc:
         s->current_picture_ptr ? s->current_picture_ptr->data[0] : NULL,
         s->pict_type, s->dropable);*/
 
-    if(s->last_picture_ptr) copy_picture(&s->last_picture, s->last_picture_ptr);
-    if(s->next_picture_ptr) copy_picture(&s->next_picture, s->next_picture_ptr);
+    if(s->last_picture_ptr) ff_copy_picture(&s->last_picture, s->last_picture_ptr);
+    if(s->next_picture_ptr) ff_copy_picture(&s->next_picture, s->next_picture_ptr);
 
     if(s->pict_type != FF_I_TYPE && (s->last_picture_ptr==NULL || s->last_picture_ptr->data[0]==NULL) && !s->dropable && s->codec_id != CODEC_ID_H264){
         av_log(avctx, AV_LOG_ERROR, "warning: first frame is no keyframe\n");
index 2c2a509dc4980454d8fdf9c374a55792e1b9fab5..aaffb86ef028bc7dec9932f46cb3e044d0a740f7 100644 (file)
@@ -701,7 +701,7 @@ void ff_convert_matrix(DSPContext *dsp, int (*qmat)[64], uint16_t (*qmat16)[2][6
                        const uint16_t *quant_matrix, int bias, int qmin, int qmax, int intra);
 
 void ff_init_block_index(MpegEncContext *s);
-void copy_picture(Picture *dst, Picture *src);
+void ff_copy_picture(Picture *dst, Picture *src);
 
 static inline void ff_update_block_index(MpegEncContext *s){
     const int block_size= 8>>s->avctx->lowres;
index afaf4a1d6ab3f4fbd0e9653439a7f2a77ccd45c6..0c60707a04bafcec5f1af6150b636c79a46cfbcb 100644 (file)
@@ -1161,7 +1161,7 @@ no_output_pic:
     if(s->reordered_input_picture[0]){
         s->reordered_input_picture[0]->reference= s->reordered_input_picture[0]->pict_type!=FF_B_TYPE ? 3 : 0;
 
-        copy_picture(&s->new_picture, s->reordered_input_picture[0]);
+        ff_copy_picture(&s->new_picture, s->reordered_input_picture[0]);
 
         if(s->reordered_input_picture[0]->type == FF_BUFFER_TYPE_SHARED || s->avctx->rc_buffer_size){
             // input is a shared pix, so we can't modifiy it -> alloc a new one & ensure that the shared one is reuseable
@@ -1193,7 +1193,7 @@ no_output_pic:
                 s->new_picture.data[i]+= INPLACE_OFFSET;
             }
         }
-        copy_picture(&s->current_picture, s->current_picture_ptr);
+        ff_copy_picture(&s->current_picture, s->current_picture_ptr);
 
         s->picture_number= s->new_picture.display_picture_number;
 //printf("dpn:%d\n", s->picture_number);