本文整理汇总了C++中android::sp::setStreamBufferSet方法的典型用法代码示例。如果您正苦于以下问题:C++ sp::setStreamBufferSet方法的具体用法?C++ sp::setStreamBufferSet怎么用?C++ sp::setStreamBufferSet使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android::sp
的用法示例。
在下文中一共展示了sp::setStreamBufferSet方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: printf
//.........这里部分代码省略.........
userGroupIndex = pStreamBuffer->enqueUserGraph(pUserGraph.get());
}
//
pBufferSetControl->editMap_HalMeta()->add(pStreamBuffer);
}
#endif
//
{
//App:Meta:Result
StreamId_T const streamId = STREAM_ID_APPMETADATA;
//
sp<IMetaStreamInfo> pStreamInfo = getStreamInfoSet()->getMetaInfoFor(streamId);
sp<IMetaStreamBuffer> pStreamBuffer;
//
//alloc without default value
typedef NSCam::v3::Utils::HalMetaStreamBuffer::Allocator StreamBufferAllocatorT;
pStreamBuffer = StreamBufferAllocatorT(pStreamInfo.get())();
MY_LOGE_IF(pStreamBuffer==0, "pStreamBuffer==0");
//
ssize_t userGroupIndex = 0;
//User Group1
{
sp<IUsersManager::IUserGraph> pUserGraph = pStreamBuffer->createGraph();
IUsersManager::User user;
//
user.mUserId = NODE_ID_NODE1;
user.mCategory = IUsersManager::Category::PRODUCER;
pUserGraph->addUser(user);
//
userGroupIndex = pStreamBuffer->enqueUserGraph(pUserGraph.get());
}
//
pBufferSetControl->editMap_AppMeta()->add(pStreamBuffer);
}
//
{
//APP/Meta/Request
StreamId_T const streamId = STREAM_ID_APPREQUEST;
//
sp<IMetaStreamInfo> pStreamInfo = getStreamInfoSet()->getMetaInfoFor(streamId);
sp<IMetaStreamBuffer> pStreamBuffer;
//
IMetadata appRequest;
{
IMetadata::IEntry entry1(MTK_SCALER_AVAILABLE_MAX_DIGITAL_ZOOM);
entry1.push_back(16, Type2Type< MFLOAT >());
appRequest.update(MTK_SCALER_AVAILABLE_MAX_DIGITAL_ZOOM, entry1);
}
typedef NSCam::v3::Utils::HalMetaStreamBuffer::Allocator StreamBufferAllocatorT;
pStreamBuffer = StreamBufferAllocatorT(pStreamInfo.get())(appRequest);
MY_LOGE_IF(pStreamBuffer==0, "pStreamBuffer==0");
//
ssize_t userGroupIndex = 0;
//User Group1
{
sp<IUsersManager::IUserGraph> pUserGraph = pStreamBuffer->createGraph();
IUsersManager::User user;
//
user.mUserId = NODE_ID_NODE1;
user.mCategory = IUsersManager::Category::CONSUMER;
pUserGraph->addUser(user);
//
//
userGroupIndex = pStreamBuffer->enqueUserGraph(pUserGraph.get());
}
//
pBufferSetControl->editMap_AppMeta()->add(pStreamBuffer);
}
//
{
//HAL/Meta/Request
StreamId_T const streamId = STREAM_ID_HALREQUEST;
//
sp<IMetaStreamInfo> pStreamInfo = getStreamInfoSet()->getMetaInfoFor(streamId);
sp<IMetaStreamBuffer> pStreamBuffer;
//
typedef NSCam::v3::Utils::HalMetaStreamBuffer::Allocator StreamBufferAllocatorT;
pStreamBuffer = StreamBufferAllocatorT(pStreamInfo.get())();
MY_LOGE_IF(pStreamBuffer==0, "pStreamBuffer==0");
//
ssize_t userGroupIndex = 0;
//User Group1
{
sp<IUsersManager::IUserGraph> pUserGraph = pStreamBuffer->createGraph();
IUsersManager::User user;
//
user.mUserId = NODE_ID_NODE1;
user.mCategory = IUsersManager::Category::PRODUCER;
pUserGraph->addUser(user);
//
//
userGroupIndex = pStreamBuffer->enqueUserGraph(pUserGraph.get());
}
//
pBufferSetControl->editMap_AppMeta()->add(pStreamBuffer);
}
//
pFrame->setStreamBufferSet(pBufferSetControl);
}