* decoder.c: AAC decoder using libfaad2
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
- * $Id: decoder.c,v 1.10 2002/10/27 18:06:33 fenrir Exp $
+ * $Id: decoder.c,v 1.11 2002/11/10 02:47:27 fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
i_status = faacDecInit( p_adec->p_handle,
p_adec->p_buffer,
+ i_frame_size,
&i_rate,
&i_channels );
}
/* **** decode this frame **** */
p_faad_buffer = faacDecDecode( p_adec->p_handle,
&faad_frame,
- p_adec->p_buffer );
+ p_adec->p_buffer,
+ i_frame_size );
/* **** some sanity checks to see if we have samples to out **** */
if( faad_frame.error > 0 )
* ffmpeg.c: video decoder using ffmpeg library
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
- * $Id: ffmpeg.c,v 1.14 2002/11/05 10:07:56 gbazin Exp $
+ * $Id: ffmpeg.c,v 1.15 2002/11/10 02:47:27 fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
vlc_module_begin();
add_category_hint( N_("Ffmpeg"), NULL );
+#if LIBAVCODEC_BUILD >= 4615
+ add_bool( "ffmpeg-dr", 1, NULL,
+ "direct rendering",
+ "direct rendering" );
+#endif
#if LIBAVCODEC_BUILD >= 4611
add_integer ( "ffmpeg-error-resilience", -1, NULL,
"error resilience", ERROR_RESILIENCE_LONGTEXT );
* postprocessing.h
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: postprocessing.h,v 1.1 2002/08/04 22:13:06 fenrir Exp $
+ * $Id: postprocessing.h,v 1.2 2002/11/10 02:47:27 fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
-#define QT_STORE_T int
+#define QT_STORE_T int8_t
/* postprocessing available using to create i_mode */
#define PP_DEBLOCK_Y_H 0x00000001
* video.c: video decoder using ffmpeg library
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
- * $Id: video.c,v 1.3 2002/11/06 21:48:24 gbazin Exp $
+ * $Id: video.c,v 1.4 2002/11/10 02:47:27 fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com>
p_vdec->b_direct_rendering = 0;
#if LIBAVCODEC_BUILD > 4615
if( (p_vdec->p_codec->capabilities & CODEC_CAP_DR1)
- && (p_vdec->p_context->pix_fmt != PIX_FMT_YUV410P) )
+ && (p_vdec->p_context->pix_fmt != PIX_FMT_YUV410P) &&
+ config_GetInt( p_vdec->p_fifo, "ffmpeg-dr" ) )
{
msg_Dbg( p_vdec->p_fifo, "using direct rendering" );
p_vdec->b_direct_rendering = 1;
case( CODEC_ID_H263I ):
/* Ok we can make postprocessing :)) */
/* first try to get a postprocess module */
-#if LIBAVCODEC_BUILD > 4613
+#if LIBAVCODEC_BUILD >= 4633
p_vdec->p_pp = vlc_object_create( p_vdec->p_fifo,
sizeof( postprocessing_t ) );
p_vdec->p_pp->psz_object_name = "postprocessing";
);
/* allocate table for postprocess */
- p_vdec->p_context->quant_store =
- malloc( sizeof( int ) * ( MBR + 1 ) * ( MBC + 1 ) );
- p_vdec->p_context->qstride = MBC + 1;
+// p_vdec->p_context->quant_store =
+// malloc( sizeof( int ) * ( MBR + 1 ) * ( MBC + 1 ) );
+// p_vdec->p_context->qstride = MBC + 1;
}
#else
p_vdec->i_pp_mode = 0;
{
/* Make postproc */
p_vdec->p_pp->pf_postprocess( p_pic,
- p_vdec->p_context->quant_store,
+ p_vdec->p_context->display_qscale_table,
+// p_vdec->p_context->current_qscale_table,
p_vdec->p_context->qstride,
p_vdec->i_pp_mode );
}