Lines Matching refs:buffer
59 void SkipCutBuffer::submit(MediaBuffer *buffer) { in submit() argument
65 int32_t offset = buffer->range_offset(); in submit()
66 int32_t buflen = buffer->range_length(); in submit()
74 buffer->set_range(offset, buflen); in submit()
80 char *src = ((char*) buffer->data()) + offset; in submit()
86 char *dst = (char*) buffer->data(); in submit()
87 size_t copied = read(dst, buffer->size()); in submit()
88 buffer->set_range(0, copied); in submit()
92 void SkipCutBuffer::submitInternal(const sp<T>& buffer) { in submitInternal() argument
98 int32_t offset = buffer->offset(); in submitInternal()
99 int32_t buflen = buffer->size(); in submitInternal()
107 buffer->setRange(offset, buflen); in submitInternal()
113 char *src = (char*) buffer->data(); in submitInternal()
119 char *dst = (char*) buffer->base(); in submitInternal()
120 size_t copied = read(dst, buffer->capacity()); in submitInternal()
121 buffer->setRange(0, copied); in submitInternal()
124 void SkipCutBuffer::submit(const sp<ABuffer>& buffer) { in submit() argument
125 submitInternal(buffer); in submit()
128 void SkipCutBuffer::submit(const sp<MediaCodecBuffer>& buffer) { in submit() argument
129 submitInternal(buffer); in submit()