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...
 
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 ,
  dcp::LC = 8 , dcp::RC = 9 , 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 , OTHER }
 
enum class  Effect { NONE , BORDER , SHADOW }
 
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  Formulation { MODIFIED_TRANSITIONAL_1 , MULTIPLE_MODIFIED_TRANSITIONAL_1 , DCI_ANY , DCI_SPECIFIC }
 
enum class  dcp::Marker {
  dcp::FFOC , dcp::LFOC , dcp::FFTC , dcp::LFTC ,
  dcp::FFOI , dcp::LFOI , dcp::FFEC , dcp::LFEC ,
  dcp::FFMC , dcp::LFMC , dcp::FFOB , dcp::LFOB
}
 
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::effect_to_string (Effect e)
 
Effect dcp::string_to_effect (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)
 
std::string dcp::formulation_to_string (dcp::Formulation formulation)
 
dcp::Formulation dcp::string_to_formulation (std::string forumulation)
 
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
 
constexpr float dcp::SIZE_EPSILON = 1e-3
 
constexpr float dcp::OFFSET_EPSILON = 1e-3
 
constexpr float dcp::SPACING_EPSILON = 1e-3
 

Detailed Description

Miscellaneous types.

Definition in file types.h.