-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support recording artwork in the OSD.
Themers can now use fanart, banner, coverart, and screenshot imagetypes in the OSD and expect them to behave identically in both recordings and videos (as opposed to only working for videos). This looks like a LOT larger change than it actually is. In reality, it's a number of changes to the media plugin registration, a header move, and just a couple dozen lines to add support for the imagery to the OSD.
- Loading branch information
Robert McNamara
committed
Jul 23, 2011
1 parent
bdb7e79
commit 6216029
Showing
18 changed files
with
125 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#ifndef _METADATAIMAGEHELPER_H_ | ||
#define _METADATAIMAGEHELPER_H_ | ||
|
||
#include <QObject> | ||
|
||
#include "mythtvexp.h" | ||
|
||
enum VideoArtworkType { | ||
kArtworkCoverart = 0, | ||
kArtworkFanart = 1, | ||
kArtworkBanner = 2, | ||
kArtworkScreenshot = 3, | ||
kArtworkPoster = 4, | ||
kArtworkBackCover = 5, | ||
kArtworkInsideCover = 6, | ||
kArtworkCDImage = 7 | ||
}; | ||
Q_DECLARE_METATYPE(VideoArtworkType) | ||
|
||
struct ArtworkInfo | ||
{ | ||
QString label; | ||
QString thumbnail; | ||
QString url; | ||
uint width; | ||
uint height; | ||
}; | ||
Q_DECLARE_METATYPE(ArtworkInfo) | ||
|
||
typedef QList< ArtworkInfo > ArtworkList; | ||
|
||
typedef QMultiMap< VideoArtworkType, ArtworkInfo > ArtworkMap; | ||
|
||
MTV_PUBLIC ArtworkMap GetArtwork(QString inetref, | ||
uint season, | ||
bool strict = false); | ||
MTV_PUBLIC bool SetArtwork(const QString &inetref, | ||
uint season, | ||
const QString &host, | ||
const QString &coverart, | ||
const QString &fanart, | ||
const QString &banner); | ||
MTV_PUBLIC bool SetArtwork(const QString &inetref, | ||
uint season, | ||
const QString &host, | ||
const ArtworkMap map); | ||
|
||
#include "storagegroup.h" | ||
#include "mythcorecontext.h" | ||
inline QString generate_myth_url( | ||
const QString &storage_group, const QString &host, const QString &path) | ||
{ | ||
QString ip = gCoreContext->GetSettingOnHost("BackendServerIP", host); | ||
uint port = gCoreContext->GetSettingOnHost("BackendServerPort", | ||
host).toUInt(); | ||
|
||
return gCoreContext->GenMythURL(ip,port,path, | ||
StorageGroup::GetGroupToUse(host, storage_group)); | ||
|
||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.