Home
last modified time | relevance | path

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

1234

/frameworks/av/media/libstagefright/filters/
DMediaFilter.cpp230 BufferInfo info; in allocateBuffersOnPort()
231 info.mStatus = BufferInfo::OWNED_BY_US; in allocateBuffersOnPort()
260 MediaFilter::BufferInfo* MediaFilter::findBufferByID( in findBufferByID()
264 BufferInfo *info = &mBuffers[portIndex].editItemAt(i); in findBufferByID()
279 void MediaFilter::postFillThisBuffer(BufferInfo *info) { in postFillThisBuffer()
285 CHECK_EQ((int)info->mStatus, (int)BufferInfo::OWNED_BY_US); in postFillThisBuffer()
294 info->mStatus = BufferInfo::OWNED_BY_UPSTREAM; in postFillThisBuffer()
299 void MediaFilter::postDrainThisBuffer(BufferInfo *info) { in postDrainThisBuffer()
300 CHECK_EQ((int)info->mStatus, (int)BufferInfo::OWNED_BY_US); in postDrainThisBuffer()
309 info->mStatus = BufferInfo::OWNED_BY_UPSTREAM; in postDrainThisBuffer()
[all …]
/frameworks/av/media/libstagefright/
DACodecBufferChannel.cpp44 using BufferInfo = ACodecBufferChannel::BufferInfo; typedef
45 using BufferInfoIterator = std::vector<const BufferInfo>::const_iterator;
54 const std::shared_ptr<const std::vector<const BufferInfo>> &array, in findClientBuffer()
58 [buffer](const BufferInfo &info) { return info.mClientBuffer == buffer; }); in findClientBuffer()
62 const std::shared_ptr<const std::vector<const BufferInfo>> &array, in findBufferId()
66 [bufferId](const BufferInfo &info) { return bufferId == info.mBufferId; }); in findBufferId()
69 ACodecBufferChannel::BufferInfo::BufferInfo( in BufferInfo() function in android::ACodecBufferChannel::BufferInfo
93 std::shared_ptr<const std::vector<const BufferInfo>> array( in queueInputBuffer()
115 std::shared_ptr<const std::vector<const BufferInfo>> array( in queueSecureInputBuffer()
252 std::shared_ptr<const std::vector<const BufferInfo>> array( in renderOutputBuffer()
[all …]
DACodec.cpp280 void postFillThisBuffer(BufferInfo *info);
513 void ACodec::BufferInfo::setWriteFence(int fenceFd, const char *dbg) { in setWriteFence()
522 void ACodec::BufferInfo::setReadFence(int fenceFd, const char *dbg) { in setReadFence()
531 void ACodec::BufferInfo::checkWriteFence(const char *dbg) { in checkWriteFence()
537 void ACodec::BufferInfo::checkReadFence(const char *dbg) { in checkReadFence()
770 Vector<BufferInfo> &buffers = mBuffers[kPortIndexOutput]; in handleSetSurface()
789 const BufferInfo &info = buffers[i]; in handleSetSurface()
792 && info.mStatus == BufferInfo::OWNED_BY_NATIVE_WINDOW) { in handleSetSurface()
810 BufferInfo &info = buffers.editItemAt(i); in handleSetSurface()
811 if (info.mStatus == BufferInfo::OWNED_BY_NATIVE_WINDOW) { in handleSetSurface()
[all …]
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaFilter.h54 struct BufferInfo { struct
108 Vector<BufferInfo> mBuffers[2];
109 Vector<BufferInfo*> mAvailableInputBuffers;
110 Vector<BufferInfo*> mAvailableOutputBuffers;
123 BufferInfo *findBufferByID(
126 void postFillThisBuffer(BufferInfo *info);
127 void postDrainThisBuffer(BufferInfo *info);
DACodec.h160 struct BufferInfo { struct
170 static inline Status getSafeStatus(BufferInfo *info) { in getSafeStatus() argument
199 static const char *_asString(BufferInfo::Status s);
251 Vector<BufferInfo> mBuffers[2];
325 status_t cancelBufferToNativeWindow(BufferInfo *info);
327 BufferInfo *dequeueBufferFromNativeWindow();
337 BufferInfo *findBufferByID(
341 status_t fillBuffer(BufferInfo *info);
549 ANativeWindowBuffer *buf, int fenceFd, BufferInfo *info);
/frameworks/av/media/libstagefright/include/
DACodecBufferChannel.h47 struct BufferInfo { struct
48 BufferInfo(
53 BufferInfo() = delete;
133 std::shared_ptr<const std::vector<const BufferInfo>> mInputBuffers;
134 std::shared_ptr<const std::vector<const BufferInfo>> mOutputBuffers;
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3StreamBufferListener.h31 struct BufferInfo { struct
42 virtual void onBufferAcquired(const BufferInfo& bufferInfo) = 0; argument
44 virtual void onBufferReleased(const BufferInfo& bufferInfo) = 0;
/frameworks/av/media/libstagefright/tests/writer/
DWriterUtility.h38 struct BufferInfo { struct
44 int32_t sendBuffersToWriter(ifstream &inputStream, vector<BufferInfo> &bufferInfo, argument
49 int32_t writeHeaderBuffers(ifstream &inputStream, vector<BufferInfo> &bufferInfo,
/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() function
90 virtual BufferInfo GetBufferInfo() const = 0;
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/
DDecoder.java20 import android.media.MediaCodec.BufferInfo;
38 private ArrayList<BufferInfo> mInputBufferInfo;
102 @NonNull ArrayList<BufferInfo> inputBufferInfo, final boolean asyncMode, in decode()
133 int outputBufferId, @NonNull MediaCodec.BufferInfo bufferInfo) { in decode()
191 BufferInfo outputBufferInfo = new BufferInfo(); in decode()
265 BufferInfo bufInfo = mInputBufferInfo.get(mIndex); in onInputAvailable()
285 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/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/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()
314 List<BufferInfo *>::iterator it = outQueue.begin(); in onQueueFilled()
319 BufferInfo *outInfo = *it; in onQueueFilled()
/frameworks/av/services/camera/libcameraservice/gui/
DRingBufferConsumer.h86 struct BufferInfo { struct
113 virtual int compare(const BufferInfo* i1, argument
114 const BufferInfo* i2) const = 0;
/frameworks/av/media/libstagefright/codecs/opus/dec/
DSoftOpus.cpp389 List<BufferInfo *> &inQueue = getPortQueue(0); in handleEOS()
390 List<BufferInfo *> &outQueue = getPortQueue(1); in handleEOS()
393 BufferInfo *outInfo = *outQueue.begin(); in handleEOS()
403 BufferInfo *inInfo = *inQueue.begin(); in handleEOS()
413 List<BufferInfo *> &inQueue = getPortQueue(0); in onQueueFilled()
414 List<BufferInfo *> &outQueue = getPortQueue(1); in onQueueFilled()
421 BufferInfo *inInfo = *inQueue.begin(); in onQueueFilled()
529 BufferInfo *outInfo = *outQueue.begin(); in onQueueFilled()
/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/tests/benchmark/MediaBenchmarkTest/src/androidTest/java/com/android/media/benchmark/tests/
DMuxerTest.java120 ArrayList<MediaCodec.BufferInfo> inputBufferInfo = new ArrayList<>(); in testMuxer()
127 MediaCodec.BufferInfo bufferInfo = extractor.getBufferInfo(); in testMuxer()
128 MediaCodec.BufferInfo tempBufferInfo = new MediaCodec.BufferInfo(); in testMuxer()
/frameworks/base/media/java/android/media/
DAmrInputStream.java20 import android.media.MediaCodec.BufferInfo;
39 BufferInfo mInfo;
85 mInfo = new BufferInfo(); in AmrInputStream()
DMediaCodec.java1537 public final static class BufferInfo { class in MediaCodec
1594 public BufferInfo dup() { in dup()
1595 BufferInfo copy = new BufferInfo(); in dup()
1748 BufferInfo info = (MediaCodec.BufferInfo) msg.obj; in handleCallback()
2791 @NonNull BufferInfo info, long timeoutUs) { in dequeueOutputBuffer()
2807 @NonNull BufferInfo info, long timeoutUs); in native_dequeueOutputBuffer()
2829 BufferInfo info = null; in releaseOutputBuffer()
2890 BufferInfo info = null; in releaseOutputBuffer()
3038 private final Map<Integer, BufferInfo> mDequeuedOutputInfos =
3039 new HashMap<Integer, BufferInfo>();
[all …]
/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/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/m4v_h263/enc/
DSoftMPEG4Encoder.cpp101 List<BufferInfo *> &outQueue = getPortQueue(1); in ~SoftMPEG4Encoder()
102 List<BufferInfo *> &inQueue = getPortQueue(0); in ~SoftMPEG4Encoder()
390 List<BufferInfo *> &inQueue = getPortQueue(0); in onQueueFilled()
391 List<BufferInfo *> &outQueue = getPortQueue(1); in onQueueFilled()
394 BufferInfo *inInfo = *inQueue.begin(); in onQueueFilled()
396 BufferInfo *outInfo = *outQueue.begin(); in onQueueFilled()
/frameworks/base/services/core/java/com/android/server/
DGraphicsStatsService.java217 private File pathForApp(BufferInfo info) { in pathForApp()
391 private final class BufferInfo { class in GraphicsStatsService
397 BufferInfo(String packageName, long versionCode, long startTime) { in BufferInfo() method in GraphicsStatsService.BufferInfo
405 final BufferInfo mInfo;
415 mInfo = new BufferInfo(packageName, versionCode, System.currentTimeMillis()); in ActiveBuffer()
440 final BufferInfo mInfo;

1234