AVbin  Version 10
Cross-platform audio/video media decoding library with long-term ABI support.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Fields
_AVbinStreamInfo Struct Reference

#include <avbin.h>

Data Fields

size_t structure_size
 
AVbinStreamType type
 
union {
   struct {
      uint32_t   width
 
      uint32_t   height
 
      uint32_t   sample_aspect_num
 
      uint32_t   sample_aspect_den
 
      uint32_t   frame_rate_num
 
      uint32_t   frame_rate_den
 
   }   video
 
   struct {
      AVbinSampleFormat   sample_format
 
      uint32_t   sample_rate
 
      uint32_t   sample_bits
 
      uint32_t   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).

Definition at line 203 of file avbin.h.

Field Documentation

union { ... }
struct { ... } audio
uint32_t channels

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.

Definition at line 267 of file avbin.h.

uint32_t frame_rate_den

Definition at line 242 of file avbin.h.

uint32_t frame_rate_num

Frame rate, in frames per second. The frame rate is given by dividing frame_rate_num by frame_rate_den.

Version
Version 8. Requires frame_rate feature.

Definition at line 241 of file avbin.h.

uint32_t height

Height of the video image, in pixels.

Definition at line 227 of file avbin.h.

uint32_t sample_aspect_den

Definition at line 234 of file avbin.h.

uint32_t sample_aspect_num

Aspect-ratio of each pixel. The aspect is given by dividing sample_aspect_num by sample_aspect_den.

Definition at line 233 of file avbin.h.

uint32_t sample_bits

Number of bits per sample; typically 8 or 16.

Definition at line 259 of file avbin.h.

AVbinSampleFormat sample_format

Data type of audio samples.

Definition at line 249 of file avbin.h.

uint32_t sample_rate

Number of samples per second, in Hz.

Definition at line 254 of file avbin.h.

size_t structure_size

Size of this structure, in bytes. This must be filled in by the application before passing to AVbin.

Definition at line 208 of file avbin.h.

The type of stream; either audio or video.

Definition at line 213 of file avbin.h.

struct { ... } video
uint32_t width

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).

Definition at line 222 of file avbin.h.


The documentation for this struct was generated from the following file: