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

Method init_reader_settings

src/Clip.cpp:135–146  ·  view source on GitHub ↗

Init reader info details

Source from the content-addressed store, hash-verified

133
134// Init reader info details
135void Clip::init_reader_settings() {
136 if (reader) {
137 // Init rotation (if any)
138 init_reader_rotation();
139
140 // Initialize info struct
141 info = reader->info;
142
143 // Init cache
144 final_cache.SetMaxBytesFromInfo(8, info.width, info.height, info.sample_rate, info.channels);
145 }
146}
147
148void Clip::init_reader_rotation() {
149 // Only apply metadata rotation if clip rotation has not been explicitly set.

Callers

nothing calls this directly

Calls 1

SetMaxBytesFromInfoMethod · 0.80

Tested by

no test coverage detected