Merge "Multiple extractors from same client vs clients binder space"

gugelfrei
TreeHugger Robot 5 years ago committed by Android (Google) Code Review
commit b70eff200b

@ -90,7 +90,7 @@ public:
virtual media_status_t getFormat(AMediaFormat *);
virtual media_status_t read(MediaBufferHelper **buffer, const ReadOptions *options = NULL);
virtual bool supportNonblockingRead() { return true; }
bool supportsNonBlockingRead() override { return true; }
virtual media_status_t fragmentedRead(
MediaBufferHelper **buffer, const ReadOptions *options = NULL);

@ -81,7 +81,7 @@ struct WAVSource : public MediaTrackHelper {
virtual media_status_t read(
MediaBufferHelper **buffer, const ReadOptions *options = NULL);
virtual bool supportNonblockingRead() { return true; }
bool supportsNonBlockingRead() override { return true; }
protected:
virtual ~WAVSource();

@ -126,8 +126,8 @@ public:
static const size_t kBinderMediaBuffers = 4; // buffers managed by BnMediaSource
static const size_t kTransferSharedAsSharedThreshold = 4 * 1024; // if >= shared, else inline
static const size_t kTransferInlineAsSharedThreshold = 64 * 1024; // if >= shared, else inline
static const size_t kInlineMaxTransfer = 256 * 1024; // Binder size limited to BINDER_VM_SIZE.
static const size_t kTransferInlineAsSharedThreshold = 8 * 1024; // if >= shared, else inline
static const size_t kInlineMaxTransfer = 64 * 1024; // Binder size limited to BINDER_VM_SIZE.
protected:
virtual ~BnMediaSource();

Loading…
Cancel
Save