Lines Matching refs:sp
51 void setFormat(const sp<AMessage> &format);
56 sp<AMessage> dupFormat();
67 virtual void getArray(Vector<sp<MediaCodecBuffer>> *) const {} in getArray()
77 void handleImageData(const sp<Codec2Buffer> &buffer);
84 sp<AMessage> mFormat;
105 virtual bool requestNewBuffer(size_t *index, sp<MediaCodecBuffer> *buffer) = 0;
113 const sp<MediaCodecBuffer> &buffer,
144 sp<Codec2Buffer> cloneAndReleaseBuffer(const sp<MediaCodecBuffer> &buffer);
147 virtual sp<Codec2Buffer> createNewBuffer() = 0;
170 sp<MediaCodecBuffer> *clientBuffer) = 0;
179 sp<MediaCodecBuffer> * /* clientBuffer */) = 0;
187 const sp<MediaCodecBuffer> &buffer, std::shared_ptr<C2Buffer> *c2buffer) = 0;
216 void submit(const sp<MediaCodecBuffer> &buffer);
221 void transferSkipCutBuffer(const sp<SkipCutBuffer> &scb);
224 sp<SkipCutBuffer> mSkipCutBuffer;
257 sp<ABuffer> newBuffer(size_t capacity);
321 size_t assignSlot(const sp<Codec2Buffer> &buffer);
335 const sp<MediaCodecBuffer> &buffer,
373 sp<Codec2Buffer> clientBuffer;
400 std::function<sp<Codec2Buffer>()> allocate);
416 sp<Codec2Buffer> *buffer,
417 std::function<bool(const sp<Codec2Buffer> &)> match =
418 [](const sp<Codec2Buffer> &) { return true; });
432 const sp<MediaCodecBuffer> &buffer,
451 void getArray(Vector<sp<MediaCodecBuffer>> *array) const;
463 void realloc(std::function<sp<Codec2Buffer>()> alloc);
473 void grow(size_t newSize, std::function<sp<Codec2Buffer>()> alloc);
491 const sp<Codec2Buffer> clientBuffer;
517 std::function<sp<Codec2Buffer>()> allocate);
525 void getArray(Vector<sp<MediaCodecBuffer>> *array) const final;
527 bool requestNewBuffer(size_t *index, sp<MediaCodecBuffer> *buffer) override;
530 const sp<MediaCodecBuffer> &buffer,
542 sp<Codec2Buffer> createNewBuffer() override;
546 std::function<sp<Codec2Buffer>()> mAllocate;
556 bool requestNewBuffer(size_t *index, sp<MediaCodecBuffer> *buffer) override;
559 const sp<MediaCodecBuffer> &buffer,
573 sp<Codec2Buffer> createNewBuffer() override;
578 static sp<Codec2Buffer> Alloc(
579 const std::shared_ptr<C2BlockPool> &pool, const sp<AMessage> &format);
586 const sp<MemoryDealer> &dealer,
587 const sp<ICrypto> &crypto,
598 sp<Codec2Buffer> createNewBuffer() override;
603 sp<IMemory> memory;
607 static sp<Codec2Buffer> Alloc(
609 const sp<AMessage> &format,
614 sp<MemoryDealer> mDealer;
615 sp<ICrypto> mCrypto;
624 bool requestNewBuffer(size_t *index, sp<MediaCodecBuffer> *buffer) override;
627 const sp<MediaCodecBuffer> &buffer,
641 sp<Codec2Buffer> createNewBuffer() override;
654 bool requestNewBuffer(size_t *index, sp<MediaCodecBuffer> *buffer) override;
657 const sp<MediaCodecBuffer> &buffer,
672 sp<Codec2Buffer> createNewBuffer() override;
685 bool requestNewBuffer(size_t *, sp<MediaCodecBuffer> *) override { in requestNewBuffer()
690 const sp<MediaCodecBuffer> &, std::shared_ptr<C2Buffer> *, bool) override { in releaseBuffer()
706 void getArray(Vector<sp<MediaCodecBuffer>> *array) const final { in getArray()
715 sp<Codec2Buffer> createNewBuffer() override { in createNewBuffer()
739 std::function<sp<Codec2Buffer>()> allocate);
750 sp<MediaCodecBuffer> *clientBuffer) final;
755 sp<MediaCodecBuffer> *clientBuffer) final;
758 const sp<MediaCodecBuffer> &buffer, std::shared_ptr<C2Buffer> *c2buffer) override;
762 void getArray(Vector<sp<MediaCodecBuffer>> *array) const final;
784 std::function<sp<Codec2Buffer>()> mAlloc;
796 sp<MediaCodecBuffer> *clientBuffer) override;
801 sp<MediaCodecBuffer> *clientBuffer) final;
804 const sp<MediaCodecBuffer> &buffer,
821 virtual sp<Codec2Buffer> wrap(const std::shared_ptr<C2Buffer> &buffer) = 0;
832 virtual std::function<sp<Codec2Buffer>()> getAlloc() = 0;
846 sp<Codec2Buffer> wrap(const std::shared_ptr<C2Buffer> &buffer) override;
848 std::function<sp<Codec2Buffer>()> getAlloc() override;
856 sp<Codec2Buffer> wrap(const std::shared_ptr<C2Buffer> &buffer) override;
858 std::function<sp<Codec2Buffer>()> getAlloc() override;
867 sp<Codec2Buffer> wrap(const std::shared_ptr<C2Buffer> &buffer) override;
869 std::function<sp<Codec2Buffer>()> getAlloc() override;