Searched defs:format (Results 1 - 25 of 378) sorted by path

1234567891011>>

/frameworks/av/camera/
H A DCameraParameters.cpp30 const char CameraParameters::KEY_PREVIEW_FORMAT[] = "preview-format";
31 const char CameraParameters::KEY_SUPPORTED_PREVIEW_FORMATS[] = "preview-format-values";
38 const char CameraParameters::KEY_PICTURE_FORMAT[] = "picture-format";
39 const char CameraParameters::KEY_SUPPORTED_PICTURE_FORMATS[] = "picture-format-values";
84 const char CameraParameters::KEY_VIDEO_FRAME_FORMAT[] = "video-frame-format";
416 void CameraParameters::setPreviewFormat(const char *format) argument
418 set(KEY_PREVIEW_FORMAT, format);
448 void CameraParameters::setPictureFormat(const char *format) argument
450 set(KEY_PICTURE_FORMAT, format);
512 int CameraParameters::previewFormatToEnum(const char* format) { argument
[all...]
/frameworks/av/camera/camera2/
H A DICameraDeviceUser.cpp234 virtual status_t createInputStream(int width, int height, int format) argument
240 data.writeInt32(format);
492 int width, height, format; local
496 format = data.readInt32();
497 status_t ret = createInputStream(width, height, format);
/frameworks/av/cmds/screenrecord/
H A DOverlay.cpp239 String8 timeStr(String8::format("%s f=%" PRId64 " (%zd)",
258 //const char* format = "%m-%d %T"; // matches log output
259 const char* format = "%T"; local
268 strftime(buf, bufLen, format, &tm);
361 String8::format("Android screenrecord v%d.%d",
383 String8 str(String8::format("%s: [%s]", kPropertyNames[i], valueBuf));
H A Dscreenrecord.cpp73 } gOutputFormat = FORMAT_MP4; // data format for output
157 sp<AMessage> format = new AMessage; local
158 format->setInt32("width", gVideoWidth);
159 format->setInt32("height", gVideoHeight);
160 format->setString("mime", kMimeTypeAvc);
161 format->setInt32("color-format", OMX_COLOR_FormatAndroidOpaque);
162 format->setInt32("bitrate", gBitRate);
163 format->setFloat("frame-rate", displayFps);
164 format
[all...]
/frameworks/av/cmds/stagefright/
H A DSimplePlayer.cpp292 sp<AMessage> format; local
293 status_t err = mExtractor->getTrackFormat(i, &format);
297 CHECK(format->findString("mime", &mime));
323 format,
332 while (format->findBuffer(AStringPrintf("csd-%d", j).c_str(), &buffer)) {
570 sp<AMessage> format; local
571 status_t err = state->mCodec->getOutputFormat(&format);
578 CHECK(format->findString("mime", &mime));
583 CHECK(format->findInt32("channel-count", &channelCount));
584 CHECK(format
[all...]
H A Dcodec.cpp93 sp<AMessage> format; local
94 status_t err = extractor->getTrackFormat(i, &format);
98 CHECK(format->findString("mime", &mime));
129 format, isVideo ? surface : NULL,
298 sp<AMessage> format; local
299 CHECK_EQ((status_t)OK, state->mCodec->getOutputFormat(&format));
301 ALOGV("INFO_FORMAT_CHANGED: %s", format->debugString().c_str());
H A Dmediafilter.cpp202 && srcFormat->findInt32("color-format", &srcColorFormat));
207 && destFormat->findInt32("color-format", &destColorFormat));
332 sp<AMessage> format; local
333 status_t err = extractor->getTrackFormat(i, &format);
337 CHECK(format->findString("mime", &mime));
361 format, NULL /* surface */, NULL /* crypto */, 0 /* flags */);
376 vidFormat->setInt32("color-format", OMX_COLOR_Format32bitARGB8888);
462 vidFormat /* format */, surface, NULL /* crypto */, 0 /* flags */);
618 sp<AMessage> format; local
619 CHECK_EQ((status_t)OK, state->mCodec->getOutputFormat(&format));
[all...]
H A Dmuxer.cpp101 sp<AMessage> format; local
102 status_t err = extractor->getTrackFormat(i, &format);
104 ALOGV("extractor getTrackFormat: %s", format->debugString().c_str());
107 CHECK(format->findString("mime", &mime));
122 CHECK(format->findInt32("width", &width));
123 CHECK(format->findInt32("height", &height));
128 CHECK(format->findInt64("durationUs", &duration));
144 ssize_t newTrackIndex = muxer->addTrack(format);
H A Dsf2.cpp154 sp<AMessage> format = makeFormat(mSource->getFormat()); local
157 format->setObject("surface", mSurface);
160 mCodec->initiateSetup(format);
/frameworks/av/include/media/
H A DAudioPolicy.h78 AudioMix(Vector<AttributeMatchCriterion> criteria, uint32_t mixType, audio_config_t format, argument
80 mCriteria(criteria), mMixType(mixType), mFormat(format),
H A DAudioRecord.h118 audio_format_t format,
147 * format: Audio format (e.g AUDIO_FORMAT_PCM_16_BIT for signed
171 audio_format_t format,
198 * - BAD_VALUE: invalid parameter (channelMask, format, sampleRate...)
209 audio_format_t format,
238 audio_format_t format() const { return mFormat; } function in class:android::AudioRecord
H A DAudioTrack.h170 * format: Audio format. For mixed tracks, any PCM format supported by server is OK.
171 * For direct and offloaded tracks, the possible format(s) depends on the
205 audio_format_t format,
234 audio_format_t format,
262 * - BAD_VALUE: invalid parameter (channelMask, format, sampleRate...)
277 audio_format_t format,
310 audio_format_t format() const { return mFormat; } function in class:android::AudioTrack
314 * channelCount is determined from channelMask, and bit depth comes from format
[all...]
/frameworks/av/include/media/nbaio/
H A DNBAIO.h38 NEGOTIATE = 0x80000010, // Must (re-)negotiate format. For negotiate() only, the offeree
47 // Negotiation of format is based on the data provider and data sink, or the data consumer and
51 // attributes, rather than a struct with separate fields for format, sample rate, channel count,
68 size_t Format_frameSize(const NBAIO_Format& format);
72 NBAIO_Format Format_from_SR_C(unsigned sampleRate, unsigned channelCount, audio_format_t format);
75 unsigned Format_sampleRate(const NBAIO_Format& format);
78 unsigned Format_channelCount(const NBAIO_Format& format);
86 bool Format_isValid(const NBAIO_Format& format);
124 // Return the current negotiated format, or Format_Invalid if negotiation has not been done,
126 virtual NBAIO_Format format() cons function in class:android::NBAIO_Port
129 NBAIO_Port(const NBAIO_Format& format) argument
[all...]
/frameworks/av/media/libeffects/lvm/lib/Reverb/src/
H A DLVREV_Process.c58 LVM_INT32 format = 1; local
125 format = 2;
147 pInput = (LVM_INT32 *)(pInput +(SamplesToProcess*format));
/frameworks/av/media/libmedia/
H A DAudioRecord.cpp39 audio_format_t format,
47 status_t status = AudioSystem::getInputBufferSize(sampleRate, format, channelMask, &size);
49 ALOGE("AudioSystem could not query the input buffer size for sampleRate %u, format %#x, "
50 "channelMask %#x; status %d", sampleRate, format, channelMask, status);
55 // Assumes audio_is_linear_pcm(format)
57 audio_bytes_per_sample(format))) == 0) {
58 ALOGE("Unsupported configuration: sampleRate %u, format %#x, channelMask %#x",
59 sampleRate, format, channelMask);
78 audio_format_t format,
99 mStatus = set(inputSource, sampleRate, format, channelMas
36 getMinFrameCount( size_t* frameCount, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask) argument
75 AudioRecord( audio_source_t inputSource, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, const String16& opPackageName, size_t frameCount, callback_t cbf, void* user, uint32_t notificationFrames, int sessionId, transfer_type transferType, audio_input_flags_t flags, int uid, pid_t pid, const audio_attributes_t* pAttributes) argument
132 set( audio_source_t inputSource, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, callback_t cbf, void* user, uint32_t notificationFrames, bool threadCanCallJava, int sessionId, transfer_type transferType, audio_input_flags_t flags, int uid, pid_t pid, const audio_attributes_t* pAttributes) argument
[all...]
H A DAudioSystem.cpp359 status_t AudioSystem::getInputBufferSize(uint32_t sampleRate, audio_format_t format, argument
366 return afc->getInputBufferSize(sampleRate, format, channelMask, buffSize);
494 ALOGV("ioConfigChanged() new %s opened %d samplingRate %u, format %#x channel mask %#x "
531 ALOGV("ioConfigChanged() new config for %s %d samplingRate %u, format %#x "
547 uint32_t sampleRate, audio_format_t format,
556 if ((mInBuffSize == 0) || (sampleRate != mInSamplingRate) || (format != mInFormat)
558 size_t inBuffSize = af->getInputBufferSize(sampleRate, format, channelMask);
560 ALOGE("AudioSystem::getInputBufferSize failed sampleRate %d format %#x channelMask %x",
561 sampleRate, format, channelMask);
567 mInFormat = format;
546 getInputBufferSize( uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t* buffSize) argument
744 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
756 getOutputForAttr(const audio_attributes_t *attr, audio_io_handle_t *output, audio_session_t session, audio_stream_type_t *stream, uid_t uid, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags, audio_port_handle_t selectedDeviceId, const audio_offload_info_t *offloadInfo) argument
802 getInputForAttr(const audio_attributes_t *attr, audio_io_handle_t *input, audio_session_t session, uid_t uid, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_input_flags_t flags, audio_port_handle_t selectedDeviceId) argument
[all...]
H A DAudioTrack.cpp119 // audio_format_t format
181 audio_format_t format,
202 mStatus = set(streamType, sampleRate, format, channelMask,
211 audio_format_t format,
232 mStatus = set(streamType, sampleRate, format, channelMask,
269 audio_format_t format,
286 ALOGV("set(): streamType %d, sampleRate %u, format %#x, channelMask %#x, frameCount %zu, "
288 streamType, sampleRate, format, channelMask, frameCount, flags, notificationFrames,
362 if (format == AUDIO_FORMAT_DEFAULT) {
363 format
178 AudioTrack( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, audio_output_flags_t flags, callback_t cbf, void* user, uint32_t notificationFrames, int sessionId, transfer_type transferType, const audio_offload_info_t *offloadInfo, int uid, pid_t pid, const audio_attributes_t* pAttributes, bool doNotReconnect) argument
208 AudioTrack( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, const sp<IMemory>& sharedBuffer, audio_output_flags_t flags, callback_t cbf, void* user, uint32_t notificationFrames, int sessionId, transfer_type transferType, const audio_offload_info_t *offloadInfo, int uid, pid_t pid, const audio_attributes_t* pAttributes, bool doNotReconnect) argument
266 set( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, audio_output_flags_t flags, callback_t cbf, void* user, uint32_t notificationFrames, const sp<IMemory>& sharedBuffer, bool threadCanCallJava, int sessionId, transfer_type transferType, const audio_offload_info_t *offloadInfo, int uid, pid_t pid, const audio_attributes_t* pAttributes, bool doNotReconnect) argument
[all...]
H A DIAudioFlinger.cpp100 audio_format_t format,
116 data.writeInt32(format);
176 audio_format_t format,
194 data.writeInt32(format);
277 virtual audio_format_t format(audio_io_handle_t output) const function in class:android::BpAudioFlinger
433 virtual size_t getInputBufferSize(uint32_t sampleRate, audio_format_t format, argument
439 data.writeInt32(format);
927 audio_format_t format = (audio_format_t) data.readInt32(); local
948 (audio_stream_type_t) streamType, sampleRate, format,
964 audio_format_t format local
97 createTrack( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t *pFrameCount, track_flags_t *flags, const sp<IMemory>& sharedBuffer, audio_io_handle_t output, pid_t tid, int *sessionId, int clientUid, status_t *status) argument
173 openRecord( audio_io_handle_t input, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, const String16& opPackageName, size_t *pFrameCount, track_flags_t *flags, pid_t tid, int clientUid, int *sessionId, size_t *notificationFrames, sp<IMemory>& cblk, sp<IMemory>& buffers, status_t *status) argument
1099 audio_format_t format = (audio_format_t) data.readInt32(); local
[all...]
H A DIAudioPolicyService.cpp148 audio_format_t format,
157 data.writeInt32(static_cast <uint32_t>(format));
177 audio_format_t format,
214 data.writeInt32(static_cast <uint32_t>(format));
283 audio_format_t format,
302 data.writeInt32(static_cast <uint32_t>(format));
836 audio_format_t format = (audio_format_t) data.readInt32(); local
847 format,
870 audio_format_t format = (audio_format_t) data.readInt32(); local
883 samplingRate, format, channelMas
145 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
171 getOutputForAttr(const audio_attributes_t *attr, audio_io_handle_t *output, audio_session_t session, audio_stream_type_t *stream, uid_t uid, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags, audio_port_handle_t selectedDeviceId, const audio_offload_info_t *offloadInfo) argument
278 getInputForAttr(const audio_attributes_t *attr, audio_io_handle_t *input, audio_session_t session, uid_t uid, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_input_flags_t flags, audio_port_handle_t selectedDeviceId) argument
931 audio_format_t format = (audio_format_t) data.readInt32(); local
[all...]
H A DMediaProfiles.cpp301 const int format = findTagForName(sFileFormatMap, nMappings, atts[1]); local
302 CHECK(format != -1);
304 return static_cast<output_format>(format);
1016 if (!strcmp("file.format", name)) return mCamcorderProfiles[index]->mFileFormat;
/frameworks/av/media/libmediaplayerservice/
H A DMediaPlayerService.cpp102 // Filter format in a parcel:
201 // Audio attributes format in a parcel:
1535 audio_format_t format, int bufferCount,
1543 format, bufferCount, mSessionId, flags);
1622 } else if (mRecycledTrack->format() != format) {
1654 format,
1672 format,
1979 // by another player, but the format turned out to be incompatible.
1533 open( uint32_t sampleRate, int channelCount, audio_channel_mask_t channelMask, audio_format_t format, int bufferCount, AudioCallback cb, void *cookie, audio_output_flags_t flags, const audio_offload_info_t *offloadInfo, bool doNotReconnect, uint32_t suggestedFrameCount) argument
H A DStagefrightRecorder.cpp149 ALOGE("Invalid output format: %d", of);
817 ALOGE("Unsupported output file format: %d", mOutputFormat);
882 ALOGE("Unsupported output file format: %d", mOutputFormat);
945 sp<AMessage> format = new AMessage; local
949 format->setString("mime", MEDIA_MIMETYPE_AUDIO_AMR_NB);
952 format->setString("mime", MEDIA_MIMETYPE_AUDIO_AMR_WB);
955 format->setString("mime", MEDIA_MIMETYPE_AUDIO_AAC);
956 format->setInt32("aac-profile", OMX_AUDIO_AACObjectLC);
959 format->setString("mime", MEDIA_MIMETYPE_AUDIO_AAC);
960 format
1495 sp<AMessage> format = new AMessage(); local
[all...]
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DGenericSource.cpp950 void *format; local
953 CHECK(response->findPointer("format", &format));
954 return (MetaData *)format;
965 sp<MetaData> format = doGetFormatMeta(audio); local
966 response->setPointer("format", format.get());
1069 sp<AMessage> format = new AMessage(); local
1074 format->setString("mime", mime);
1086 format
[all...]
H A DHTTPLiveSource.cpp108 sp<AMessage> format; local
112 &format);
118 return format;
292 sp<AMessage> format = getFormat(false /* audio */); local
295 if (format != NULL &&
296 format->findInt32("width", &width) && format->findInt32("height", &height)) {
297 notifyVideoSizeChanged(format);
H A DNuPlayer.cpp423 Parcel* reply, const sp<AMessage> format) const {
425 CHECK(format->findInt32("type", &trackType));
428 if (!format->findString("mime", &mime)) {
443 CHECK(format->findString("language", &lang));
452 CHECK(format->findInt32("auto", &isAuto));
453 CHECK(format->findInt32("default", &isDefault));
454 CHECK(format->findInt32("forced", &isForced));
945 sp<AMessage> format; local
946 CHECK(msg->findMessage("format", &format));
1438 tryOpenAudioSinkForOffload(const sp<AMessage> &format, bool hasVideo) argument
1480 sp<AMessage> format = mSource->getFormat(true /*audio*/); local
1497 sp<AMessage> format = mSource->getFormat(audio); local
2083 sp<AMessage> format; local
2340 notifyVideoSizeChanged(const sp<AMessage> &format) argument
[all...]

Completed in 231 milliseconds

1234567891011>>