| OLD | NEW |
| 1 /* | 1 /* |
| 2 * copyright (c) 2001 Fabrice Bellard | 2 * copyright (c) 2001 Fabrice Bellard |
| 3 * | 3 * |
| 4 * This file is part of FFmpeg. | 4 * This file is part of FFmpeg. |
| 5 * | 5 * |
| 6 * FFmpeg is free software; you can redistribute it and/or | 6 * FFmpeg is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Lesser General Public | 7 * modify it under the terms of the GNU Lesser General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2.1 of the License, or (at your option) any later version. | 9 * version 2.1 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 /** | 175 /** |
| 176 * Return the filesize of the resource accessed by h, AVERROR(ENOSYS) | 176 * Return the filesize of the resource accessed by h, AVERROR(ENOSYS) |
| 177 * if the operation is not supported by h, or another negative value | 177 * if the operation is not supported by h, or another negative value |
| 178 * corresponding to an AVERROR error code in case of failure. | 178 * corresponding to an AVERROR error code in case of failure. |
| 179 */ | 179 */ |
| 180 int64_t url_filesize(URLContext *h); | 180 int64_t url_filesize(URLContext *h); |
| 181 | 181 |
| 182 /** | 182 /** |
| 183 * Return the file descriptor associated with this URL. For RTP, this | 183 * Return the file descriptor associated with this URL. For RTP, this |
| 184 * will return only the RTP file descriptor, not the RTCP file descriptor. | 184 * will return only the RTP file descriptor, not the RTCP file descriptor. |
| 185 * To get both, use rtp_get_file_handles(). | |
| 186 * | 185 * |
| 187 * @return the file descriptor associated with this URL, or <0 on error. | 186 * @return the file descriptor associated with this URL, or <0 on error. |
| 188 */ | 187 */ |
| 189 int url_get_file_handle(URLContext *h); | 188 int url_get_file_handle(URLContext *h); |
| 190 | 189 |
| 191 /** | 190 /** |
| 192 * Return the maximum packet size associated to packetized file | 191 * Return the maximum packet size associated to packetized file |
| 193 * handle. If the file is not packetized (stream like HTTP or file on | 192 * handle. If the file is not packetized (stream like HTTP or file on |
| 194 * disk), then 0 is returned. | 193 * disk), then 0 is returned. |
| 195 * | 194 * |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 555 unsigned long ff_crc04C11DB7_update(unsigned long checksum, const uint8_t *buf, | 554 unsigned long ff_crc04C11DB7_update(unsigned long checksum, const uint8_t *buf, |
| 556 unsigned int len); | 555 unsigned int len); |
| 557 unsigned long get_checksum(ByteIOContext *s); | 556 unsigned long get_checksum(ByteIOContext *s); |
| 558 void init_checksum(ByteIOContext *s, | 557 void init_checksum(ByteIOContext *s, |
| 559 unsigned long (*update_checksum)(unsigned long c, const uint8
_t *p, unsigned int len), | 558 unsigned long (*update_checksum)(unsigned long c, const uint8
_t *p, unsigned int len), |
| 560 unsigned long checksum); | 559 unsigned long checksum); |
| 561 | 560 |
| 562 /* udp.c */ | 561 /* udp.c */ |
| 563 int udp_set_remote_url(URLContext *h, const char *uri); | 562 int udp_set_remote_url(URLContext *h, const char *uri); |
| 564 int udp_get_local_port(URLContext *h); | 563 int udp_get_local_port(URLContext *h); |
| 565 #if (LIBAVFORMAT_VERSION_MAJOR <= 52) | 564 #if FF_API_UDP_GET_FILE |
| 566 int udp_get_file_handle(URLContext *h); | 565 int udp_get_file_handle(URLContext *h); |
| 567 #endif | 566 #endif |
| 568 | 567 |
| 569 #endif /* AVFORMAT_AVIO_H */ | 568 #endif /* AVFORMAT_AVIO_H */ |
| OLD | NEW |