"Fossies" - the Fresh Open Source Software Archive  

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

writermetaimpl.cpp  (heif-3.6.1):writermetaimpl.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 1051 skipping to change at line 1051
} }
for (const auto toImageId : toImageIds) for (const auto toImageId : toImageIds)
{ {
mMetaBox.addItemReference("base", fromImageId.get(), toImageId.get() ); mMetaBox.addItemReference("base", fromImageId.get(), toImageId.get() );
} }
return ErrorCode::OK; return ErrorCode::OK;
} }
ErrorCode WriterImpl::addMetadata(const MediaDataId& mediaDataId, MetadataIt emId& metadataIemId) ErrorCode WriterImpl::addMetadata(const MediaDataId& mediaDataId, MetadataIt emId& metadataItemId)
{ {
if (mState != State::WRITING) if (mState != State::WRITING)
{ {
return ErrorCode::UNINITIALIZED; return ErrorCode::UNINITIALIZED;
} }
if (mMediaData.count(mediaDataId) == 0) if (mMediaData.count(mediaDataId) == 0)
{ {
return ErrorCode::INVALID_MEDIADATA_ID; return ErrorCode::INVALID_MEDIADATA_ID;
} }
if (!mMetadataItems.count(mediaDataId)) if (!mMetadataItems.count(mediaDataId))
{ {
return createMetadataItem(mediaDataId, metadataIemId); return createMetadataItem(mediaDataId, metadataItemId);
} }
else else
{ {
metadataIemId = mMetadataItems.at(mediaDataId); metadataItemId = mMetadataItems.at(mediaDataId);
return ErrorCode::OK; return ErrorCode::OK;
} }
} }
/* *************************************************************** */ /* *************************************************************** */
/* ******************* Internal helper methods ******************* */ /* ******************* Internal helper methods ******************* */
/* *************************************************************** */ /* *************************************************************** */
ErrorCode WriterImpl::createMetadataItem(const MediaDataId& mediaDataId, Met adataItemId& metadataItemId) ErrorCode WriterImpl::createMetadataItem(const MediaDataId& mediaDataId, Met adataItemId& metadataItemId)
{ {
 End of changes. 4 change blocks. 
4 lines changed or deleted 4 lines changed or added

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