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

12345678910

/frameworks/av/camera/
H A DCameraParameters.cpp29 const char CameraParameters::KEY_PREVIEW_FORMAT[] = "preview-format";
30 const char CameraParameters::KEY_SUPPORTED_PREVIEW_FORMATS[] = "preview-format-values";
37 const char CameraParameters::KEY_PICTURE_FORMAT[] = "picture-format";
38 const char CameraParameters::KEY_SUPPORTED_PICTURE_FORMATS[] = "picture-format-values";
83 const char CameraParameters::KEY_VIDEO_FRAME_FORMAT[] = "video-frame-format";
410 void CameraParameters::setPreviewFormat(const char *format) argument
412 set(KEY_PREVIEW_FORMAT, format);
442 void CameraParameters::setPictureFormat(const char *format) argument
444 set(KEY_PICTURE_FORMAT, format);
/frameworks/av/cmds/stagefright/
H A DSimplePlayer.cpp293 sp<AMessage> format; local
294 status_t err = mExtractor->getTrackFormat(i, &format);
298 CHECK(format->findString("mime", &mime));
322 format,
331 while (format->findBuffer(StringPrintf("csd-%d", j).c_str(), &buffer)) {
569 sp<AMessage> format; local
570 status_t err = state->mCodec->getOutputFormat(&format);
577 CHECK(format->findString("mime", &mime));
582 CHECK(format->findInt32("channel-count", &channelCount));
583 CHECK(format
[all...]
H A Dcodec.cpp87 sp<AMessage> format; local
88 status_t err = extractor->getTrackFormat(i, &format);
92 CHECK(format->findString("mime", &mime));
123 format, isVideo ? surface : NULL,
275 sp<AMessage> format; local
276 CHECK_EQ((status_t)OK, state->mCodec->getOutputFormat(&format));
278 ALOGV("INFO_FORMAT_CHANGED: %s", format->debugString().c_str());
H A Dsf2.cpp110 sp<AMessage> format = makeFormat(mSource->getFormat()); local
113 format->setObject(
117 mCodec->initiateSetup(format);
/frameworks/av/include/media/
H A DAudioRecord.h65 audio_format_t format; member in class:android::AudioRecord::Buffer
103 audio_format_t format,
120 * format: Audio format (e.g AUDIO_FORMAT_PCM_16_BIT for signed
135 audio_format_t format = AUDIO_FORMAT_DEFAULT,
154 * - BAD_VALUE: invalid parameter (channels, format, sampleRate...)
160 audio_format_t format = AUDIO_FORMAT_DEFAULT,
185 audio_format_t format() const;
345 audio_format_t format,
H A DAudioSystem.h115 static status_t getInputBufferSize(uint32_t sampleRate, audio_format_t format,
155 : samplingRate(0), format(AUDIO_FORMAT_DEFAULT), channels(0), frameCount(0), latency(0) {}
158 int32_t format; member in class:android::AudioSystem::OutputDescriptor
193 audio_format_t format = AUDIO_FORMAT_DEFAULT,
205 audio_format_t format = AUDIO_FORMAT_DEFAULT,
H A DAudioTrack.h73 audio_format_t format; // but AUDIO_FORMAT_PCM_8_BIT -> AUDIO_FORMAT_PCM_16_BIT member in class:android::AudioTrack::Buffer
136 * format: Audio format (e.g AUDIO_FORMAT_PCM_16_BIT for signed
156 audio_format_t format = AUDIO_FORMAT_DEFAULT,
168 int format = AUDIO_FORMAT_DEFAULT,
188 audio_format_t format = AUDIO_FORMAT_DEFAULT,
207 * - BAD_VALUE: invalid parameter (channelMask, format, sampleRate...)
212 audio_format_t format = AUDIO_FORMAT_DEFAULT,
240 audio_format_t format() const;
245 * channelCount is determined from channelMask, and bit depth comes from format
[all...]
H A DSoundPool.h59 audio_format_t format() { return mFormat; } function in class:android::Sample
68 void init(int numChannels, int sampleRate, audio_format_t format, size_t size, sp<IMemory> data ) { argument
69 mNumChannels = numChannels; mSampleRate = sampleRate; mFormat = format; mSize = size; mData = data; }
/frameworks/av/include/media/nbaio/
H A DNBAIO.h36 NEGOTIATE = 0x80000010, // Must (re-)negotiate format. For negotiate() only, the offeree
45 // Negotiation of format is based on the data provider and data sink, or the data consumer and
49 // attributes, rather than a struct with separate fields for format, sample rate, channel count,
62 size_t Format_frameSize(NBAIO_Format format);
65 size_t Format_frameBitShift(NBAIO_Format format);
71 unsigned Format_sampleRate(NBAIO_Format format);
74 unsigned Format_channelCount(NBAIO_Format format);
114 // Return the current negotiated format, or Format_Invalid if negotiation has not been done,
116 virtual NBAIO_Format format() const { return mNegotiated ? mFormat : Format_Invalid; } function in class:android::NBAIO_Port
119 NBAIO_Port(NBAIO_Format format) argument
[all...]
/frameworks/av/libvideoeditor/lvpp/
H A DVideoEditorAudioPlayer.cpp483 // updated format, if there isn't, we'll stash away the valid buffer
499 sp<MetaData> format = mSource->getFormat(); local
501 bool success = format->findCString(kKeyMIMEType, &mime);
505 success = format->findInt32(kKeySampleRate, &mSampleRate);
509 success = format->findInt32(kKeyChannelCount, &numChannels);
H A DVideoEditorPlayer.cpp394 audio_format_t format, int bufferCount,
407 ALOGV("open(%u, %d, %d, %d)", sampleRate, channelCount, format, bufferCount);
442 format,
452 format,
392 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) argument
H A DVideoEditorSRC.cpp51 sp<MetaData> format = mSource->getFormat(); local
53 CHECK(format->findCString(kKeyMIMEType, &mime));
149 // Change resampler and retry if format change happened
233 // just remember the fact that the format has changed, and let
297 sp<MetaData> format = mSource->getFormat(); local
299 CHECK(format->findCString(kKeyMIMEType, &mime));
302 CHECK(format->findInt32(kKeySampleRate, &mSampleRate));
303 CHECK(format->findInt32(kKeyChannelCount, &mChannelCnt));
/frameworks/av/libvideoeditor/osal/src/
H A DM4OSA_CharStar.c307 M4OSA_Char *format, ...)
326 "M4OSA_Char* %x)",pStrOut,strOutMaxLen,format);
329 M4OSA_DEBUG_IF2(M4OSA_NULL == format, M4ERR_PARAMETER,
332 va_start(marker,format);
335 pTemp = format;
387 err= vsnprintf((char *)pStrOut, (size_t)strOutMaxLen + 1, (const char *)format, marker);
401 newFormatLength = strlen((const char *)format) + 1;
412 /* copy format to newFormat, replacing %[flags][width][.precision]ll[conversion]
414 while(*format)
416 nbChar = strcspn((const char *)format, "
306 M4OSA_chrSPrintf(M4OSA_Char *pStrOut, M4OSA_UInt32 strOutMaxLen, M4OSA_Char *format, ...) argument
[all...]
H A DM4PSW_Trace.c40 * M4OSA_Char* format, ...)
46 * @param format (IN): the "printf" formated string
53 M4OSA_Int32 level, M4OSA_Char* format, ...)
60 va_start(marker,format); /* set ptr to first argument in the list of arguments passed to the function */
61 vsprintf((char *)message, (const char *)format,marker ); /* formats and writes the data into message */
52 M4OSA_Trace(M4OSA_Int32 line, M4OSA_Char* file , M4OSA_Int32 level, M4OSA_Char* format, ...) argument
/frameworks/av/libvideoeditor/vss/stagefrightshells/src/
H A DVideoEditorAudioDecoder.cpp56 const sp<MetaData>& format, void *decoderShellContext);
73 VideoEditorAudioDecoderSource(const sp<MetaData>& format,
112 const sp<MetaData>& format, void *decoderShellContext) {
115 new VideoEditorAudioDecoderSource(format, decoderShellContext);
121 const sp<MetaData>& format, void* decoderShellContext):
122 mFormat(format),
530 VIDEOEDITOR_CHECK(!"AudioDecoder_open : incorrect input format",
111 Create( const sp<MetaData>& format, void *decoderShellContext) argument
120 VideoEditorAudioDecoderSource( const sp<MetaData>& format, void* decoderShellContext) argument
H A DVideoEditorAudioEncoder.cpp46 const sp<MetaData> &format);
74 VideoEditorAudioEncoderSource(const sp<MetaData> &format);
83 const sp<MetaData> &format) {
87 new VideoEditorAudioEncoderSource(format);
93 const sp<MetaData> &format):
98 mEncFormat(format) {
262 M4OSA_ERR VideoEditorAudioEncoder_init(M4ENCODER_AudioFormat format, argument
268 ALOGV(" VideoEditorAudioEncoder_init begin: format %d", format);
273 pEncoderContext->mFormat = format;
82 Create( const sp<MetaData> &format) argument
92 VideoEditorAudioEncoderSource( const sp<MetaData> &format) argument
672 VideoEditorAudioEncoder_getInterface( M4ENCODER_AudioFormat format, M4ENCODER_AudioFormat* pFormat, M4ENCODER_AudioGlobalInterface** pEncoderInterface) argument
[all...]
H A DVideoEditorVideoDecoder.cpp52 const sp<MetaData> &format,
82 const sp<MetaData> &format, VIDEOEDITOR_CodecType codecType,
84 mFormat(format),
1041 // Get the output color format
1063 ALOGI("decoder output format = 0x%X\n", decoderOutput);
1203 // Get the output color format
1382 // Handle EOS and format change
1557 ALOGE("VideoDecoder_decode: unexpected color format 0x%X",
81 VideoEditorVideoDecoderSource( const sp<MetaData> &format, VIDEOEDITOR_CodecType codecType, void *decoderShellContext) argument
H A DVideoEditorVideoEncoder.cpp67 const sp<MetaData> &format);
89 VideoEditorVideoEncoderSource(const sp<MetaData> &format);
107 const sp<MetaData> &format) {
110 new VideoEditorVideoEncoderSource(format);
115 const sp<MetaData> &format):
121 mEncFormat(format) {
367 // For H264, format the DSI
433 M4OSA_ERR VideoEditorVideoEncoder_init(M4ENCODER_Format format, argument
443 ALOGV("VideoEditorVideoEncoder_init begin: format %d", format);
106 Create( const sp<MetaData> &format) argument
114 VideoEditorVideoEncoderSource( const sp<MetaData> &format) argument
1216 VideoEditorVideoEncoder_getInterface(M4ENCODER_Format format, M4ENCODER_Format* pFormat, M4ENCODER_GlobalInterface** pEncoderInterface, M4ENCODER_OpenMode mode) 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.cpp41 audio_format_t format,
50 if (AudioSystem::getInputBufferSize(sampleRate, format, channelMask, &size)
57 ALOGE("Unsupported configuration: sampleRate %d, format %d, channelMask %#x",
58 sampleRate, format, channelMask);
65 if (audio_is_linear_pcm(format)) {
67 size /= channelCount * audio_bytes_per_sample(format);
85 audio_format_t format,
95 mStatus = set(inputSource, sampleRate, format, channelMask,
120 audio_format_t format,
146 if (format
38 getMinFrameCount( int* frameCount, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask) argument
82 AudioRecord( audio_source_t inputSource, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, callback_t cbf, void* user, int notificationFrames, int sessionId) argument
117 set( audio_source_t inputSource, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, callback_t cbf, void* user, int notificationFrames, bool threadCanCallJava, int sessionId) argument
245 audio_format_t AudioRecord::format() const function in class:android::AudioRecord
425 openRecord_l( uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, audio_io_handle_t input) argument
[all...]
H A DAudioSystem.cpp337 status_t AudioSystem::getInputBufferSize(uint32_t sampleRate, audio_format_t format, argument
343 if ((inBuffSize == 0) || (sampleRate != gPrevInSamplingRate) || (format != gPrevInFormat)
350 inBuffSize = af->getInputBufferSize(sampleRate, format, channelMask);
354 gPrevInFormat = format;
452 ALOGV("ioConfigChanged() new output samplingRate %d, format %d channels %#x frameCount %d latency %d",
453 outputDesc->samplingRate, outputDesc->format, outputDesc->channels, outputDesc->frameCount, outputDesc->latency);
474 ALOGV("ioConfigChanged() new config for output %d samplingRate %d, format %d channels %#x frameCount %d latency %d",
475 ioHandle, desc->samplingRate, desc->format,
590 audio_format_t format,
596 return aps->getOutput(stream, samplingRate, format, channelMas
588 getOutput(audio_stream_type_t stream, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags) argument
624 getInput(audio_source_t inputSource, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, int sessionId) argument
[all...]
H A DAudioTrack.cpp65 // audio_format_t format
105 audio_format_t format,
118 mStatus = set(streamType, sampleRate, format, channelMask,
127 int format,
139 mStatus = set((audio_stream_type_t)streamType, sampleRate, (audio_format_t)format,
148 audio_format_t format,
161 mStatus = set(streamType, sampleRate, format, channelMask,
189 audio_format_t format,
225 if (format == AUDIO_FORMAT_DEFAULT) {
226 format
102 AudioTrack( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, audio_output_flags_t flags, callback_t cbf, void* user, int notificationFrames, int sessionId) argument
124 AudioTrack( int streamType, uint32_t sampleRate, int format, int channelMask, int frameCount, uint32_t flags, callback_t cbf, void* user, int notificationFrames, int sessionId) argument
145 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, int notificationFrames, int sessionId) argument
186 set( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, audio_output_flags_t flags, callback_t cbf, void* user, int notificationFrames, const sp<IMemory>& sharedBuffer, bool threadCanCallJava, int sessionId) argument
342 audio_format_t AudioTrack::format() const function in class:android::AudioTrack
749 createTrack_l( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, audio_output_flags_t flags, const sp<IMemory>& sharedBuffer, audio_io_handle_t output) argument
[all...]
H A DIAudioFlinger.cpp90 audio_format_t format,
106 data.writeInt32(format);
139 audio_format_t format,
153 data.writeInt32(format);
200 virtual audio_format_t format(audio_io_handle_t output) const function in class:android::BpAudioFlinger
356 virtual size_t getInputBufferSize(uint32_t sampleRate, audio_format_t format, argument
362 data.writeInt32(format);
379 audio_format_t format = pFormat ? *pFormat : AUDIO_FORMAT_DEFAULT; local
387 data.writeInt32(format);
398 format
86 createTrack( pid_t pid, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, track_flags_t flags, const sp<IMemory>& sharedBuffer, audio_io_handle_t output, pid_t tid, int *sessionId, status_t *status) argument
135 openRecord( pid_t pid, audio_io_handle_t input, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, track_flags_t flags, pid_t tid, int *sessionId, status_t *status) argument
454 audio_format_t format = pFormat ? *pFormat : AUDIO_FORMAT_DEFAULT; local
724 audio_format_t format = (audio_format_t) data.readInt32(); local
746 audio_format_t format = (audio_format_t) data.readInt32(); local
875 audio_format_t format = (audio_format_t) data.readInt32(); local
885 audio_format_t format = (audio_format_t) data.readInt32(); local
932 audio_format_t format = (audio_format_t) data.readInt32(); local
[all...]
H A DIAudioPolicyService.cpp126 audio_format_t format,
134 data.writeInt32(static_cast <uint32_t>(format));
178 audio_format_t format,
186 data.writeInt32(static_cast <uint32_t>(format));
427 audio_format_t format = (audio_format_t) data.readInt32(); local
434 format,
474 audio_format_t format = (audio_format_t) data.readInt32(); local
479 format,
123 getOutput( audio_stream_type_t stream, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags) argument
175 getInput( audio_source_t inputSource, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, int audioSession) argument
H A DIMediaPlayerService.cpp184 audio_format_t format; local
185 sp<IMemory> player = decode(url, &sampleRate, &numChannels, &format);
188 reply->writeInt32((int32_t) format);
199 audio_format_t format; local
200 sp<IMemory> player = decode(fd, offset, length, &sampleRate, &numChannels, &format);
203 reply->writeInt32((int32_t) format);

Completed in 300 milliseconds

12345678910