Lines Matching refs:bufferId
368 uint32_t bufferId = GenerateBufferId(); in UseBuffer() local
369 buffer.bufferId = bufferId; in UseBuffer()
370 codecBuffer->SetBufferId(bufferId); in UseBuffer()
373 codecBufferMap_.emplace(std::make_pair(bufferId, codecBuffer)); in UseBuffer()
374 bufferHeaderMap_.emplace(std::make_pair(bufferHdrType, bufferId)); in UseBuffer()
398 uint32_t bufferId = GenerateBufferId(); in AllocateBuffer() local
399 buffer.bufferId = bufferId; in AllocateBuffer()
402 codecBufferMap_.emplace(std::make_pair(bufferId, codecBuffer)); in AllocateBuffer()
403 bufferHeaderMap_.emplace(std::make_pair(bufferHdrType, bufferId)); in AllocateBuffer()
415 if (!GetBufferById(buffer.bufferId, codecBufer, bufferHdrType)) { in FreeBuffer()
437 auto iter = codecBufferMap_.find(buffer.bufferId); in FreeBuffer()
454 if (!GetBufferById(buffer.bufferId, codecBuffer, bufferHdrType)) { in EmptyThisBuffer()
474 if (!GetBufferById(buffer.bufferId, codecBuffer, bufferHdrType)) { in FillThisBuffer()
491 uint32_t bufferId = 0; in GenerateBufferId() local
496 bufferId = bufferIdCount_; in GenerateBufferId()
497 } while (codecBufferMap_.find(bufferId) != codecBufferMap_.end()); in GenerateBufferId()
498 return bufferId; in GenerateBufferId()
514 uint32_t bufferId = iterHead->second; in GetBufferInfoByHeader() local
515 auto iter = codecBufferMap_.find(bufferId); in GetBufferInfoByHeader()
517 CODEC_LOGE("Can not find bufferInfo by bufferId = %{public}d", bufferId); in GetBufferInfoByHeader()
523 bool ComponentNode::GetBufferById(uint32_t bufferId, sptr<ICodecBuffer> &codecBuffer, in GetBufferById() argument
527 auto iter = codecBufferMap_.find(bufferId); in GetBufferById()
529 CODEC_LOGE("Can not find bufferIndo by bufferID [%{public}d]", bufferId); in GetBufferById()
535 if (iterHead->second == bufferId) { in GetBufferById()
540 …OGE("Can not find bufferHeaderType by bufferID [%{public}d] or iterHead->first is null", bufferId); in GetBufferById()