"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "srcs/writer/writermetaimpl.cpp" between
heif-3.6.0.tar.gz and heif-3.6.1.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.0):writermetaimpl.cpp  (heif-3.6.1)
skipping to change at line 71 skipping to change at line 71
if (nalUnit.decSpecInfoType == DecoderSpecInfoType::AVC_PPS && ! ppsFound) if (nalUnit.decSpecInfoType == DecoderSpecInfoType::AVC_PPS && ! ppsFound)
{ {
ppsFound = true; ppsFound = true;
configRecord.addNalUnit(nalVector, AvcNalUnitType::PPS); configRecord.addNalUnit(nalVector, AvcNalUnitType::PPS);
} }
else if (nalUnit.decSpecInfoType == DecoderSpecInfoType::AVC_SPS && !spsFound) else if (nalUnit.decSpecInfoType == DecoderSpecInfoType::AVC_SPS && !spsFound)
{ {
spsFound = true; spsFound = true;
configRecord.addNalUnit(nalVector, AvcNalUnitType::SPS); configRecord.addNalUnit(nalVector, AvcNalUnitType::SPS);
configRecord.makeConfigFromSPS(nalVector); if (configRecord.makeConfigFromSPS(nalVector) == false)
{
return ErrorCode::DECODER_CONFIGURATION_ERROR;
}
} }
else else
{ {
return ErrorCode::DECODER_CONFIGURATION_ERROR; return ErrorCode::DECODER_CONFIGURATION_ERROR;
} }
} }
if (!spsFound || !ppsFound) if (!spsFound || !ppsFound)
{ {
return ErrorCode::DECODER_CONFIGURATION_ERROR; return ErrorCode::DECODER_CONFIGURATION_ERROR;
skipping to change at line 112 skipping to change at line 115
} }
else if (nalUnit.decSpecInfoType == DecoderSpecInfoType::HEVC_VP S && !vpsFound) else if (nalUnit.decSpecInfoType == DecoderSpecInfoType::HEVC_VP S && !vpsFound)
{ {
vpsFound = true; vpsFound = true;
configRecord.addNalUnit(nalVector, HevcNalUnitType::VPS, tru e); configRecord.addNalUnit(nalVector, HevcNalUnitType::VPS, tru e);
} }
else if (nalUnit.decSpecInfoType == DecoderSpecInfoType::HEVC_SP S && !spsFound) else if (nalUnit.decSpecInfoType == DecoderSpecInfoType::HEVC_SP S && !spsFound)
{ {
spsFound = true; spsFound = true;
configRecord.addNalUnit(nalVector, HevcNalUnitType::SPS, tru e); configRecord.addNalUnit(nalVector, HevcNalUnitType::SPS, tru e);
configRecord.makeConfigFromSPS(nalVector); if (configRecord.makeConfigFromSPS(nalVector) == false)
{
return ErrorCode::DECODER_CONFIGURATION_ERROR;
}
} }
else else
{ {
return ErrorCode::DECODER_CONFIGURATION_ERROR; return ErrorCode::DECODER_CONFIGURATION_ERROR;
} }
} }
if (!spsFound || !ppsFound || !vpsFound) if (!spsFound || !ppsFound || !vpsFound)
{ {
return ErrorCode::DECODER_CONFIGURATION_ERROR; return ErrorCode::DECODER_CONFIGURATION_ERROR;
skipping to change at line 492 skipping to change at line 498
return ErrorCode::OK; return ErrorCode::OK;
} }
ErrorCode WriterImpl::addProperty(const Scale& iscl, PropertyId& propertyId) ErrorCode WriterImpl::addProperty(const Scale& iscl, PropertyId& propertyId)
{ {
if (mState != State::WRITING) if (mState != State::WRITING)
{ {
return ErrorCode::UNINITIALIZED; return ErrorCode::UNINITIALIZED;
} }
if ((iscl.targetWidthD == 0) || (iscl.targetWidthN == 0) || if ((iscl.targetWidthD == 0) || (iscl.targetWidthN == 0) || (iscl.target
(iscl.targetHeightD == 0) || (iscl.targetHeightN == 0)) HeightD == 0) ||
(iscl.targetHeightN == 0))
{ {
return ErrorCode::INVALID_FUNCTION_PARAMETER; return ErrorCode::INVALID_FUNCTION_PARAMETER;
} }
auto isclBox = makeCustomShared<ImageScaling>(); auto isclBox = makeCustomShared<ImageScaling>();
::ImageScaling::Fraction value; ::ImageScaling::Fraction value;
value.numerator = iscl.targetWidthN; value.numerator = iscl.targetWidthN;
value.denominator = iscl.targetWidthD; value.denominator = iscl.targetWidthD;
isclBox->setWidth(value); isclBox->setWidth(value);
value.numerator = iscl.targetHeightN; value.numerator = iscl.targetHeightN;
 End of changes. 3 change blocks. 
4 lines changed or deleted 11 lines changed or added

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