Searched defs:buffer (Results 126 - 150 of 680) sorted by relevance

1234567891011>>

/frameworks/av/media/libaudiohal/
H A DEffectBufferHalHidl.cpp42 size_t size, sp<EffectBufferHalInterface>* buffer) {
43 return mirror(nullptr, size, buffer);
48 void* external, size_t size, sp<EffectBufferHalInterface>* buffer) {
53 *buffer = tempBuffer;
41 allocate( size_t size, sp<EffectBufferHalInterface>* buffer) argument
47 mirror( void* external, size_t size, sp<EffectBufferHalInterface>* buffer) argument
H A DEffectHalLocal.cpp37 status_t EffectHalLocal::setInBuffer(const sp<EffectBufferHalInterface>& buffer) { argument
38 mInBuffer = buffer;
42 status_t EffectHalLocal::setOutBuffer(const sp<EffectBufferHalInterface>& buffer) { argument
43 mOutBuffer = buffer;
49 ALOGE_IF(mInBuffer == nullptr, "Input buffer not set");
50 ALOGE_IF(mOutBuffer == nullptr, "Output buffer not set");
59 ALOGE_IF(mInBuffer == nullptr, "Input buffer not set");
60 ALOGE_IF(mOutBuffer == nullptr, "Output buffer not set");
/frameworks/av/media/libmedia/
H A DOMXBuffer.cpp146 sp<GraphicBuffer> buffer = new GraphicBuffer(); local
147 status_t err = parcel->read(*buffer);
151 mGraphicBuffer = buffer;
/frameworks/av/media/libmedia/omx/1.0/
H A DWOmxBufferSource.cpp89 Return<void> TWOmxBufferSource::onInputBufferAdded(uint32_t buffer) { argument
90 mBase->onInputBufferAdded(int32_t(buffer));
95 uint32_t buffer, hidl_handle const& fence) {
100 mBase->onInputBufferEmptied(int32_t(buffer), fenceParcelable);
94 onInputBufferEmptied( uint32_t buffer, hidl_handle const& fence) argument
/frameworks/av/media/libnbaio/
H A DAudioStreamOutSink.cpp58 ssize_t AudioStreamOutSink::write(const void *buffer, size_t count) argument
65 status_t ret = mStream->write(buffer, count * mFrameSize, &written);
/frameworks/av/media/libstagefright/
H A DMediaMuxer.cpp149 status_t MediaMuxer::writeSampleData(const sp<ABuffer> &buffer, size_t trackIndex, argument
153 if (buffer.get() == NULL) {
154 ALOGE("WriteSampleData() get an NULL buffer.");
168 MediaBuffer* mediaBuffer = new MediaBuffer(buffer);
171 mediaBuffer->set_range(buffer->offset(), buffer->size());
H A DSkipCutBuffer.cpp59 void SkipCutBuffer::submit(MediaBuffer *buffer) { argument
65 int32_t offset = buffer->range_offset();
66 int32_t buflen = buffer->range_length();
68 // drop the initial data from the buffer if needed
74 buffer->set_range(offset, buflen);
80 char *src = ((char*) buffer->data()) + offset;
86 char *dst = (char*) buffer->data();
87 size_t copied = read(dst, buffer->size());
88 buffer->set_range(0, copied);
92 void SkipCutBuffer::submitInternal(const sp<T>& buffer) { argument
124 submit(const sp<ABuffer>& buffer) argument
128 submit(const sp<MediaCodecBuffer>& buffer) argument
[all...]
/frameworks/av/media/libstagefright/foundation/
H A DMediaBuffer.cpp75 ALOGV("Allocated shared mem buffer of size %zu @ %p", size, mData);
93 MediaBuffer::MediaBuffer(const sp<ABuffer> &buffer) argument
96 mData(buffer->data()),
97 mSize(buffer->size()),
100 mBuffer(buffer),
204 MediaBuffer *buffer = new MediaBuffer(mData, mSize); local
205 buffer->set_range(mRangeOffset, mRangeLength);
206 buffer->mMetaData = new MetaData(*mMetaData.get());
209 buffer->mOriginal = this;
211 return buffer;
[all...]
H A Dbase64.cpp47 sp<ABuffer> buffer = new ABuffer(outLen); local
49 uint8_t *out = buffer->data();
50 if (out == NULL || buffer->size() < outLen) {
90 return buffer;
/frameworks/av/media/libstagefright/httplive/
H A DLiveDataSource.cpp69 sp<ABuffer> buffer = *it; local
71 totalAvailable += buffer->size();
112 sp<ABuffer> buffer = *mBufferQueue.begin(); local
116 if (copy > buffer->size()) {
117 copy = buffer->size();
120 memcpy((uint8_t *)data + sizeDone, buffer->data(), copy);
124 buffer->setRange(buffer->offset() + copy, buffer->size() - copy);
126 if (buffer
136 queueBuffer(const sp<ABuffer> &buffer) argument
[all...]
/frameworks/av/media/libstagefright/omx/1.0/
H A DWOmxBufferSource.cpp89 Return<void> TWOmxBufferSource::onInputBufferAdded(uint32_t buffer) { argument
90 mBase->onInputBufferAdded(int32_t(buffer));
95 uint32_t buffer, hidl_handle const& fence) {
100 mBase->onInputBufferEmptied(int32_t(buffer), fenceParcelable);
94 onInputBufferEmptied( uint32_t buffer, hidl_handle const& fence) argument
/frameworks/av/media/libstagefright/rtsp/
H A DAH263Assembler.cpp75 sp<ABuffer> buffer = *queue->begin(); local
79 mNextExpectedSeqNo = (uint32_t)buffer->int32Data();
80 } else if ((uint32_t)buffer->int32Data() != mNextExpectedSeqNo) {
89 CHECK(buffer->meta()->findInt32("rtp-time", (int32_t *)&rtpTime));
96 // hexdump(buffer->data(), buffer->size());
98 if (buffer->size() < 2) {
105 unsigned payloadHeader = U16_AT(buffer->data());
137 buffer->setRange(buffer
[all...]
H A DARawAudioAssembler.cpp76 sp<ABuffer> buffer = *queue->begin(); local
80 mNextExpectedSeqNo = (uint32_t)buffer->int32Data();
81 } else if ((uint32_t)buffer->int32Data() != mNextExpectedSeqNo) {
87 // hexdump(buffer->data(), buffer->size());
89 if (buffer->size() < 1) {
99 msg->setBuffer("access-unit", buffer);
H A DSDPLoader.cpp119 sp<ABuffer> buffer = new ABuffer(sdpSize); local
122 ssize_t readSize = mHTTPDataSource->readAt(0, buffer->data(), sdpSize);
130 if (desc == NULL || !desc->setTo(buffer->data(), (size_t)readSize)) {
H A DVideoSource.h58 MediaBuffer **buffer, const MediaSource::ReadOptions *options) {
65 status_t err = mGroup.acquire_buffer(buffer);
71 memset((*buffer)->data(), x, mSize);
72 (*buffer)->set_range(0, mSize);
73 (*buffer)->meta_data()->clear();
74 (*buffer)->meta_data()->setInt64(
78 // printf("VideoSource::read - returning buffer\n");
79 // LOG(INFO)("VideoSource::read - returning buffer");
57 read( MediaBuffer **buffer, const MediaSource::ReadOptions *options) argument
/frameworks/av/services/audioflinger/
H A DSpdifStreamOut.h51 * Write audio buffer to driver. Returns number of bytes written, or a
58 * bytes that currently fit in the driver/hardware buffer and then return
61 * driver/hardware buffer.
63 virtual ssize_t write(const void* buffer, size_t bytes);
101 virtual ssize_t writeOutput(const void* buffer, size_t bytes) argument
103 return mSpdifStreamOut->writeDataBurst(buffer, bytes);
115 ssize_t writeInternal(const void* buffer, size_t bytes);
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DAudioPatch.cpp43 char buffer[SIZE]; local
46 snprintf(buffer, SIZE, "%*sAudio patch %d:\n", spaces, "", index+1);
47 result.append(buffer);
48 snprintf(buffer, SIZE, "%*s- handle: %2d\n", spaces, "", mHandle);
49 result.append(buffer);
50 snprintf(buffer, SIZE, "%*s- audio flinger handle: %2d\n", spaces, "", mAfPatchHandle);
51 result.append(buffer);
52 snprintf(buffer, SIZE, "%*s- owner uid: %2d\n", spaces, "", mUid);
53 result.append(buffer);
54 snprintf(buffer, SIZ
170 char buffer[SIZE]; local
[all...]
H A DEffectDescriptor.cpp28 char buffer[SIZE]; local
31 snprintf(buffer, SIZE, " I/O: %d\n", mIo);
32 result.append(buffer);
33 snprintf(buffer, SIZE, " Strategy: %d\n", mStrategy);
34 result.append(buffer);
35 snprintf(buffer, SIZE, " Session: %d\n", mSession);
36 result.append(buffer);
37 snprintf(buffer, SIZE, " Name: %s\n", mDesc.name);
38 result.append(buffer);
39 snprintf(buffer, SIZ
180 char buffer[SIZE]; local
[all...]
H A DIOProfile.cpp106 char buffer[SIZE]; local
111 snprintf(buffer, SIZE, " - flags: 0x%04x", getFlags());
112 result.append(buffer);
/frameworks/av/services/camera/libcameraservice/device3/
H A DCamera3DummyStream.cpp80 status_t Camera3DummyStream::detachBuffer(sp<GraphicBuffer>* buffer, int* fenceFd) { argument
81 (void) buffer;
/frameworks/base/core/java/android/hardware/
H A DSerialPort.java80 * Reads data into the provided buffer.
81 * Note that the value returned by {@link java.nio.Buffer#position()} on this buffer is
84 * @param buffer to read into
87 public int read(ByteBuffer buffer) throws IOException { argument
88 if (buffer.isDirect()) {
89 return native_read_direct(buffer, buffer.remaining());
90 } else if (buffer.hasArray()) {
91 return native_read_array(buffer.array(), buffer
105 write(ByteBuffer buffer, int length) argument
124 native_read_array(byte[] buffer, int length) argument
125 native_read_direct(ByteBuffer buffer, int length) argument
126 native_write_array(byte[] buffer, int length) argument
127 native_write_direct(ByteBuffer buffer, int length) argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
H A DMarshalQueryablePair.java91 public void marshal(Pair<T1, T2> value, ByteBuffer buffer) { argument
98 mNestedTypeMarshalerFirst.marshal(value.first, buffer);
99 mNestedTypeMarshalerSecond.marshal(value.second, buffer);
103 public Pair<T1, T2> unmarshal(ByteBuffer buffer) { argument
104 T1 first = mNestedTypeMarshalerFirst.unmarshal(buffer);
105 T2 second = mNestedTypeMarshalerSecond.unmarshal(buffer);
H A DMarshalQueryableParcelable.java72 public void marshal(T value, ByteBuffer buffer) { argument
98 buffer.put(parcelContents);
102 public T unmarshal(ByteBuffer buffer) { argument
104 Log.v(TAG, "unmarshal, buffer remaining " + buffer.remaining());
110 * Read out the entire byte buffer as an array, then copy it into the parcel.
112 * Once we unparcel the entire object, advance the byte buffer by only how many
122 buffer.mark();
126 int maxLength = buffer.remaining();
129 buffer
[all...]
H A DMarshalQueryablePrimitive.java64 public T unmarshal(ByteBuffer buffer) { argument
65 return mClass.cast(unmarshalObject(buffer));
74 public void marshal(T value, ByteBuffer buffer) { argument
78 marshalPrimitive(val, buffer);
82 marshalPrimitive(val, buffer);
86 marshalPrimitive(val, buffer);
89 marshalPrimitive((Rational) value, buffer);
93 marshalPrimitive(val, buffer);
97 marshalPrimitive(val, buffer);
104 private void marshalPrimitive(int value, ByteBuffer buffer) { argument
108 marshalPrimitive(float value, ByteBuffer buffer) argument
112 marshalPrimitive(double value, ByteBuffer buffer) argument
116 marshalPrimitive(long value, ByteBuffer buffer) argument
120 marshalPrimitive(Rational value, ByteBuffer buffer) argument
125 marshalPrimitive(byte value, ByteBuffer buffer) argument
129 unmarshalObject(ByteBuffer buffer) argument
[all...]
H A DMarshalQueryableRange.java76 public void marshal(Range<T> value, ByteBuffer buffer) { argument
77 mNestedTypeMarshaler.marshal(value.getLower(), buffer);
78 mNestedTypeMarshaler.marshal(value.getUpper(), buffer);
82 public Range<T> unmarshal(ByteBuffer buffer) { argument
83 T lower = mNestedTypeMarshaler.unmarshal(buffer);
84 T upper = mNestedTypeMarshaler.unmarshal(buffer);

Completed in 363 milliseconds

1234567891011>>