"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "srcs/common/compositionoffsetbox.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).

compositionoffsetbox.hpp  (heif-3.6.1):compositionoffsetbox.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 30 skipping to change at line 30
/** @brief Composition Time to Sample Box class /** @brief Composition Time to Sample Box class
* @details 'sttc' box implementation. Extends from FullBox. * @details 'sttc' box implementation. Extends from FullBox.
* @details Both version 0 and version 1 support exists. * @details Both version 0 and version 1 support exists.
*/ */
class CompositionOffsetBox : public FullBox class CompositionOffsetBox : public FullBox
{ {
public: public:
CompositionOffsetBox(); CompositionOffsetBox();
~CompositionOffsetBox() override = default; ~CompositionOffsetBox() override = default;
/// @brief version 1 supported data structure /// @brief Version 0 supported data structure.
struct EntryVersion0 struct EntryVersion0
{ {
std::uint32_t mSampleCount; std::uint32_t mSampleCount;
std::uint32_t mSampleOffset; std::uint32_t mSampleOffset;
}; };
/// @brief version 0 supported dta structure. Sample offsets can be negative /// @brief Version 1 supported data structure. Sample offsets can be negativ e.
struct EntryVersion1 struct EntryVersion1
{ {
std::uint32_t mSampleCount; std::uint32_t mSampleCount;
std::int32_t mSampleOffset; std::int32_t mSampleOffset;
}; };
/** @brief Inserts a new composition time to sample entry of verison 0 type /** @brief Inserts a new composition time to sample entry of version 0 type.
* @param [in] entry EntryVersion0 data structure * @param [in] entry EntryVersion0 data structure.
* @throws Runtime Error if the box version conflicts with the Entry Versio * @throws Runtime Error if the box version conflicts with the entry versio
n */ n. */
void addCompositionOffsetEntryVersion0(const EntryVersion0& entry); void addCompositionOffsetEntryVersion0(const EntryVersion0& entry);
/** @brief Inserts a new composition time to sample entry of verison 0 type /** @brief Inserts a new composition time to sample entry of version 1 type.
* @param [in] entry EntryVersion0 data structure * @param [in] entry EntryVersion1 data structure.
* @throws Runtime Error if the box version conflicts with the Entry Versio * @throws Runtime Error if the box version conflicts with the entry versio
n */ n. */
void addCompositionOffsetEntryVersion1(const EntryVersion1& entry); void addCompositionOffsetEntryVersion1(const EntryVersion1& entry);
/** @brief Get number of samples (used for box parsing safety checks) /** @brief Get number of samples (used for box parsing safety checks)
* @return Sample count * @return Sample count
*/ */
uint32_t getSampleCount(); uint32_t getSampleCount();
/// @return vector of sample composition offsets as signed integers /// @return vector of sample composition offsets as signed integers
Vector<int> getSampleCompositionOffsets() const; Vector<int> getSampleCompositionOffsets() const;
 End of changes. 5 change blocks. 
11 lines changed or deleted 11 lines changed or added

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