Lines Matching refs:info

363             const sp<MediaCodecInfo> info = mcl->getCodecInfo(codecIdx);
365 info->getSupportedMimes(&mimes);
619 const BufferInfo &info = buffers.itemAt(i);
620 if (info.mOwnedByClient) {
948 const BufferInfo &info = buffers->itemAt(index);
949 if (!info.mOwnedByClient) {
957 info.mEncryptedData :
958 info.mData;
960 *format = info.mFormat;
1370 BufferInfo info;
1371 info.mBufferID = portDesc->bufferIDAt(i);
1372 info.mOwnedByClient = false;
1373 info.mData = portDesc->bufferAt(i);
1374 info.mNativeHandle = portDesc->handleAt(i);
1375 info.mMemRef = portDesc->memRefAt(i);
1378 sp<IMemory> mem = mDealer->allocate(info.mData->capacity());
1379 info.mEncryptedData =
1380 new ABuffer(mem->pointer(), info.mData->capacity());
1381 info.mSharedEncryptedBuffer = mem;
1384 buffers->push_back(info);
2166 const BufferInfo &info = srcBuffers.itemAt(i);
2170 ? info.mEncryptedData : info.mData);
2298 const BufferInfo *info =
2305 (mCrypto != NULL) ? info->mEncryptedData : info->mData;
2377 BufferInfo *info = &buffers->editItemAt(i);
2379 if (info->mNotify != NULL) {
2380 sp<AMessage> msg = info->mNotify;
2381 info->mNotify = NULL;
2382 if (isReclaim && info->mOwnedByClient) {
2386 info->mMemRef = NULL;
2387 info->mOwnedByClient = false;
2411 BufferInfo *info = &buffers->editItemAt(i);
2413 if (info->mBufferID == bufferID) {
2414 CHECK(info->mNotify == NULL);
2415 CHECK(msg->findMessage("reply", &info->mNotify));
2417 info->mFormat =
2492 BufferInfo *info = &mPortBuffers[kPortIndexInput].editItemAt(index);
2494 if (info->mNotify == NULL || !info->mOwnedByClient) {
2498 if (offset + size > info->mData->capacity()) {
2502 sp<AMessage> reply = info->mNotify;
2503 info->mData->setRange(offset, size);
2504 info->mData->meta()->setInt64("timeUs", timeUs);
2507 info->mData->meta()->setInt32("eos", true);
2511 info->mData->meta()->setInt32("csd", true);
2515 if (size > info->mEncryptedData->capacity()) {
2522 void *dst_pointer = info->mData->base();
2525 if (info->mNativeHandle != NULL) {
2526 dst_pointer = (void *)info->mNativeHandle->handle();
2538 info->mSharedEncryptedBuffer,
2549 info->mData->setRange(0, result);
2555 info->mOwnedByClient = false;
2557 reply->setBuffer("buffer", info->mData);
2560 info->mNotify = NULL;
2599 BufferInfo *info = &mPortBuffers[kPortIndexOutput].editItemAt(index);
2601 if (info->mNotify == NULL || !info->mOwnedByClient) {
2608 info->mOwnedByClient = false;
2611 if (render && info->mData != NULL && info->mData->size() != 0) {
2612 info->mNotify->setInt32("render", true);
2615 info->mData->meta()->findInt64("timeUs", &mediaTimeUs);
2623 info->mNotify->setInt64("timestampNs", renderTimeNs);
2627 info->mData->data(), info->mData->size(),
2628 mediaTimeUs, renderTimeNs, NULL, info->mFormat);
2642 info->mNotify->post();
2643 info->mNotify = NULL;
2660 BufferInfo *info = &mPortBuffers[portIndex].editItemAt(index);
2661 CHECK(!info->mOwnedByClient);
2664 info->mOwnedByClient = true;
2667 if (info->mFormat != NULL) {
2669 if (info->mFormat->findBuffer("image-data", &imageData)) {
2670 info->mData->meta()->setBuffer("image-data", imageData);
2673 if (info->mFormat->findRect("crop", &left, &top, &right, &bottom)) {
2674 info->mData->meta()->setRect("crop-rect", left, top, right, bottom);