Lines Matching refs:CCodec
80 void watch(sp<CCodec> codec) { in watch()
83 Mutexed<std::set<wp<CCodec>>>::Locked codecs(mCodecsToWatch); in watch()
99 Mutexed<std::set<wp<CCodec>>>::Locked codecs(mCodecsToWatch); in onMessageReceived()
102 sp<CCodec> codec = it->promote(); in onMessageReceived()
130 Mutexed<std::set<wp<CCodec>>> mCodecsToWatch;
465 struct CCodec::ClientListener : public Codec2Client::Listener {
467 explicit ClientListener(const wp<CCodec> &codec) : mCodec(codec) {} in ClientListener()
473 sp<CCodec> codec(mCodec.promote()); in onWorkDone()
509 sp<CCodec> codec(mCodec.promote()); in onDeath()
527 sp<CCodec> codec(mCodec.promote()); in onInputBufferDone()
534 wp<CCodec> mCodec;
541 explicit CCodecCallbackImpl(CCodec *codec) : mCodec(codec) {} in CCodecCallbackImpl()
558 CCodec *mCodec;
563 CCodec::CCodec() in CCodec() function in android::CCodec
567 CCodec::~CCodec() { in ~CCodec()
570 std::shared_ptr<BufferChannelBase> CCodec::getBufferChannel() { in getBufferChannel()
574 status_t CCodec::tryAndReportOnError(std::function<status_t()> job) { in tryAndReportOnError()
582 void CCodec::initiateAllocateComponent(const sp<AMessage> &msg) { in initiateAllocateComponent()
604 void CCodec::allocate(const sp<MediaCodecInfo> &codecInfo) { in allocate()
666 void CCodec::initiateConfigureComponent(const sp<AMessage> &format) { in initiateConfigureComponent()
680 void CCodec::configure(const sp<AMessage> &msg) { in configure()
1050 void CCodec::initiateCreateInputSurface() { in initiateCreateInputSurface()
1070 sp<PersistentSurface> CCodec::CreateOmxInputSurface() { in CreateOmxInputSurface()
1103 sp<PersistentSurface> CCodec::CreateCompatibleInputSurface() { in CreateCompatibleInputSurface()
1113 void CCodec::createInputSurface() { in createInputSurface()
1164 status_t CCodec::setupInputSurface(const std::shared_ptr<InputSurfaceWrapper> &surface) { in setupInputSurface()
1199 void CCodec::initiateSetInputSurface(const sp<PersistentSurface> &surface) { in initiateSetInputSurface()
1205 void CCodec::setInputSurface(const sp<PersistentSurface> &surface) { in setInputSurface()
1247 void CCodec::initiateStart() { in initiateStart()
1263 void CCodec::start() { in start()
1323 void CCodec::initiateShutdown(bool keepComponentAllocated) { in initiateShutdown()
1331 void CCodec::initiateStop() { in initiateStop()
1351 void CCodec::stop() { in stop()
1391 void CCodec::initiateRelease(bool sendCallback /* = true */) { in initiateRelease()
1433 sp<CCodec> thiz(this); in initiateRelease()
1437 void CCodec::release(bool sendCallback) { in release()
1463 status_t CCodec::setSurface(const sp<Surface> &surface) { in setSurface()
1467 void CCodec::signalFlush() { in signalFlush()
1494 void CCodec::flush() { in flush()
1528 void CCodec::signalResume() { in signalResume()
1565 void CCodec::signalSetParameters(const sp<AMessage> &msg) { in signalSetParameters()
1632 void CCodec::signalEndOfInputStream() { in signalEndOfInputStream()
1636 void CCodec::signalRequestIDRFrame() { in signalRequestIDRFrame()
1654 void CCodec::onWorkDone(std::list<std::unique_ptr<C2Work>> &workItems) { in onWorkDone()
1662 void CCodec::onInputBufferDone(uint64_t frameIndex, size_t arrayIndex) { in onInputBufferDone()
1673 void CCodec::onMessageReceived(const sp<AMessage> &msg) { in onMessageReceived()
1831 void CCodec::setDeadline( in setDeadline()
1840 void CCodec::initiateReleaseIfStuck() { in initiateReleaseIfStuck()
1880 return new android::CCodec; in CreateCodec()