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

Method WriterBase

src/WriterBase.cpp:26–54  ·  view source on GitHub ↗

Constructor

Source from the content-addressed store, hash-verified

24
25// Constructor
26WriterBase::WriterBase()
27{
28 // Initialized writer info
29 info.has_video = false;
30 info.has_audio = false;
31 info.has_single_image = false;
32 info.duration = 0.0;
33 info.file_size = 0;
34 info.height = 0;
35 info.width = 0;
36 info.pixel_format = -1;
37 info.fps = Fraction();
38 info.video_bit_rate = 0;
39 info.pixel_ratio = Fraction();
40 info.display_ratio = Fraction();
41 info.vcodec = "";
42 info.video_length = 0;
43 info.video_stream_index = -1;
44 info.video_timebase = Fraction();
45 info.interlaced_frame = false;
46 info.top_field_first = true;
47 info.acodec = "";
48 info.audio_bit_rate = 0;
49 info.sample_rate = 0;
50 info.channels = 0;
51 info.channel_layout = LAYOUT_MONO;
52 info.audio_stream_index = -1;
53 info.audio_timebase = Fraction();
54}
55
56// This method copy's the info struct of a reader, and sets the writer with the same info
57void WriterBase::CopyReaderInfo(ReaderBase* reader)

Callers

nothing calls this directly

Calls 1

FractionClass · 0.85

Tested by

no test coverage detected