20#ifndef QUICKTIMEVIDEO_HPP_
21#define QUICKTIMEVIDEO_HPP_
24#include "exiv2lib_export.h"
66 [[nodiscard]] std::string
mimeType()
const override;
74 void decodeBlock(
size_t recursion_depth, std::string
const& entered_from =
"");
91 void fileTypeDecoder(
size_t size);
97 void mediaHeaderDecoder(
size_t size);
103 void videoHeaderDecoder(
size_t size);
109 void movieHeaderDecoder(
size_t size);
115 void trackHeaderDecoder(
size_t size);
121 void handlerDecoder(
size_t size);
126 void multipleEntriesDecoder(
size_t recursion_depth);
132 void sampleDesc(
size_t size);
137 void imageDescDecoder();
143 void userDataDecoder(
size_t size,
size_t recursion_depth);
149 void previewTagDecoder(
size_t size);
155 void keysTagDecoder(
size_t size);
161 void trackApertureTagDecoder(
size_t size);
167 void NikonTagsDecoder(
size_t size);
173 void CameraTagsDecoder(
size_t size);
178 void audioDescDecoder();
183 void timeToSampleDecoder();
188 void setMediaStream();
194 void discard(
size_t size);
197 uint64_t timeScale_ = 0;
199 int currentStream_ = 0;
201 bool continueTraversing_ =
false;
203 uint64_t height_ = 0;
206 const size_t max_recursion_depth_;
An interface for simple binary IO.
Definition basicio.hpp:35
std::unique_ptr< BasicIo > UniquePtr
BasicIo auto_ptr type.
Definition basicio.hpp:38
Image(ImageType type, uint16_t supportedMetadata, BasicIo::UniquePtr io)
Constructor taking the image type, a bitmap of the supported metadata types and an auto-pointer that ...
Definition image.cpp:132
virtual BasicIo & io() const
Return a reference to the BasicIo instance being used for Io.
Definition image.cpp:680
std::unique_ptr< Image > UniquePtr
Image auto_ptr type.
Definition image.hpp:53
void decodeBlock(size_t recursion_depth, std::string const &entered_from="")
Check for a valid tag and decode the block at the current IO position. Calls tagDecoder() or skips to...
Definition quicktimevideo.cpp:580
void writeMetadata() override
Write metadata back to the image.
Definition quicktimevideo.cpp:552
std::string mimeType() const override
Return the MIME type of the image.
Definition quicktimevideo.cpp:548
void tagDecoder(Exiv2::DataBuf &buf, size_t size, size_t recursion_depth)
Interpret tag information, and call the respective function to save it in the respective XMP containe...
Definition quicktimevideo.cpp:632
void readMetadata() override
Read all metadata supported by a specific image format from the image. Before this method is called,...
Definition quicktimevideo.cpp:555
QuickTimeVideo(BasicIo::UniquePtr io, size_t max_recursion_depth=1000)
Constructor for a QuickTime video. Since the constructor can not return a result, callers should chec...
Definition quicktimevideo.cpp:541
Encoding and decoding of Exif data.
Class CrwImage to access Canon CRW images. References: The Canon RAW (CRW) File Format by Phil Harv...
Definition asfvideo.hpp:15
EXIV2API Image::UniquePtr newQTimeInstance(BasicIo::UniquePtr io, bool create)
Create a new QuicktimeVideo instance and return an auto-pointer to it. Caller owns the returned objec...
Definition quicktimevideo.cpp:1597
EXIV2API bool isQTimeType(BasicIo &iIo, bool advance)
Check if the file iIo is a Quick Time Video.
Definition quicktimevideo.cpp:1605
Utility class containing a character array. All it does is to take care of memory allocation and dele...
Definition types.hpp:124