MythTV master
mythmediawriter.cpp
Go to the documentation of this file.
1/*
2 * Class FileWriterBase
3 *
4 * Copyright (C) Chris Pinkham 2011
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21// MythTV
22#include "io/mythmediawriter.h"
23
24void MythMediaWriter::SetFilename(const QString &FileName)
25{
26 m_filename = FileName;
27}
28
29void MythMediaWriter::SetContainer(const QString &Cont)
30{
31 m_container = Cont;
32}
33
34void MythMediaWriter::SetVideoCodec(const QString &Codec)
35{
36 m_videoCodec = Codec;
37}
38
40{
41 m_videoBitrate = Bitrate;
42}
43
45{
46 m_width = Width;
47}
48
50{
51 m_height = Height;
52}
53
55{
56 m_aspect = Aspect;
57}
58
60{
61 m_frameRate = Rate;
62}
63
65{
66 m_keyFrameDist = Dist;
67}
68
69void MythMediaWriter::SetAudioCodec(const QString &Codec)
70{
71 m_audioCodec = Codec;
72}
73
75{
76 m_audioBitrate = Bitrate;
77}
78
80{
81 m_audioChannels = Channels;
82}
83
85{
86 m_audioFrameRate = Rate;
87}
88
90{
92}
93
95{
97}
98
99void MythMediaWriter::SetTimecodeOffset(std::chrono::milliseconds Offset)
100{
102}
103
104void MythMediaWriter::SetEncodingPreset(const QString &Preset)
105{
106 m_encodingPreset = Preset;
107}
108
109void MythMediaWriter::SetEncodingTune(const QString &Tune)
110{
111 m_encodingTune = Tune;
112}
113
115{
116 return m_framesWritten;
117}
118
119std::chrono::milliseconds MythMediaWriter::GetTimecodeOffset(void) const
120{
122}
123
125{
126 return m_audioFrameSize;
127}
void SetHeight(int Height)
void SetAudioChannels(int Channels)
void SetAudioFormat(AudioFormat Format)
std::chrono::milliseconds GetTimecodeOffset(void) const
void SetTimecodeOffset(std::chrono::milliseconds Offset)
void SetContainer(const QString &Cont)
long long m_framesWritten
void SetFilename(const QString &FileName)
void SetAudioBitrate(int Bitrate)
void SetAudioCodec(const QString &Codec)
QString m_encodingTune
QString m_encodingPreset
void SetVideoBitrate(int Bitrate)
void SetAspect(float Aspect)
void SetAudioFrameRate(int Rate)
void SetThreadCount(int Count)
int GetAudioFrameSize(void) const
void SetFramerate(double Rate)
long long GetFramesWritten(void) const
void SetVideoCodec(const QString &Codec)
void SetEncodingPreset(const QString &Preset)
std::chrono::milliseconds m_startingTimecodeOffset
void SetKeyFrameDist(int Dist)
AudioFormat m_audioFormat
void SetEncodingTune(const QString &Tune)
void SetWidth(int Width)