Home
last modified time | relevance | path

Searched refs:accessUnit (Results 1 – 12 of 12) sorted by relevance

/device/google/cuttlefish/host/frontend/gcastv2/webrtc/
DPacketizer.cpp68 [weak_this](const std::shared_ptr<android::SBuffer> &accessUnit) { in run() argument
73 me.get(), &Packetizer::onFrame, accessUnit)); in run()
80 void Packetizer::onFrame(const std::shared_ptr<android::SBuffer>& accessUnit) { in onFrame() argument
81 if (!accessUnit) { in onFrame()
85 int64_t timeUs = accessUnit->time_us(); in onFrame()
99 << accessUnit->size() in onFrame()
103 packetize(accessUnit, timeUs); in onFrame()
DOpusPacketizer.cpp34 void OpusPacketizer::packetize(const std::shared_ptr<SBuffer> &accessUnit, int64_t timeUs) { in packetize() argument
35 LOG(VERBOSE) << "Received Opus frame of size " << accessUnit->size(); in packetize()
46 const uint8_t *audioData = accessUnit->data(); in packetize()
47 size_t size = accessUnit->size(); in packetize()
DG711Packetizer.cpp36 void G711Packetizer::packetize(const std::shared_ptr<SBuffer> &accessUnit, int64_t timeUs) { in packetize() argument
37 LOG(VERBOSE) << "Received G711 frame of size " << accessUnit->size(); in packetize()
48 const uint8_t *audioData = accessUnit->data(); in packetize()
49 size_t size = accessUnit->size(); in packetize()
DVP8Packetizer.cpp34 void VP8Packetizer::packetize(const std::shared_ptr<SBuffer> &accessUnit, int64_t timeUs) { in packetize() argument
44 const uint8_t *src = accessUnit->data(); in packetize()
45 size_t srcSize = accessUnit->size(); in packetize()
/device/google/cuttlefish/host/frontend/gcastv2/libsource/
DFrameBufferSource.cpp225 std::shared_ptr<SBuffer> accessUnit; in encodeStoredFrame() local
234 if (accessUnit != nullptr) { in encodeStoredFrame()
242 accessUnit.reset(new SBuffer(packet->data.frame.sz)); in encodeStoredFrame()
244 memcpy(accessUnit->data(), in encodeStoredFrame()
248 accessUnit->time_us(timeUs); in encodeStoredFrame()
256 return accessUnit; in encodeStoredFrame()
388 auto accessUnit = mEncoder->encodeStoredFrame(GetNowUs()); in injectFrame() local
389 StreamingSource::onAccessUnit(accessUnit); in injectFrame()
401 auto accessUnit = mEncoder->encodeStoredFrame(GetNowUs()); in notifyNewStreamConsumer() local
402 if (!accessUnit) { in notifyNewStreamConsumer()
[all …]
DStreamingSource.cpp30 void StreamingSource::onAccessUnit(const std::shared_ptr<SBuffer> &accessUnit) { in onAccessUnit() argument
32 mCallbackFn(accessUnit); in onAccessUnit()
DAudioSource.cpp677 mEncoder->setFrameCallback([this](const std::shared_ptr<SBuffer> &accessUnit) { in AudioSource() argument
678 StreamingSource::onAccessUnit(accessUnit); in AudioSource()
/device/google/cuttlefish/host/frontend/gcastv2/webrtc/include/webrtc/
DPacketizer.h46 virtual void onFrame(const std::shared_ptr<android::SBuffer>& accessUnit);
49 virtual void packetize(const std::shared_ptr<android::SBuffer>& accessUnit,
DVP8Packetizer.h39 void packetize(const std::shared_ptr<SBuffer> &accessUnit, int64_t timeUs);
DOpusPacketizer.h44 void packetize(const std::shared_ptr<SBuffer> &accessUnit, int64_t timeUs);
DG711Packetizer.h50 void packetize(const std::shared_ptr<SBuffer> &accessUnit, int64_t timeUs);
/device/google/cuttlefish/host/frontend/gcastv2/libsource/include/source/
DStreamingSource.h97 void onAccessUnit(const std::shared_ptr<SBuffer> &accessUnit);