"Fossies" - the Fresh Open Source Software Archive  

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

bitstream.hpp  (heif-3.6.1):bitstream.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 52 skipping to change at line 52
uint32_t asUint; uint32_t asUint;
}; };
/// @return Current access position as a byte offset value /// @return Current access position as a byte offset value
std::uint64_t getPos() const; std::uint64_t getPos() const;
/** @brief Set access position of the bitstream /** @brief Set access position of the bitstream
* @param position The new position in bytes, counted from beginning of the bitstream. */ * @param position The new position in bytes, counted from beginning of the bitstream. */
void setPosition(std::uint64_t position); void setPosition(std::uint64_t position);
/// @return Current storage size of the bitsteam in bytes /// @return Current storage size of the bitstream in bytes.
std::uint64_t getSize() const; std::uint64_t getSize() const;
/** @brief Sets or updates the storage size of the bitstream /** @brief Sets or updates the storage size of the bitstream
* @param newSize Byte size of the bitstream */ * @param newSize Byte size of the bitstream */
void setSize(std::uint64_t newSize); void setSize(std::uint64_t newSize);
/// @return Reference to the stored data inside the bitstream /// @return Reference to the stored data inside the bitstream
const Vector<std::uint8_t>& getStorage() const; const Vector<std::uint8_t>& getStorage() const;
/// @return Reference to the stored data inside the bitstream /// @return Reference to the stored data inside the bitstream
skipping to change at line 134 skipping to change at line 134
void writeZeroTerminatedString(const String& srcString); void writeZeroTerminatedString(const String& srcString);
/// @brief Writes a float as 32bit value to the bitstream data storage /// @brief Writes a float as 32bit value to the bitstream data storage
void write32BitFloat(float value); void write32BitFloat(float value);
/** @brief Read a specific amount of bits from the bitstream data storag e /** @brief Read a specific amount of bits from the bitstream data storag e
* @param [in] len number of bits to read * @param [in] len number of bits to read
* @return value of bits read as an unsigned integer */ * @return value of bits read as an unsigned integer */
std::uint32_t readBits(const std::uint32_t len); std::uint32_t readBits(const std::uint32_t len);
/// @return read 8 bits as unigned uint8_t /// @return Read 8 bits as unsigned uint8_t.
std::uint8_t read8Bits(); std::uint8_t read8Bits();
/// @return read 16 bits as unigned uint16_t /// @return Read 16 bits as unsigned uint16_t.
std::uint16_t read16Bits(); std::uint16_t read16Bits();
/// @return read 24 bits as unigned integer /// @return Read 24 bits as unsigned integer.
std::uint32_t read24Bits(); std::uint32_t read24Bits();
/// @return read 32 bits as unigned integer /// @return Read 32 bits as unsigned integer.
std::uint32_t read32Bits(); std::uint32_t read32Bits();
/// @return read 64 bits as unigned long long /// @return Read 64 bits as unsigned long long.
std::uint64_t read64Bits(); std::uint64_t read64Bits();
/** @brief Reads an array of 8 bit values from the bitstream data storag e /** @brief Reads an array of 8 bit values from the bitstream data storag e
* @param [in] len number of 8 bit elements to be read from the bitstre am data storage * @param [in] len number of 8 bit elements to be read from the bitstre am data storage
* @param [out] bits vector of bits read */ * @param [out] bits vector of bits read */
void read8BitsArray(Vector<std::uint8_t>& bits, std::uint64_t len); void read8BitsArray(Vector<std::uint8_t>& bits, std::uint64_t len);
/** @brief Reads an array of 8 bit values from the bitstream data storag e /** @brief Reads an array of 8 bit values from the bitstream data storag e
* @param [in] len number of 8 bit elements to be read from the bitstre am data storage * @param [in] len number of 8 bit elements to be read from the bitstre am data storage
* @param [out] buffer data buffer pointer where data is copied. */ * @param [out] buffer data buffer pointer where data is copied. */
 End of changes. 7 change blocks. 
7 lines changed or deleted 7 lines changed or added

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