Mercurial > mplayer.hg
comparison libmpdemux/stheader.h @ 18309:87161f96fa66
Change common pts variables from floats to doubles. Individual demuxers
should be changed later.
author | uau |
---|---|
date | Thu, 27 Apr 2006 11:13:21 +0000 |
parents | caac2ca98168 |
children | 9e2b300db17b |
comparison
equal
deleted
inserted
replaced
18308:ac7048fd7c8c | 18309:87161f96fa66 |
---|---|
9 typedef struct { | 9 typedef struct { |
10 demux_stream_t *ds; | 10 demux_stream_t *ds; |
11 struct codecs_st *codec; | 11 struct codecs_st *codec; |
12 unsigned int format; | 12 unsigned int format; |
13 int inited; | 13 int inited; |
14 float delay; // relative (to sh_video->timer) time in audio stream | 14 double delay; // relative (to sh_video->timer) time in audio stream |
15 float stream_delay; // number of seconds stream should be delayed (according to dwStart or similar) | 15 float stream_delay; // number of seconds stream should be delayed (according to dwStart or similar) |
16 // output format: | 16 // output format: |
17 int sample_format; | 17 int sample_format; |
18 int samplerate; | 18 int samplerate; |
19 int samplesize; | 19 int samplesize; |
60 float stream_delay; // number of seconds stream should be delayed (according to dwStart or similar) | 60 float stream_delay; // number of seconds stream should be delayed (according to dwStart or similar) |
61 // frame counters: | 61 // frame counters: |
62 float num_frames; // number of frames played | 62 float num_frames; // number of frames played |
63 int num_frames_decoded; // number of frames decoded | 63 int num_frames_decoded; // number of frames decoded |
64 // timing (mostly for mpeg): | 64 // timing (mostly for mpeg): |
65 float pts; // predicted/interpolated PTS of the current frame | 65 double pts; // predicted/interpolated PTS of the current frame |
66 float i_pts; // PTS for the _next_ I/P frame | 66 double i_pts; // PTS for the _next_ I/P frame |
67 // output format: (set by demuxer) | 67 // output format: (set by demuxer) |
68 float fps; // frames per second (set only if constant fps) | 68 float fps; // frames per second (set only if constant fps) |
69 float frametime; // 1/fps | 69 float frametime; // 1/fps |
70 float aspect; // aspect ratio stored in the file (for prescaling) | 70 float aspect; // aspect ratio stored in the file (for prescaling) |
71 int i_bps; // == bitrate (compressed bytes/sec) | 71 int i_bps; // == bitrate (compressed bytes/sec) |