*/
#include "asset_map.h"
+#include "util.h"
using namespace std;
using namespace boost;
: XMLNode (node)
{
path = string_node ("Path");
+
+ string const prefix = "file://";
+
+ if (starts_with (path, prefix)) {
+ path = path.substr (prefix.length());
+ }
+
volume_index = optional_int64_node ("VolumeIndex");
offset = optional_int64_node ("Offset");
length = optional_int64_node ("Length");
assert (false);
}
+bool
+libdcp::starts_with (string big, string little)
+{
+ if (little.size() > big.size()) {
+ return false;
+ }
+
+ return big.substr (0, little.length()) == little;
+}
+
bool
libdcp::ends_with (string big, string little)
{
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 opj_image_t* decompress_j2k (uint8_t* data, int64_t size, int reduce);
Frames per second: 24
Reel 1
Subtitle: 94 subtitles in English
+DCP: ../libdcp-test/DU-VENT-DANS-MES-MOLLETS_TLR_F_FR-XX_FR_51_2K_GA_20120621_ECL_OV
+ CPL: DU-VENT-DANS-MES-MOLLETS_TLR_F_FR-XX_FR_51_2K_GA_20120621_ECL_OV
+ Length: 2502
+ Frames per second: 24
+ Reel 1
DCP: ../libdcp-test/ASTERIX_TLR-01_F_FR-DE_CH_51_2K_FRE_20120730_DGL_OV
CPL:
Length: 3080