comparison avformat.h @ 5988:10867093c93c libavformat

Export av_probe_input_format2.
author reimar
date Sat, 01 May 2010 13:49:35 +0000
parents f74198942337
children 3de601aa9786
comparison
equal deleted inserted replaced
5987:d5672e116fe4 5988:10867093c93c
20 20
21 #ifndef AVFORMAT_AVFORMAT_H 21 #ifndef AVFORMAT_AVFORMAT_H
22 #define AVFORMAT_AVFORMAT_H 22 #define AVFORMAT_AVFORMAT_H
23 23
24 #define LIBAVFORMAT_VERSION_MAJOR 52 24 #define LIBAVFORMAT_VERSION_MAJOR 52
25 #define LIBAVFORMAT_VERSION_MINOR 61 25 #define LIBAVFORMAT_VERSION_MINOR 62
26 #define LIBAVFORMAT_VERSION_MICRO 0 26 #define LIBAVFORMAT_VERSION_MICRO 0
27 27
28 #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \ 28 #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
29 LIBAVFORMAT_VERSION_MINOR, \ 29 LIBAVFORMAT_VERSION_MINOR, \
30 LIBAVFORMAT_VERSION_MICRO) 30 LIBAVFORMAT_VERSION_MICRO)
886 * demuxers with or without AVFMT_NOFILE are probed. 886 * demuxers with or without AVFMT_NOFILE are probed.
887 */ 887 */
888 AVInputFormat *av_probe_input_format(AVProbeData *pd, int is_opened); 888 AVInputFormat *av_probe_input_format(AVProbeData *pd, int is_opened);
889 889
890 /** 890 /**
891 * Guesses the file format.
892 *
893 * @param is_opened Whether the file is already opened; determines whether
894 * demuxers with or without AVFMT_NOFILE are probed.
895 * @param score_max minimum score required to accept a detection, set to actual
896 * detection score afterwards.
897 * If the score is < AVPROBE_SCORE_MAX / 4 it is recommended
898 * to retry with a larger probe buffer.
899 */
900 AVInputFormat *av_probe_input_format2(AVProbeData *pd, int is_opened, int *score_max);
901
902 /**
891 * Allocates all the structures needed to read an input stream. 903 * Allocates all the structures needed to read an input stream.
892 * This does not open the needed codecs for decoding the stream[s]. 904 * This does not open the needed codecs for decoding the stream[s].
893 */ 905 */
894 int av_open_input_stream(AVFormatContext **ic_ptr, 906 int av_open_input_stream(AVFormatContext **ic_ptr,
895 ByteIOContext *pb, const char *filename, 907 ByteIOContext *pb, const char *filename,