"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "srcs/common/datareferencebox.cpp" 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.cpp  (heif-3.6.1):datareferencebox.cpp  (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 107 skipping to change at line 107
bitstr.readZeroTerminatedString(location); bitstr.readZeroTerminatedString(location);
setLocation(location); setLocation(location);
} }
DataReferenceBox::DataReferenceBox() DataReferenceBox::DataReferenceBox()
: FullBox("dref", 0, 0) : FullBox("dref", 0, 0)
, mDataEntries() , mDataEntries()
{ {
} }
unsigned int DataReferenceBox::addEntry(std::shared_ptr<DataEntryBox> dataEntryB ox) unsigned int DataReferenceBox::addEntry(const std::shared_ptr<DataEntryBox>& dat aEntryBox)
{ {
mDataEntries.push_back(dataEntryBox); mDataEntries.push_back(dataEntryBox);
return static_cast<unsigned int>(mDataEntries.size()); return static_cast<unsigned int>(mDataEntries.size());
} }
void DataReferenceBox::writeBox(ISOBMFF::BitStream& bitstr) const void DataReferenceBox::writeBox(ISOBMFF::BitStream& bitstr) const
{ {
writeFullBoxHeader(bitstr); writeFullBoxHeader(bitstr);
bitstr.write32Bits(static_cast<std::uint32_t>(mDataEntries.size())); bitstr.write32Bits(static_cast<std::uint32_t>(mDataEntries.size()));
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

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