MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / Shift

Method Shift

src/FrameMapper.h:140–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138 }
139
140 void Shift(int64_t samples, openshot::Fraction fps, int sample_rate, int channels, bool right_side) {
141 // Extend each side of the range (to SHIFT the range) by adding (or subtracting) from both sides
142 // For example: [ range ]
143 // For example: [ range ]
144 if (right_side) {
145 // SHIFT both sides to the right
146 Extend(samples, fps, sample_rate, channels, true);
147 Shrink(samples, fps, sample_rate, channels, false);
148 } else {
149 // SHIFT both sides to the left
150 Extend(samples, fps, sample_rate, channels, false);
151 Shrink(samples, fps, sample_rate, channels, true);
152 }
153 }
154
155 int total;
156 };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected