Home
last modified time | relevance | path

Searched refs:getFormat (Results 1 – 25 of 268) sorted by relevance

1234567891011

/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DNativeFrame.java71 if (getFormat().getBaseType() != FrameFormat.TYPE_OBJECT) { in getObjectValue()
76 Class structClass = getFormat().getObjectClass(); in getObjectValue()
111 if (ints.length * nativeIntSize() > getFormat().getSize()) { in setInts()
114 (getFormat().getSize() / nativeIntSize()) + " integers)."); in setInts()
122 return getNativeInts(getFormat().getSize()); in getInts()
128 if (floats.length * nativeFloatSize() > getFormat().getSize()) { in setFloats()
131 (getFormat().getSize() / nativeFloatSize()) + " floats)."); in setFloats()
139 return getNativeFloats(getFormat().getSize()); in getFloats()
152 } else if (getFormat().getSize() != length) { in setData()
154 "Frame size is " + getFormat().getSize() + " bytes, but " + in setData()
[all …]
DGLFrame.java80 FrameFormat format = getFormat(); in init()
88 } else if (getFormat().getSize() < 0) { in init()
121 if (!nativeAllocate(mGLEnvironment, getFormat().getWidth(), getFormat().getHeight())) { in initNew()
128 int width = getFormat().getWidth(); in initWithTexture()
129 int height = getFormat().getHeight(); in initWithTexture()
138 int width = getFormat().getWidth(); in initWithFbo()
139 int height = getFormat().getHeight(); in initWithFbo()
212 if (getFormat().getSize() != bytes.length) { in setData()
231 if (getFormat().getWidth() != bitmap.getWidth() || in setBitmap()
232 getFormat().getHeight() != bitmap.getHeight()) { in setBitmap()
[all …]
DVertexFrame.java36 if (getFormat().getSize() <= 0) { in VertexFrame()
39 if (!nativeAllocate(getFormat().getSize())) { in VertexFrame()
91 if (getFormat().getSize() != bytes.length) { in setData()
125 return "VertexFrame (" + getFormat() + ") with VBO ID " + getVboId(); in toString()
DSimpleFrame.java132 MutableFrameFormat format = getFormat().mutableCopy(); in setFormatObjectClass()
142 FrameFormat format = getFormat(); in setGenericObjectValue()
157 return "SimpleFrame (" + getFormat() + ")"; in toString()
DCachedFrameManager.java101 int frameSize = frame.getFormat().getSize(); in storeFrame()
125 mStorageSize -= frame.getFormat().getSize(); in dropOldestFrame()
136 if (frame.getFormat().isReplaceableBy(format)) { in findAvailableFrame()
DFrameManager.java40 Frame result = newFrame(frame.getFormat()); in duplicateFrame()
46 MutableFrameFormat newFormat = frame.getFormat().mutableCopy(); in duplicateFrameToTarget()
/frameworks/base/core/java/android/text/format/
DTimeFormatter.java199 numberFormatter.format(getFormat(modifier, "%02d", "%2d", "%d", "%02d"), in handleToken()
214 numberFormatter.format(getFormat(modifier, "%2d", "%2d", "%d", "%02d"), in handleToken()
221 numberFormatter.format(getFormat(modifier, "%02d", "%2d", "%d", "%02d"), in handleToken()
226 numberFormatter.format(getFormat(modifier, "%02d", "%2d", "%d", "%02d"), hour); in handleToken()
230 numberFormatter.format(getFormat(modifier, "%03d", "%3d", "%d", "%03d"), in handleToken()
234 numberFormatter.format(getFormat(modifier, "%2d", "%2d", "%d", "%02d"), in handleToken()
239 numberFormatter.format(getFormat(modifier, "%2d", "%2d", "%d", "%02d"), n2); in handleToken()
242 numberFormatter.format(getFormat(modifier, "%02d", "%2d", "%d", "%02d"), in handleToken()
246 numberFormatter.format(getFormat(modifier, "%02d", "%2d", "%d", "%02d"), in handleToken()
267 numberFormatter.format(getFormat(modifier, "%02d", "%2d", "%d", "%02d"), in handleToken()
[all …]
/frameworks/base/media/java/android/media/
DImageUtils.java98 if (src.getFormat() != dst.getFormat()) { in imageCopy()
101 if (src.getFormat() == ImageFormat.PRIVATE || in imageCopy()
102 dst.getFormat() == ImageFormat.PRIVATE) { in imageCopy()
105 if (src.getFormat() == ImageFormat.RAW_PRIVATE) { in imageCopy()
109 if (src.getFormat() == ImageFormat.RAW_DEPTH) { in imageCopy()
240 switch (image.getFormat()) { in getEffectivePlaneSizeForImage()
273 String.format("Invalid image format %d", image.getFormat())); in getEffectivePlaneSizeForImage()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioProfile.cpp59 return (left.getFormat() == compareTo.getFormat()) && in operator ==()
313 formats.add(profileToAdd->getFormat()); in addProfileFromHal()
318 setSampleRatesFor(profileToAdd->getSampleRates(), profileToAdd->getFormat()); in addProfileFromHal()
322 setChannelsFor(profileToAdd->getChannels(), profileToAdd->getFormat()); in addProfileFromHal()
370 audio_format_t formatToCompare = profile->getFormat(); in checkCompatibleProfile()
488 if (itemAt(i)->isValid() && itemAt(i)->getFormat() == format) { in getFirstValidProfileFor()
500 supportedFormats.add(itemAt(i)->getFormat()); in getSupportedFormats()
510 if (profile->getFormat() == format && profile->isDynamicChannels()) { in hasDynamicChannelsFor()
531 if (profile->getFormat() == format && profile->isDynamicRate()) { in hasDynamicRateFor()
568 if (itemAt(i)->getFormat() == format) { in getProfileFor()
[all …]
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
DResizeFilter.java89 createProgram(env, input.getFormat()); in process()
92 MutableFrameFormat outputFormat = input.getFormat().mutableCopy(); in process()
94 FrameFormat inputFormat = input.getFormat(); in process()
102 GLFrame mipmapped = (GLFrame)env.getFrameManager().newFrame(input.getFormat()); in process()
DImageSlicer.java76 mInputWidth = frame.getFormat().getWidth(); in calcOutputFormatForInput()
77 mInputHeight = frame.getFormat().getHeight(); in calcOutputFormatForInput()
96 FrameFormat inputFormat = mOriginalFrame.getFormat(); in process()
/frameworks/av/media/libstagefright/
DOggWriter.cpp88 source->getFormat()->findCString(kKeyMIMEType, &mime); in addSource()
103 if (!source->getFormat()->findInt32(kKeyChannelCount, &nChannels)) { in addSource()
105 source->getFormat()->dumpToLog(); in addSource()
108 source->getFormat()->dumpToLog(); in addSource()
111 if (!source->getFormat()->findInt32(kKeySampleRate, &sampleRate)) { in addSource()
113 source->getFormat()->dumpToLog(); in addSource()
122 if (!source->getFormat()->findData(kKeyOpusHeader, &type, &header_data, &packet_size)) { in addSource()
DCallbackMediaSource.cpp35 sp<MetaData> CallbackMediaSource::getFormat() { in getFormat() function in android::CallbackMediaSource
36 return mSource->getFormat(); in getFormat()
/frameworks/base/media/java/android/media/audiopolicy/
DAudioPolicyConfig.java96 dest.writeInt(mix.getFormat().getSampleRate()); in writeToParcel()
97 dest.writeInt(mix.getFormat().getEncoding()); in writeToParcel()
98 dest.writeInt(mix.getFormat().getChannelMask()); in writeToParcel()
166 textDump += " rate=" + mix.getFormat().getSampleRate() + "Hz\n"; in toLogFriendlyString()
167 textDump += " encoding=" + mix.getFormat().getEncoding() + "\n"; in toLogFriendlyString()
169 textDump += Integer.toHexString(mix.getFormat().getChannelMask()).toUpperCase() + "\n"; in toLogFriendlyString()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/ui/
DSurfaceTargetFilter.java150 … float currentAspectRatio = (float)input.getFormat().getWidth() / input.getFormat().getHeight(); in process()
159 if (mLogVerbose) Log.v("SurfaceRenderFilter", "Got input format: " + input.getFormat()); in process()
160 int target = input.getFormat().getTarget(); in process()
DSurfaceRenderFilter.java158 … float currentAspectRatio = (float)input.getFormat().getWidth() / input.getFormat().getHeight(); in process()
167 if (mLogVerbose) Log.v("SurfaceRenderFilter", "Got input format: " + input.getFormat()); in process()
168 int target = input.getFormat().getTarget(); in process()
/frameworks/av/media/extractors/mpeg2/
DMPEG2PSExtractor.cpp49 virtual media_status_t getFormat(AMediaFormat *);
80 virtual media_status_t getFormat(AMediaFormat *);
114 if (mTracks.valueAt(i)->getFormat(meta) != AMEDIA_OK) { in MPEG2PSExtractor()
146 return mTracks.valueAt(index)->getFormat(meta); in getTrackMetaData()
667 media_status_t MPEG2PSExtractor::Track::getFormat(AMediaFormat *meta) { in getFormat() function in android::MPEG2PSExtractor::Track
672 sp<MetaData> sourceMeta = mSource->getFormat(); in getFormat()
768 sp<MetaData> meta = mQueue->getFormat(); in appendPESData()
776 } else if (mQueue->getFormat() != NULL) { in appendPESData()
804 media_status_t MPEG2PSExtractor::WrappedTrack::getFormat(AMediaFormat *meta) { in getFormat() function in android::MPEG2PSExtractor::WrappedTrack
805 return mTrack->getFormat(meta); in getFormat()
/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreRSAPublicKey.java40 if (!"X.509".equalsIgnoreCase(info.getFormat())) { in AndroidKeyStoreRSAPublicKey()
42 "Unsupported key export format: " + info.getFormat()); in AndroidKeyStoreRSAPublicKey()
DAndroidKeyStoreECPublicKey.java42 if (!"X.509".equalsIgnoreCase(info.getFormat())) { in AndroidKeyStoreECPublicKey()
44 "Unsupported key export format: " + info.getFormat()); in AndroidKeyStoreECPublicKey()
/frameworks/base/core/java/android/hardware/camera2/params/
DInputConfiguration.java78 public int getFormat() { in getFormat() method in InputConfiguration
102 otherInputConfig.getFormat() == mFormat) { in equals()
DStreamConfigurationMap.java254 int fmt = config.getFormat(); in StreamConfigurationMap()
261 if (configurationDuration.getFormat() == fmt && in StreamConfigurationMap()
284 mDepthOutputFormats.put(config.getFormat(), in StreamConfigurationMap()
285 mDepthOutputFormats.get(config.getFormat()) + 1); in StreamConfigurationMap()
293 mDynamicDepthOutputFormats.put(config.getFormat(), in StreamConfigurationMap()
294 mDynamicDepthOutputFormats.get(config.getFormat()) + 1); in StreamConfigurationMap()
304 mHeicOutputFormats.put(config.getFormat(), in StreamConfigurationMap()
305 mHeicOutputFormats.get(config.getFormat()) + 1); in StreamConfigurationMap()
566 if (config.getFormat() == surfaceFormat && config.isOutput()) { in isOutputSupportedFor()
602 if ((config.getFormat() == internalFormat) && config.isOutput() && in isOutputSupportedFor()
[all …]
/frameworks/base/media/mca/effect/java/android/media/effect/
DSizeChangeEffect.java47 int outputWidth = resultFrame.getFormat().getWidth(); in apply()
48 int outputHeight = resultFrame.getFormat().getHeight(); in apply()
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamRecord.cpp93 if (getFormat() == AUDIO_FORMAT_DEFAULT) { in open()
111 if (getFormat() == AUDIO_FORMAT_PCM_FLOAT in open()
118 setDeviceFormat(getFormat()); in open()
191 if (getFormat() != getDeviceFormat() && !gotFastPath) { in open()
197 setDeviceFormat(getFormat()); in open()
223 && getFormat() == AUDIO_FORMAT_PCM_FLOAT) { in open()
/frameworks/av/services/oboeservice/
DAAudioServiceStreamShared.cpp143 setFormat(configurationInput.getFormat()); in open()
144 if (getFormat() == AUDIO_FORMAT_DEFAULT) { in open()
146 } else if (getFormat() != AUDIO_FORMAT_PCM_FLOAT) { in open()
147 ALOGD("%s() audio_format_t mAudioFormat = %d, need FLOAT", __func__, getFormat()); in open()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/base/
DGLTextureTarget.java50 FrameFormat format = ImageFormat.create(input.getFormat().getWidth(), in process()
51 input.getFormat().getHeight(), in process()

1234567891011