[UI] Restored some video code
This commit is contained in:
@@ -71,6 +71,10 @@ class MediaFile
|
||||
MediaFile(const boost::filesystem::path& p);
|
||||
~MediaFile();
|
||||
|
||||
// non copyable
|
||||
MediaFile(const MediaFile&) = delete;
|
||||
MediaFile& operator=(const MediaFile&) = delete;
|
||||
|
||||
boost::filesystem::path getPath() const {return _p;};
|
||||
|
||||
bool open(void);
|
||||
@@ -85,6 +89,7 @@ class MediaFile
|
||||
std::vector<Picture> getAttachedPictures(std::size_t nbMaxPictures) const;
|
||||
|
||||
private:
|
||||
MediaFile();
|
||||
|
||||
boost::filesystem::path _p;
|
||||
AVFormatContext* _context;
|
||||
|
||||
@@ -73,7 +73,7 @@ class TranscodeParameters
|
||||
private:
|
||||
Encoding _encoding = Encoding::MP3;
|
||||
boost::posix_time::time_duration _offset = boost::posix_time::seconds(0);
|
||||
std::set<int> _selectedStreams;
|
||||
std::set<int> _selectedStreams;
|
||||
std::map<Stream::Type, std::size_t> _outputBitrate = { {Stream::Type::Audio, 0}, { Stream::Type::Video, 0}, { Stream::Type::Subtitle, 0} };
|
||||
};
|
||||
|
||||
@@ -86,12 +86,18 @@ class Transcoder
|
||||
Transcoder(boost::filesystem::path file, TranscodeParameters parameters);
|
||||
~Transcoder();
|
||||
|
||||
// non copyable
|
||||
Transcoder(const Transcoder&) = delete;
|
||||
Transcoder& operator=(const Transcoder&) = delete;
|
||||
|
||||
bool start();
|
||||
void process(std::vector<unsigned char>& output, std::size_t maxSize);
|
||||
bool isComplete(void);
|
||||
|
||||
private:
|
||||
|
||||
Transcoder();
|
||||
|
||||
boost::filesystem::path _filePath;
|
||||
TranscodeParameters _parameters;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user