/aosp12/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | NativeFrame.java | 71 if (getFormat().getBaseType() != FrameFormat.TYPE_OBJECT) { in getObjectValue() 76 Class structClass = getFormat().getObjectClass(); in getObjectValue() 122 return getNativeInts(getFormat().getSize()); in getInts() 139 return getNativeFloats(getFormat().getSize()); in getFloats() 152 } else if (getFormat().getSize() != length) { in setData() 163 byte[] data = getNativeData(getFormat().getSize()); in getData() 170 if (getFormat().getNumberOfDimensions() != 2) { in setBitmap() 178 int bps = getFormat().getBytesPerSample(); in setBitmap() 187 if (getFormat().getNumberOfDimensions() != 2) { in getBitmap() 194 int bps = getFormat().getBytesPerSample(); in getBitmap() [all …]
|
H A D | GLFrame.java | 75 FrameFormat format = getFormat(); in init() 83 } else if (getFormat().getSize() < 0) { in init() 116 if (!nativeAllocate(mGLEnvironment, getFormat().getWidth(), getFormat().getHeight())) { in initNew() 123 int width = getFormat().getWidth(); in initWithTexture() 124 int height = getFormat().getHeight(); in initWithTexture() 133 int width = getFormat().getWidth(); in initWithFbo() 134 int height = getFormat().getHeight(); in initWithFbo() 207 if (getFormat().getSize() != bytes.length) { in setData() 226 if (getFormat().getWidth() != bitmap.getWidth() || in setBitmap() 227 getFormat().getHeight() != bitmap.getHeight()) { in setBitmap() [all …]
|
H A D | VertexFrame.java | 36 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()
|
H A D | SimpleFrame.java | 132 MutableFrameFormat format = getFormat().mutableCopy(); in setFormatObjectClass() 142 FrameFormat format = getFormat(); in setGenericObjectValue() 157 return "SimpleFrame (" + getFormat() + ")"; in toString()
|
H A D | CachedFrameManager.java | 101 int frameSize = frame.getFormat().getSize(); in storeFrame() 125 mStorageSize -= frame.getFormat().getSize(); in dropOldestFrame() 136 if (frame.getFormat().isReplaceableBy(format)) { in findAvailableFrame()
|
/aosp12/frameworks/base/core/java/android/text/format/ |
H A D | TimeFormatter.java | 273 numberFormatter.format(getFormat(modifier, "%02d", "%2d", "%d", "%02d"), in handleToken() 288 numberFormatter.format(getFormat(modifier, "%2d", "%2d", "%d", "%02d"), in handleToken() 295 numberFormatter.format(getFormat(modifier, "%02d", "%2d", "%d", "%02d"), in handleToken() 304 numberFormatter.format(getFormat(modifier, "%03d", "%3d", "%d", "%03d"), in handleToken() 308 numberFormatter.format(getFormat(modifier, "%2d", "%2d", "%d", "%02d"), in handleToken() 313 numberFormatter.format(getFormat(modifier, "%2d", "%2d", "%d", "%02d"), n2); in handleToken() 316 numberFormatter.format(getFormat(modifier, "%02d", "%2d", "%d", "%02d"), in handleToken() 320 numberFormatter.format(getFormat(modifier, "%02d", "%2d", "%d", "%02d"), in handleToken() 343 numberFormatter.format(getFormat(modifier, "%02d", "%2d", "%d", "%02d"), in handleToken() 357 numberFormatter.format(getFormat(modifier, "%02d", "%2d", "%d", "%02d"), in handleToken() [all …]
|
/aosp12/frameworks/base/media/java/android/media/ |
H A D | ImageUtils.java | 100 if (src.getFormat() != dst.getFormat()) { in imageCopy() 103 if (src.getFormat() == ImageFormat.PRIVATE || in imageCopy() 104 dst.getFormat() == ImageFormat.PRIVATE) { in imageCopy() 107 if (src.getFormat() == ImageFormat.RAW_PRIVATE) { in imageCopy() 111 if (src.getFormat() == ImageFormat.RAW_DEPTH) { in imageCopy() 115 if (src.getFormat() == ImageFormat.RAW_DEPTH10) { in imageCopy() 248 switch (image.getFormat()) { in getEffectivePlaneSizeForImage() 283 String.format("Invalid image format %d", image.getFormat())); in getEffectivePlaneSizeForImage()
|
H A D | ImageWriter.java | 487 public int getFormat() { in getFormat() method in ImageWriter 644 nativeAttachAndQueueImage(mNativeContext, image.getNativeContext(), image.getFormat(), in attachAndQueueInputImage() 649 nativeAttachAndQueueGraphicBuffer(mNativeContext, gb, image.getFormat(), in attachAndQueueInputImage() 779 public int getFormat() { in getFormat() method in ImageWriter.WriterSurfaceImage 850 int numPlanes = ImageUtils.getNumPlanesForFormat(getFormat()); in getPlanes() 851 mPlanes = nativeCreatePlanes(numPlanes, getOwner().getFormat()); in getPlanes()
|
/aosp12/packages/apps/Camera2/src/com/android/camera/one/v2/camera2proxy/ |
H A D | ForwardingImageProxy.java | 60 public int getFormat() { in getFormat() method in ForwardingImageProxy 61 return mImpl.getFormat(); in getFormat() 122 return otherImage.getFormat() == getFormat() && in equals() 130 return Objects.hashCode(getFormat(), getWidth(), getHeight(), getTimestamp()); in hashCode()
|
H A D | AndroidImageProxy.java | 106 mFormat = mImage.getFormat(); in AndroidImageProxy() 159 public int getFormat() { in getFormat() method in AndroidImageProxy 208 .add("format", getFormat()) in toString() 224 return otherImage.getFormat() == getFormat() && in equals() 232 return Objects.hashCode(getFormat(), getWidth(), getHeight(), getTimestamp()); in hashCode()
|
/aosp12/frameworks/av/media/libaudiofoundation/ |
H A D | AudioProfile.cpp | 32 return (left.getFormat() == right.getFormat()) && in operator ==() 136 mFormat == other->getFormat() && in equals() 252 if (profile->isValid() && profile->getFormat() == format) { in getFirstValidProfileFor() 264 supportedFormats.push_back(profile->getFormat()); in getSupportedFormats() 273 if (profile->getFormat() == format && profile->isDynamicChannels()) { in hasDynamicChannelsFor() 303 if (profile->getFormat() == format && profile->isDynamicRate()) { in hasDynamicRateFor() 381 infos2.emplace(profile->getFormat(), in intersectAudioProfiles() 386 const auto it = infos2.find(profile->getFormat()); in intersectAudioProfiles() 398 profiles.push_back(new AudioProfile(profile->getFormat(), channelMasks, sampleRates)); in intersectAudioProfiles()
|
/aosp12/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
H A D | AudioProfileVectorHelper.cpp | 39 return PolicyAudioPort::compareFormats(a->getFormat(), b->getFormat()) < 0; in sortAudioProfiles() 56 if (profile->getFormat() == format) { in getAudioProfileForFormat() 68 if (profile->getFormat() == format && profile->isDynamicRate()) { in setSampleRatesForAudioProfiles() 88 if (profile->getFormat() == format && profile->isDynamicChannels()) { in setChannelsForAudioProfiles() 132 formats.push_back(profileToAdd->getFormat()); in addDynamicAudioProfileAndSort() 138 audioProfileVector, profileToAdd->getSampleRates(), profileToAdd->getFormat()); in addDynamicAudioProfileAndSort() 143 audioProfileVector, profileToAdd->getChannels(), profileToAdd->getFormat()); in addDynamicAudioProfileAndSort() 171 if (audio_formats_match(format, audioProfile->getFormat()) && in checkExact() 344 audio_format_t formatToCompare = profile->getFormat(); in checkCompatibleProfile()
|
/aosp12/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
H A D | ResizeFilter.java | 89 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()
|
H A D | ImageSlicer.java | 76 mInputWidth = frame.getFormat().getWidth(); in calcOutputFormatForInput() 77 mInputHeight = frame.getFormat().getHeight(); in calcOutputFormatForInput() 96 FrameFormat inputFormat = mOriginalFrame.getFormat(); in process()
|
/aosp12/frameworks/av/media/libstagefright/ |
H A D | OggWriter.cpp | 88 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()
|
H A D | CallbackMediaSource.cpp | 35 sp<MetaData> CallbackMediaSource::getFormat() { in getFormat() function in android::CallbackMediaSource 36 return mSource->getFormat(); in getFormat()
|
/aosp12/frameworks/base/media/java/android/media/audiopolicy/ |
H A D | AudioPolicyConfig.java | 96 dest.writeInt(mix.getFormat().getSampleRate()); in writeToParcel() 97 dest.writeInt(mix.getFormat().getEncoding()); in writeToParcel() 98 dest.writeInt(mix.getFormat().getChannelMask()); in writeToParcel() 174 textDump += " rate=" + mix.getFormat().getSampleRate() + "Hz\n"; in toLogFriendlyString() 175 textDump += " encoding=" + mix.getFormat().getEncoding() + "\n"; in toLogFriendlyString() 177 textDump += Integer.toHexString(mix.getFormat().getChannelMask()).toUpperCase() + "\n"; in toLogFriendlyString()
|
/aosp12/hardware/interfaces/audio/core/all-versions/vts/functional/4.0/ |
H A D | AudioPrimaryHidlHalUtils.h | 61 static auto getFormat(IStream* stream) { in getFormat() function 62 auto ret = stream->getFormat(); in getFormat() 68 EXPECT_OK(stream->getSupportedSampleRates(getFormat(stream), returnIn(res, rates))); in sampleRates() 75 EXPECT_OK(stream->getSupportedChannelMasks(getFormat(stream), returnIn(res, channels))); in channelMasks()
|
/aosp12/frameworks/av/media/extractors/mpeg2/ |
H A D | MPEG2PSExtractor.cpp | 48 virtual media_status_t getFormat(AMediaFormat *); 79 virtual media_status_t getFormat(AMediaFormat *); 114 if (track->getFormat(meta) != AMEDIA_OK) { in MPEG2PSExtractor() 151 return mTracks.valueAt(index)->getFormat(meta); in getTrackMetaData() 672 media_status_t MPEG2PSExtractor::Track::getFormat(AMediaFormat *meta) { in getFormat() function in android::MPEG2PSExtractor::Track 677 sp<MetaData> sourceMeta = mSource->getFormat(); in getFormat() 773 sp<MetaData> meta = mQueue->getFormat(); in appendPESData() 781 } else if (mQueue->getFormat() != NULL) { in appendPESData() 811 media_status_t MPEG2PSExtractor::WrappedTrack::getFormat(AMediaFormat *meta) { in getFormat() function in android::MPEG2PSExtractor::WrappedTrack 812 return mTrack->getFormat(meta); in getFormat()
|
/aosp12/frameworks/base/media/mca/filterpacks/java/android/filterpacks/ui/ |
H A D | SurfaceTargetFilter.java | 150 … 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()
|
H A D | SurfaceRenderFilter.java | 158 … 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()
|
/aosp12/frameworks/base/core/java/android/hardware/camera2/params/ |
H A D | StreamConfigurationMap.java | 254 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() 304 mHeicOutputFormats.put(config.getFormat(), in StreamConfigurationMap() 305 mHeicOutputFormats.get(config.getFormat()) + 1); in StreamConfigurationMap() 1531 int fmt = config.getFormat(); in getInternalFormatSizes() 1539 if (d.getFormat() == fmt && in getInternalFormatSizes() 1623 if (configurationDuration.getFormat() == format && in getInternalFormatDuration() [all …]
|
/aosp12/frameworks/av/media/libaaudio/src/legacy/ |
H A D | AudioStreamRecord.cpp | 93 const audio_format_t requestedFormat = getFormat(); in open() 113 if (getFormat() == AUDIO_FORMAT_PCM_FLOAT in open() 120 setDeviceFormat(getFormat()); in open() 206 if (getFormat() != getDeviceFormat() && !gotFastPath) { in open() 212 setDeviceFormat(getFormat()); in open() 249 && getFormat() == AUDIO_FORMAT_PCM_FLOAT) { in open()
|
/aosp12/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/ |
H A D | Cea708TextTrackRenderer.java | 89 MediaFormat trackFormat = mSource.getFormat(i); in doPrepare() 138 protected MediaFormat getFormat(int track) { in getFormat() method in Cea708TextTrackRenderer 140 return mSource.getFormat(mTrackIndex); in getFormat() 230 return mSource.getFormat(mTrackIndex).durationUs; in getDurationUs()
|
/aosp12/frameworks/av/services/oboeservice/ |
H A D | AAudioServiceStreamShared.cpp | 148 setFormat(configurationInput.getFormat()); in open() 149 if (getFormat() == AUDIO_FORMAT_DEFAULT) { in open() 151 } else if (getFormat() != AUDIO_FORMAT_PCM_FLOAT) { in open() 152 ALOGD("%s() audio_format_t mAudioFormat = %d, need FLOAT", __func__, getFormat()); in open()
|