WIP. Scale cover art option now mandatory!

This commit is contained in:
emeric
2014-06-15 23:40:04 +02:00
parent 9bada5ee2a
commit b739f4ef56
10 changed files with 67 additions and 36 deletions
+2 -1
View File
@@ -6,6 +6,7 @@
#include "InputMediaFile.hpp"
#include "av/InputFormatContext.hpp"
#include "cover/CoverArtGrabber.hpp"
namespace Transcode
{
@@ -77,7 +78,7 @@ InputMediaFile::InputMediaFile(const boost::filesystem::path& p)
std::cerr << "Cannot find best stream for type " << type << std::endl;
}
input.getPictures( _coverPictures );
_covers = CoverArt::Grabber::getFromInputFormatContext(input);
}
std::vector<Stream>
+4 -2
View File
@@ -7,6 +7,8 @@
#include <boost/filesystem.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include "cover/CoverArt.hpp"
#include "Stream.hpp"
@@ -33,7 +35,7 @@ class InputMediaFile
boost::posix_time::time_duration getDuration(void) const {return _duration;}
// Pictures
const std::vector< std::vector<unsigned char> >& getCoverPictures(void) const { return _coverPictures; }
const std::vector< CoverArt::CoverArt >& getCovers(void) const { return _covers; }
// Stream handling
std::vector<Stream> getStreams(Stream::Type type) const;
@@ -47,7 +49,7 @@ class InputMediaFile
std::vector<Stream> _streams;
std::map<Stream::Type, Stream::Id> _bestStreams;
std::vector< std::vector<unsigned char> > _coverPictures;
std::vector< CoverArt::CoverArt > _covers;
};