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

Method ReaderBase

src/ReaderBase.cpp:27–60  ·  view source on GitHub ↗

Constructor for the base reader, where many things are initialized.

Source from the content-addressed store, hash-verified

25
26/// Constructor for the base reader, where many things are initialized.
27ReaderBase::ReaderBase()
28{
29 // Initialize info struct
30 info.has_video = false;
31 info.has_audio = false;
32 info.has_single_image = false;
33 info.duration = 0.0;
34 info.file_size = 0;
35 info.height = 0;
36 info.width = 0;
37 info.pixel_format = -1;
38 info.fps = Fraction();
39 info.video_bit_rate = 0;
40 info.pixel_ratio = Fraction();
41 info.display_ratio = Fraction();
42 info.vcodec = "";
43 info.video_length = 0;
44 info.video_stream_index = -1;
45 info.video_timebase = Fraction();
46 info.interlaced_frame = false;
47 info.top_field_first = true;
48 info.acodec = "";
49 info.audio_bit_rate = 0;
50 info.sample_rate = 0;
51 info.channels = 0;
52 info.channel_layout = LAYOUT_MONO;
53 info.audio_stream_index = -1;
54 info.audio_timebase = Fraction();
55
56 // Init parent clip
57 clip = NULL;
58 max_decode_width = 0;
59 max_decode_height = 0;
60}
61
62// Display file information
63void ReaderBase::DisplayInfo(std::ostream* out) {

Callers

nothing calls this directly

Calls 1

FractionClass · 0.85

Tested by

no test coverage detected