| Branch: | Revision:

ffmpeg / libavformat / avio.h @ 9dd94f83

History | View | Annotate | Download (24 KB)

# Date Author Comment
b64030f2 03/30/2011 05:48 AM Anton Khirnov

avio: make get_checksum() internal.

d09cc22d 03/30/2011 05:48 AM Anton Khirnov

avio: move ff_crc04C11DB7_update() from avio.h -> avio_internal.h

4c4427a7 03/30/2011 05:47 AM Anton Khirnov

avio: make init_checksum() internal.

4ec153bb 03/23/2011 04:32 PM Anton Khirnov

avio: make udp_set_remote_url/get_local_port internal.

491653ed 03/23/2011 12:40 PM Anton Khirnov

avio: cosmetics - nicer vertical alignment.

Signed-off-by: Mans Rullgard <>

933e90a6 03/21/2011 06:54 PM Anton Khirnov

avio: make av_url_read_fseek/fpause internal.

Signed-off-by: Ronald S. Bultje <>

8d9769a7 03/21/2011 12:33 AM Anton Khirnov

avio: deprecate url_fileno

It's an evil hack that assumes an AVIOContext is always based on top of
an URLContext.
It's also not used anywhere.

Signed-off-by: Ronald S. Bultje <>

2912e87a 03/19/2011 01:33 PM Mans Rullgard

Replace FFmpeg with Libav in licence headers

Signed-off-by: Mans Rullgard <>

b7f2fdde 03/17/2011 02:59 AM Anton Khirnov

avio: rename put_flush_packet -> avio_flush

Signed-off-by: Ronald S. Bultje <>

35f10235 03/17/2011 02:59 AM Anton Khirnov

avio: deprecate url_close_buf

It's not used anywhere and its return value looks broken.

Signed-off-by: Ronald S. Bultje <>

83fddaeb 03/17/2011 02:59 AM Anton Khirnov

avio: deprecate url_open_buf

It's only used in one place and does the same thing as

Signed-off-by: Ronald S. Bultje <>

d9d86e00 03/17/2011 02:59 AM Anton Khirnov

avio: avio_ prefix for url_fprintf

Signed-off-by: Ronald S. Bultje <>

af020732 03/17/2011 02:59 AM Anton Khirnov

avio: change avio_tell/skip from macros to inline functions

Signed-off-by: Ronald S. Bultje <>

59f65d95 03/17/2011 02:59 AM Anton Khirnov

avio: make url_setbufsize internal.

Signed-off-by: Ronald S. Bultje <>

4839c192 03/17/2011 02:59 AM Anton Khirnov

lavf: move ff_get_v from avio.h to avio_internal.h

And rename it to ffio_read_varlen.

Signed-off-by: Ronald S. Bultje <>

c76374c6 03/15/2011 12:09 PM Nicolas George

Use AVERROR_EXIT with url_interrupt_cb.

Functions interrupted by url_interrupt_cb should not be restarted.
Therefore using AVERROR was wrong, as it did not allow to distinguish
when the underlying system call was interrupted and actually needed to be...

3e68b3ba 03/15/2011 12:04 PM Anton Khirnov

avio: deprecate url_ferror

AVIOContext.error should be used directly instead.

Signed-off-by: Ronald S. Bultje <>

66e5b1df 03/07/2011 10:20 PM Anton Khirnov

avio: deprecate url_feof

AVIOContext.eof_reached should be used directly instead.

Signed-off-by: Ronald S. Bultje <>

f1ef2cd9 03/07/2011 05:25 PM Anton Khirnov

avio: move ff_rewind_with_probe_data from avio.h to avio_internal.h

also change its prefix to ffio

Signed-off-by: Ronald S. Bultje <>

e8bb2e24 03/07/2011 05:25 PM Anton Khirnov

avio: deprecate url_fget_max_packet_size

AVIOContext.max_packet_size should be used directly instead.

Signed-off-by: Ronald S. Bultje <>

76aa876e 03/07/2011 04:03 PM Anton Khirnov

avio: avio_ prefix for url_fsize

Signed-off-by: Ronald S. Bultje <>

e5197539 03/07/2011 03:51 PM Anton Khirnov

avio: deprecate url_fgetc and remove all it uses

Signed-off-by: Ronald S. Bultje <>

655e45e7 03/07/2011 03:19 PM Anton Khirnov

avio: deprecate url_fgets

It's not used anywhere and doesn't look ver useful to be public.

Signed-off-by: Ronald S. Bultje <>

2af07d36 03/07/2011 03:19 PM Peter Ross

avio: add avio_skip macro

This is a substitute for the url_fskip function that was deprecated by
commit 0300db8ad778a194b4a8ec98f6da3de5b41c46ee. avio_fskip is provided to
improve demuxer code readability. It distinguishes the act of skipping over
unknown or irrelevant bytes from the standard avio_seek operation....

8f73c060 03/06/2011 10:29 PM Martin Storsjö


If this flag is set, the protocol can handle URLs where the
scheme is a nested scheme such as applehttp+file: - the protocol
can handle any URL where the first segment of the nested scheme
belongs to this protocol....

f3bea991 03/06/2011 10:29 PM Martin Storsjö

URLProtocol: Add a flags field

Signed-off-by: Luca Barbato <>

a2704c97 03/04/2011 04:26 PM Anton Khirnov

avio: add avio_tell macro as a replacement for url_ftell

Signed-off-by: Ronald S. Bultje <>

e16ead07 03/04/2011 04:26 PM Anton Khirnov

lavf: deprecate get_strz() in favor of avio_get_str

Signed-off-by: Ronald S. Bultje <>

41d8555f 03/04/2011 04:24 PM Reimar Döffinger

avio: add avio_get_str()

Signed-off-by: Ronald S. Bultje <>

0300db8a 03/01/2011 05:27 PM Anton Khirnov

avio: deprecate url_fskip

avio_seek should be used instead

Signed-off-by: Ronald S. Bultje <>

6b4aa5da 03/01/2011 05:12 PM Anton Khirnov

avio: avio_ prefix for url_fseek

Signed-off-by: Ronald S. Bultje <>

61840b43 02/25/2011 07:38 PM Anton Khirnov

avio: deprecate put_tag

it's not used internally anymore and shouldn't be public.

Signed-off-by: Ronald S. Bultje <>

22a3212e 02/23/2011 03:18 PM Anton Khirnov

avio: rename url_fopen/fclose -> avio_open/close.

Signed-off-by: Ronald S. Bultje <>

0ac8e2bf 02/21/2011 07:25 PM Anton Khirnov

avio: make put_nbyte internal.

Signed-off-by: Ronald S. Bultje <>

77eb5504 02/21/2011 07:25 PM Anton Khirnov

avio: avio: avio_ prefixes for put_* functions

In the name of consistency:
put_byte -> avio_w8
put_<type> -> avio_w<type>
put_buffer -> avio_write

put_nbyte will be made private
put_tag will be merged with avio_put_str

Signed-off-by: Ronald S. Bultje <>

b3db9cee 02/21/2011 06:40 PM Anton Khirnov

avio: make get_partial_buffer internal.

Signed-off-by: Ronald S. Bultje <>

b7effd4e 02/21/2011 04:23 PM Anton Khirnov

avio: avio_ prefixes for get_* functions

In the name of consistency:
get_byte -> avio_r8
get_<type> -> avio_r<type>
get_buffer -> avio_read

get_partial_buffer will be made private later

get_strz is left out becase I want to change it later to return...

8d9ac969 02/21/2011 03:23 PM Anton Khirnov

avio: rename av_alloc_put_byte -> avio_alloc_context for consistency

Signed-off-by: Ronald S. Bultje <>

e731b8d8 02/20/2011 01:37 PM Anton Khirnov

avio: move init_put_byte() to a new private header and rename it

init_put_byte should never be used outside of lavf, since
sizeof(AVIOContext) isn't part of public ABI.

Signed-off-by: Ronald S. Bultje <>

ae628ec1 02/20/2011 01:37 PM Anton Khirnov

avio: rename ByteIOContext to AVIOContext.

Signed-off-by: Ronald S. Bultje <>

90441276 02/06/2011 01:29 AM Nicolas George

Non-blocking protocol: core wrapper functions

Signed-off-by: Nicolas George <>
Signed-off-by: Ronald S. Bultje <>

fe174fc8 02/06/2011 01:28 AM Nicolas George

Non-blocking protocols: flag and documentation

Signed-off-by: Nicolas George <>
Signed-off-by: Ronald S. Bultje <>

93b78d12 01/25/2011 08:48 PM Anton Khirnov

lavf: make a variant of ff_get_str16_nolen public

It will be useful in mp3 demuxer and hopeful some other places.

Signed-off-by: Janne Grunau <>

dccbd97d 01/21/2011 08:21 PM Anton Khirnov

lavf: move ff_put_str16_nolen from asf to avio and rename it

It will be useful in the mp3 muxer.

Signed-off-by: Mans Rullgard <>

4efd5cf3 01/21/2011 08:21 PM Anton Khirnov

avio: add av_put_str and deprecate put_strz in favor of it

Signed-off-by: Mans Rullgard <>

50196a98 01/21/2011 07:30 PM Anton Khirnov

lavf: move the version macros to a new header

Signed-off-by: Mans Rullgard <>

17ee8f66 01/02/2011 10:45 AM Anssi Hannula

Add function put_nbyte() to speed up padding in SPDIF muxer.

Patch by Anssi Hannula, anssi d hannula a iki d fi

Originally committed as revision 26193 to svn://

267ff3ae 10/31/2010 04:11 PM Stefano Sabatini

Document url_write().

Originally committed as revision 25613 to svn://

a178edf2 10/23/2010 04:21 PM Aurelien Jacobs

drop rtp_get_file_handles() which is not part of public API and not used anymore

Originally committed as revision 25556 to svn://

8ef30ac1 10/15/2010 12:49 PM Aurelien Jacobs

add FF_API_UDP_GET_FILE define to disable the deprecated udp_get_file_handle()
public function

Originally committed as revision 25481 to svn://

85c15960 10/06/2010 06:42 PM Stefano Sabatini

Move the definitions of AVSEEK_SIZE to make it appear before the
description of url_seek(), which references it.

Originally committed as revision 25376 to svn://

8bf256bc 10/02/2010 09:16 AM Stefano Sabatini

Document url_get_filename().

Originally committed as revision 25310 to svn://

f3f5eb6e 09/30/2010 10:55 AM Stefano Sabatini

Document url_filesize().

Originally committed as revision 25268 to svn://

364cacc7 08/19/2010 09:28 PM Aurelien Jacobs

add FF_API_URL_RESETBUF define to disable the deprecated url_resetbuf()
public function

Originally committed as revision 24841 to svn://

838b27b4 08/19/2010 09:21 PM Aurelien Jacobs

add FF_API_REGISTER_PROTOCOL define to disable the deprecated
register_protocol() function

Originally committed as revision 24840 to svn://

404eba44 08/19/2010 04:49 PM Aurelien Jacobs

add FF_API_URL_CLASS define to enable usage of URLContext as a AVClass

Originally committed as revision 24835 to svn://

d5e9ddeb 07/16/2010 11:20 PM Martin Storsjö

url_fskip: Return an error code if the url_fseek failed

Originally committed as revision 24277 to svn://

de1807bb 07/01/2010 08:15 PM Josh Allmann

Pad the buffer in url_close_dyn_buf, for buffers opened with url_open_dyn_buf

Patch by Josh Allmann, joshua dot allmann at gmail

Originally committed as revision 23942 to svn://

49bd8e4b 06/30/2010 03:38 PM Måns Rullgård

Fix grammar errors in documentation

Originally committed as revision 23904 to svn://

ed8d5766 06/23/2010 11:26 AM Martin Storsjö

Add all required includes to avio.h

Originally committed as revision 23734 to svn://

735cf6b2 06/22/2010 02:09 PM Martin Storsjö

Add priv_data_size and priv_data_class to URLProtocol

This allows url_alloc to allocate and initialize the priv_data.

Originally committed as revision 23706 to svn://

ffbb289a 06/22/2010 02:03 PM Martin Storsjö

Split url_open and url_open_protocol into url_alloc and url_connect

Originally committed as revision 23704 to svn://

9b07a2dc 06/22/2010 01:58 PM Martin Storsjö

Add an av_register_protocol2 function that takes a size parameter

This allows extending the URLProtocol struct without breaking binary
compatibility with code compiled with older definitions of the struct.

Originally committed as revision 23702 to svn://

27241cbf 06/01/2010 07:46 AM Martin Storsjö

Declare the url_write buffer parameter as const

Originally committed as revision 23401 to svn://

ba87f080 04/20/2010 02:45 PM Diego Biurrun

Remove explicit filename from Doxygen @file commands.

Passing an explicit filename to this command is only necessary if the
documentation in the @file block refers to a file different from the
one the block resides in.

Originally committed as revision 22921 to svn://

01d91b9b 04/08/2010 09:02 AM Tomas Härdin

Reusing the probe buffer to rewind the ByteIOContext in ff_probe_input_buffer() instead of seeking back to the start of the file. Once exhausted, the size of the buffer is reduced.

Originally committed as revision 22821 to svn://

32e543f8 03/30/2010 03:50 PM Benoit Fouet

Replace @returns by @return.

Originally committed as revision 22729 to svn://

8a36b59b 03/29/2010 10:29 PM Stefano Sabatini

Document url_exist().

Originally committed as revision 22725 to svn://

9bee2459 03/28/2010 10:31 AM Stefano Sabatini

Document url_seek().

Originally committed as revision 22709 to svn://

493f54ad 03/15/2010 10:54 PM Michael Niedermayer

Add AVSEEK_FORCE flag to indicate that the code should attempt to seek
by any means.

Originally committed as revision 22557 to svn://

fe4fbb58 02/09/2010 06:59 PM Stefano Sabatini

Doxument url_fopen().

Originally committed as revision 21714 to svn://

4e38c094 02/05/2010 11:03 PM Stefano Sabatini

Doxument url_fdopen().

Originally committed as revision 21647 to svn://

d19a046e 01/27/2010 12:21 AM Stefano Sabatini

Document av_register_protocol(), not that it really needs to be
documented but it's nice to have everything documented.

Originally committed as revision 21471 to svn://

b0634fd1 01/24/2010 10:07 PM Stefano Sabatini

Doxument url_open().

Originally committed as revision 21437 to svn://

725b3da9 01/24/2010 06:18 PM Stefano Sabatini

Favor the term "URL" over "filename", as the API deals with URLs
rather than with simple filenames.

Originally committed as revision 21429 to svn://

f1f78a9d 01/24/2010 04:33 PM Stefano Sabatini

Doxument url_close().

Originally committed as revision 21420 to svn://

333146dd 01/24/2010 01:31 PM Stefano Sabatini

Doxument url_open_protocol().

Originally committed as revision 21417 to svn://

1f8ad15a 01/24/2010 01:07 PM Stefano Sabatini

Doxument url_read().

Originally committed as revision 21415 to svn://

ddb901b7 01/23/2010 10:23 AM Reimar Döffinger

Make url_read_complete retry on EAGAIN and return how much data it read
if it reached EOF, making it useful in more cases.

Originally committed as revision 21393 to svn://

08580cb0 10/20/2009 06:40 AM Benoit Fouet

Make url_resetbuf() assert on wrong flags passed and make it static on next
version bump.
See thread: [FFmpeg-devel] & vs. &&
Date: Mon, 12 Oct 2009 14:21:06 +0200

Originally committed as revision 20330 to svn://

0e848977 06/04/2009 06:25 AM Kostya Shishkov

Move function for reading whole specified amount of data from RTSP
demuxer into more common place.

Originally committed as revision 19087 to svn://

597b4b3f 05/25/2009 10:17 PM Stefano Sabatini

Define struct URLContext and typedef it to URLContext in one step.

Originally committed as revision 18948 to svn://

f0a80394 03/03/2009 05:04 PM Ronald S. Bultje

Add url_get_file_handle(), which is used to get the file descriptor
associated with the I/O handle (e.g. the fd returned by open()). See
"[RFC] rtsp.c EOF support" thread.

There were previously some URI-specific implementations of the same idea,
e.g. rtp_get_file_handles() and udp_get_file_handle(). All of these are...

3f4c2bf9 02/26/2009 10:34 PM Stefano Sabatini

Mark as "internal but installed" the avio.h file.

This should prevent its direct inclusion in an external project, which
results broken if avformat.h is not included before.

Originally committed as revision 17626 to svn://

aafe9b63 02/26/2009 10:28 PM Stefano Sabatini

Add a @file notice to avio.h.

Originally committed as revision 17625 to svn://

30f68128 02/17/2009 09:43 PM Diego Biurrun

Add missing #includes to fix 'make checkheaders'.

Originally committed as revision 17398 to svn://

c1b02101 02/15/2009 08:45 PM Stefano Sabatini

Improve grammar: "X next after Y" -> "next X after Y".

Originally committed as revision 17347 to svn://

d1037c12 02/15/2009 02:34 PM Stefano Sabatini

Do not export to the public the first_protocol symbol at the next
major bump.
There is no need for that, since av_protocol_next() already provides
access to the first registered protocol.

Originally committed as revision 17326 to svn://

9075d1e0 02/15/2009 02:31 PM Stefano Sabatini

Document av_protocol_next().

Originally committed as revision 17324 to svn://

65c40e4e 02/15/2009 02:25 PM Stefano Sabatini

Rename register_protocol() to av_register_protocol() and deprecate

Originally committed as revision 17322 to svn://

7f37f568 12/13/2008 01:39 PM Diego Biurrun

whitespace cosmetics

Originally committed as revision 16100 to svn://

bc5c918e 10/03/2008 10:16 AM Diego Biurrun

Remove offset_t typedef and use int64_t directly instead.
The name offset_t is easily confused with the standard off_t type and
*_t is POSIX reserved namespace if any POSIX header is included.

Originally committed as revision 15533 to svn://

98790382 08/31/2008 07:39 AM Stefano Sabatini

Globally rename the header inclusion guard names.

Consistently apply this rule: the guard name is obtained from the
filename by stripping the leading "lib", converting '/' and '.' to
'_' and uppercasing the resulting name. Guard names in the root
directory have to be prefixed by "FFMPEG_"....

ba99cfc2 08/19/2008 11:44 PM Ronald S. Bultje

Implement url_open_protocol(), which is basiclly the former url_open()
but which opens a URLProtocol instead of a filename. url_open() is
reimplemented to call url_open_protocol(). See discussion on
"url_open_protocol" on ffmpeg-devel.

Originally committed as revision 14857 to svn://

4477dedc 03/31/2008 05:31 PM Diego Biurrun

minor typo fixes

Originally committed as revision 12658 to svn://

57ecf8d2 03/22/2008 05:25 PM Michael Niedermayer

1st attempt at correcting the punktuation.

Originally committed as revision 12555 to svn://

4edfcecc 03/21/2008 10:17 PM Michael Niedermayer

Document get_*_buffer()

Originally committed as revision 12548 to svn://

67e21020 03/21/2008 11:27 AM Michael Niedermayer

Document a few url_* functions.

Originally committed as revision 12537 to svn://

5acef35f 03/10/2008 07:03 PM Björn Axelsson

Add AVClass to URLContext at next major version bump

Patch by Björn Axelsson (bjorn axelsson intinor se)

Originally committed as revision 12411 to svn://

1e0f3468 12/22/2007 04:18 PM Reimar Döffinger

Add a av_alloc_put_byte function.
The name is in analogy to init_put_byte, but I would not mind it
being changed to something better.

Originally committed as revision 11305 to svn://