Home
last modified time | relevance | path

Searched refs:mFormat (Results 1 – 25 of 154) sorted by relevance

1234567

/frameworks/av/media/libstagefright/
DMediaTrack.cpp127 if (format->mFormat->findInt64("timeUs", &val64)) { in read()
130 if (format->mFormat->findInt64("durationUs", &val64)) { in read()
133 if (format->mFormat->findInt64("target-time", &val64)) { in read()
137 if (format->mFormat->findInt32("is-sync-frame", &val32)) { in read()
140 if (format->mFormat->findInt32("temporal-layer-id", &val32)) { in read()
143 if (format->mFormat->findInt32("temporal-layer-count", &val32)) { in read()
146 if (format->mFormat->findInt32("crypto-default-iv-size", &val32)) { in read()
149 if (format->mFormat->findInt32("crypto-mode", &val32)) { in read()
152 if (format->mFormat->findInt32("crypto-encrypted-byte-block", &val32)) { in read()
155 if (format->mFormat->findInt32("crypto-skip-byte-block", &val32)) { in read()
[all …]
/frameworks/av/media/tests/benchmark/src/native/encoder/
DEncoder.cpp145 mFormat = format; in onFormatChanged()
160 if (!mFormat) mFormat = AMediaFormat_new(); in setupEncoder()
164 if (mFormat) { in deInitCodec()
165 AMediaFormat_delete(mFormat); in deInitCodec()
166 mFormat = nullptr; in deInitCodec()
199 AMediaFormat_setString(mFormat, AMEDIAFORMAT_KEY_MIME, mMime); in encode()
203 AMediaFormat_setInt32(mFormat, AMEDIAFORMAT_KEY_WIDTH, mParams.width); in encode()
204 AMediaFormat_setInt32(mFormat, AMEDIAFORMAT_KEY_HEIGHT, mParams.height); in encode()
205 AMediaFormat_setInt32(mFormat, AMEDIAFORMAT_KEY_FRAME_RATE, mParams.frameRate); in encode()
206 AMediaFormat_setInt32(mFormat, AMEDIAFORMAT_KEY_I_FRAME_INTERVAL, mParams.iFrameInterval); in encode()
[all …]
/frameworks/av/media/libstagefright/rtsp/
DAPacketSource.cpp410 mFormat(new MetaData) { in APacketSource()
418 mFormat->setInt64(kKeyDuration, durationUs); in APacketSource()
420 mFormat->setInt64(kKeyDuration, -1LL); in APacketSource()
425 mFormat->setCString(kKeyMIMEType, MEDIA_MIMETYPE_VIDEO_AVC); in APacketSource()
445 mFormat->setData( in APacketSource()
453 mFormat->setInt32(kKeyWidth, width); in APacketSource()
454 mFormat->setInt32(kKeyHeight, height); in APacketSource()
457 mFormat->setCString(kKeyMIMEType, MEDIA_MIMETYPE_VIDEO_H263); in APacketSource()
465 mFormat->setInt32(kKeyWidth, width); in APacketSource()
466 mFormat->setInt32(kKeyHeight, height); in APacketSource()
[all …]
/frameworks/av/media/libstagefright/mpeg2ts/
DESQueue.cpp67 return mFormat; in getFormat()
83 mFormat.clear(); in clear()
474 if (mFormat == NULL && startOffset > 0) { in appendData()
798 if (mFormat == NULL) { in dequeueScrambledAccessUnit()
799 mFormat = new MetaData; in dequeueScrambledAccessUnit()
804 *mFormat, mBuffer->data(), mBuffer->size())) { in dequeueScrambledAccessUnit()
807 mFormat->setCString(kKeyMIMEType, MEDIA_MIMETYPE_VIDEO_AVC); in dequeueScrambledAccessUnit()
808 mFormat->setInt32(kKeyWidth, 1280); in dequeueScrambledAccessUnit()
809 mFormat->setInt32(kKeyHeight, 720); in dequeueScrambledAccessUnit()
816 *mFormat, mBuffer->data(), mBuffer->size())) { in dequeueScrambledAccessUnit()
[all …]
/frameworks/av/media/ndk/
DNdkMediaFormat.cpp53 format->mFormat->clear(); in AMediaFormat_clear()
61 to->mFormat->clear(); in AMediaFormat_copy()
62 to->mFormat->extend(from->mFormat); in AMediaFormat_copy()
69 sp<AMessage> f = mData->mFormat; in AMediaFormat_toString()
150 return format->mFormat->findInt32(name, out); in AMediaFormat_getInt32()
155 return format->mFormat->findInt64(name, out); in AMediaFormat_getInt64()
160 return format->mFormat->findFloat(name, out); in AMediaFormat_getFloat()
165 return format->mFormat->findDouble(name, out); in AMediaFormat_getDouble()
170 return format->mFormat->findSize(name, out); in AMediaFormat_getSize()
176 return format->mFormat->findRect(name, left, top, right, bottom); in AMediaFormat_getRect()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DLogcatLog.java147 private final String mFormat; field in LogcatLog.RealLogMessage
158 mFormat = format; in RealLogMessage()
176 if (mNextFormatCharPos < mFormat.length()) { in c()
186 if (mNextFormatCharPos < mFormat.length()) { in c()
196 if (mNextFormatCharPos < mFormat.length()) { in c()
206 if (mNextFormatCharPos < mFormat.length()) { in c()
215 if (mNextFormatCharPos < mFormat.length()) { in flush()
216 mStringBuilder.append(mFormat, mNextFormatCharPos, mFormat.length()); in flush()
227 if (mNextFormatCharPos >= mFormat.length()) { in copyUntilPlaceholder()
231 int placeholderPos = mFormat.indexOf(WifiLog.PLACEHOLDER, mNextFormatCharPos); in copyUntilPlaceholder()
[all …]
/frameworks/av/services/audioflinger/
DFastCapture.cpp37 mReadBuffer(NULL), mReadBufferState(-1), mFormat(Format_Invalid), mSampleRate(0), in FastCapture()
98 NBAIO_Format previousFormat = mFormat; in onStateChange()
103 mFormat = Format_Invalid; in onStateChange()
106 mFormat = mInputSource->format(); in onStateChange()
107 mSampleRate = Format_sampleRate(mFormat); in onStateChange()
109 unsigned channelCount = Format_channelCount(mFormat); in onStateChange()
126 ALOG_ASSERT(Format_isEqual(mFormat, mPipeSink->format())); in onStateChange()
129 if ((!Format_isEqual(mFormat, previousFormat)) || (frameCount != previous->mFrameCount)) { in onStateChange()
137 size_t bufferSize = frameCount * Format_frameSize(mFormat); in onStateChange()
207 memset(mReadBuffer, 0, frameCount * Format_frameSize(mFormat)); in onWork()
[all …]
DFastMixer.cpp65 mFormat(Format_Invalid), in FastMixer()
159 index, fastTrack->mChannelMask, fastTrack->mFormat, AUDIO_SESSION_OUTPUT_MIX); in updateMixerTrack()
163 __func__, index, fastTrack->mChannelMask, fastTrack->mFormat); in updateMixerTrack()
190 (void *)(uintptr_t)fastTrack->mFormat); in updateMixerTrack()
223 NBAIO_Format previousFormat = mFormat; in onStateChange()
230 mFormat = Format_Invalid; in onStateChange()
236 mFormat = mOutputSink->format(); in onStateChange()
237 mSampleRate = Format_sampleRate(mFormat); in onStateChange()
238 mSinkChannelCount = Format_channelCount(mFormat); in onStateChange()
250 if ((!Format_isEqual(mFormat, previousFormat)) || (frameCount != previous->mFrameCount)) { in onStateChange()
[all …]
/frameworks/base/core/java/android/hardware/camera2/params/
DInputConfiguration.java32 private final int mFormat; field in InputConfiguration
52 mFormat = format; in InputConfiguration()
79 return mFormat; in getFormat()
102 otherInputConfig.getFormat() == mFormat) { in equals()
113 return HashCodeHelpers.hashCode(mWidth, mHeight, mFormat); in hashCode()
126 return String.format("InputConfiguration(w:%d, h:%d, format:%d)", mWidth, mHeight, mFormat); in toString()
DStreamConfiguration.java62 mFormat = checkArgumentFormatInternal(format); in StreamConfiguration()
77 return mFormat; in getFormat()
151 return mFormat == other.mFormat && in equals()
164 return HashCodeHelpers.hashCode(mFormat, mWidth, mHeight, mInput ? 1 : 0); in hashCode()
167 protected int mFormat; field in StreamConfiguration
DStreamConfigurationDuration.java57 mFormat = checkArgumentFormatInternal(format); in StreamConfigurationDuration()
72 return mFormat; in getFormat()
130 return mFormat == other.mFormat && in equals()
143 return HashCodeHelpers.hashCode(mFormat, mWidth, mHeight, in hashCode()
147 private final int mFormat; field in StreamConfigurationDuration
/frameworks/base/graphics/java/android/graphics/
DYuvImage.java41 private int mFormat; field in YuvImage
103 mFormat = format; in YuvImage()
141 return nativeCompressToJpeg(mData, mFormat, rectangle.width(), in compressToJpeg()
158 return mFormat; in getYuvFormat()
184 if (mFormat == ImageFormat.NV21) { in calculateOffsets()
191 if (mFormat == ImageFormat.YUY2) { in calculateOffsets()
217 if (mFormat == ImageFormat.NV21) { in adjustRectangle()
227 if (mFormat == ImageFormat.YUY2) { in adjustRectangle()
/frameworks/base/media/java/android/media/audiopolicy/
DAudioMix.java42 private AudioFormat mFormat; field in AudioMix
65 mFormat = format; in AudioMix()
168 return mFormat; in getFormat()
244 && (this.mFormat == that.mFormat); in equals()
250 return Objects.hash(mRouteFlags, mRule, mMixType, mFormat); in hashCode()
264 private AudioFormat mFormat = null; field in AudioMix.Builder
346 mFormat = format; in setFormat()
409 if (mFormat == null) { in build()
415 mFormat = new AudioFormat.Builder().setSampleRate(rate).build(); in build()
443 String error = AudioMix.canBeUsedForPrivilegedCapture(mFormat); in build()
[all …]
/frameworks/av/media/libnbaio/
DNBAIO.cpp57 ret.mFormat = format; in Format_from_SR_C()
70 size_t frameSize = Format_frameSize(mFormat); in writeVia()
106 size_t frameSize = Format_frameSize(mFormat); in readVia()
141 if (Format_isValid(mFormat)) { in negotiate()
143 if (Format_isEqual(offers[i], mFormat)) { in negotiate()
149 counterOffers[0] = mFormat; in negotiate()
161 format.mFormat != AUDIO_FORMAT_INVALID && format.mFrameSize != 0; in Format_isValid()
167 format1.mChannelCount == format2.mChannelCount && format1.mFormat == format2.mFormat && in Format_isEqual()
DMonoPipe.cpp103 ns = written * ( 500000000 / Format_sampleRate(mFormat)); in write()
106 ns = written * ( 750000000 / Format_sampleRate(mFormat)); in write()
109 ns = written * (1000000000 / Format_sampleRate(mFormat)); in write()
112 ns = written * (1150000000 / Format_sampleRate(mFormat)); in write()
115 ns = written * (1350000000 / Format_sampleRate(mFormat)); in write()
118 ns = written * (1750000000 / Format_sampleRate(mFormat)); in write()
121 ns = count * (1350000000 / Format_sampleRate(mFormat)); in write()
/frameworks/av/media/tests/benchmark/src/native/muxer/
DMuxer.cpp26 if (!mFormat) mFormat = mExtractor->getFormat(); in initMuxer()
39 ssize_t index = AMediaMuxer_addTrack(mMuxer, mFormat); in initMuxer()
52 if (mFormat) { in deInitMuxer()
53 AMediaFormat_delete(mFormat); in deInitMuxer()
54 mFormat = nullptr; in deInitMuxer()
/frameworks/av/media/libmedia/
DNdkMediaFormatPriv.cpp35 mData->mFormat = *data; in AMediaFormat_fromMsg()
36 if (mData->mFormat == NULL) { in AMediaFormat_fromMsg()
38 mData->mFormat = new AMessage; in AMediaFormat_fromMsg()
44 *dest = mData->mFormat; in AMediaFormat_getFormat()
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaBufferBase.h80 delete mFormat; in ~MediaBufferBase() local
115 if (((MediaBufferBase*)handle)->mFormat == nullptr) { in wrap()
117 ((MediaBufferBase*)handle)->mFormat = AMediaFormat_fromMsg(&msg); in wrap()
119 return ((MediaBufferBase*)handle)->mFormat; in wrap()
127 mFormat = nullptr; in MediaBufferBase()
131 AMediaFormat *mFormat; variable
/frameworks/av/media/tests/benchmark/src/native/extractor/
DExtractor.cpp52 bool csdFound = AMediaFormat_getBuffer(mFormat, csdName, &csdBuffer, &size); in getCSDSample()
75 mFormat = AMediaExtractor_getTrackFormat(mExtractor, trackId); in setupTrackFormat()
76 if (!mFormat) return AMEDIA_ERROR_INVALID_OBJECT; in setupTrackFormat()
78 bool durationFound = AMediaFormat_getInt64(mFormat, AMEDIAFORMAT_KEY_DURATION, &mDurationUs); in setupTrackFormat()
104 if (mFormat) { in extract()
105 AMediaFormat_delete(mFormat); in extract()
106 mFormat = nullptr; in extract()
/frameworks/av/media/tests/benchmark/src/native/decoder/
DDecoder.cpp129 mFormat = format; in onFormatChanged()
144 if (!mFormat) mFormat = mExtractor->getFormat(); in setupDecoder()
161 AMediaFormat_getString(mFormat, AMEDIAFORMAT_KEY_MIME, &mime); in decode()
165 mCodec = createMediaCodec(mFormat, mime, codecName, false /*isEncoder*/); in decode()
201 mFormat = AMediaCodec_getOutputFormat(mCodec); in decode()
202 const char *s = AMediaFormat_toString(mFormat); in decode()
233 if (mFormat) { in deInitCodec()
234 AMediaFormat_delete(mFormat); in deInitCodec()
235 mFormat = nullptr; in deInitCodec()
/frameworks/base/media/java/android/media/
DImageReader.java243 mFormat = format; in ImageReader()
260 mNumPlanes = ImageUtils.getNumPlanesForFormat(mFormat); in ImageReader()
320 return mFormat; in getImageFormat()
427 SurfaceImage si = new SurfaceImage(mFormat); in acquireNextImageNoThrowISE()
503 SurfaceImage si = new SurfaceImage(mFormat); in acquireNextImage()
756 private final int mFormat; field in ImageReader
805 mFormat = format; in SurfaceImage()
822 mFormat = (readerFormat == ImageFormat.PRIVATE) ? readerFormat : in getFormat()
824 return mFormat; in getFormat()
898 mPlanes = nativeCreatePlanes(ImageReader.this.mNumPlanes, ImageReader.this.mFormat); in getPlanes()
[all …]
DAudioPortConfig.java42 private final int mFormat; field in AudioPortConfig
62 mFormat = format; in AudioPortConfig()
93 return mFormat; in format()
108 + ", mFormat:" + mFormat in toString()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DFrame.java35 private FrameFormat mFormat; field in Frame
45 mFormat = format.mutableCopy(); in Frame()
50 mFormat = format.mutableCopy(); in Frame()
58 return mFormat; in getFormat()
177 mFormat = format.mutableCopy(); in setFormat()
200 mFormat = newFormat.mutableCopy(); in reset()
/frameworks/av/media/codec2/sfplugin/
DCCodecBuffers.cpp66 mFormat = format; in setFormat()
70 return mFormat != nullptr ? mFormat->dup() : nullptr; in dupFormat()
79 if (!mFormat->findBuffer("image-data", &imageData) in handleImageData()
464 c2Buffer->setFormat(mFormat); in requestNewBuffer()
530 array->setFormat(mFormat); in toArrayMode()
534 [pool = mPool, format = mFormat] () -> sp<Codec2Buffer> { in toArrayMode()
567 return Alloc(mPool, mFormat); in createNewBuffer()
605 array->setFormat(mFormat); in toArrayMode()
610 format = mFormat, in toArrayMode()
707 array->setFormat(mFormat); in toArrayMode()
[all …]
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/
DLogAbortException.java21 private final String mFormat; field in LogAbortException
25 mFormat = format; in LogAbortException()
30 log.error(mFormat, mArgs); in error()

1234567