Changeset bc398338bcc7fe5d666001144a2ed0fe5501cbde

Show
Ignore:
Timestamp:
11/10/02 03:47:27 (6 years ago)
Author:
Laurent Aimar <fenrir@videolan.org>
git-committer:
Laurent Aimar <fenrir@videolan.org> 1036896447 +0000
git-parent:

[ce9fc041eb50d5ba8279579cf5b59ec6dffa4d39]

git-author:
Laurent Aimar <fenrir@videolan.org> 1036896447 +0000
Message:
  • faad : adapt to newer version.
  • ffmpeg : adapt postprocessing for latest libavcodec version, add an

option to disable direct rendering as postprocessing is currently broken
with it, and with some files I have bad pictures.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/codec/faad/decoder.c

    rcdde239 rbc39833  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001, 2002 VideoLAN 
    5  * $Id: decoder.c,v 1.10 2002/10/27 18:06:33 fenrir Exp $ 
     5 * $Id: decoder.c,v 1.11 2002/11/10 02:47:27 fenrir Exp $ 
    66 * 
    77 * Authors: Laurent Aimar <fenrir@via.ecp.fr> 
     
    253253        i_status = faacDecInit( p_adec->p_handle, 
    254254                                p_adec->p_buffer, 
     255                                i_frame_size, 
    255256                                &i_rate, 
    256257                                &i_channels ); 
     
    344345    p_faad_buffer = faacDecDecode( p_adec->p_handle, 
    345346                                   &faad_frame, 
    346                                    p_adec->p_buffer ); 
     347                                   p_adec->p_buffer, 
     348                                   i_frame_size ); 
    347349 
    348350    /* **** some sanity checks to see if we have samples to out **** */ 
  • modules/codec/ffmpeg/ffmpeg.c

    r3e017c2 rbc39833  
    33 ***************************************************************************** 
    44 * Copyright (C) 1999-2001 VideoLAN 
    5  * $Id: ffmpeg.c,v 1.14 2002/11/05 10:07:56 gbazin Exp $ 
     5 * $Id: ffmpeg.c,v 1.15 2002/11/10 02:47:27 fenrir Exp $ 
    66 * 
    77 * Authors: Laurent Aimar <fenrir@via.ecp.fr> 
     
    9898vlc_module_begin(); 
    9999    add_category_hint( N_("Ffmpeg"), NULL ); 
     100#if LIBAVCODEC_BUILD >= 4615 
     101    add_bool( "ffmpeg-dr", 1, NULL, 
     102              "direct rendering",  
     103              "direct rendering" ); 
     104#endif 
    100105#if LIBAVCODEC_BUILD >= 4611 
    101106    add_integer ( "ffmpeg-error-resilience", -1, NULL,  
  • modules/codec/ffmpeg/postprocessing/postprocessing.h

    rd25c5e0 rbc39833  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001 VideoLAN 
    5  * $Id: postprocessing.h,v 1.1 2002/08/04 22:13:06 fenrir Exp $ 
     5 * $Id: postprocessing.h,v 1.2 2002/11/10 02:47:27 fenrir Exp $ 
    66 * 
    77 * Authors: Laurent Aimar <fenrir@via.ecp.fr> 
     
    2222 *****************************************************************************/ 
    2323 
    24 #define QT_STORE_T int 
     24#define QT_STORE_T int8_t 
    2525 
    2626/* postprocessing available using to create i_mode */ 
  • modules/codec/ffmpeg/video.c

    r85071f3 rbc39833  
    33 ***************************************************************************** 
    44 * Copyright (C) 1999-2001 VideoLAN 
    5  * $Id: video.c,v 1.3 2002/11/06 21:48:24 gbazin Exp $ 
     5 * $Id: video.c,v 1.4 2002/11/10 02:47:27 fenrir Exp $ 
    66 * 
    77 * Authors: Laurent Aimar <fenrir@via.ecp.fr> 
     
    355355#if LIBAVCODEC_BUILD > 4615 
    356356    if( (p_vdec->p_codec->capabilities & CODEC_CAP_DR1) 
    357         && (p_vdec->p_context->pix_fmt != PIX_FMT_YUV410P) ) 
     357        && (p_vdec->p_context->pix_fmt != PIX_FMT_YUV410P) &&  
     358        config_GetInt( p_vdec->p_fifo, "ffmpeg-dr" ) ) 
    358359    { 
    359360        msg_Dbg( p_vdec->p_fifo, "using direct rendering" ); 
     
    449450                /* Ok we can make postprocessing :)) */ 
    450451                /* first try to get a postprocess module */ 
    451 #if LIBAVCODEC_BUILD > 461
     452#if LIBAVCODEC_BUILD >= 463
    452453                p_vdec->p_pp = vlc_object_create( p_vdec->p_fifo, 
    453454                                                  sizeof( postprocessing_t ) ); 
     
    474475 
    475476                    /* allocate table for postprocess */ 
    476                     p_vdec->p_context->quant_store =  
    477                         malloc( sizeof( int ) * ( MBR + 1 ) * ( MBC + 1 ) ); 
    478                     p_vdec->p_context->qstride = MBC + 1; 
     477//                    p_vdec->p_context->quant_store =  
     478//                        malloc( sizeof( int ) * ( MBR + 1 ) * ( MBC + 1 ) ); 
     479//                    p_vdec->p_context->qstride = MBC + 1; 
    479480                } 
    480481#else 
     
    757758        /* Make postproc */ 
    758759        p_vdec->p_pp->pf_postprocess( p_pic, 
    759                                       p_vdec->p_context->quant_store,  
     760                                      p_vdec->p_context->display_qscale_table, 
     761//                                      p_vdec->p_context->current_qscale_table, 
    760762                                      p_vdec->p_context->qstride, 
    761763                                      p_vdec->i_pp_mode );