/frameworks/av/media/libstagefright/omx/ |
H A D | OMX.cpp | 361 buffer_id *buffer, OMX_U32 allottedSize) { 363 port_index, params, buffer, allottedSize); 368 const sp<GraphicBuffer> &graphicBuffer, buffer_id *buffer) { 370 port_index, graphicBuffer, buffer); 375 const sp<GraphicBuffer> &graphicBuffer, buffer_id buffer) { 377 port_index, graphicBuffer, buffer); 407 buffer_id *buffer, void **buffer_data) { 409 port_index, size, buffer, buffer_data); 414 buffer_id *buffer, OMX_U32 allottedSize) { 416 port_index, params, buffer, allottedSiz 359 useBuffer( node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, buffer_id *buffer, OMX_U32 allottedSize) argument 366 useGraphicBuffer( node_id node, OMX_U32 port_index, const sp<GraphicBuffer> &graphicBuffer, buffer_id *buffer) argument 373 updateGraphicBufferInMeta( node_id node, OMX_U32 port_index, const sp<GraphicBuffer> &graphicBuffer, buffer_id buffer) argument 405 allocateBuffer( node_id node, OMX_U32 port_index, size_t size, buffer_id *buffer, void **buffer_data) argument 412 allocateBufferWithBackup( node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, buffer_id *buffer, OMX_U32 allottedSize) argument 419 freeBuffer(node_id node, OMX_U32 port_index, buffer_id buffer) argument 424 fillBuffer(node_id node, buffer_id buffer, int fenceFd) argument 428 emptyBuffer( node_id node, buffer_id buffer, OMX_U32 range_offset, OMX_U32 range_length, OMX_U32 flags, OMX_TICKS timestamp, int fenceFd) argument 501 OnEmptyBufferDone( node_id node, buffer_id buffer, OMX_IN OMX_BUFFERHEADERTYPE *pBuffer, int fenceFd) argument 516 OnFillBufferDone( node_id node, buffer_id buffer, OMX_IN OMX_BUFFERHEADERTYPE *pBuffer, int fenceFd) argument [all...] |
H A D | SoftVideoEncoderOMXComponent.cpp | 518 ANativeWindowBuffer *buffer = nativeMeta.pBuffer; local 519 handle = buffer->handle; 520 format = buffer->format; 521 srcStride = buffer->stride; 522 srcVStride = buffer->height; 550 // there is no way to get the src stride without the graphic buffer 560 ALOGE("destination buffer is too small (%zu vs %zu)", dstSize, neededSize); 579 ALOGE("Unable to lock image buffer %p for access", handle); 621 ALOGE("Unable to unlock image buffer %p for access", handle);
|
/frameworks/av/media/libstagefright/omx/tests/ |
H A D | OMXHarness.cpp | 91 if ((*inputBuffers)[i].mID == msg.u.buffer_data.buffer) { 105 if ((*outputBuffers)[i].mID == msg.u.buffer_data.buffer) { 192 Buffer buffer; local 193 buffer.mMemory = dealer->allocate(def.nBufferSize); 194 buffer.mFlags = 0; 195 CHECK(buffer.mMemory != NULL); 198 node, portIndex, buffer.mMemory, &buffer.mID, buffer.mMemory->size()); 201 buffers->push(buffer); 626 MediaBuffer *buffer = NULL; local 647 MediaBuffer *buffer; local [all...] |
/frameworks/av/media/libstagefright/rtsp/ |
H A D | ARTSPConnection.cpp | 595 sp<ABuffer> buffer = new ABuffer((x[1] << 8) | x[2]); local 596 if (receive(buffer->data(), buffer->size()) != OK) { 600 buffer->meta()->setInt32("index", (int32_t)x[0]); 602 return buffer; 617 sp<ABuffer> buffer = receiveBinaryData(); local 619 if (buffer == NULL) { 625 notify->setBuffer("buffer", buffer);
|
H A D | MyTransmitter.h | 126 MediaBuffer *buffer; local 127 CHECK_EQ(mEncoder->read(&buffer), (status_t)OK); 128 CHECK(buffer != NULL); 130 makeH264SPropParamSets(buffer); 132 buffer->release(); 133 buffer = NULL; 436 sp<ABuffer> buffer = new ABuffer(65536); 437 ssize_t n = recv(mRTCPSocket, buffer->data(), buffer->size(), 0); 444 hexdump(buffer 616 sp<ABuffer> buffer = new ABuffer(65536); local 717 sp<ABuffer> buffer = new ABuffer(65536); local 861 makeH264SPropParamSets(MediaBuffer *buffer) argument 889 addSR(const sp<ABuffer> &buffer) argument 928 addSDES(const sp<ABuffer> &buffer) argument [all...] |
/frameworks/av/media/libstagefright/wifi-display/rtp/ |
H A D | RTPSender.cpp | 185 const sp<ABuffer> &buffer, uint8_t packetType, PacketizationMode mode) { 190 err = queueRawPacket(buffer, packetType); 194 err = queueTSPackets(buffer, packetType); 198 err = queueAVCBuffer(buffer, packetType); 460 const sp<ABuffer> &buffer, bool storeInHistory, 465 mRTPSessionID, buffer->data(), buffer->size(), 473 mLastRTPTime = U32_AT(buffer->data() + 4); 476 mNumRTPOctetsSent += buffer->size() - 12; 484 mHistory.push_back(buffer); 184 queueBuffer( const sp<ABuffer> &buffer, uint8_t packetType, PacketizationMode mode) argument 459 sendRTPPacket( const sp<ABuffer> &buffer, bool storeInHistory, bool timeValid, int64_t timeUs) argument 613 onRTCPData(const sp<ABuffer> &buffer) argument 713 const sp<ABuffer> &buffer = *it; local [all...] |
/frameworks/av/media/libstagefright/wifi-display/source/ |
H A D | TSPacketizer.cpp | 515 // the first fragment of "buffer" follows 642 sp<ABuffer> buffer = new ABuffer(numTSPackets * 188); local 643 uint8_t *packetDataStart = buffer->data(); 957 // for subsequent fragments of "buffer": 966 // the fragment of "buffer" follows. 1007 CHECK(packetDataStart == buffer->data() + buffer->capacity()); 1009 *packets = buffer;
|
/frameworks/av/media/libstagefright/yuv/ |
H A D | YUVImage.cpp | 32 uint8_t *buffer = new uint8_t[numberOfBytes]; local 33 mBuffer = buffer; 39 YUVImage::YUVImage(YUVFormat yuvFormat, int32_t width, int32_t height, uint8_t *buffer) { argument 43 mBuffer = buffer;
|
/frameworks/av/media/mtp/ |
H A D | MtpDevice.cpp | 109 char buffer[256]; 110 memset(buffer, 0, sizeof(buffer)); 114 0, buffer, sizeof(buffer), 0); 117 printf("got MTP string %s\n", buffer); 120 0, 4, buffer, sizeof(buffer), 0); 485 char buffer[65536]; local 487 int count = read(srcFD, buffer, sizeo [all...] |
/frameworks/av/services/audioflinger/ |
H A D | AudioMixer.h | 97 // This clears out the resampler's input buffer. 200 // actual buffer provider used by the track hooks, see DownmixerBufferProvider below 201 // for how the Track buffer provider is wrapped by another one when dowmixing is required 206 mutable AudioBufferProvider::Buffer buffer; // 8 bytes member in struct:android::AudioMixer::track_t 209 const void* in; // current location in buffer 223 * all pre-mixer track buffer conversions outside the AudioMixer class. 225 * 1) mInputBufferProvider: The AudioTrack buffer provider. 236 AudioBufferProvider* mInputBufferProvider; // externally provided buffer provider.
|
H A D | Effects.h | 40 // When controlling an auxiliary effect, the EffectModule also provides an input buffer used by 87 void setInBuffer(int16_t *buffer) { mConfig.inputCfg.buffer.s16 = buffer; } argument 88 int16_t *inBuffer() { return mConfig.inputCfg.buffer.s16; } 89 void setOutBuffer(int16_t *buffer) { mConfig.outputCfg.buffer.s16 = buffer; } argument 90 int16_t *outBuffer() { return mConfig.outputCfg.buffer.s16; } 214 void dumpToBuffer(char* buffer, size_ 281 setInBuffer(int16_t *buffer, bool ownsBuffer = false) argument 288 setOutBuffer(int16_t *buffer) argument [all...] |
H A D | PlaybackTracks.h | 32 void *buffer, 42 void dump(char* buffer, size_t size, bool active); 62 void setAuxBuffer(int EffectId, int32_t *buffer); 64 void setMainBuffer(int16_t *buffer) { mMainBuffer = buffer; } argument 86 virtual status_t getNextBuffer(AudioBufferProvider::Buffer* buffer, 178 TimedBuffer(const sp<IMemory>& buffer, int64_t pts); 179 const sp<IMemory>& buffer() const { return mBuffer; } function in class:TimedTrack::TimedBuffer 193 virtual status_t getNextBuffer(AudioBufferProvider::Buffer* buffer, 195 virtual void releaseBuffer(AudioBufferProvider::Buffer* buffer); [all...] |
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
H A D | AudioPort.cpp | 746 char buffer[SIZE]; local 750 snprintf(buffer, SIZE, "%*s- name: %s\n", spaces, "", mName.string()); 751 result.append(buffer); 755 snprintf(buffer, SIZE, "%*s- sampling rates: ", spaces, ""); 756 result.append(buffer); 759 snprintf(buffer, SIZE, "Dynamic"); 761 snprintf(buffer, SIZE, "%d", mSamplingRates[i]); 763 result.append(buffer); 770 snprintf(buffer, SIZE, "%*s- channel masks: ", spaces, ""); 771 result.append(buffer); [all...] |
/frameworks/av/services/camera/libcameraservice/api1/ |
H A D | CameraClient.cpp | 112 char buffer[SIZE]; local 114 size_t len = snprintf(buffer, SIZE, "Client[%d] (%p) with UID %d\n", 120 write(fd, buffer, len); 122 len = snprintf(buffer, SIZE, "Latest set parameters:\n"); 124 write(fd, buffer, len); 318 // set the buffer consumer that the preview will use 328 // Using controlledByApp flag to ensure that the buffer queue remains in 796 // preview callback - frame buffer update 916 // hold the preview lock while we grab a reference to the preview buffer 926 ALOGE("failed to allocate space for preview buffer"); [all...] |
/frameworks/base/core/java/android/database/ |
H A D | AbstractCursor.java | 189 public void copyStringToBuffer(int columnIndex, CharArrayBuffer buffer) { argument 193 char[] data = buffer.data; 195 buffer.data = result.toCharArray(); 199 buffer.sizeCopied = result.length(); 201 buffer.sizeCopied = 0;
|
H A D | CursorWindow.java | 33 * A buffer containing multiple cursor rows. 77 CharArrayBuffer buffer); 448 * The buffer is populated as follows: 450 * <li>If the buffer is too small for the value to be copied, then it is 452 * <li>If the field is of type {@link Cursor#FIELD_TYPE_NULL}, then the buffer 454 * <li>If the field is of type {@link Cursor#FIELD_TYPE_STRING}, then the buffer 456 * <li>If the field is of type {@link Cursor#FIELD_TYPE_INTEGER}, then the buffer 460 * <li>If the field is of type {@link Cursor#FIELD_TYPE_FLOAT}, then the buffer is 471 * @param buffer The {@link CharArrayBuffer} to hold the string. It is automatically 472 * resized if the requested string is larger than the buffer' 76 nativeCopyStringToBuffer(long windowPtr, int row, int column, CharArrayBuffer buffer) argument 474 copyStringToBuffer(int row, int column, CharArrayBuffer buffer) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_hardware_SensorManager.cpp | 231 ASensorEvent buffer[16]; local 232 while ((n = q->read(buffer, 16)) > 0) { 234 if (buffer[i].type == SENSOR_TYPE_STEP_COUNTER) { 236 float value = float(buffer[i].u64.step_counter); 239 env->SetFloatArrayRegion(mScratch, 0, 16, buffer[i].data); 242 if (buffer[i].type == SENSOR_TYPE_META_DATA) { 248 buffer[i].meta_data.sensor); 252 switch (buffer[i].type) { 259 status = buffer[i].vector.status; 262 status = buffer[ [all...] |
H A D | android_opengl_GLES10Ext.cpp | 103 getPointer(JNIEnv *_env, jobject buffer, jarray *array, jint *remaining, jint *offset) argument 110 position = _env->GetIntField(buffer, positionID); 111 limit = _env->GetIntField(buffer, limitID); 112 elementSizeShift = _env->GetIntField(buffer, elementSizeShiftID); 115 getBasePointerID, buffer); 122 getBaseArrayID, buffer); 124 getBaseArrayOffsetID, buffer); 247 getDirectBufferPointer(JNIEnv *_env, jobject buffer) { argument 248 char* buf = (char*) _env->GetDirectBufferAddress(buffer); 250 jint position = _env->GetIntField(buffer, positionI [all...] |
/frameworks/base/libs/hwui/ |
H A D | TessellationCache.cpp | 120 VertexBuffer* buffer = t->tessellator(t->description); variable 121 t->setResult(buffer); 378 Buffer*& buffer) { 379 delete buffer; 424 Buffer* buffer = mCache.get(entry); local 425 if (!buffer) { 426 // not cached, enqueue a task to fill the buffer 428 buffer = new Buffer(task); 434 mCache.put(entry, buffer); 436 return buffer; 377 operator ()(Description& description, Buffer*& buffer) argument 444 VertexBuffer* buffer = new VertexBuffer(); local [all...] |
/frameworks/base/libs/hwui/renderthread/ |
H A D | RenderProxy.cpp | 465 CREATE_BRIDGE4(setTextureAtlas, RenderThread* thread, GraphicBuffer* buffer, int64_t* map, size_t size) { argument 466 CanvasContext::setTextureAtlas(*args->thread, args->buffer, args->map, args->size); 467 args->buffer->decStrong(nullptr); 471 void RenderProxy::setTextureAtlas(const sp<GraphicBuffer>& buffer, int64_t* map, size_t size) { argument 474 args->buffer = buffer.get(); 475 args->buffer->incStrong(nullptr);
|
/frameworks/base/media/java/android/media/ |
H A D | ImageWriter.java | 57 * {@link #queueInputImage}), potentially with zero buffer copies. For the 188 * image buffer is inaccessible to the application, and calling this method 236 * buffer to the downstream consumer. In both cases, it's up to the caller 293 // fails. Right now, detach is guaranteed to fail as the buffer is 484 * stand-alone images are not backed by native gralloc buffer, thus not 494 // buffer caused leak. 733 private SurfacePlane(int rowStride, int pixelStride, ByteBuffer buffer) { argument 736 mBuffer = buffer;
|
/frameworks/base/media/jni/ |
H A D | android_media_MediaExtractor.cpp | 175 sp<ABuffer> buffer = new ABuffer((char *)dst + offset, dstSize - offset); local 177 status_t err = mImpl->readSampleData(buffer); 187 *sampleSize = buffer->size();
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | GLFrame.java | 207 public void setData(ByteBuffer buffer, int offset, int length) { argument 210 byte[] bytes = buffer.array();
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
H A D | ExifParser.java | 800 protected int read(byte[] buffer, int offset, int length) throws IOException { argument 801 return mTiffStream.read(buffer, offset, length); 805 * Equivalent to read(buffer, 0, buffer.length). 807 protected int read(byte[] buffer) throws IOException { argument 808 return mTiffStream.read(buffer);
|
/frameworks/base/services/core/jni/ |
H A D | com_android_server_tv_TvInputHal.cpp | 151 ALOGE("error %d while wating for buffer state to change.", err); 203 ALOGE("error %d while wating for buffer state to change.", err); 210 ALOGE("error %d while queueing buffer to surface", err); 217 ANativeWindowBuffer_t* buffer = NULL; local 218 err = native_window_dequeue_buffer_and_wait(anw.get(), &buffer); 220 ALOGE("error %d while dequeueing buffer to surface", err); 223 mBuffer = buffer; 226 buffer->handle, ++mSeq);
|