Searched defs:copy (Results 1 - 25 of 84) sorted by path

1234

/frameworks/av/cmds/stagefright/
H A DSimplePlayer.cpp6 * You may obtain a copy of the License at
617 size_t copy = info->mSize; local
618 if (copy > numBytesAvailableToWrite) {
619 copy = numBytesAvailableToWrite;
622 if (copy == 0) {
629 buffer->base() + info->mOffset, copy);
631 CHECK_EQ(nbytes, (ssize_t)copy);
H A Dstream.cpp6 * You may obtain a copy of the License at
227 size_t copy = size; local
228 if (copy + mCurrentBufferOffset > mem->size()) {
229 copy = mem->size() - mCurrentBufferOffset;
232 memcpy((uint8_t *)mem->pointer() + mCurrentBufferOffset, data, copy);
233 mCurrentBufferOffset += copy;
240 data = (const uint8_t *)data + copy;
241 size -= copy;
243 totalWritten += copy;
/frameworks/av/include/media/
H A DMediaProfiles.h7 ** You may obtain a copy of the License at
191 VideoCodec(const VideoCodec& copy) { argument
192 mCodec = copy.mCodec;
193 mBitRate = copy.mBitRate;
194 mFrameWidth = copy.mFrameWidth;
195 mFrameHeight = copy.mFrameHeight;
196 mFrameRate = copy.mFrameRate;
215 AudioCodec(const AudioCodec& copy) { argument
216 mCodec = copy.mCodec;
217 mBitRate = copy
239 CamcorderProfile(const CamcorderProfile& copy) argument
[all...]
/frameworks/av/include/private/media/
H A DVideoFrame.h7 ** You may obtain a copy of the License at
36 VideoFrame(const VideoFrame& copy) { argument
37 mWidth = copy.mWidth;
38 mHeight = copy.mHeight;
39 mDisplayWidth = copy.mDisplayWidth;
40 mDisplayHeight = copy.mDisplayHeight;
41 mSize = copy.mSize;
43 if (mSize > 0 && copy.mData != NULL) {
46 memcpy(mData, copy.mData, mSize);
51 mRotationAngle = copy
[all...]
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DNuPlayerRenderer.cpp6 * You may obtain a copy of the License at
791 size_t copy = entry->mBuffer->size() - entry->mOffset; local
793 if (copy > sizeRemaining) {
794 copy = sizeRemaining;
799 copy);
801 entry->mOffset += copy;
807 sizeCopied += copy;
947 size_t copy = entry->mBuffer->size() - entry->mOffset; local
950 copy, false /* blocking */);
954 ALOGV("AudioSink write would block when writing %zu bytes", copy);
[all...]
H A DNuPlayerStreamListener.cpp6 * You may obtain a copy of the License at
142 size_t copy = entry->mSize; local
143 if (copy > size) {
144 copy = size;
152 if (mem == NULL || mem->size() < copy || mem->size() - copy < entry->mOffset) {
159 copy);
161 entry->mOffset += copy;
162 entry->mSize -= copy;
170 return copy;
[all...]
/frameworks/av/media/libnbaio/
H A DNBLog.cpp6 * You may obtain a copy of the License at
188 // The Entry could have a method copyTo(ptr, offset, size) to optimize the copy.
305 // make a copy to avoid race condition with writer
306 uint8_t *copy = new uint8_t[avail]; local
307 // copy first part of circular buffer up until the wraparound point
308 memcpy(copy, &mShared->mBuffer[front], read);
311 // copy second part of circular buffer starting at beginning
312 memcpy(&copy[read], mShared->mBuffer, remaining);
324 length = copy[i - 1];
325 if (length + 3 > i || copy[
[all...]
/frameworks/av/media/libstagefright/
H A DAudioPlayer.cpp6 * You may obtain a copy of the License at
585 size_t copy = size_remaining; local
586 if (copy > mInputBuffer->range_length()) {
587 copy = mInputBuffer->range_length();
592 copy);
594 mInputBuffer->set_range(mInputBuffer->range_offset() + copy,
595 mInputBuffer->range_length() - copy);
597 size_done += copy;
598 size_remaining -= copy;
H A DDataURISource.cpp6 * You may obtain a copy of the License at
93 size_t copy = mBuffer->size() - offset; local
94 if (copy > size) {
95 copy = size;
98 memcpy(data, mBuffer->data() + offset, copy);
100 return copy;
H A DMPEG2TSWriter.cpp6 * You may obtain a copy of the License at
257 sp<ABuffer> copy = local
259 memcpy(copy->data(),
266 copy->meta()->setInt64("timeUs", timeUs);
271 copy->meta()->setInt32("isSync", true);
274 notify->setBuffer("buffer", copy);
916 size_t copy = accessUnit->size(); local
917 if (copy > sizeLeft) {
918 copy = sizeLeft;
921 memcpy(ptr, accessUnit->data(), copy);
962 size_t copy = accessUnit->size() - offset; local
[all...]
H A DMPEG4Writer.cpp6 * You may obtain a copy of the License at
765 * cache copy of the moov box is written to the reserved free
2378 // Make a deep copy of the MediaBuffer and Metadata and release
2380 MediaBuffer *copy = new MediaBuffer(buffer->range_length()); local
2381 memcpy(copy->data(), (uint8_t *)buffer->data() + buffer->range_offset(),
2383 copy->set_range(0, buffer->range_length());
2388 if (mIsAvc || mIsHevc) StripStartcode(copy);
2390 size_t sampleSize = copy->range_length();
2432 copy->release();
2438 copy
[all...]
H A DNuCachedSource2.cpp6 * You may obtain a copy of the License at
52 void copy(size_t from, void *data, size_t size);
139 void PageCache::copy(size_t from, void *data, size_t size) { function in class:android::PageCache
140 ALOGV("copy from %zu size %zu", from, size);
169 size_t copy = (*it)->mSize; local
170 if (copy > size) {
171 copy = size;
173 memcpy(data, (*it)->mData, copy);
174 data = (uint8_t *)data + copy;
175 size -= copy;
[all...]
/frameworks/av/media/libstagefright/codecs/aacenc/
H A DAACEncoder.cpp6 * You may obtain a copy of the License at
269 size_t copy = (nSamples - mNumInputSamples) * sizeof(int16_t); local
271 if (copy > mInputBuffer->range_length()) {
272 copy = mInputBuffer->range_length();
278 copy);
281 mInputBuffer->range_offset() + copy,
282 mInputBuffer->range_length() - copy);
288 mNumInputSamples += copy / sizeof(int16_t);
H A DSoftAACEncoder.cpp6 * You may obtain a copy of the License at
465 size_t copy = numBytesPerInputFrame - mInputSize; local
466 if (copy > inHeader->nFilledLen) {
467 copy = inHeader->nFilledLen;
478 memcpy((uint8_t *)mInputFrame + mInputSize, inData, copy);
479 mInputSize += copy;
481 inHeader->nOffset += copy;
482 inHeader->nFilledLen -= copy;
487 (copy * 1000000ll / mSampleRate)
H A DSoftAACEncoder2.cpp6 * You may obtain a copy of the License at
553 size_t copy = numBytesPerInputFrame - mInputSize; local
554 if (copy > inHeader->nFilledLen) {
555 copy = inHeader->nFilledLen;
566 memcpy((uint8_t *)mInputFrame + mInputSize, inData, copy);
567 mInputSize += copy;
569 inHeader->nOffset += copy;
570 inHeader->nFilledLen -= copy;
575 (copy * 1000000ll / mSampleRate)
/frameworks/av/media/libstagefright/codecs/amrnb/enc/
H A DSoftAMRNBEncoder.cpp6 * You may obtain a copy of the License at
329 size_t copy = numBytesPerInputFrame - mInputSize; local
330 if (copy > inHeader->nFilledLen) {
331 copy = inHeader->nFilledLen;
338 memcpy((uint8_t *)mInputFrame + mInputSize, inData, copy);
339 mInputSize += copy;
341 inHeader->nOffset += copy;
342 inHeader->nFilledLen -= copy;
347 (copy * 1000000ll / kSampleRate) / sizeof(int16_t);
/frameworks/av/media/libstagefright/codecs/amrwbenc/
H A DSoftAMRWBEncoder.cpp6 * You may obtain a copy of the License at
376 size_t copy = numBytesPerInputFrame - mInputSize; local
377 if (copy > inHeader->nFilledLen) {
378 copy = inHeader->nFilledLen;
385 memcpy((uint8_t *)mInputFrame + mInputSize, inData, copy);
386 mInputSize += copy;
388 inHeader->nOffset += copy;
389 inHeader->nFilledLen -= copy;
394 (copy * 1000000ll / kSampleRate) / sizeof(int16_t);
/frameworks/av/media/libstagefright/foundation/
H A DAMessage.cpp6 * You may obtain a copy of the License at
453 sp<AMessage> copy = local
456 to->u.refValue = copy.get();
/frameworks/av/media/libstagefright/http/
H A DMediaHTTP.cpp6 * You may obtain a copy of the License at
98 size_t copy = size - numBytesRead; local
100 if (copy > 64 * 1024) {
103 copy = 64 * 1024;
107 offset + numBytesRead, (uint8_t *)data + numBytesRead, copy);
/frameworks/av/media/libstagefright/httplive/
H A DHTTPDownloader.cpp6 * You may obtain a copy of the License at
159 sp<ABuffer> copy = new ABuffer(buffer->size() + bufferRemaining); local
160 memcpy(copy->data(), buffer->data(), buffer->size());
161 copy->setRange(0, buffer->size());
163 buffer = copy;
H A DLiveDataSource.cpp6 * You may obtain a copy of the License at
114 size_t copy = size - sizeDone; local
116 if (copy > buffer->size()) {
117 copy = buffer->size();
120 memcpy((uint8_t *)data + sizeDone, buffer->data(), copy);
122 sizeDone += copy;
124 buffer->setRange(buffer->offset() + copy, buffer->size() - copy);
/frameworks/av/media/libstagefright/id3/
H A DID3.cpp6 * You may obtain a copy of the License at
46 size_t copy = (available > (off64_t)size) ? size : available; local
47 memcpy(data, mData + offset, copy);
49 return copy;
196 void *copy = malloc(size); local
197 if (copy == NULL) {
204 memcpy(copy, mData, size);
208 memcpy(mData, copy, size);
218 free(copy);
219 copy
[all...]
/frameworks/av/media/libstagefright/wifi-display/rtp/
H A DRTPSender.cpp6 * You may obtain a copy of the License at
385 size_t copy = out->capacity() - outBytesUsed - 2; local
386 if (copy > nalSize - srcOffset) {
387 copy = nalSize - srcOffset;
399 if (srcOffset + copy == nalSize) {
403 memcpy(&dst[2], nalStart + srcOffset, copy);
404 srcOffset += copy;
406 out->setRange(0, outBytesUsed + copy + 2);
/frameworks/av/media/libstagefright/wifi-display/source/
H A DConverter.cpp6 * You may obtain a copy of the License at
519 size_t copy = buffer->size(); local
520 if(copy > bytesMissingForFullAU) {
521 copy = bytesMissingForFullAU;
526 copy);
528 mPartialAudioAU->setRange(0, mPartialAudioAU->size() + copy);
530 buffer->setRange(buffer->offset() + copy, buffer->size() - copy);
535 int64_t copyUs = (int64_t)((copy / kFrameSize) * 1E6 / 48000.0);
539 if (bytesMissingForFullAU == copy) {
568 size_t copy = buffer->size(); local
[all...]
H A DTSPacketizer.cpp6 * You may obtain a copy of the License at
888 size_t copy = accessUnit->size(); local
890 if (copy > sizeAvailableForPayload) {
891 copy = sizeAvailableForPayload;
893 if (alignPayload && copy > 16) {
894 copy -= (copy % 16);
898 size_t numPaddingBytes = sizeAvailableForPayload - copy;
949 memcpy(ptr, accessUnit->data(), copy);
950 ptr += copy;
970 size_t copy = accessUnit->size() - offset; local
[all...]

Completed in 328 milliseconds

1234