Home
last modified time | relevance | path

Searched refs:XmpConst (Results 1 – 4 of 4) sorted by relevance

/external/dynamic_depth/internal/xmpmeta/
Dxmp_const.cc7 const char* XmpConst::Namespace() { return "adobe:ns:meta/"; } in Namespace()
9 const char* XmpConst::NamespacePrefix() { return "x"; } in NamespacePrefix()
11 const char* XmpConst::NodeName() { return "xmpmeta"; } in NodeName()
13 const char* XmpConst::AdobePropName() { return "xmptk"; } in AdobePropName()
15 const char* XmpConst::AdobePropValue() { return "Adobe XMP"; } in AdobePropValue()
17 const char* XmpConst::NoteNamespace() { in NoteNamespace()
22 const char* XmpConst::Header() { return "http://ns.adobe.com/xap/1.0/"; } in Header()
24 const char* XmpConst::ExtensionHeader() { in ExtensionHeader()
28 const char* XmpConst::HasExtensionPrefix() { return "xmpNote"; } in HasExtensionPrefix()
30 const char* XmpConst::HasExtension() { return "HasExtendedXMP"; } in HasExtension()
[all …]
Dxmp_writer.cc56 xmlNodePtr root_node = xmlNewNode(nullptr, ToXmlChar(XmpConst::NodeName())); in CreateXmpRootNode()
57 xmlNsPtr root_ns = xmlNewNs(root_node, ToXmlChar(XmpConst::Namespace()), in CreateXmpRootNode()
58 ToXmlChar(XmpConst::NamespacePrefix())); in CreateXmpRootNode()
60 xmlSetNsProp(root_node, root_ns, ToXmlChar(XmpConst::AdobePropName()), in CreateXmpRootNode()
61 ToXmlChar(XmpConst::AdobePropValue())); in CreateXmpRootNode()
132 data_stream.write(XmpConst::Header(), strlen(XmpConst::Header())); in CreateStandardSectionXmpString()
144 static_cast<int>(strlen(XmpConst::ExtensionHeader()) + 1 + guid.length()); in CreateExtendedSections()
146 const int overhead = header_length + XmpConst::ExtensionHeaderOffset(); in CreateExtendedSections()
148 buffer_length / (XmpConst::ExtendedMaxBufferSize() - overhead) + 1; in CreateExtendedSections()
152 XmpConst::ExtendedMaxBufferSize()); in CreateExtendedSections()
[all …]
Dxmp_parser.cc81 if (StartsWith(section.data, XmpConst::Header())) { in ParseFirstValidXMPSection()
84 const size_t header_length = strlen(XmpConst::Header()) + 1; in ParseFirstValidXMPSection()
117 string extended_header = XmpConst::ExtensionHeader(); in GetExtendedXmpSections()
121 if (extended_header.size() > SIZE_MAX - XmpConst::ExtensionHeaderOffset()) { in GetExtendedXmpSections()
125 extended_header.size() + XmpConst::ExtensionHeaderOffset(); in GetExtendedXmpSections()
193 parse_options.section_header = XmpConst::Header(); in ExtractXmpMeta()
212 if (!deserializer.ParseString(XmpConst::HasExtensionPrefix(), in ExtractXmpMeta()
213 XmpConst::HasExtension(), &extension_name)) { in ExtractXmpMeta()
/external/dynamic_depth/includes/xmpmeta/
Dxmp_const.h8 struct XmpConst { struct