 |
Exiv2
|
Go to the documentation of this file.
27 #ifndef MATROSKAVIDEO_HPP_
28 #define MATROSKAVIDEO_HPP_
31 #include "exiv2lib_export.h"
57 bool operator==(uint64_t key)
const {
return val_ == key; }
102 uint32_t findBlockSize(
byte b);
114 void contentManagement(
const MatroskaTags* mt,
const byte* buf,
long size);
132 bool continueTraversing_;
134 uint64_t height_, width_;
155 #endif // #ifndef MATROSKAVIDEO_HPP_
EXIV2LIB_DEPRECATED_EXPORT Image::AutoPtr newMkvInstance(BasicIo::AutoPtr io, bool create)
Create a new MatroskaVideo instance and return an auto-pointer to it. Caller owns the returned object...
Class to access Matroska video files.
Definition: matroskavideo.hpp:63
An Image subclass to support Matroska video files.
MatroskaVideo(BasicIo::AutoPtr io)
Constructor for a Matroska video. Since the constructor can not return a result, callers should check...
void contentManagement(const MatroskaTags *mt, const byte *buf, long size)
Interpret tag information, and save it in the respective XMP container.
EXIV2API std::string strError()
Return a system error message and the error code (errno). See strerror(3).
Definition: futils.cpp:352
std::string mimeType() const
Return the MIME type of the image.
uint32_t findBlockSize(byte b)
Function used to calulate the size of a block. This information is only stored in one byte....
EXIV2LIB_DEPRECATED_EXPORT bool isMkvType(BasicIo &iIo, bool advance)
Check if the file iIo is a Matroska Video.
void aspectRatio()
Calculates Aspect Ratio of a video, and stores it in the respective XMP container.
const T * find(T(&src)[N], const K &key)
Find an element that matches key in the array src.
Definition: types.hpp:508
const int mkv
Treating mkv as an image type>
Definition: matroskavideo.hpp:45
void readMetadata()
Read all metadata supported by a specific image format from the image. Before this method is called,...
Provides classes and functions to encode and decode Exif and Iptc data. The libexiv2 API consists of ...
Definition: asfvideo.hpp:36
EXIV2API float getFloat(const byte *buf, ByteOrder byteOrder)
Read a 4 byte single precision floating point value (IEEE 754 binary32) from the data buffer.
Definition: types.cpp:347
#define EXV_WARNING
Shorthand for a temp warning log message object and return its ostringstream.
Definition: error.hpp:148
void writeMetadata()
Write metadata back to the image.
Contains internal objects which are not published and are not part of the libexiv2 API.
Definition: slice.hpp:39
std::auto_ptr< Image > AutoPtr
Image auto_ptr type.
Definition: image.hpp:84
std::auto_ptr< BasicIo > AutoPtr
BasicIo auto_ptr type.
Definition: basicio.hpp:58
BasicError< char > Error
Error class used for exceptions (std::string based)
Definition: error.hpp:324
@ string
IPTC string type.
Definition: types.hpp:147
EXIV2API double getDouble(const byte *buf, ByteOrder byteOrder)
Read an 8 byte double precision floating point value (IEEE 754 binary64) from the data buffer.
Definition: types.cpp:361
An interface for simple binary IO.
Definition: basicio.hpp:55
Abstract base class defining the interface for an image. This is the top-level interface to the Exiv2...
Definition: image.hpp:81
void decodeBlock()
Check for a valid tag and decode the block at the current IO position. Calls contentManagement() or s...
Basic file utility functions required by Exiv2.
Error class for exceptions, log message class.