comparison libmpcodecs/ve_lavc.c @ 9014:c671e9adbe22

Cleanup of the muxer API, func parameters muxer & muxer_f eliminated. patch by Andriy N. Gritsenko <andrej@lucky.net>
author arpi
date Sun, 19 Jan 2003 01:48:52 +0000
parents 324afc962aee
children 40572852a933
comparison
equal deleted inserted replaced
9013:454ddf1e295f 9014:c671e9adbe22
25 #include "img_format.h" 25 #include "img_format.h"
26 #include "mp_image.h" 26 #include "mp_image.h"
27 #include "vf.h" 27 #include "vf.h"
28 28
29 extern char* passtmpfile; 29 extern char* passtmpfile;
30 extern void mencoder_write_chunk(muxer_stream_t *s,int len,unsigned int flags);
31 30
32 //===========================================================================// 31 //===========================================================================//
33 32
34 #ifdef USE_LIBAVCODEC_SO 33 #ifdef USE_LIBAVCODEC_SO
35 #include <ffmpeg/avcodec.h> 34 #include <ffmpeg/avcodec.h>
484 pic->linesize[2]=mpi->stride[2]; 483 pic->linesize[2]=mpi->stride[2];
485 484
486 out_size = avcodec_encode_video(lavc_venc_context, mux_v->buffer, mux_v->buffer_size, 485 out_size = avcodec_encode_video(lavc_venc_context, mux_v->buffer, mux_v->buffer_size,
487 pic); 486 pic);
488 487
489 mencoder_write_chunk(mux_v,out_size,lavc_venc_context->coded_frame->key_frame?0x10:0); 488 muxer_write_chunk(mux_v,out_size,lavc_venc_context->coded_frame->key_frame?0x10:0);
490 489
491 #if LIBAVCODEC_BUILD >= 4643 490 #if LIBAVCODEC_BUILD >= 4643
492 /* store psnr / pict size / type / qscale */ 491 /* store psnr / pict size / type / qscale */
493 if(lavc_param_psnr){ 492 if(lavc_param_psnr){
494 static FILE *fvstats=NULL; 493 static FILE *fvstats=NULL;