libdcp
Classes | Namespaces | Typedefs | Enumerations | Functions | Variables
types.h File Reference

Miscellaneous types. More...

#include "warnings.h"
#include <libcxml/cxml.h>
#include <asdcp/KLV.h>
#include <memory>
#include <boost/function.hpp>
#include <string>

Go to the source code of this file.

Classes

struct  dcp::Size
 The integer, two-dimensional size of something. More...
 
class  dcp::Fraction
 A fraction (i.e. a thing with an integer numerator and an integer denominator). More...
 
struct  dcp::EqualityOptions
 A class to describe what "equality" means for a particular test. More...
 
class  dcp::Colour
 An RGB colour. More...
 
class  dcp::ContentVersion
 
class  dcp::Luminance
 
class  dcp::MainSoundConfiguration
 

Namespaces

 dcp
 Namespace for everything in libdcp.
 

Typedefs

typedef boost::function< void(NoteType, std::string)> dcp::NoteHandler
 

Enumerations

enum class  dcp::Channel {
  dcp::LEFT = 0 , dcp::RIGHT = 1 , dcp::CENTRE = 2 , dcp::LFE = 3 ,
  dcp::LS = 4 , dcp::RS = 5 , HI = 6 , VI = 7 ,
  BSL = 10 , BSR = 11 , MOTION_DATA = 12 , SYNC_SIGNAL = 13 ,
  SIGN_LANGUAGE = 14 , CHANNEL_COUNT = 16
}
 
enum class  MCASoundField { FIVE_POINT_ONE , SEVEN_POINT_ONE }
 
enum class  ContentKind {
  FEATURE , SHORT , TRAILER , TEST ,
  TRANSITIONAL , RATING , TEASER , POLICY ,
  PUBLIC_SERVICE_ANNOUNCEMENT , ADVERTISEMENT , EPISODE , PROMO
}
 
enum class  Effect { NONE , BORDER , SHADOW }
 
enum class  dcp::HAlign { dcp::LEFT , dcp::CENTER , dcp::RIGHT }
 
enum class  dcp::VAlign { dcp::TOP , dcp::CENTER , dcp::BOTTOM }
 
enum class  dcp::Direction { dcp::LTR , dcp::RTL , dcp::TTB , dcp::BTT }
 
enum class  Eye { LEFT , RIGHT }
 
enum class  NoteType { PROGRESS , ERROR , NOTE }
 
enum class  Standard { INTEROP , SMPTE }
 
enum class  dcp::Formulation {
  MODIFIED_TRANSITIONAL_1 , MULTIPLE_MODIFIED_TRANSITIONAL_1 , DCI_ANY , DCI_SPECIFIC ,
  dcp::MODIFIED_TRANSITIONAL_TEST
}
 
enum class  dcp::Marker {
  dcp::FFOC , dcp::LFOC , dcp::FFTC , dcp::LFTC ,
  dcp::FFOI , dcp::LFOI , dcp::FFEC , dcp::LFEC ,
  dcp::FFMC , dcp::LFMC
}
 
enum class  dcp::Status { dcp::FINAL , dcp::TEMP , dcp::PRE }
 

Functions

bool dcp::operator== (Size const &a, Size const &b)
 
bool dcp::operator!= (Size const &a, Size const &b)
 
std::vector< dcp::Channeldcp::used_audio_channels ()
 
std::string dcp::channel_to_mca_id (Channel c, MCASoundField field)
 
Channel dcp::mca_id_to_channel (std::string)
 
std::string dcp::channel_to_mca_name (Channel c, MCASoundField field)
 
ASDCP::UL dcp::channel_to_mca_universal_label (Channel c, MCASoundField field, ASDCP::Dictionary const *dict)
 
std::string dcp::content_kind_to_string (ContentKind kind)
 
ContentKind dcp::content_kind_from_string (std::string kind)
 
std::string dcp::effect_to_string (Effect e)
 
Effect dcp::string_to_effect (std::string s)
 
std::string dcp::halign_to_string (HAlign a)
 
HAlign dcp::string_to_halign (std::string s)
 
std::string dcp::valign_to_string (VAlign a)
 
VAlign dcp::string_to_valign (std::string s)
 
std::string dcp::direction_to_string (Direction a)
 
Direction dcp::string_to_direction (std::string s)
 
bool dcp::operator== (Fraction const &a, Fraction const &b)
 
bool dcp::operator!= (Fraction const &a, Fraction const &b)
 
bool dcp::operator== (Colour const &a, Colour const &b)
 
bool dcp::operator!= (Colour const &a, Colour const &b)
 
std::string dcp::marker_to_string (Marker)
 
Marker dcp::marker_from_string (std::string)
 
std::string dcp::status_to_string (Status s)
 
Status dcp::string_to_status (std::string s)
 
bool dcp::operator== (Luminance const &a, Luminance const &b)
 

Variables

constexpr float dcp::ASPECT_ADJUST_EPSILON = 1e-3
 
constexpr float dcp::ALIGN_EPSILON = 1e-3
 
constexpr float dcp::SPACE_BEFORE_EPSILON = 1e-3
 

Detailed Description

Miscellaneous types.

Definition in file types.h.