Searched refs:format (Results 276 - 300 of 1700) sorted by path

<<11121314151617181920>>

/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DAudioPort.cpp137 // Import only valid port, i.e. valid format, non empty rates and channels masks
233 /* format in order of increasing preference */
246 // compressed format and better than any PCM format. This is by design of pickFormat()
301 audio_format_t &format) const
303 format = AUDIO_FORMAT_DEFAULT;
312 // For mixed output and inputs, use best mixer output format.
313 // Do not limit format otherwise
323 if ((compareFormats(formatToCompare, format) > 0) &&
332 format
[all...]
H A DAudioProfile.cpp32 audio_format_t format) const
34 if (audio_formats_match(format, mFormat) &&
191 snprintf(buffer, SIZE, "%s%s%s\n", mIsDynamicFormat ? "[dynamic format]" : "",
201 snprintf(buffer, SIZE, "%*s- format: %s\n", spaces, "", formatLiteral.c_str());
230 audio_format_t format) const
238 if (profile->checkExact(samplingRate, channelMask, format) == NO_ERROR) {
247 audio_format_t &format,
255 const bool checkInexact = // when port is input and format is linear pcm
257 && audio_is_linear_pcm(format);
259 // iterate from best format t
245 checkCompatibleProfile(uint32_t &samplingRate, audio_channel_mask_t &channelMask, audio_format_t &format, audio_port_type_t portType, audio_port_role_t portRole) const argument
[all...]
H A DAudioSession.cpp33 audio_format_t format,
42 mConfig({ .format = format, .sample_rate = sampleRate, .channel_mask = channelMask}),
107 other->format() == mConfig.format &&
152 snprintf(buffer, SIZE, "%*s- format: %08x\n", spaces, "", mConfig.format);
31 AudioSession(audio_session_t session, audio_source_t inputSource, audio_format_t format, uint32_t sampleRate, audio_channel_mask_t channelMask, audio_input_flags_t flags, uid_t uid, bool isSoundTrigger, AudioMix* policyMix, AudioPolicyClientInterface *clientInterface) argument
H A DHwModule.cpp50 profile->addAudioProfile(new AudioProfile(config->format, config->channel_mask,
112 profile->addAudioProfile(new AudioProfile(config->format, config->channel_mask,
H A DIOProfile.cpp28 // Sampling rate, format and channel mask must be specified in order to
34 audio_format_t format,
58 if (!audio_is_valid_format(format) ||
64 audio_format_t myUpdatedFormat = format;
74 if (checkExactAudioProfile(samplingRate, channelMask, format) != NO_ERROR) {
30 isCompatibleProfile(audio_devices_t device, const String8& address, uint32_t samplingRate, uint32_t *updatedSamplingRate, audio_format_t format, audio_format_t *updatedFormat, audio_channel_mask_t channelMask, audio_channel_mask_t *updatedChannelMask, uint32_t flags) const argument
H A DSerializer.cpp192 const char AudioProfileTraits::Attributes::format[] = "format"; member in class:android::AudioProfileTraits::Attributes
199 string format = getXmlAttribute(root, Attributes::format); local
202 profile = new Element(formatFromString(format, gDynamicFormat),
/frameworks/av/services/audiopolicy/managerdefault/
H A DAudioPolicyManager.cpp710 audio_format_t format,
732 format, NULL /*updatedFormat*/,
756 audio_format_t format,
763 ALOGV("getOutput() device %d, stream %d, samplingRate %d, format %x, channelMask %x, flags %x",
764 device, stream, samplingRate, format, channelMask, flags);
766 return getOutputForDevice(device, AUDIO_SESSION_ALLOCATE, stream, samplingRate, format,
805 if (!audio_has_proportional_frames(config->format)) {
844 ALOGV("getOutputForAttr() device 0x%x, samplingRate %d, format %x, channelMask %x, flags %x",
845 device, config->sample_rate, config->format, config->channel_mask, flags);
848 config->sample_rate, config->format, confi
707 getProfileForDirectOutput( audio_devices_t device, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags) argument
754 getOutput(audio_stream_type_t stream, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags, const audio_offload_info_t *offloadInfo) argument
864 getOutputForDevice( audio_devices_t device, audio_session_t session, audio_stream_type_t stream, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags, const audio_offload_info_t *offloadInfo) argument
1103 selectOutput(const SortedVector<audio_io_handle_t>& outputs, audio_output_flags_t flags, audio_format_t format) argument
1640 getInputForDevice(audio_devices_t device, String8 address, audio_session_t session, uid_t uid, audio_source_t inputSource, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_input_flags_t flags, AudioMix *policyMix) argument
3918 int format = AUDIO_FORMAT_INVALID; local
3931 outputParam.addInt(String8(AudioParameter::keyStreamSupportedFormats), format); local
5289 getInputProfile(audio_devices_t device, const String8& address, uint32_t& samplingRate, audio_format_t& format, audio_channel_mask_t& channelMask, audio_input_flags_t flags) argument
5790 audio_format_t format = formats[formatIndex]; local
5814 audio_format_t format = formats[formatIndex]; local
5922 audio_format_t format = supportedFormats[formatIndex]; local
5926 requestedParameters.addInt(String8(AudioParameter::keyFormat), format); local
[all...]
H A DAudioPolicyManager.h108 audio_format_t format,
443 audio_format_t format);
444 // samplingRate, format, channelMask are in/out and so may be modified
448 audio_format_t& format,
453 audio_format_t format,
628 // internal method to return the output handle for the given device and format
634 audio_format_t format,
638 // internal method to return the input handle for the given device and format
645 audio_format_t format,
/frameworks/av/services/audiopolicy/service/
H A DAudioPolicyInterfaceImpl.cpp146 audio_format_t format,
160 format, channelMask, flags, offloadInfo);
144 getOutput(audio_stream_type_t stream, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags, const audio_offload_info_t *offloadInfo) argument
H A DAudioPolicyService.h73 audio_format_t format = AUDIO_FORMAT_DEFAULT,
/frameworks/av/services/camera/libcameraservice/
H A DCameraFlashlight.cpp223 if (hasFlashUnitLocked(String8::format("%d", i))) {
225 String8::format("%d", i).string(),
268 if (hasFlashUnitLocked(String8::format("%d", i))) {
270 String8::format("%d", i).string(),
493 int32_t format = HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED; local
498 res = mSurfaceTexture->setDefaultBufferFormat(format);
H A DCameraService.cpp97 String8::format("%s:%d: %s", __FUNCTION__, __LINE__, errorString))
101 String8::format("%s:%d: " errorString, __FUNCTION__, __LINE__, \
113 String8 id = String8::format("%d", camera_id);
330 logDeviceRemoved(id, String8::format("Device status changed from %d to %d", oldStatus,
364 logDeviceAdded(id, String8::format("Device status changed from %d to %d", oldStatus,
748 String8 id = String8::format("%d", cameraId);
775 String8 id = String8::format("%d", cameraId);
1088 String8 msg = String8::format("%s : DENIED connect device %s client for package %s "
1131 logEvent(String8::format("EVICT device %s client held by package %s (PID"
1205 String8 id = String8::format("
[all...]
/frameworks/av/services/camera/libcameraservice/api1/
H A DCamera2Client.cpp59 String8::format("%d", cameraId), cameraFacing,
117 threadName = String8::format("C2-%d-StreamProc",
121 threadName = String8::format("C2-%d-FrameProc",
126 threadName = String8::format("C2-%d-CaptureSeq",
131 threadName = String8::format("C2-%d-JpegProc",
137 threadName = String8::format("C2-%d-ZslProc",
142 threadName = String8::format("C2-%d-CallbkProc",
189 result.appendFormat(" Preview HAL pixel format: 0x%x\n",
2042 int format, int stride) {
2043 switch (format) {
2041 calculateBufferSize(int width, int height, int format, int stride) argument
2171 int format; local
[all...]
H A DCamera2Client.h142 int format, int stride);
182 status_t commandSetVideoFormatL(int format, android_dataspace dataSpace);
H A DCameraClient.cpp45 String8::format("%d", cameraId), cameraFacing, clientPid,
808 String8 cameraId = String8::format("%d", (int)(intptr_t) user);
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DCallbackProcessor.cpp98 // If possible, use the flexible YUV format
101 // TODO: etalvala: This should use the flexible YUV format as well, but
152 ALOGV("Creating callback stream: %d x %d, format 0x%x, API format 0x%x",
334 if (imgBuffer.format != expectedFormat) {
335 ALOGE("%s: Camera %d: Unexpected format for callback: "
337 imgBuffer.format, expectedFormat);
359 "Unexpected preview format 0x%x", previewFormat);
411 // Can just memcpy when HAL format matches API format
[all...]
H A DCaptureSequencer.cpp163 result = String8::format(" Current capture state: %s\n",
H A DJpegProcessor.cpp270 if (imgBuffer.format != HAL_PIXEL_FORMAT_BLOB) {
271 ALOGE("%s: Camera %d: Unexpected format for still image: "
273 imgBuffer.format,
311 * (JPEG is the image compression algorithm, actual file format is called JFIF)
328 * This can be considered an opaque format with one requirement: all 0xFF bytes
H A DParameters.cpp123 String8::format("%dx%d",
129 supportedPreviewSizes += String8::format("%dx%d",
140 supportedVideoSizes += String8::format("%dx%d",
208 ALOGW("%s: Camera %d: Unknown preview format: %x",
234 String8::format("%d,%d",
246 supportedPreviewFpsRange += String8::format("(%d,%d)",
278 supportedPreviewFrameRates += String8::format("%d",
305 supportedPictureSizes += String8::format("%dx%d",
342 supportedJpegThumbSizes += String8::format("%dx%d",
859 zoomRatios += String8::format("
2392 formatStringToEnum(const char *format) argument
2396 formatEnumToString(int format) argument
2925 int32_t format = availableStreamConfigs.data.i32[i + STREAM_FORMAT_OFFSET]; local
2948 int64_t format = availableStreamMinDurations.data.i64[i + STREAM_FORMAT_OFFSET]; local
2960 isFpsSupported(const Vector<Size> &sizes, int format, int32_t fps) argument
[all...]
H A DParameters.h39 * format, plus other state). The enum values are mostly based off the
313 static int formatStringToEnum(const char *format);
314 static const char *formatEnumToString(int format);
394 int32_t format; member in struct:android::camera2::Parameters::StreamConfiguration
409 // Helper function to get minimum frame duration for a size/format combination
410 // return -1 if input size/format combination cannot be found.
411 int64_t getMinFrameDurationNs(Parameters::Size size, int format);
414 // the same format.
416 bool isFpsSupported(const Vector<Size> &size, int format, int32_t fps);
H A DStreamingProcessor.cpp606 result.append(String8::format(" Active request: %s (paused: %s)\n",
H A DZslProcessor.cpp779 String8::format(" %zu: b: %" PRId64 "\tf: %" PRId64 ", AE state: %d", i,
/frameworks/av/services/camera/libcameraservice/api2/
H A DCameraDeviceClient.cpp35 String8::format("%s:%d: %s", __FUNCTION__, __LINE__, errorString))
39 String8::format("%s:%d: " errorString, __FUNCTION__, __LINE__, \
101 threadName = String8::format("CDU-%s-FrameProc", mCameraIdStr.string());
245 String8 msg = String8::format(
259 String8 msg = String8::format(
293 String8 msg = String8::format("Camera %s: Canceling request ID %d doesn't match "
337 String8 msg = String8::format(
358 String8 msg = String8::format(
369 String8 msg = String8::format("Camera %s: Unsupported set of inputs/outputs provided",
374 String8 msg = String8::format("Camer
572 int width, height, format, surfaceType; local
652 createInputStream( int width, int height, int format, int32_t* newStreamId) argument
724 isPublicFormat(int32_t format) argument
794 int width, height, format; local
887 roundBufferDimensionNearest(int32_t width, int32_t height, int32_t format, android_dataspace dataSpace, const CameraMetadata& info, int32_t* outWidth, int32_t* outHeight) argument
[all...]
H A DCameraDeviceClient.h96 // Create an input stream of width, height, and format.
97 virtual binder::Status createInputStream(int width, int height, int format,
214 int format; member in class:android::CameraDeviceClient::OutputStreamInfo
219 width(-1), height(-1), format(-1), dataSpace(HAL_DATASPACE_UNKNOWN),
223 width(_width), height(_height), format(_format),
255 // Find the closest dimensions for a given format in available stream configurations with
258 static bool roundBufferDimensionNearest(int32_t width, int32_t height, int32_t format,
262 //check if format is not custom format
263 static bool isPublicFormat(int32_t format);
277 int32_t format; member in struct:android::CameraDeviceClient::InputStreamConfiguration
[all...]
/frameworks/av/services/camera/libcameraservice/common/
H A DCamera2ClientBase.cpp167 result = String8::format(" Error dumping device: %s (%d)",

Completed in 235 milliseconds

<<11121314151617181920>>