/frameworks/av/media/libstagefright/ |
D | MediaTrack.cpp | 127 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() 136 if (format->mFormat->findInt64("sample-file-offset", &val64)) { in read() 139 if (format->mFormat->findInt64( in read() 145 if (format->mFormat->findInt32("is-sync-frame", &val32)) { in read() 148 if (format->mFormat->findInt32("temporal-layer-id", &val32)) { in read() 151 if (format->mFormat->findInt32("temporal-layer-count", &val32)) { in read() 154 if (format->mFormat->findInt32("crypto-default-iv-size", &val32)) { in read() 157 if (format->mFormat->findInt32("crypto-mode", &val32)) { in read() [all …]
|
/frameworks/base/media/java/android/media/ |
D | AudioMixerAttributes.java | 54 private final AudioFormat mFormat; field in AudioMixerAttributes 61 mFormat = format; in AudioMixerAttributes() 72 return mFormat; in getFormat() 88 private final AudioFormat mFormat; field in AudioMixerAttributes.Builder 98 mFormat = format; in Builder() 107 AudioMixerAttributes ama = new AudioMixerAttributes(mFormat, mMixerBehavior); in build() 132 return Objects.hash(mFormat, mMixerBehavior); in hashCode() 141 return (mFormat.equals(that.mFormat) in equals() 159 + " format:" + mFormat.toString() in toString() 170 dest.writeParcelable(mFormat, flags); in writeToParcel() [all …]
|
D | AudioProfile.java | 64 private final int mFormat; field in AudioProfile 83 mFormat = format; in AudioProfile() 94 return mFormat; in getFormat() 139 return Objects.hash(mFormat, Arrays.hashCode(mSamplingRates), in hashCode() 150 return ((mFormat == that.mFormat) in equals() 160 sb.append(AudioFormat.toLogFriendlyEncoding(mFormat)); in toString() 198 dest.writeInt(mFormat); in writeToParcel() 206 mFormat = in.readInt(); in AudioProfile()
|
/frameworks/av/media/libstagefright/rtsp/ |
D | APacketSource.cpp | 411 mFormat(new MetaData) { in APacketSource() 419 mFormat->setInt64(kKeyDuration, durationUs); in APacketSource() 421 mFormat->setInt64(kKeyDuration, -1LL); in APacketSource() 426 mFormat->setCString(kKeyMIMEType, MEDIA_MIMETYPE_VIDEO_AVC); in APacketSource() 446 mFormat->setData( in APacketSource() 454 mFormat->setInt32(kKeyWidth, width); in APacketSource() 455 mFormat->setInt32(kKeyHeight, height); in APacketSource() 457 mFormat->setCString(kKeyMIMEType, MEDIA_MIMETYPE_VIDEO_HEVC); in APacketSource() 465 mFormat->setInt32(kKeyWidth, width); in APacketSource() 466 mFormat->setInt32(kKeyHeight, height); in APacketSource() [all …]
|
/frameworks/av/media/tests/benchmark/src/native/encoder/ |
D | Encoder.cpp | 145 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/base/core/java/android/hardware/camera2/params/ |
D | InputConfiguration.java | 41 private final int mFormat; field in InputConfiguration 62 mFormat = format; in InputConfiguration() 96 mFormat = format; in InputConfiguration() 106 mFormat = format; in InputConfiguration() 134 return mFormat; in getFormat() 169 otherInputConfig.getFormat() == mFormat && in equals() 181 return HashCodeHelpers.hashCode(mWidth, mHeight, mFormat, mIsMultiResolution ? 1 : 0); in hashCode() 196 mWidth, mHeight, mFormat, mIsMultiResolution); in toString()
|
D | StreamConfiguration.java | 62 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
|
D | StreamConfigurationDuration.java | 57 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/av/services/audioflinger/fastpath/ |
D | FastCapture.cpp | 90 const NBAIO_Format previousFormat = mFormat; in onStateChange() 95 mFormat = Format_Invalid; in onStateChange() 98 mFormat = mInputSource->format(); in onStateChange() 99 mSampleRate = Format_sampleRate(mFormat); in onStateChange() 101 unsigned channelCount = Format_channelCount(mFormat); in onStateChange() 118 ALOG_ASSERT(Format_isEqual(mFormat, mPipeSink->format())); in onStateChange() 121 if ((!Format_isEqual(mFormat, previousFormat)) || (frameCount != previous->mFrameCount)) { in onStateChange() 129 const size_t bufferSize = frameCount * Format_frameSize(mFormat); in onStateChange() 199 memset(mReadBuffer, 0, frameCount * Format_frameSize(mFormat)); in onWork() 204 memset(mReadBuffer, 0, mReadBufferState * Format_frameSize(mFormat)); in onWork() [all …]
|
D | FastMixer.cpp | 143 index, fastTrack->mChannelMask, fastTrack->mFormat, AUDIO_SESSION_OUTPUT_MIX); in updateMixerTrack() 147 __func__, index, fastTrack->mChannelMask, fastTrack->mFormat); in updateMixerTrack() 174 (void *)(uintptr_t)fastTrack->mFormat); in updateMixerTrack() 209 const NBAIO_Format previousFormat = mFormat; in onStateChange() 216 mFormat = Format_Invalid; in onStateChange() 222 mFormat = mOutputSink->format(); in onStateChange() 223 mSampleRate = Format_sampleRate(mFormat); in onStateChange() 224 mSinkChannelCount = Format_channelCount(mFormat); in onStateChange() 236 if ((!Format_isEqual(mFormat, previousFormat)) || (frameCount != previous->mFrameCount)) { in onStateChange() 259 * audio_bytes_per_sample(mFormat.mFormat); in onStateChange() [all …]
|
/frameworks/base/core/java/android/companion/virtual/camera/ |
D | VirtualCameraStreamConfig.java | 45 private final int mFormat; field in VirtualCameraStreamConfig 67 this.mFormat = format; in VirtualCameraStreamConfig() 74 mFormat = in.readInt(); in VirtualCameraStreamConfig() 87 dest.writeInt(mFormat); in writeToParcel() 122 return mWidth == that.mWidth && mHeight == that.mHeight && mFormat == that.mFormat in equals() 128 return Objects.hash(mWidth, mHeight, mFormat, mMaxFps); in hashCode() 134 return mFormat; in getFormat()
|
/frameworks/base/media/java/android/media/audiopolicy/ |
D | AudioMix.java | 52 private @NonNull AudioFormat mFormat; field in AudioMix 85 mFormat = Objects.requireNonNull(format); in AudioMix() 190 return mFormat; in getFormat() 298 && Objects.equals(this.mFormat, that.mFormat) in equals() 306 return Objects.hash(mRouteFlags, mRule, mMixType, mFormat, mToken); in hashCode() 308 return Objects.hash(mRouteFlags, mRule, mMixType, mFormat); in hashCode() 325 mFormat.writeToParcel(dest, flags); in writeToParcel() 378 private AudioFormat mFormat = null; field in AudioMix.Builder 481 mFormat = format; in setFormat() 544 if (mFormat == null) { in build() [all …]
|
/frameworks/av/media/libnbaio/ |
D | AudioStreamOutSink.cpp | 43 if (!Format_isValid(mFormat)) { in negotiate() 50 mFormat = Format_from_SR_C(config.sample_rate, in negotiate() 52 mFrameSize = Format_frameSize(mFormat); in negotiate() 70 ALOG_ASSERT(Format_isValid(mFormat)); in write() 110 processor->updateAudioFormat(mFormat.mSampleRate, in startMelComputation() 111 mFormat.mChannelCount, in startMelComputation() 112 mFormat.mFormat); in startMelComputation()
|
D | NBAIO.cpp | 57 ret.mFormat = format; in Format_from_SR_C() 69 size_t frameSize = Format_frameSize(mFormat); in writeVia() 105 size_t frameSize = Format_frameSize(mFormat); in readVia() 140 if (Format_isValid(mFormat)) { in negotiate() 142 if (Format_isEqual(offers[i], mFormat)) { in negotiate() 148 counterOffers[0] = mFormat; in negotiate() 160 format.mFormat != AUDIO_FORMAT_INVALID && format.mFrameSize != 0; in Format_isValid() 166 format1.mChannelCount == format2.mChannelCount && format1.mFormat == format2.mFormat && in Format_isEqual()
|
D | MonoPipe.cpp | 103 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/ndk/ |
D | NdkMediaFormat.cpp | 53 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() 156 return format->mFormat->findInt32(name, out); in AMediaFormat_getInt32() 167 return format->mFormat->findInt64(name, out); in AMediaFormat_getInt64() 178 return format->mFormat->findFloat(name, out); in AMediaFormat_getFloat() 189 return format->mFormat->findDouble(name, out); in AMediaFormat_getDouble() 200 return format->mFormat->findSize(name, out); in AMediaFormat_getSize() 212 return format->mFormat->findRect(name, left, top, right, bottom); in AMediaFormat_getRect() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/impl/ |
D | CameraExtensionUtils.java | 60 public int mFormat = PixelFormat.RGBA_8888; field in CameraExtensionUtils.SurfaceInfo 88 surfaceInfo.mFormat = nativeFormat; in querySurface() 97 surfaceInfo.mFormat = ImageFormat.JPEG; in querySurface() 101 surfaceInfo.mFormat = ImageFormat.JPEG_R; in querySurface() 118 if (supportedPostviewSizes.get(surfaceInfo.mFormat) in getPostviewSurface() 125 if (surfaceInfo.mFormat == captureFormat) { in getPostviewSurface() 128 if (supportedPostviewSizes.get(surfaceInfo.mFormat) in getPostviewSurface() 157 if (surfaceInfo.mFormat == supportedFormat) { in getBurstCaptureSurface() 160 if (supportedCaptureSizes.get(surfaceInfo.mFormat).contains(captureSize)) { in getBurstCaptureSurface() 179 if ((surfaceInfo.mFormat == in getRepeatingRequestSurface() [all …]
|
/frameworks/av/media/tests/benchmark/src/native/muxer/ |
D | Muxer.cpp | 26 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/ |
D | NdkMediaFormatPriv.cpp | 35 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/module/mpeg2ts/ |
D | ESQueue.cpp | 67 return mFormat; in getFormat() 83 mFormat.clear(); in clear() 904 if (mFormat == NULL && startOffset > 0) { in appendData() 1292 if (mFormat == NULL) { in dequeueScrambledAccessUnit() 1293 mFormat = new MetaData; in dequeueScrambledAccessUnit() 1298 *mFormat, mBuffer->data(), mBuffer->size())) { in dequeueScrambledAccessUnit() 1301 mFormat->setCString(kKeyMIMEType, MEDIA_MIMETYPE_VIDEO_AVC); in dequeueScrambledAccessUnit() 1302 mFormat->setInt32(kKeyWidth, 1280); in dequeueScrambledAccessUnit() 1303 mFormat->setInt32(kKeyHeight, 720); in dequeueScrambledAccessUnit() 1310 *mFormat, mBuffer->data(), mBuffer->size())) { in dequeueScrambledAccessUnit() [all …]
|
/frameworks/av/media/ndk/fuzzer/ |
D | NdkMediaCodecFuzzerBase.h | 42 NdkMediaCodecFuzzerBase() { mFormat = AMediaFormat_new(); } in NdkMediaCodecFuzzerBase() 48 AMediaFormat* getCodecFormat() { return mFormat; }; in getCodecFormat() 51 if (mFormat) { in ~NdkMediaCodecFuzzerBase() 52 AMediaFormat_delete(mFormat); in ~NdkMediaCodecFuzzerBase() 62 AMediaFormat* mFormat = nullptr; variable
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | MediaBufferBase.h | 80 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/base/graphics/java/android/graphics/ |
D | YuvImage.java | 46 private int mFormat; field in YuvImage 197 mFormat = format; in YuvImage() 219 if (mFormat != ImageFormat.NV21 && mFormat != ImageFormat.YUY2) { in compressToJpeg() 244 return nativeCompressToJpeg(mData, mFormat, rectangle.width(), in compressToJpeg() 315 if (mFormat != ImageFormat.YCBCR_P010 || sdr.getYuvFormat() != ImageFormat.YUV_420_888) { in compressToJpegR() 358 return mFormat; in getYuvFormat() 390 if (mFormat == ImageFormat.NV21) { in calculateOffsets() 397 if (mFormat == ImageFormat.YUY2) { in calculateOffsets() 429 if (mFormat == ImageFormat.NV21) { in adjustRectangle() 439 if (mFormat == ImageFormat.YUY2) { in adjustRectangle()
|
/frameworks/av/media/tests/benchmark/src/native/extractor/ |
D | Extractor.cpp | 52 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/ |
D | Decoder.cpp | 129 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()
|