Lines Matching defs:unit
155 sp<ABuffer> unit = new ABuffer(nalSize);
156 memcpy(unit->data(), &data[2], nalSize);
158 CopyTimes(unit, buffer);
160 addSingleNALUnit(unit);
274 // We found all the fragments that make up the complete NAL unit.
280 sp<ABuffer> unit = new ABuffer(totalSize);
281 CopyTimes(unit, *queue->begin());
283 unit->data()[0] = (nri << 5) | nalType;
295 memcpy(unit->data() + offset, buffer->data() + 2, buffer->size() - 2);
301 unit->setRange(0, totalSize);
303 addSingleNALUnit(unit);
305 LOGV("successfully assembled a NAL unit from fragments.");
313 LOGV("Access unit complete (%d nal units)", mNALUnits.size());
348 msg->setObject("access-unit", accessUnit);