_AVbinStreamInfo Struct Reference

Stream details. More...


Data Fields

size_t structure_size
 Size of this structure, in bytes.
AVbinStreamType type
 The type of stream; either audio or video.
union {
   struct {
      unsigned int   width
 Width of the video image, in pixels.
      unsigned int   height
 Height of the video image, in pixels.
      unsigned int   sample_aspect_num
 Aspect-ratio of each pixel.
      unsigned int   sample_aspect_den
   }   video
   struct {
      AVbinSampleFormat   sample_format
 Data type of audio samples.
      unsigned int   sample_rate
 Number of samples per second, in Hz.
      unsigned int   sample_bits
 Number of bits per sample; typically 8 or 16.
      unsigned int   channels
 Number of interleaved audio channels.
   }   audio
}; 


Detailed Description

Stream details.

A stream is a single audio track or video. Most audio files contain one audio stream. Most video files contain one audio stream and one video stream. More than one audio stream may indicate the presence of multiple languages which can be selected (however at this time AVbin does not provide language information).


Field Documentation

union { ... }

struct { ... } _AVbinStreamInfo::audio

Number of interleaved audio channels.

Typically 1 for monoaural, 2 for stereo. Higher channel numbers are used for surround sound, however AVbin does not currently provide a way to access the arrangement of these channels.

Height of the video image, in pixels.

Aspect-ratio of each pixel.

The aspect is given by dividing sample_aspect_num by asmple_aspect_den.

Number of bits per sample; typically 8 or 16.

Data type of audio samples.

Number of samples per second, in Hz.

Size of this structure, in bytes.

This must be filled in by the application before passing to AVbin.

The type of stream; either audio or video.

struct { ... } _AVbinStreamInfo::video

Width of the video image, in pixels.

This is the width of actual video data, and is not necessarily the size the video is to be displayed at (see sample_aspect_num).


Generated on Fri Jan 16 14:58:52 2009 for AVbin by  doxygen 1.5.7.1