Mercurial > libavformat.hg
comparison avformat.h @ 743:af4e24d6310c libavformat
switch to native time bases
author | michael |
---|---|
date | Sat, 30 Apr 2005 21:43:59 +0000 |
parents | 17178af951b4 |
children | c5077fdab490 |
comparison
equal
deleted
inserted
replaced
742:21c1ae78f041 | 743:af4e24d6310c |
---|---|
3 | 3 |
4 #ifdef __cplusplus | 4 #ifdef __cplusplus |
5 extern "C" { | 5 extern "C" { |
6 #endif | 6 #endif |
7 | 7 |
8 #define LIBAVFORMAT_BUILD 4623 | 8 #define LIBAVFORMAT_BUILD 4624 |
9 | 9 |
10 #define LIBAVFORMAT_VERSION_INT FFMPEG_VERSION_INT | 10 #define LIBAVFORMAT_VERSION_INT FFMPEG_VERSION_INT |
11 #define LIBAVFORMAT_VERSION FFMPEG_VERSION | 11 #define LIBAVFORMAT_VERSION FFMPEG_VERSION |
12 #define LIBAVFORMAT_IDENT "FFmpeg" FFMPEG_VERSION "b" AV_STRINGIFY(LIBAVFORMAT_BUILD) | 12 #define LIBAVFORMAT_IDENT "FFmpeg" FFMPEG_VERSION "b" AV_STRINGIFY(LIBAVFORMAT_BUILD) |
13 | 13 |
96 } AVProbeData; | 96 } AVProbeData; |
97 | 97 |
98 #define AVPROBE_SCORE_MAX 100 | 98 #define AVPROBE_SCORE_MAX 100 |
99 | 99 |
100 typedef struct AVFormatParameters { | 100 typedef struct AVFormatParameters { |
101 int frame_rate; | 101 AVRational time_base; |
102 int frame_rate_base; | |
103 int sample_rate; | 102 int sample_rate; |
104 int channels; | 103 int channels; |
105 int width; | 104 int width; |
106 int height; | 105 int height; |
107 enum PixelFormat pix_fmt; | 106 enum PixelFormat pix_fmt; |
223 | 222 |
224 typedef struct AVStream { | 223 typedef struct AVStream { |
225 int index; /* stream index in AVFormatContext */ | 224 int index; /* stream index in AVFormatContext */ |
226 int id; /* format specific stream id */ | 225 int id; /* format specific stream id */ |
227 AVCodecContext codec; /* codec context */ | 226 AVCodecContext codec; /* codec context */ |
228 int r_frame_rate; /* real frame rate of the stream */ | 227 AVRational r_frame_rate; /* real frame rate of the stream */ |
229 int r_frame_rate_base;/* real frame rate base of the stream */ | |
230 void *priv_data; | 228 void *priv_data; |
231 /* internal data used in av_find_stream_info() */ | 229 /* internal data used in av_find_stream_info() */ |
232 int64_t codec_info_duration; | 230 int64_t codec_info_duration; |
233 int codec_info_nb_frames; | 231 int codec_info_nb_frames; |
234 /* encoding: PTS generation when outputing stream */ | 232 /* encoding: PTS generation when outputing stream */ |