1 #ifndef DYNAMIC_DEPTH_INCLUDES_XMPMETA_XMP_PARSER_H_  // NOLINT
2 #define DYNAMIC_DEPTH_INCLUDES_XMPMETA_XMP_PARSER_H_  // NOLINT
3 
4 #include <fstream>
5 #include <string>
6 
7 #include "base/port.h"
8 #include "xmpmeta/xmp_data.h"
9 
10 namespace dynamic_depth {
11 namespace xmpmeta {
12 
13 // Populates a XmpData from the header of the JPEG file.
14 bool ReadXmpHeader(const string& filename, bool skip_extended,
15                    XmpData* xmp_data);
16 
17 // Populates a XmpData from the header of JPEG file that has already been read
18 // into memory.
19 bool ReadXmpFromMemory(const string& jpeg_contents, bool skip_extended,
20                        XmpData* xmp_data);
21 
22 // Populates a XmpData from the header of the given stream (stream data is
23 // in JPEG format).
24 bool ReadXmpHeader(std::istream* input_stream, bool skip_extended,
25                    XmpData* xmp_data);
26 }  // namespace xmpmeta
27 }  // namespace dynamic_depth
28 
29 #endif // DYNAMIC_DEPTH_INCLUDES_XMPMETA_XMP_PARSER_H_  // NOLINT
30