Home
last modified time | relevance | path

Searched refs:format (Results 1 – 25 of 2040) sorted by relevance

12345678910>>...82

/frameworks/av/media/libmediaformatshaper/
DVQApply.cpp217 bool hasQpMaxPerFrameType(AMediaFormat *format) { in hasQpMaxPerFrameType() argument
220 if (AMediaFormat_getInt32(format, AMEDIAFORMAT_VIDEO_QP_I_MAX, &value) in hasQpMaxPerFrameType()
221 || AMediaFormat_getInt32(format, AMEDIAFORMAT_VIDEO_QP_I_MIN, &value)) { in hasQpMaxPerFrameType()
224 if (AMediaFormat_getInt32(format, AMEDIAFORMAT_VIDEO_QP_P_MAX, &value) in hasQpMaxPerFrameType()
225 || AMediaFormat_getInt32(format, AMEDIAFORMAT_VIDEO_QP_P_MIN, &value)) { in hasQpMaxPerFrameType()
228 if (AMediaFormat_getInt32(format, AMEDIAFORMAT_VIDEO_QP_B_MAX, &value) in hasQpMaxPerFrameType()
229 || AMediaFormat_getInt32(format, AMEDIAFORMAT_VIDEO_QP_B_MIN, &value)) { in hasQpMaxPerFrameType()
235 bool hasQpMaxGlobal(AMediaFormat *format) { in hasQpMaxGlobal() argument
237 if (AMediaFormat_getInt32(format, AMEDIAFORMAT_VIDEO_QP_MAX, &value) in hasQpMaxGlobal()
238 || AMediaFormat_getInt32(format, AMEDIAFORMAT_VIDEO_QP_MIN, &value)) { in hasQpMaxGlobal()
[all …]
DVQops.h39 void qpSpreadPerFrameType(AMediaFormat *format, int delta, int qplow, int qphigh, bool override);
40 void qpSpreadMaxPerFrameType(AMediaFormat *format, int delta, int qphigh, bool override);
41 void qpSpreadMinPerFrameType(AMediaFormat *format, int qplow, bool override);
42 void qpVerifyMinMaxOrdering(AMediaFormat *format);
45 bool hasQpMax(AMediaFormat *format);
46 bool hasQpMaxGlobal(AMediaFormat *format);
47 bool hasQpMaxPerFrameType(AMediaFormat *format);
/frameworks/av/media/libstagefright/omx/
DSoftVideoEncoderOMXComponent.cpp101 def.format.video.pNativeRender = NULL; in initPorts()
102 def.format.video.nFrameWidth = mWidth; in initPorts()
103 def.format.video.nFrameHeight = mHeight; in initPorts()
104 def.format.video.nStride = def.format.video.nFrameWidth; in initPorts()
105 def.format.video.nSliceHeight = def.format.video.nFrameHeight; in initPorts()
106 def.format.video.nBitrate = 0; in initPorts()
108 def.format.video.xFramerate = mFramerate; in initPorts()
109 def.format.video.bFlagErrorConcealment = OMX_FALSE; in initPorts()
111 def.format.video.cMIMEType = const_cast<char *>("video/raw"); in initPorts()
112 def.format.video.eCompressionFormat = OMX_VIDEO_CodingUnused; in initPorts()
[all …]
/frameworks/base/core/java/android/hardware/camera2/params/
DStreamConfigurationMap.java411 public Size[] getInputSizes(final int format) { in getInputSizes() argument
412 return getPublicFormatSizes(format, /*output*/false, /*highRes*/false); in getInputSizes()
439 public boolean isOutputSupportedFor(int format) { in isOutputSupportedFor() argument
440 checkArgumentFormat(format); in isOutputSupportedFor()
442 int internalFormat = imageFormatToInternal(format); in isOutputSupportedFor()
443 int dataspace = imageFormatToDataspace(format); in isOutputSupportedFor()
592 public boolean isOutputSupportedFor(Size size, int format) { in isOutputSupportedFor() argument
593 int internalFormat = imageFormatToInternal(format); in isOutputSupportedFor()
594 int dataspace = imageFormatToDataspace(format); in isOutputSupportedFor()
670 public Size[] getOutputSizes(int format) { in getOutputSizes() argument
[all …]
DReprocessFormatsMap.java86 String.format("Input %x had no output format length listed", inputFormat)); in ReprocessFormatsMap()
101 String.format( in ReprocessFormatsMap()
134 final int format = mEntry[i]; in getInputs() local
141 String.format("Input %x had no output format length listed", format)); in getInputs()
151 String.format( in getInputs()
153 "expected: %d)", format, left, length)); in getInputs()
160 inputs[j] = format; in getInputs()
178 public int[] getOutputs(final int format) { in getOutputs() argument
189 String.format("Input %x had no output format length listed", format)); in getOutputs()
199 String.format( in getOutputs()
[all …]
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/
DLog.java30 public void debug(String format, Object... args) { in debug() argument
32 info(format, args); in debug()
37 public void debugNoln(String format, Object... args) { in debugNoln() argument
39 String s = String.format(format, args); in debugNoln()
44 public void info(String format, Object... args) { in info() argument
45 String s = String.format(format, args); in info()
49 public void error(String format, Object... args) { in error() argument
50 String s = String.format(format, args); in error()
54 public void exception(Throwable t, String format, Object... args) { in exception() argument
59 error(format + "\n" + sw.toString(), args); in exception()
/frameworks/rs/tests/java_api/RSUnitTests/
DRSUnitTests.py224 gen_file.write(' $(call all-java-files-under,{})\\\n'.format(src_dir))
227 ' $(my_rs_unit_tests_path)/UnitTest.java\\\n'.format(src_dir)
232 ' $(my_rs_unit_tests_path)/{}\\\n'.format(JavaFileForUnitTest(test))
235 gen_file.write(' $(my_rs_unit_tests_path)/{}\\\n'.format(rs_file))
267 return 'UT_{}.java'.format(test)
276 return ['{}.rs'.format(test)]
380 .format(SupportLibGenTestDir()))
424 .format(SupportLib19MakefileLocation()))
432 make_target_name = 'RSTestForward_{}'.format(build_tool_version_name)
502 '</manifest>\n'.format(package, package)
[all …]
/frameworks/base/tools/bit/
Dprint.cpp59 print_status(const char* format, ...) in print_status() argument
64 va_start(args, format); in print_status()
65 vfprintf(stdout, format, args); in print_status()
91 print_error(const char* format, ...) in print_error() argument
96 va_start(args, format); in print_error()
97 vfprintf(stderr, format, args); in print_error()
105 print_warning(const char* format, ...) in print_warning() argument
110 va_start(args, format); in print_warning()
111 vfprintf(stderr, format, args); in print_warning()
119 print_info(const char* format, ...) in print_info() argument
[all …]
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DSimpleFrame.java23 import android.filterfw.format.ObjectFormat;
35 SimpleFrame(FrameFormat format, FrameManager frameManager) { in SimpleFrame() argument
36 super(format, frameManager); in SimpleFrame()
37 initWithFormat(format); in SimpleFrame()
42 FrameFormat format = ObjectFormat.fromObject(object, FrameFormat.TARGET_SIMPLE); in wrapObject() local
43 SimpleFrame result = new SimpleFrame(format, frameManager); in wrapObject()
48 private void initWithFormat(FrameFormat format) { in initWithFormat() argument
49 final int count = format.getLength(); in initWithFormat()
50 final int baseType = format.getBaseType(); in initWithFormat()
132 MutableFrameFormat format = getFormat().mutableCopy(); in setFormatObjectClass() local
[all …]
DSimpleFrameManager.java37 public Frame newFrame(FrameFormat format) { in newFrame() argument
38 return createNewFrame(format); in newFrame()
42 public Frame newBoundFrame(FrameFormat format, int bindingType, long bindingId) { in newBoundFrame() argument
44 switch(format.getTarget()) { in newBoundFrame()
46 GLFrame glFrame = new GLFrame(format, this, bindingType, bindingId); in newBoundFrame()
54 + FrameFormat.targetToString(format.getTarget()) + "!"); in newBoundFrame()
59 private Frame createNewFrame(FrameFormat format) { in createNewFrame() argument
61 switch(format.getTarget()) { in createNewFrame()
63 result = new SimpleFrame(format, this); in createNewFrame()
67 result = new NativeFrame(format, this); in createNewFrame()
[all …]
/frameworks/av/media/libstagefright/
DMediaTrack.cpp92 status_t MediaTrackCUnwrapper::getFormat(MetaDataBase& format) { in getFormat() argument
99 format = *newMeta; in getFormat()
122 AMediaFormat *format = buf->meta_data(buf->handle); in read() local
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()
[all …]
DBufferImpl.cpp34 SharedMemoryBuffer::SharedMemoryBuffer(const sp<AMessage> &format, const sp<IMemory> &mem) in SharedMemoryBuffer() argument
39 : MediaCodecBuffer(format, new ABuffer(mem->unsecurePointer(), mem->size())), in SharedMemoryBuffer()
43 SharedMemoryBuffer::SharedMemoryBuffer(const sp<AMessage> &format, const sp<TMemory> &mem) in SharedMemoryBuffer() argument
44 : MediaCodecBuffer(format, new ABuffer(mem->getPointer(), mem->getSize())), in SharedMemoryBuffer()
50 SecureBuffer::SecureBuffer(const sp<AMessage> &format, const void *ptr, size_t size) in SecureBuffer() argument
51 : MediaCodecBuffer(format, new ABuffer(nullptr, size)), in SecureBuffer()
56 const sp<AMessage> &format, const sp<NativeHandle> &handle, size_t size) in SecureBuffer() argument
57 : MediaCodecBuffer(format, new ABuffer(nullptr, size)), in SecureBuffer()
/frameworks/av/media/libnbaio/
DNBAIO.cpp25 size_t Format_frameSize(const NBAIO_Format& format) in Format_frameSize() argument
27 return format.mFrameSize; in Format_frameSize()
32 unsigned Format_sampleRate(const NBAIO_Format& format) in Format_sampleRate() argument
34 if (!Format_isValid(format)) { in Format_sampleRate()
37 return format.mSampleRate; in Format_sampleRate()
40 unsigned Format_channelCount(const NBAIO_Format& format) in Format_channelCount() argument
42 if (!Format_isValid(format)) { in Format_channelCount()
45 return format.mChannelCount; in Format_channelCount()
49 audio_format_t format) in Format_from_SR_C() argument
51 if (sampleRate == 0 || channelCount == 0 || !audio_is_valid_format(format)) { in Format_from_SR_C()
[all …]
/frameworks/base/telecomm/java/android/telecom/
DLog.java87 public static void d(String prefix, String format, Object... args) { in d() argument
90 android.util.Slog.i(TAG, buildMessage(prefix, format, args)); in d()
92 android.util.Slog.d(TAG, buildMessage(prefix, format, args)); in d()
96 public static void d(Object objectPrefix, String format, Object... args) { in d() argument
99 android.util.Slog.i(TAG, buildMessage(getPrefixFromObject(objectPrefix), format, args)); in d()
101 android.util.Slog.d(TAG, buildMessage(getPrefixFromObject(objectPrefix), format, args)); in d()
106 public static void i(String prefix, String format, Object... args) { in i() argument
108 android.util.Slog.i(TAG, buildMessage(prefix, format, args)); in i()
112 public static void i(Object objectPrefix, String format, Object... args) { in i() argument
114 android.util.Slog.i(TAG, buildMessage(getPrefixFromObject(objectPrefix), format, args)); in i()
[all …]
/frameworks/wilhelm/tests/sandbox/
Dconfigbq.c95 PCM *format; in main() local
98 for (format = formats; format->numChannels; ++format) { in main()
100 printf("Channels: %d, sample rate: %u, bits: %u\n", format->numChannels, in main()
101 format->milliHz / 1000, format->bitsPerSample); in main()
109 format_pcm.numChannels = format->numChannels; in main()
110 format_pcm.samplesPerSec = format->milliHz; in main()
111 format_pcm.bitsPerSample = format->bitsPerSample; in main()
112 format_pcm.containerSize = format->bitsPerSample; in main()
150 float seconds = (((i * 8) / (format->bitsPerSample * format->numChannels)) * 1000.0) / in main()
151 format->milliHz; in main()
[all …]
/frameworks/native/opengl/tests/hwc/
DhwcCommit.cpp169 uint32_t format; member in Rectangle
242 uint32_t format; member
278 uint32_t maxOverlays(uint32_t format, bool allowOverlap);
279 list<uint32_t> supportedTransforms(uint32_t format);
280 list<uint32_t> supportedBlends(uint32_t format);
281 uint32_t dfMinWidth(uint32_t format);
282 uint32_t dfMinHeight(uint32_t format);
283 uint32_t dfMaxWidth(uint32_t format);
284 uint32_t dfMaxHeight(uint32_t format);
285 HwcTestDim dfMinDim(uint32_t format);
[all …]
/frameworks/base/services/core/java/com/android/server/utils/
DSlogf.java158 public static void v(String tag, String format, @Nullable Object... args) { in v() argument
161 v(tag, getMessage(format, args)); in v()
173 public static void d(String tag, String format, @Nullable Object... args) { in d() argument
176 d(tag, getMessage(format, args)); in d()
188 public static void i(String tag, String format, @Nullable Object... args) { in i() argument
191 i(tag, getMessage(format, args)); in i()
203 public static void w(String tag, String format, @Nullable Object... args) { in w() argument
206 w(tag, getMessage(format, args)); in w()
218 public static void w(String tag, Exception exception, String format, @Nullable Object... args) { in w() argument
221 w(tag, getMessage(format, args), exception); in w()
[all …]
/frameworks/av/media/ndk/
DNdkMediaFormat.cpp52 void AMediaFormat_clear(AMediaFormat *format) { in AMediaFormat_clear() argument
53 format->mFormat->clear(); in AMediaFormat_clear()
149 bool AMediaFormat_getInt32(AMediaFormat* format, const char *name, int32_t *out) { in AMediaFormat_getInt32() argument
150 return format->mFormat->findInt32(name, out); in AMediaFormat_getInt32()
154 bool AMediaFormat_getInt64(AMediaFormat* format, const char *name, int64_t *out) { in AMediaFormat_getInt64() argument
155 return format->mFormat->findInt64(name, out); in AMediaFormat_getInt64()
159 bool AMediaFormat_getFloat(AMediaFormat* format, const char *name, float *out) { in AMediaFormat_getFloat() argument
160 return format->mFormat->findFloat(name, out); in AMediaFormat_getFloat()
164 bool AMediaFormat_getDouble(AMediaFormat* format, const char *name, double *out) { in AMediaFormat_getDouble() argument
165 return format->mFormat->findDouble(name, out); in AMediaFormat_getDouble()
[all …]
/frameworks/av/media/libnbaio/include_mono/media/nbaio/
DNBAIO.h71 size_t Format_frameSize(const NBAIO_Format& format);
75 NBAIO_Format Format_from_SR_C(unsigned sampleRate, unsigned channelCount, audio_format_t format);
78 unsigned Format_sampleRate(const NBAIO_Format& format);
81 unsigned Format_channelCount(const NBAIO_Format& format);
88 bool Format_isValid(const NBAIO_Format& format);
128 virtual NBAIO_Format format() const { return mNegotiated ? mFormat : Format_Invalid; } in format() function
131 NBAIO_Port(const NBAIO_Format& format) : mNegotiated(false), mFormat(format), in NBAIO_Port() argument
132 mFrameSize(Format_frameSize(format)) { } in NBAIO_Port()
226 NBAIO_Sink(const NBAIO_Format& format = Format_Invalid) : NBAIO_Port(format), mFramesWritten(0) in NBAIO_Port() argument
324 NBAIO_Source(const NBAIO_Format& format = Format_Invalid) : NBAIO_Port(format), mFramesRead(0) in NBAIO_Port() argument
/frameworks/base/location/java/android/location/
DGnssMeasurementCorrections.java248 final String format = " %-29s = %s\n"; in toString() local
250 builder.append(String.format(format, "LatitudeDegrees = ", mLatitudeDegrees)); in toString()
251 builder.append(String.format(format, "LongitudeDegrees = ", mLongitudeDegrees)); in toString()
252 builder.append(String.format(format, "AltitudeMeters = ", mAltitudeMeters)); in toString()
253 builder.append(String.format(format, "HorizontalPositionUncertaintyMeters = ", in toString()
255 builder.append(String.format(format, "VerticalPositionUncertaintyMeters = ", in toString()
258 String.format(format, "ToaGpsNanosecondsOfWeek = ", mToaGpsNanosecondsOfWeek)); in toString()
260 String.format(format, "mSingleSatCorrectionList = ", mSingleSatCorrectionList)); in toString()
262 String.format(format, "HasEnvironmentBearing = ", mHasEnvironmentBearing)); in toString()
264 String.format(format, "EnvironmentBearingDegrees = ", in toString()
[all …]
DGnssSingleSatCorrection.java274 final String format = " %-29s = %s\n"; in toString() local
277 String.format(format, "SingleSatCorrectionFlags = ", mSingleSatCorrectionFlags)); in toString()
278 builder.append(String.format(format, "ConstellationType = ", mConstellationType)); in toString()
279 builder.append(String.format(format, "SatId = ", mSatId)); in toString()
280 builder.append(String.format(format, "CarrierFrequencyHz = ", mCarrierFrequencyHz)); in toString()
281 builder.append(String.format(format, "ProbSatIsLos = ", mProbSatIsLos)); in toString()
282 builder.append(String.format(format, "ExcessPathLengthMeters = ", mExcessPathLengthMeters)); in toString()
284 String.format( in toString()
285 format, in toString()
289 builder.append(String.format(format, "ReflectingPlane = ", mReflectingPlane)); in toString()
/frameworks/av/camera/ndk/impl/
DACameraMetadata.cpp182 int64_t format = entry.data.i64[i + STREAM_FORMAT_OFFSET]; in filterDurations() local
189 filteredDurations.push_back(format); in filterDurations()
198 if (format == HAL_PIXEL_FORMAT_BLOB) { in filterDurations()
199 format = AIMAGE_FORMAT_JPEG; in filterDurations()
200 filteredDurations.push_back(format); in filterDurations()
208 if (format == HAL_PIXEL_FORMAT_BLOB) { in filterDurations()
209 format = AIMAGE_FORMAT_DEPTH_POINT_CLOUD; in filterDurations()
210 filteredDurations.push_back(format); in filterDurations()
214 } else if (format == HAL_PIXEL_FORMAT_Y16) { in filterDurations()
215 format = AIMAGE_FORMAT_DEPTH16; in filterDurations()
[all …]
/frameworks/base/startop/iorap/src/com/google/android/startop/iorap/
DEventSequenceValidator.java118 String.format("Cannot transition from %s to %s", state, State.INTENT_STARTED)); in onIntentStarted()
124 Log.i(TAG, String.format("Transition from %s to %s", state, State.INTENT_STARTED)); in onIntentStarted()
137 String.format("Cannot transition from %s to %s", state, State.INTENT_FAILED)); in onIntentFailed()
142 Log.i(TAG, String.format("Transition from %s to %s", state, State.INTENT_FAILED)); in onIntentFailed()
155 String.format("Cannot transition from %s to %s", state, State.ACTIVITY_LAUNCHED)); in onActivityLaunched()
160 Log.i(TAG, String.format("Transition from %s to %s", state, State.ACTIVITY_LAUNCHED)); in onActivityLaunched()
173 String.format("Cannot transition from %s to %s", state, State.ACTIVITY_CANCELLED)); in onActivityLaunchCancelled()
178 Log.i(TAG, String.format("Transition from %s to %s", state, State.ACTIVITY_CANCELLED)); in onActivityLaunchCancelled()
193 String.format("Cannot transition from %s to %s", state, State.ACTIVITY_FINISHED)); in onActivityLaunchFinished()
198 Log.i(TAG, String.format("Transition from %s to %s", state, State.ACTIVITY_FINISHED)); in onActivityLaunchFinished()
[all …]
/frameworks/native/libs/vr/libbufferhub/
Dion_buffer.cpp20 IonBuffer::IonBuffer(uint32_t width, uint32_t height, uint32_t format, in IonBuffer() argument
23 Alloc(width, height, kDefaultGraphicBufferLayerCount, format, usage); in IonBuffer()
27 uint32_t stride, uint32_t format, uint64_t usage) in IonBuffer() argument
29 format, usage) {} in IonBuffer()
32 uint32_t layer_count, uint32_t stride, uint32_t format, in IonBuffer() argument
38 handle, width, height, layer_count, stride, format, usage); in IonBuffer()
40 Import(handle, width, height, layer_count, stride, format, usage); in IonBuffer()
48 handle(), width(), height(), stride(), format(), usage()); in ~IonBuffer()
75 uint32_t format, uint64_t usage) { in Alloc() argument
78 "usage=%" PRIx64, width, height, layer_count, format, usage); in Alloc()
[all …]
/frameworks/av/services/audiopolicy/engineconfigurable/tools/
DbuildPolicyCriterionTypes.py73 format. Mandatory.",
90 logging.info("Importing criterionTypesFile {}".format(criterionTypesFile))
139 logging.info("Checking Audio Policy Configuration file {}".format(audiopolicyconfigurationfile))
169 logging.info("{}: <{}>".format(key, device.get('address')))
174 logging.info("{}: <{}>".format(criteria, values))
213 logging.info("Checking Android Header file {}".format(androidaudiobaseheaderFile))
218 logging.debug("The following line is VALID: {}:{}\n{}".format(
236 .format(criterion_numerical_value, criterion_literal, criterion_name))
244 logging.info("OutputDevicesMaskType skipping {}".format(criterion_literal))
251 .format(criterion_numerical_value, criterion_literal, criterion_name))
[all …]

12345678910>>...82