/frameworks/av/camera/ |
H A D | ProCamera.cpp | 182 status_t ProCamera::createStream(int width, int height, int format, argument 190 format); 196 return createStream(width, height, format, 201 status_t ProCamera::createStream(int width, int height, int format, argument 208 format); 215 status_t stat = c->createStream(width, height, format, bufferProducer, 227 status_t ProCamera::createStreamCpu(int width, int height, int format, argument 232 return createStreamCpu(width, height, format, heapCount, 237 status_t ProCamera::createStreamCpu(int width, int height, int format, argument 245 format); [all...] |
/frameworks/av/camera/camera2/ |
H A D | ICameraDeviceUser.cpp | 211 virtual status_t createStream(int width, int height, int format, argument 218 data.writeInt32(format); 399 int width, height, format; local 405 format = data.readInt32(); 406 ALOGV("%s: CREATE_STREAM: format = %d", __FUNCTION__, format); 422 ret = createStream(width, height, format, bp);
|
/frameworks/av/cmds/screenrecord/ |
H A D | Overlay.cpp | 239 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));
|
/frameworks/av/cmds/stagefright/ |
H A D | SimplePlayer.cpp | 295 sp<AMessage> format; local 296 status_t err = mExtractor->getTrackFormat(i, &format); 300 CHECK(format->findString("mime", &mime)); 326 format, 335 while (format->findBuffer(StringPrintf("csd-%d", j).c_str(), &buffer)) { 573 sp<AMessage> format; local 574 status_t err = state->mCodec->getOutputFormat(&format); 581 CHECK(format->findString("mime", &mime)); 586 CHECK(format->findInt32("channel-count", &channelCount)); 587 CHECK(format [all...] |
H A D | codec.cpp | 90 sp<AMessage> format; local 91 status_t err = extractor->getTrackFormat(i, &format); 95 CHECK(format->findString("mime", &mime)); 126 format, isVideo ? surface : NULL, 278 sp<AMessage> format; local 279 CHECK_EQ((status_t)OK, state->mCodec->getOutputFormat(&format)); 281 ALOGV("INFO_FORMAT_CHANGED: %s", format->debugString().c_str());
|
H A D | muxer.cpp | 92 sp<AMessage> format; local 93 status_t err = extractor->getTrackFormat(i, &format); 95 ALOGV("extractor getTrackFormat: %s", format->debugString().c_str()); 98 CHECK(format->findString("mime", &mime)); 113 CHECK(format->findInt32("width", &width)); 114 CHECK(format->findInt32("height", &height)); 119 CHECK(format->findInt64("durationUs", &duration)); 135 ssize_t newTrackIndex = muxer->addTrack(format);
|
/frameworks/av/include/media/ |
H A D | AudioSystem.h | 119 static status_t getInputBufferSize(uint32_t sampleRate, audio_format_t format, 171 : samplingRate(0), format(AUDIO_FORMAT_DEFAULT), channelMask(0), frameCount(0), latency(0) 175 audio_format_t format; member in class:android::AudioSystem::OutputDescriptor 215 audio_format_t format = AUDIO_FORMAT_DEFAULT, 224 audio_format_t format = AUDIO_FORMAT_DEFAULT, 244 audio_format_t format, 288 // Check if hw offload is possible for given format, stream type, sample rate,
|
/frameworks/av/media/libmedia/ |
H A D | IMediaPlayerService.cpp | 233 audio_format_t format; local 240 &format, 247 reply->writeInt32((int32_t)format); 260 audio_format_t format; local 262 status_t status = decode(fd, offset, length, &sampleRate, &numChannels, &format, 268 reply->writeInt32((int32_t)format);
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | HTTPLiveSource.cpp | 105 sp<AMessage> format; local 109 &format); 115 return format; 227 sp<AMessage> format = getFormat(false /* audio */); local 230 if (format != NULL && 231 format->findInt32("width", &width) && format->findInt32("height", &height)) { 232 notifyVideoSizeChanged(format);
|
H A D | NuPlayerCCDecoder.cpp | 133 sp<AMessage> format = new AMessage(); local 135 format->setInt32("type", MEDIA_TRACK_TYPE_SUBTITLE); 136 format->setString("language", "und"); 137 format->setString("mime", MEDIA_MIMETYPE_TEXT_CEA_608); 140 format->setInt32("auto", isDefaultAuto); 141 format->setInt32("default", isDefaultAuto); 142 format->setInt32("forced", 0); 144 return format;
|
H A D | NuPlayerDecoderPassThrough.cpp | 68 void NuPlayer::DecoderPassThrough::onConfigure(const sp<AMessage> &format) { argument 79 // format is different. 81 format, true /* offloadOnly */, false /* hasVideo */, 243 // will perform seamless format change, 253 // do seamless format change
|
/frameworks/av/media/libnbaio/ |
H A D | MonoPipe.cpp | 52 MonoPipe::MonoPipe(size_t reqFrames, const NBAIO_Format& format, bool writeCanBlock) : argument 53 NBAIO_Sink(format), 57 mBuffer(malloc(mMaxFrames * Format_frameSize(format))), 78 D = Format_sampleRate(format);
|
/frameworks/av/media/libstagefright/colorconversion/ |
H A D | SoftwareRenderer.cpp | 61 void SoftwareRenderer::resetFormatIfChanged(const sp<AMessage> &format) { argument 62 CHECK(format != NULL); 65 CHECK(format->findInt32("color-format", &colorFormatNew)); 68 CHECK(format->findInt32("stride", &widthNew)); 69 CHECK(format->findInt32("slice-height", &heightNew)); 72 if (!format->findRect( 167 if (!format->findInt32("rotation-degrees", &rotationDegrees)) { 185 void* /*platformPrivate*/, const sp<AMessage>& format) { 186 resetFormatIfChanged(format); 183 render( const void *data, size_t , int64_t timestampNs, void* , const sp<AMessage>& format) argument [all...] |
/frameworks/av/media/libstagefright/foundation/ |
H A D | AString.cpp | 369 AString StringPrintf(const char *format, ...) { argument 371 va_start(ap, format); 374 vasprintf(&buffer, format, ap);
|
/frameworks/av/media/libstagefright/rtsp/ |
H A D | ASessionDescription.cpp | 201 AString format; local 202 getFormat(index, &format); 204 const char *lastSpacePos = strrchr(format.c_str(), ' ');
|
/frameworks/av/media/libstagefright/wifi-display/ |
H A D | MediaSender.cpp | 68 ssize_t MediaSender::addTrack(const sp<AMessage> &format, uint32_t flags) { argument 74 info.mFormat = format; 79 CHECK(format->findString("mime", &mime));
|
/frameworks/av/media/ndk/ |
H A D | NdkMediaFormat.cpp | 149 bool AMediaFormat_getInt32(AMediaFormat* format, const char *name, int32_t *out) { argument 150 return format->mFormat->findInt32(name, out); 154 bool AMediaFormat_getInt64(AMediaFormat* format, const char *name, int64_t *out) { argument 155 return format->mFormat->findInt64(name, out); 159 bool AMediaFormat_getFloat(AMediaFormat* format, const char *name, float *out) { argument 160 return format->mFormat->findFloat(name, out); 164 bool AMediaFormat_getSize(AMediaFormat* format, const char *name, size_t *out) { argument 165 return format->mFormat->findSize(name, out); 169 bool AMediaFormat_getBuffer(AMediaFormat* format, const char *name, void** data, size_t *outsize) { argument 171 if (format 200 AMediaFormat_setInt32(AMediaFormat* format, const char *name, int32_t value) argument 205 AMediaFormat_setInt64(AMediaFormat* format, const char *name, int64_t value) argument 210 AMediaFormat_setFloat(AMediaFormat* format, const char* name, float value) argument 215 AMediaFormat_setString(AMediaFormat* format, const char* name, const char* value) argument 221 AMediaFormat_setBuffer(AMediaFormat* format, const char* name, void* data, size_t size) argument [all...] |
/frameworks/av/services/audioflinger/ |
H A D | AudioResampler.cpp | 149 AudioResampler* AudioResampler::create(audio_format_t format, int inChannelCount, argument 220 LOG_ALWAYS_FATAL_IF(format != AUDIO_FORMAT_PCM_16_BIT); 225 LOG_ALWAYS_FATAL_IF(format != AUDIO_FORMAT_PCM_16_BIT); 230 LOG_ALWAYS_FATAL_IF(format != AUDIO_FORMAT_PCM_16_BIT); 235 LOG_ALWAYS_FATAL_IF(format != AUDIO_FORMAT_PCM_16_BIT); 242 if (format == AUDIO_FORMAT_PCM_FLOAT) { 246 LOG_ALWAYS_FATAL_IF(format != AUDIO_FORMAT_PCM_16_BIT); 273 LOG_ALWAYS_FATAL("Unsupported sample format %d quality %d channels",
|
H A D | PatchPanel.cpp | 266 config.format = newPatch->mPlaybackThread->format(); 452 audio_format_t format = patch->mPlaybackThread->format(); local 458 format, 477 format,
|
/frameworks/av/services/audioflinger/tests/ |
H A D | resampler_tests.cpp | 73 const audio_format_t format = useFloat ? AUDIO_FORMAT_PCM_FLOAT : AUDIO_FORMAT_PCM_16_BIT; local 95 resampler = android::AudioResampler::create(format, channels, outputFreq, quality); 113 resampler = android::AudioResampler::create(format, channels, outputFreq, quality);
|
/frameworks/av/services/camera/libcameraservice/api_pro/ |
H A D | ProCamera2Client.cpp | 65 threadName = String8::format("PC2-%d-FrameProc", mCameraId); 257 status_t ProCamera2Client::createStream(int width, int height, int format, argument 267 ALOGV("%s (w = %d, h = %d, f = 0x%x)", __FUNCTION__, width, height, format); 283 return mDevice->createStream(window, width, height, format,
|
/frameworks/av/services/camera/libcameraservice/device3/ |
H A D | Camera3OutputStream.cpp | 36 uint32_t width, uint32_t height, int format) : 38 /*maxSize*/0, format), 51 uint32_t width, uint32_t height, size_t maxSize, int format) : 53 format), 58 if (format != HAL_PIXEL_FORMAT_BLOB) { 59 ALOGE("%s: Bad format for size-only stream: %d", __FUNCTION__, 60 format); 72 int format) : 75 format), 319 camera3_stream::format); 34 Camera3OutputStream(int id, sp<ANativeWindow> consumer, uint32_t width, uint32_t height, int format) argument 49 Camera3OutputStream(int id, sp<ANativeWindow> consumer, uint32_t width, uint32_t height, size_t maxSize, int format) argument 70 Camera3OutputStream(int id, camera3_stream_type_t type, uint32_t width, uint32_t height, int format) argument [all...] |
H A D | Camera3Stream.cpp | 49 uint32_t width, uint32_t height, size_t maxSize, int format) : 52 mName(String8::format("Camera3Stream[%d]", id)), 60 camera3_stream::format = format; member in class:android::camera3::camera3_stream 65 if (format == HAL_PIXEL_FORMAT_BLOB && maxSize == 0) { 66 ALOGE("%s: BLOB format with size == 0", __FUNCTION__); 84 return camera3_stream::format; 47 Camera3Stream(int id, camera3_stream_type type, uint32_t width, uint32_t height, size_t maxSize, int format) argument
|
/frameworks/base/core/java/android/app/ |
H A D | ProgressDialog.java | 140 String format = mProgressNumberFormat; 141 mProgressNumber.setText(String.format(format, progress, max)); 147 SpannableString tmp = new SpannableString(mProgressPercentFormat.format(percent)); 328 * Change the format of the small text showing current and maximum units 331 * @param format A string passed to {@link String#format String.format()}; 335 public void setProgressNumberFormat(String format) { argument 336 mProgressNumberFormat = format; 348 setProgressPercentFormat(NumberFormat format) argument [all...] |
/frameworks/base/core/java/android/hardware/camera2/params/ |
H A D | StreamConfigurationMap.java | 49 * for that format) that are supported by a camera device.</p> 51 * <p>This also contains the minimum frame durations and stall durations for each format/size 105 // For each format, track how many sizes there are available to configure 142 * Get the image {@code format} output formats in this stream configuration. 150 * @return an array of integer format 160 * Get the image {@code format} input formats in this stream configuration. 165 * @return an array of integer format 177 * Get the supported input sizes for this input format. 179 * <p>The format must have come from {@link #getInputFormats}; otherwise 182 * @param format 187 getInputSizes(final int format) argument 215 isOutputSupportedFor(int format) argument 408 getOutputSizes(int format) argument 599 getOutputMinFrameDuration(int format, Size size) argument 741 getOutputStallDuration(int format, Size size) argument 825 checkArgumentFormatSupported(int format, boolean output) argument 856 checkArgumentFormatInternal(int format) argument 890 checkArgumentFormat(int format) argument 928 imageFormatToPublic(int format) argument 990 imageFormatToInternal(int format) argument 1024 getPublicFormatSizes(int format, boolean output) argument 1036 getInternalFormatSizes(int format, boolean output) argument 1087 getInternalFormatDuration(int format, Size size, int duration) argument [all...] |