X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ftypes.h;h=33f8239d88cbee89ace3e07b51acd94d67b27fd9;hb=09a9ac376db005a40a351736bcff4077f098825d;hp=c2bb9d8531d2ee1f8c5761ebd2f1827119a5d372;hpb=147cca5876dfbdf56e21289c3a36bec4b4850191;p=dcpomatic.git diff --git a/src/lib/types.h b/src/lib/types.h index c2bb9d853..33f8239d8 100644 --- a/src/lib/types.h +++ b/src/lib/types.h @@ -21,14 +21,17 @@ #define DCPOMATIC_TYPES_H #include +#include #include #include class Content; -typedef std::vector > ContentList; -typedef int64_t ContentAudioFrame; -typedef int ContentVideoFrame; +typedef int64_t Time; +#define TIME_MAX INT64_MAX +#define TIME_HZ ((Time) 96000) +typedef int64_t OutputAudioFrame; +typedef int OutputVideoFrame; /** @struct Crop * @brief A description of the crop of an image or video. @@ -71,6 +74,8 @@ struct Position int y; }; +namespace dcpomatic { + /** @struct Rect * @brief A rectangle. */ @@ -104,6 +109,10 @@ struct Rect } Rect intersection (Rect const & other) const; + + bool contains (Position) const; }; +} + #endif