This method copy's the info struct of a reader, and sets the writer with the same info
| 55 | |
| 56 | // This method copy's the info struct of a reader, and sets the writer with the same info |
| 57 | void WriterBase::CopyReaderInfo(ReaderBase* reader) |
| 58 | { |
| 59 | info.has_video = reader->info.has_video; |
| 60 | info.has_audio = reader->info.has_audio; |
| 61 | info.has_single_image = reader->info.has_single_image; |
| 62 | info.duration = reader->info.duration; |
| 63 | info.file_size = reader->info.file_size; |
| 64 | info.height = reader->info.height; |
| 65 | info.width = reader->info.width; |
| 66 | info.pixel_format = reader->info.pixel_format; |
| 67 | info.fps.num = reader->info.fps.num; |
| 68 | info.fps.den = reader->info.fps.den; |
| 69 | info.video_bit_rate = reader->info.video_bit_rate; |
| 70 | info.pixel_ratio.num = reader->info.pixel_ratio.num; |
| 71 | info.pixel_ratio.den = reader->info.pixel_ratio.den; |
| 72 | info.display_ratio.num = reader->info.display_ratio.num; |
| 73 | info.display_ratio.den = reader->info.display_ratio.den; |
| 74 | info.vcodec = reader->info.vcodec; |
| 75 | info.video_length = reader->info.video_length; |
| 76 | info.video_stream_index = reader->info.video_stream_index; |
| 77 | info.video_timebase.num = reader->info.video_timebase.num; |
| 78 | info.video_timebase.den = reader->info.video_timebase.den; |
| 79 | info.interlaced_frame = reader->info.interlaced_frame; |
| 80 | info.top_field_first = reader->info.top_field_first; |
| 81 | info.acodec = reader->info.acodec; |
| 82 | info.audio_bit_rate = reader->info.audio_bit_rate; |
| 83 | info.sample_rate = reader->info.sample_rate; |
| 84 | info.channels = reader->info.channels; |
| 85 | info.channel_layout = reader->info.channel_layout; |
| 86 | info.audio_stream_index = reader->info.audio_stream_index; |
| 87 | info.audio_timebase.num = reader->info.audio_timebase.num; |
| 88 | info.audio_timebase.den = reader->info.audio_timebase.den; |
| 89 | } |
| 90 | |
| 91 | // Display file information |
| 92 | void WriterBase::DisplayInfo(std::ostream* out) { |
nothing calls this directly
no outgoing calls
no test coverage detected