X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Futil.h;h=7056db6a372fe4def5fbe0cce8baa83b4a6a5e0a;hb=4aed3e564381267a36d8707b80f35cafba39fa98;hp=ac13e9f6120e88b69019428666e88816bb9f54e0;hpb=9a9d4e014c16be88d72914a9480343445bc785a5;p=libdcp.git diff --git a/src/util.h b/src/util.h index ac13e9f6..7056db6a 100644 --- a/src/util.h +++ b/src/util.h @@ -22,11 +22,15 @@ */ #include -#include +#include +#include +#include #include "types.h" namespace libdcp { +class ARGBFrame; + /** Create a UUID. * @return UUID. */ @@ -38,10 +42,15 @@ extern std::string make_uuid (); * progress; the parameter will start at 0.5 and proceed to 1. * @return Digest. */ -extern std::string make_digest (std::string filename, sigc::signal1* progress); +extern std::string make_digest (std::string filename, boost::signals2::signal* progress); extern std::string content_kind_to_string (ContentKind kind); extern ContentKind content_kind_from_string (std::string kind); +extern bool starts_with (std::string big, std::string little); extern bool ends_with (std::string big, std::string little); - +extern bool empty_or_white_space (std::string s); + +extern opj_image_t* decompress_j2k (uint8_t* data, int64_t size, int reduce); +extern boost::shared_ptr xyz_to_rgb (opj_image_t* xyz_frame); + }