Lines Matching refs:format_
155 const auto& segments = format_->GetSegments(); in CalculateDiffs()
175 if (!buffer->format_->Equal(format_)) in CheckCompability()
214 auto num_channels = format_->InputNeededPerElement(); in GetHistogramForChannel()
218 for (const auto& seg : format_->GetSegments()) { in GetHistogramForChannel()
242 auto num_channels = format_->InputNeededPerElement(); in CompareHistogramEMD()
243 for (auto segment : format_->GetSegments()) { in CompareHistogramEMD()
303 ((offset / format_->SizeInBytes()) * format_->InputNeededPerElement()) + in RecalculateMaxSizeInBytes()
306 if (!format_->IsPacked()) { in RecalculateMaxSizeInBytes()
311 element_count = value_count / format_->InputNeededPerElement(); in RecalculateMaxSizeInBytes()
313 if (GetMaxSizeInBytes() < element_count * format_->SizeInBytes()) in RecalculateMaxSizeInBytes()
314 SetMaxSizeInBytes(element_count * format_->SizeInBytes()); in RecalculateMaxSizeInBytes()
323 ((offset / format_->SizeInBytes()) * format_->InputNeededPerElement()) + in SetDataWithOffset()
338 (static_cast<uint32_t>(data.size()) / format_->InputNeededPerElement()) * in SetDataWithOffset()
339 format_->SizeInBytes(); in SetDataWithOffset()
345 if (data.size() > (ElementCount() * format_->InputNeededPerElement())) in SetDataWithOffset()
349 const auto& segments = format_->GetSegments(); in SetDataWithOffset()
423 bytes_.resize(element_count * format_->SizeInBytes()); in SetSizeInElements()
427 assert(size_in_bytes % format_->SizeInBytes() == 0); in SetSizeInBytes()
428 element_count_ = size_in_bytes / format_->SizeInBytes(); in SetSizeInBytes()
449 static_cast<uint32_t>(bytes_.size()) / format_->SizeInBytes(); in SetDataFromBuffer()