summaryrefslogtreecommitdiff
path: root/src/lib/format.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-10-15 12:40:47 +0100
committerCarl Hetherington <cth@carlh.net>2012-10-15 12:40:47 +0100
commit43990add893eccf350f280e2dd3f947a94f3e9aa (patch)
tree2dc1dcec95446a323460140c5afa44c45cfca487 /src/lib/format.h
parent82e38014d0cc17f3c73b593f3da9c9923484665b (diff)
Some work on DCI naming. Clean up compacted / aligned image handling somewhat.
Diffstat (limited to 'src/lib/format.h')
-rw-r--r--src/lib/format.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/lib/format.h b/src/lib/format.h
index fd6cdbece..35dd4fb85 100644
--- a/src/lib/format.h
+++ b/src/lib/format.h
@@ -31,10 +31,11 @@ class Film;
class Format
{
public:
- Format (Size dcp, std::string id, std::string n)
+ Format (Size dcp, std::string id, std::string n, std::string d)
: _dcp_size (dcp)
, _id (id)
, _nickname (n)
+ , _dci_name (d)
{}
/** @return the aspect ratio multiplied by 100
@@ -67,6 +68,10 @@ public:
return _nickname;
}
+ std::string dci_name () const {
+ return _dci_name;
+ }
+
std::string as_metadata () const;
static Format const * from_nickname (std::string n);
@@ -85,6 +90,7 @@ protected:
std::string _id;
/** nickname (e.g. Flat, Scope) */
std::string _nickname;
+ std::string _dci_name;
private:
/** all available formats */
@@ -98,7 +104,7 @@ private:
class FixedFormat : public Format
{
public:
- FixedFormat (int, Size, std::string, std::string);
+ FixedFormat (int, Size, std::string, std::string, std::string);
int ratio_as_integer (Film const *) const {
return _ratio;
@@ -119,7 +125,7 @@ private:
class VariableFormat : public Format
{
public:
- VariableFormat (Size, std::string, std::string);
+ VariableFormat (Size, std::string, std::string, std::string);
int ratio_as_integer (Film const * f) const;
float ratio_as_float (Film const * f) const;