Home
last modified time | relevance | path

Searched refs:BufferInfo (Results 1 – 25 of 90) sorted by relevance

1234

/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/
DIBufferXferImpl.java27 private static class BufferInfo { class in IBufferXferImpl
32 private final ArrayDeque<BufferInfo> mProducerQueue = new ArrayDeque<>();
33 private final ArrayDeque<BufferInfo> mConsumerQueue = new ArrayDeque<>();
54 BufferInfo pBuf = null, cBuf = null; in sendBuffer()
62 pBuf = new BufferInfo(); in sendBuffer()
66 BufferInfo info = new BufferInfo(); in sendBuffer()
74 cBuf = new BufferInfo(); in sendBuffer()
78 BufferInfo info = new BufferInfo(); in sendBuffer()
115 BufferInfo info = mProducerQueue.remove(); in resetAll()
119 BufferInfo info = mConsumerQueue.remove(); in resetAll()
DDecoder.java22 import android.media.MediaCodec.BufferInfo;
44 private ArrayList<BufferInfo> mInputBufferInfo;
150 @NonNull ArrayList<BufferInfo> inputBufferInfo, final boolean asyncMode, in decode()
189 int outputBufferId, @NonNull MediaCodec.BufferInfo bufferInfo) { in decode()
247 BufferInfo outputBufferInfo = new BufferInfo(); in decode()
325 BufferInfo bufInfo; in onInputAvailable()
355 MediaCodec mediaCodec, int outputBufferId, BufferInfo outputBufferInfo) { in onOutputAvailable()
DExtractor.java33 private MediaCodec.BufferInfo mBufferInfo;
39 mBufferInfo = new MediaCodec.BufferInfo(); in Extractor()
76 public MediaCodec.BufferInfo getBufferInfo() { return this.mBufferInfo; } in getBufferInfo()
/frameworks/av/media/tests/SampleVideoEncoder/app/src/main/java/com/android/media/samplevideoencoder/
DMediaCodecBase.java36 private final LinkedList<Pair<Integer, MediaCodec.BufferInfo>> mCbInputQueue;
37 private final LinkedList<Pair<Integer, MediaCodec.BufferInfo>> mCbOutputQueue;
61 mCbInputQueue.add(new Pair<>(bufferIndex, (MediaCodec.BufferInfo) null)); in onInputBufferAvailable()
68 MediaCodec.BufferInfo info) { in onOutputBufferAvailable()
95 Pair<Integer, MediaCodec.BufferInfo> getOutput() throws InterruptedException { in getOutput()
96 Pair<Integer, MediaCodec.BufferInfo> element = null; in getOutput()
110 Pair<Integer, MediaCodec.BufferInfo> getWork() throws InterruptedException { in getWork()
111 Pair<Integer, MediaCodec.BufferInfo> element = null; in getWork()
DMediaCodecSurfaceEncoder.java225 private void dequeueDecoderOutput(int bufferIndex, MediaCodec.BufferInfo info) { in dequeueDecoderOutput()
270 Pair<Integer, MediaCodec.BufferInfo> element = mAsyncHandleDecoder.getWork(); in doWork()
273 MediaCodec.BufferInfo info = element.second; in doWork()
294 Pair<Integer, MediaCodec.BufferInfo> element = mAsyncHandleDecoder.getWork(); in queueEOS()
297 MediaCodec.BufferInfo info = element.second; in queueEOS()
307 Pair<Integer, MediaCodec.BufferInfo> decOp = mAsyncHandleDecoder.getOutput(); in queueEOS()
318 Pair<Integer, MediaCodec.BufferInfo> element = mAsyncHandleEncoder.getOutput(); in tryEncoderOutput()
339 private void dequeueEncoderOutput(int bufferIndex, MediaCodec.BufferInfo info) { in dequeueEncoderOutput()
/frameworks/av/media/libstagefright/
DACodecBufferChannel.cpp52 using BufferInfo = ACodecBufferChannel::BufferInfo; typedef
53 using BufferInfoIterator = std::vector<const BufferInfo>::const_iterator;
62 const std::shared_ptr<const std::vector<const BufferInfo>> &array, in findClientBuffer()
66 [buffer](const BufferInfo &info) { return info.mClientBuffer == buffer; }); in findClientBuffer()
70 const std::shared_ptr<const std::vector<const BufferInfo>> &array, in findBufferId()
74 [bufferId](const BufferInfo &info) { return bufferId == info.mBufferId; }); in findBufferId()
77 ACodecBufferChannel::BufferInfo::BufferInfo( in BufferInfo() function in android::ACodecBufferChannel::BufferInfo
100 std::shared_ptr<const std::vector<const BufferInfo>> array( in queueInputBuffer()
141 std::shared_ptr<const std::vector<const BufferInfo>> array( in queueSecureInputBuffer()
355 std::shared_ptr<const std::vector<const BufferInfo>> array( in attachEncryptedBuffer()
[all …]
DACodec.cpp298 void postFillThisBuffer(BufferInfo *info);
542 void ACodec::BufferInfo::setWriteFence(int fenceFd, const char *dbg) { in setWriteFence()
551 void ACodec::BufferInfo::setReadFence(int fenceFd, const char *dbg) { in setReadFence()
560 void ACodec::BufferInfo::checkWriteFence(const char *dbg) { in checkWriteFence()
566 void ACodec::BufferInfo::checkReadFence(const char *dbg) { in checkReadFence()
806 std::vector<BufferInfo> &buffers = mBuffers[kPortIndexOutput]; in handleSetSurface()
825 const BufferInfo &info = buffers[i]; in handleSetSurface()
828 && info.mStatus == BufferInfo::OWNED_BY_NATIVE_WINDOW) { in handleSetSurface()
846 BufferInfo &info = buffers[i]; in handleSetSurface()
847 if (info.mStatus == BufferInfo::OWNED_BY_NATIVE_WINDOW) { in handleSetSurface()
[all …]
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3StreamBufferListener.h31 struct BufferInfo { struct
43 virtual void onBufferAcquired(const BufferInfo& bufferInfo) = 0; argument
45 virtual void onBufferReleased(const BufferInfo& bufferInfo) = 0;
/frameworks/native/services/vr/bufferhubd/include/private/dvr/
Dbuffer_hub.h43 struct BufferInfo { struct
63 BufferInfo(int id, size_t consumer_count, uint32_t width, uint32_t height, in BufferInfo() argument
78 BufferInfo(int id, size_t consumer_count, size_t capacity, in BufferInfo() function
86 BufferInfo() {} in BufferInfo() argument
90 virtual BufferInfo GetBufferInfo() const = 0;
/frameworks/av/media/libstagefright/tests/writer/
DWriterUtility.h44 struct BufferInfo { struct
58 int32_t sendBuffersToWriter(ifstream &inputStream, vector<BufferInfo> &bufferInfo, argument
63 int32_t writeHeaderBuffers(ifstream &inputStream, vector<BufferInfo> &bufferInfo,
/frameworks/av/media/libstagefright/include/
DACodecBufferChannel.h48 struct BufferInfo { struct
49 BufferInfo(
54 BufferInfo() = delete;
158 std::shared_ptr<const std::vector<const BufferInfo>> mInputBuffers;
159 std::shared_ptr<const std::vector<const BufferInfo>> mOutputBuffers;
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
DTrackDecoder.java21 import android.media.MediaCodec.BufferInfo;
67 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info); in onDataAvailable()
154 BufferInfo outputInfo = new BufferInfo(); in drainOutputBuffer()
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/
DSimpleSoftOMXComponent.h51 struct BufferInfo { struct
59 Vector<BufferInfo> mBuffers;
60 List<BufferInfo *> mQueue;
86 List<BufferInfo *> &getPortQueue(OMX_U32 portIndex);
/frameworks/av/cmds/stagefright/
DSimplePlayer.h65 struct BufferInfo { struct
80 List<BufferInfo> mAvailOutputBufferInfos;
105 CodecState *state, BufferInfo *info, const sp<MediaCodecBuffer> &buffer);
/frameworks/av/services/camera/libcameraservice/gui/
DRingBufferConsumer.h84 struct BufferInfo { struct
111 virtual int compare(const BufferInfo* i1, argument
112 const BufferInfo* i2) const = 0;
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/
DSoftMPEG4.cpp91 List<BufferInfo *> &inQueue = getPortQueue(0); in onQueueFilled()
92 List<BufferInfo *> &outQueue = getPortQueue(1); in onQueueFilled()
95 BufferInfo *inInfo = *inQueue.begin(); in onQueueFilled()
119 List<BufferInfo *>::iterator it = outQueue.begin(); in onQueueFilled()
129 BufferInfo *outInfo = *it; in onQueueFilled()
316 List<BufferInfo *>::iterator it = outQueue.begin(); in onQueueFilled()
324 BufferInfo *outInfo = *it; in onQueueFilled()
/frameworks/base/media/java/android/media/
DMediaCodec.java1656 public final static class BufferInfo { class in MediaCodec
1713 public BufferInfo dup() { in dup()
1714 BufferInfo copy = new BufferInfo(); in dup()
1930 BufferInfo info = (MediaCodec.BufferInfo) msg.obj; in handleCallback()
1961 ArrayDeque<BufferInfo> infos = (ArrayDeque<BufferInfo>)msg.obj; in handleCallback()
3003 @NonNull ArrayDeque<BufferInfo> bufferInfos) {
3326 @NonNull ArrayDeque<BufferInfo> bufferInfos, in queueSecureInputBuffers()
3623 @NonNull ArrayDeque<BufferInfo> infos) { in setMultiFrameLinearBlock()
3692 @NonNull ArrayDeque<MediaCodec.BufferInfo> bufferInfos, in setMultiFrameEncryptedLinearBlock()
3888 BufferInfo info = new BufferInfo(); in queue()
[all …]
DAmrInputStream.java20 import android.media.MediaCodec.BufferInfo;
39 BufferInfo mInfo;
85 mInfo = new BufferInfo(); in AmrInputStream()
/frameworks/av/media/libstagefright/codecs/vorbis/dec/
DSoftVorbis.cpp313 List<BufferInfo *> &inQueue = getPortQueue(0); in handleEOS()
314 List<BufferInfo *> &outQueue = getPortQueue(1); in handleEOS()
320 BufferInfo *outInfo = *outQueue.begin(); in handleEOS()
330 BufferInfo *inInfo = *inQueue.begin(); in handleEOS()
339 List<BufferInfo *> &inQueue = getPortQueue(0); in onQueueFilled()
340 List<BufferInfo *> &outQueue = getPortQueue(1); in onQueueFilled()
347 BufferInfo *inInfo = NULL; in onQueueFilled()
354 BufferInfo *outInfo = *outQueue.begin(); in onQueueFilled()
/frameworks/av/media/libstagefright/codecs/opus/dec/
DSoftOpus.cpp392 List<BufferInfo *> &inQueue = getPortQueue(0); in handleEOS()
393 List<BufferInfo *> &outQueue = getPortQueue(1); in handleEOS()
396 BufferInfo *outInfo = *outQueue.begin(); in handleEOS()
406 BufferInfo *inInfo = *inQueue.begin(); in handleEOS()
416 List<BufferInfo *> &inQueue = getPortQueue(0); in onQueueFilled()
417 List<BufferInfo *> &outQueue = getPortQueue(1); in onQueueFilled()
424 BufferInfo *inInfo = *inQueue.begin(); in onQueueFilled()
534 BufferInfo *outInfo = *outQueue.begin(); in onQueueFilled()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/androidTest/java/com/android/media/benchmark/tests/
DMuxerTest.java118 ArrayList<MediaCodec.BufferInfo> inputBufferInfo = new ArrayList<>(); in testMuxer()
125 MediaCodec.BufferInfo bufferInfo = extractor.getBufferInfo(); in testMuxer()
126 MediaCodec.BufferInfo tempBufferInfo = new MediaCodec.BufferInfo(); in testMuxer()
/frameworks/av/media/libstagefright/codecs/on2/dec/
DSoftVPX.cpp124 List<BufferInfo *> &outQueue = getPortQueue(1); in outputBuffers()
125 BufferInfo *outInfo = NULL; in outputBuffers()
244 List<BufferInfo *> &inQueue = getPortQueue(0); in onQueueFilled()
245 List<BufferInfo *> &outQueue = getPortQueue(1); in onQueueFilled()
268 BufferInfo *inInfo = *inQueue.begin(); in onQueueFilled()
/frameworks/av/media/libstagefright/include/media/stagefright/
DACodec.h188 struct BufferInfo { struct
198 static inline Status getSafeStatus(BufferInfo *info) { in getSafeStatus() argument
226 static const char *_asString(BufferInfo::Status s);
282 std::vector<BufferInfo> mBuffers[2];
359 status_t cancelBufferToNativeWindow(BufferInfo *info);
361 BufferInfo *dequeueBufferFromNativeWindow();
375 BufferInfo *findBufferByID(
379 status_t fillBuffer(BufferInfo *info);
/frameworks/av/media/libstagefright/codecs/raw/
DSoftRaw.cpp238 List<BufferInfo *> &inQueue = getPortQueue(0); in onQueueFilled()
239 List<BufferInfo *> &outQueue = getPortQueue(1); in onQueueFilled()
242 BufferInfo *inInfo = *inQueue.begin(); in onQueueFilled()
245 BufferInfo *outInfo = *outQueue.begin(); in onQueueFilled()
/frameworks/av/media/libstagefright/codecs/flac/enc/
DSoftFlacEncoder.cpp372 List<BufferInfo *> &inQueue = getPortQueue(0); in onQueueFilled()
373 List<BufferInfo *> &outQueue = getPortQueue(1); in onQueueFilled()
383 BufferInfo *inInfo = *inQueue.begin(); in onQueueFilled()
435 BufferInfo *outInfo = *outQueue.begin(); in onQueueFilled()
497 List<BufferInfo *> &outQueue = getPortQueue(1); in onEncodedFlacAvailable()
499 BufferInfo *outInfo = *outQueue.begin(); in onEncodedFlacAvailable()

1234