Changeset bc398338bcc7fe5d666001144a2ed0fe5501cbde
- 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
| rcdde239 |
rbc39833 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Laurent Aimar <fenrir@via.ecp.fr> |
|---|
| … | … | |
| 253 | 253 | i_status = faacDecInit( p_adec->p_handle, |
|---|
| 254 | 254 | p_adec->p_buffer, |
|---|
| | 255 | i_frame_size, |
|---|
| 255 | 256 | &i_rate, |
|---|
| 256 | 257 | &i_channels ); |
|---|
| … | … | |
| 344 | 345 | p_faad_buffer = faacDecDecode( p_adec->p_handle, |
|---|
| 345 | 346 | &faad_frame, |
|---|
| 346 | | p_adec->p_buffer ); |
|---|
| | 347 | p_adec->p_buffer, |
|---|
| | 348 | i_frame_size ); |
|---|
| 347 | 349 | |
|---|
| 348 | 350 | /* **** some sanity checks to see if we have samples to out **** */ |
|---|
| r3e017c2 |
rbc39833 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Laurent Aimar <fenrir@via.ecp.fr> |
|---|
| … | … | |
| 98 | 98 | vlc_module_begin(); |
|---|
| 99 | 99 | 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 |
|---|
| 100 | 105 | #if LIBAVCODEC_BUILD >= 4611 |
|---|
| 101 | 106 | add_integer ( "ffmpeg-error-resilience", -1, NULL, |
|---|
| rd25c5e0 |
rbc39833 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Laurent Aimar <fenrir@via.ecp.fr> |
|---|
| … | … | |
| 22 | 22 | *****************************************************************************/ |
|---|
| 23 | 23 | |
|---|
| 24 | | #define QT_STORE_T int |
|---|
| | 24 | #define QT_STORE_T int8_t |
|---|
| 25 | 25 | |
|---|
| 26 | 26 | /* postprocessing available using to create i_mode */ |
|---|
| r85071f3 |
rbc39833 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Laurent Aimar <fenrir@via.ecp.fr> |
|---|
| … | … | |
| 355 | 355 | #if LIBAVCODEC_BUILD > 4615 |
|---|
| 356 | 356 | 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" ) ) |
|---|
| 358 | 359 | { |
|---|
| 359 | 360 | msg_Dbg( p_vdec->p_fifo, "using direct rendering" ); |
|---|
| … | … | |
| 449 | 450 | /* Ok we can make postprocessing :)) */ |
|---|
| 450 | 451 | /* first try to get a postprocess module */ |
|---|
| 451 | | #if LIBAVCODEC_BUILD > 4613 |
|---|
| | 452 | #if LIBAVCODEC_BUILD >= 4633 |
|---|
| 452 | 453 | p_vdec->p_pp = vlc_object_create( p_vdec->p_fifo, |
|---|
| 453 | 454 | sizeof( postprocessing_t ) ); |
|---|
| … | … | |
| 474 | 475 | |
|---|
| 475 | 476 | /* 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; |
|---|
| 479 | 480 | } |
|---|
| 480 | 481 | #else |
|---|
| … | … | |
| 757 | 758 | /* Make postproc */ |
|---|
| 758 | 759 | 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, |
|---|
| 760 | 762 | p_vdec->p_context->qstride, |
|---|
| 761 | 763 | p_vdec->i_pp_mode ); |
|---|