[FFmpeg-devel] [PATCH] Add support to AVSEEK_SIZE to the file protocol seek callback

Stefano Sabatini stefano.sabatini-lala
Sun Apr 4 00:52:15 CEST 2010


On date Saturday 2010-04-03 22:08:37 +0200, Michael Niedermayer encoded:
> On Fri, Apr 02, 2010 at 01:13:27PM +0200, Stefano Sabatini wrote:
> > Hi, as in subject.
> > 
> > I'm not sure about the way I enabled the use of the fstat/fopen64
> > variants.
> > 
> > Regards.
> > -- 
> > FFmpeg = Foolish Free Multimedia Pitiless Eccentric God
> 
> >  file.c |    8 ++++++--
> >  1 file changed, 6 insertions(+), 2 deletions(-)
> > 1c1ff9e3cd7cbf6b715837ff679a2185b4f07289  0001-Implement-support-to-the-seek-operation-with-the-whe.patch
> > >From 2ffd07c83d86afbad72ec6af88b773d88b037c7a Mon Sep 17 00:00:00 2001
> > From: Stefano Sabatini <stefano.sabatini-lala at poste.it>
> > Date: Sat, 27 Mar 2010 21:49:50 +0100
> > Subject: [PATCH] Implement support to the seek operation with the whence parameter set
> >  to AVSEEK_SIZE in the file url protocol.
> 
> the question left is why?
> is this faster than seeking to the end?

yes

make url-filesize-test; and url-filesize-test url-filesize-test.c
173379120 dezicycles in url_size_not_implemented, 1 runs, 0 skips
172881600 dezicycles in url_size_not_implemented, 2 runs, 0 skips
172595970 dezicycles in url_size_not_implemented, 4 runs, 0 skips
172898400 dezicycles in url_size_not_implemented, 8 runs, 0 skips
172500097 dezicycles in url_size_not_implemented, 16 runs, 0 skips
172339117 dezicycles in url_size_not_implemented, 32 runs, 0 skips
172182466 dezicycles in url_size_not_implemented, 64 runs, 0 skips
filesize: 960

68071200 dezicycles in url_size_implemented, 1 runs, 0 skips
92608200 dezicycles in url_size_implemented, 2 runs, 0 skips
80764170 dezicycles in url_size_implemented, 4 runs, 0 skips
80308320 dezicycles in url_size_implemented, 8 runs, 0 skips
78141930 dezicycles in url_size_implemented, 16 runs, 0 skips
76553647 dezicycles in url_size_implemented, 32 runs, 0 skips
74351319 dezicycles in url_size_implemented, 64 runs, 0 skips
filesize: 956

Regards.
-- 
FFmpeg = Fancy and Fundamentalist Magic Philosophical Erudite God
-------------- next part --------------
A non-text attachment was scrubbed...
Name: url-filesize-test.c
Type: text/x-csrc
Size: 956 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100404/9ed249a2/attachment.c>



More information about the ffmpeg-devel mailing list