1 Dec 2004 03:28
CVS: ffmpeg/libavformat mpeg.c,1.75,1.76 avformat.h,1.111,1.112 utils.c,1.118,1.119
Michael Niedermayer CVS <michael <at> mplayerhq.hu>
2004-12-01 02:28:31 GMT
2004-12-01 02:28:31 GMT
Update of /cvsroot/ffmpeg/ffmpeg/libavformat
In directory mail:/var2/tmp/cvs-serv7400/libavformat
Modified Files:
mpeg.c avformat.h utils.c
Log Message:
fifo_realloc()
Index: mpeg.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/mpeg.c,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -d -r1.75 -r1.76
--- mpeg.c 23 Nov 2004 22:25:12 -0000 1.75
+++ mpeg.c 1 Dec 2004 02:28:28 -0000 1.76
<at> <at> -391,7 +391,7 <at> <at>
default:
return -1;
}
- fifo_init(&stream->fifo, 2*stream->max_buffer_size + 100*MAX_PAYLOAD_SIZE); //FIXME think about
the size maybe dynamically realloc
+ fifo_init(&stream->fifo, 16);
stream->next_packet= &stream->premux_packet;
}
bitrate = 0;
<at> <at> -1172,11 +1172,6 <at> <at>
stream->predecode_packet= pkt_desc;
stream->next_packet= &pkt_desc->next;
(Continue reading)
After this, I decided to try to directly use swscaler, without trying to
understand the algorithms.
Here is my plan:
step 1) include in libavformat support for linking and using an external
swscaler (compiled inside the mplayer tree). This will depend on
--enable-gpl. With this option enabled, libavcodec will use swscaler for
implementing img_convert() and img_resample().
Some glue code will be needed (example: IMGFMT_* <---> PIX_FMT_*
conversion)
Question: do you think that the img_convert() and img_resample()
interfaces are ok, or should they been changed? (for example,
img_convert() does not have any context...).
RSS Feed