Changeset e384ccdd7c800ced1f02681b217f8f798526f586

Show
Ignore:
Timestamp:
06/09/08 10:05:35 (3 months ago)
Author:
Antoine Cellerier <dionoea@videolan.org>
git-committer:
Antoine Cellerier <dionoea@videolan.org> 1212998735 +0200
git-parent:

[f7d5f3e7cab176a0d68b736e05dece392d611161]

git-author:
Antoine Cellerier <dionoea@videolan.org> 1212879832 +0200
Message:

Remove old post processing code remains from avcodec/video.c.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/codec/avcodec/video.c

    rf7d5f3e re384ccd  
    8181    int i_buffer_orig, i_buffer; 
    8282    char *p_buffer_orig, *p_buffer; 
    83  
    84     /* Postprocessing handle */ 
    85     void *p_pp; 
    86     bool b_pp; 
    87     bool b_pp_async; 
    88     bool b_pp_init; 
    8983}; 
    9084 
     
    167161                                            AVCodecContext *p_context ) 
    168162{ 
    169     decoder_sys_t *p_sys = p_dec->p_sys; 
    170163    picture_t *p_pic; 
    171164 
     
    220213 
    221214    p_pic = p_dec->pf_vout_buffer_new( p_dec ); 
    222  
    223 // FIXME    if( p_sys->p_pp && p_sys->b_pp && !p_sys->b_pp_init ) 
    224 // FIXME    { 
    225 // FIXME        InitPostproc( p_sys->p_pp, p_context->width, 
    226 // FIXME                          p_context->height, p_context->pix_fmt ); 
    227 // FIXME        p_sys->b_pp_init = true; 
    228 // FIXME    } 
    229215 
    230216    return p_pic; 
     
    361347    } 
    362348 
    363     p_sys->p_pp = NULL; 
    364     p_sys->b_pp = p_sys->b_pp_async = p_sys->b_pp_init = false; 
    365     // FIXME p_sys->p_pp = OpenPostproc( p_dec, &p_sys->b_pp_async ); 
    366  
    367349    /* ffmpeg doesn't properly release old pictures when frames are skipped */ 
    368350    //if( p_sys->b_hurry_up ) p_sys->b_direct_rendering = 0; 
     
    530512     * Do the actual decoding now 
    531513     */ 
    532  
    533     /* Check if post-processing was enabled */ 
    534     p_sys->b_pp = p_sys->b_pp_async; 
    535514 
    536515    /* Don't forget that ffmpeg requires a little more bytes 
     
    726705 
    727706    if( p_sys->p_ff_pic ) av_free( p_sys->p_ff_pic ); 
    728     // FIXME ClosePostproc( p_dec, p_sys->p_pp ); 
    729707    free( p_sys->p_buffer_orig ); 
    730708} 
     
    821799        int i_src_stride, i_dst_stride; 
    822800 
    823         // FIXME if( p_sys->p_pp && p_sys->b_pp ) 
    824         // FIXME    PostprocPict( p_sys->p_pp, p_pic, p_ff_pic ); 
    825         // FIXME else 
    826         { 
    827             for( i_plane = 0; i_plane < p_pic->i_planes; i_plane++ ) 
     801        for( i_plane = 0; i_plane < p_pic->i_planes; i_plane++ ) 
     802        { 
     803            p_src  = p_ff_pic->data[i_plane]; 
     804            p_dst = p_pic->p[i_plane].p_pixels; 
     805            i_src_stride = p_ff_pic->linesize[i_plane]; 
     806            i_dst_stride = p_pic->p[i_plane].i_pitch; 
     807 
     808            i_size = __MIN( i_src_stride, i_dst_stride ); 
     809            for( i_line = 0; i_line < p_pic->p[i_plane].i_visible_lines; 
     810                 i_line++ ) 
    828811            { 
    829                 p_src  = p_ff_pic->data[i_plane]; 
    830                 p_dst = p_pic->p[i_plane].p_pixels; 
    831                 i_src_stride = p_ff_pic->linesize[i_plane]; 
    832                 i_dst_stride = p_pic->p[i_plane].i_pitch; 
    833  
    834                 i_size = __MIN( i_src_stride, i_dst_stride ); 
    835                 for( i_line = 0; i_line < p_pic->p[i_plane].i_visible_lines; 
    836                      i_line++ ) 
    837                 { 
    838                     vlc_memcpy( p_dst, p_src, i_size ); 
    839                     p_src += i_src_stride; 
    840                     p_dst += i_dst_stride; 
    841                 } 
     812                vlc_memcpy( p_dst, p_src, i_size ); 
     813                p_src += i_src_stride; 
     814                p_dst += i_dst_stride; 
    842815            } 
    843816        } 
     
    927900 
    928901    /* Not much to do in indirect rendering mode */ 
    929     if( !p_sys->b_direct_rendering || p_sys->b_pp
     902    if( !p_sys->b_direct_rendering
    930903    { 
    931904        return avcodec_default_get_buffer( p_context, p_ff_pic );