OpenShot Library | libopenshot  0.3.2
Public Member Functions | Public Attributes | List of all members
openshot::SampleRange Struct Reference

This struct holds a the range of samples needed by this frame. More...

#include <FrameMapper.h>

Public Member Functions

void Extend (int64_t samples, openshot::Fraction fps, int sample_rate, int channels, bool right_side)
 Extend SampleRange on either side. More...
 
void Shift (int64_t samples, openshot::Fraction fps, int sample_rate, int channels, bool right_side)
 
void Shrink (int64_t samples, openshot::Fraction fps, int sample_rate, int channels, bool right_side)
 Shrink SampleRange on either side. More...
 

Public Attributes

int64_t frame_end
 
int64_t frame_start
 
int sample_end
 
int sample_start
 
int total
 

Detailed Description

This struct holds a the range of samples needed by this frame.

When frame rate is changed, the audio needs to be redistributed among the remaining frames. This struct holds the range samples needed by the this frame.

Definition at line 75 of file FrameMapper.h.

Member Function Documentation

◆ Extend()

void openshot::SampleRange::Extend ( int64_t  samples,
openshot::Fraction  fps,
int  sample_rate,
int  channels,
bool  right_side 
)
inline

Extend SampleRange on either side.

Definition at line 84 of file FrameMapper.h.

Referenced by openshot::FrameMapper::GetFrame(), and Shift().

◆ Shift()

void openshot::SampleRange::Shift ( int64_t  samples,
openshot::Fraction  fps,
int  sample_rate,
int  channels,
bool  right_side 
)
inline

Definition at line 148 of file FrameMapper.h.

Referenced by openshot::FrameMapper::GetFrame().

◆ Shrink()

void openshot::SampleRange::Shrink ( int64_t  samples,
openshot::Fraction  fps,
int  sample_rate,
int  channels,
bool  right_side 
)
inline

Shrink SampleRange on either side.

Definition at line 116 of file FrameMapper.h.

Referenced by Shift().

Member Data Documentation

◆ frame_end

int64_t openshot::SampleRange::frame_end

◆ frame_start

int64_t openshot::SampleRange::frame_start

◆ sample_end

int openshot::SampleRange::sample_end

◆ sample_start

int openshot::SampleRange::sample_start

◆ total

int openshot::SampleRange::total

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