"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "srcs/common/datareferencebox.hpp" between
heif-3.6.1.tar.gz and heif-3.6.2.tar.gz

About: HEIF (High Efficiency Image File Format) is a visual media container format for images and image sequences (MPEG-standard). This HEIF engine demonstrates its powerful features and capabilities (under Nokia HEIF license).

datareferencebox.hpp  (heif-3.6.1):datareferencebox.hpp  (heif-3.6.2)
/* This file is part of Nokia HEIF library /* This file is part of Nokia HEIF library
* *
* Copyright (c) 2015-2020 Nokia Corporation and/or its subsidiary(-ies). All ri ghts reserved. * Copyright (c) 2015-2021 Nokia Corporation and/or its subsidiary(-ies). All ri ghts reserved.
* *
* Contact: heif@nokia.com * Contact: heif@nokia.com
* *
* This software, including documentation, is protected by copyright controlled by Nokia Corporation and/ or its * This software, including documentation, is protected by copyright controlled by Nokia Corporation and/ or its
* subsidiaries. All rights are reserved. * subsidiaries. All rights are reserved.
* *
* Copying, including reproducing, storing, adapting or translating, any or all of this material requires the prior * Copying, including reproducing, storing, adapting or translating, any or all of this material requires the prior
* written consent of Nokia. * written consent of Nokia.
*/ */
skipping to change at line 33 skipping to change at line 33
/** @brief Data Entry Box class. Extends from FullBox. /** @brief Data Entry Box class. Extends from FullBox.
* @details This is the base class for DataEntryUrlBox and DataEntryUrnBox * @details This is the base class for DataEntryUrlBox and DataEntryUrnBox
* @details Can be present in DataInformationBox. There can be multiple data en tries. * @details Can be present in DataInformationBox. There can be multiple data en tries.
*/ */
class DataEntryBox : public FullBox class DataEntryBox : public FullBox
{ {
public: public:
DataEntryBox(FourCCInt boxType, std::uint8_t version, std::uint32_t flags); DataEntryBox(FourCCInt boxType, std::uint8_t version, std::uint32_t flags);
~DataEntryBox() override = default; ~DataEntryBox() override = default;
/** @brief Set the location field as specificed in ISOBMFF specification. /** @brief Set the location field as specified in ISOBMFF specification.
* @param [in] location value of the location field as a string*/ * @param [in] location value of the location field as a string*/
void setLocation(const String& location); void setLocation(const String& location);
/** @brief Get the location field as specificed in ISOBMFF. /** @brief Get the location field as specified in ISOBMFF.
* @return value of the location field as a string*/ * @return value of the location field as a string*/
const String& getLocation() const; const String& getLocation() const;
/** @brief Creates the bitstream that represents the box in the ISOBMFF file /** @brief Creates the bitstream that represents the box in the ISOBMFF file
* @param [out] bitstr Bitstream that contains the box data. */ * @param [out] bitstr Bitstream that contains the box data. */
void writeBox(ISOBMFF::BitStream& bitstr) const override = 0; void writeBox(ISOBMFF::BitStream& bitstr) const override = 0;
/** @brief Parses a Data Entry Box bitstream and fills in the necessary memb er variables /** @brief Parses a Data Entry Box bitstream and fills in the necessary memb er variables
* @param [in] bitstr Bitstream that contains the box data */ * @param [in] bitstr Bitstream that contains the box data */
void parseBox(ISOBMFF::BitStream& bitstr) override = 0; void parseBox(ISOBMFF::BitStream& bitstr) override = 0;
private: private:
String mLocation; ///< location field as specificed in ISOBMFF specificatio n. String mLocation; ///< Location field as specified in ISOBMFF specification .
}; };
/** @brief Data Entry URL Box class. Extends from DataEntryBox. /** @brief Data Entry URL Box class. Extends from DataEntryBox.
*/ */
class DataEntryUrlBox : public DataEntryBox class DataEntryUrlBox : public DataEntryBox
{ {
public: public:
enum IsSelfContained enum IsSelfContained
{ {
NotSelfContained, NotSelfContained,
skipping to change at line 101 skipping to change at line 101
/** @brief Creates the bitstream that represents the box in the ISOBMFF file /** @brief Creates the bitstream that represents the box in the ISOBMFF file
* @param [out] bitstr Bitstream that contains the box data. */ * @param [out] bitstr Bitstream that contains the box data. */
void writeBox(ISOBMFF::BitStream& bitstr) const override; void writeBox(ISOBMFF::BitStream& bitstr) const override;
/** @brief Parses a Data Entry URN Box bitstream and fills in the necessary member variables /** @brief Parses a Data Entry URN Box bitstream and fills in the necessary member variables
* @param [in] bitstr Bitstream that contains the box data */ * @param [in] bitstr Bitstream that contains the box data */
void parseBox(ISOBMFF::BitStream& bitstr) override; void parseBox(ISOBMFF::BitStream& bitstr) override;
private: private:
String mName; ///< name field as specificed in ISOBMFF specification String mName; ///< name field as specified in ISOBMFF specification
}; };
/** @brief Data Reference Box class. Extends from FullBox. /** @brief Data Reference Box class. Extends from FullBox.
*/ */
class DataReferenceBox : public FullBox class DataReferenceBox : public FullBox
{ {
public: public:
DataReferenceBox(); DataReferenceBox();
~DataReferenceBox() override = default; ~DataReferenceBox() override = default;
/// @return 1-based entry index /// @return 1-based entry index
unsigned int addEntry(std::shared_ptr<DataEntryBox>; dataEntryBox); unsigned int addEntry(const std::shared_ptr<DataEntryBox>&; dataEntryBox);
/** @brief Creates the bitstream that represents the box in the ISOBMFF file /** @brief Creates the bitstream that represents the box in the ISOBMFF file
* @param [out] bitstr Bitstream that contains the box data. */ * @param [out] bitstr Bitstream that contains the box data. */
void writeBox(ISOBMFF::BitStream& bitstr) const override; void writeBox(ISOBMFF::BitStream& bitstr) const override;
/** @brief Parses a Data Reference Box bitstream and fills in the necessary member variables /** @brief Parses a Data Reference Box bitstream and fills in the necessary member variables
* @param [in] bitstr Bitstream that contains the box data * @param [in] bitstr Bitstream that contains the box data
* @throws Runtime Error if there is an unknown box inside Data Reference B ox */ * @throws Runtime Error if there is an unknown box inside Data Reference B ox */
void parseBox(ISOBMFF::BitStream& bitstr) override; void parseBox(ISOBMFF::BitStream& bitstr) override;
 End of changes. 6 change blocks. 
6 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)