~ubuntu-dev/mplayer/ubuntu-feisty

« back to all changes in this revision

Viewing changes to libmpdemux/stheader.h

  • Committer: Reinhard Tartler
  • Date: 2006-07-08 08:47:54 UTC
  • Revision ID: siretart@tauware.de-20060708084754-c3ff228cc9c2d8de
upgrade to pre8

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
  struct codecs_st *codec;
12
12
  unsigned int format;
13
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
16
  // output format:
16
17
  int sample_format;
17
18
  int samplerate;
46
47
  void* context; // codec-specific stuff (usually HANDLE or struct pointer)
47
48
  unsigned char* codecdata; // extra header data passed from demuxer to codec
48
49
  int codecdata_len;
 
50
  double pts;  // last known pts value in output from decoder
 
51
  int pts_bytes; // bytes output by decoder after last known pts
49
52
} sh_audio_t;
50
53
 
51
54
typedef struct {
54
57
  unsigned int format;
55
58
  int inited;
56
59
  float timer;            // absolute time in video stream, since last start/seek
 
60
  float stream_delay; // number of seconds stream should be delayed (according to dwStart or similar)
57
61
  // frame counters:
58
62
  float num_frames;       // number of frames played
59
63
  int num_frames_decoded; // number of frames decoded
60
64
  // timing (mostly for mpeg):
61
 
  float pts;     // predicted/interpolated PTS of the current frame
62
 
  float i_pts;   // PTS for the _next_ I/P frame
 
65
  double pts;     // predicted/interpolated PTS of the current frame
 
66
  double i_pts;   // PTS for the _next_ I/P frame
63
67
  // output format: (set by demuxer)
64
68
  float fps;              // frames per second (set only if constant fps)
65
69
  float frametime;        // 1/fps