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