Lines Matching refs:to

10  * Unless required by applicable law or agreed to in writing, software
89 // converts an OMX error to a status_t
115 // checks and converts status_t to a non-side-effect status_t
417 // Submit output buffers to the decoder, submit input buffers to client
418 // to fill with data.
720 // cannot switch from bytebuffers to surface
740 // no need to reconnect as we will not dequeue all buffers
748 // New output surface is not allowed to add new usage flag except ignored ones.
750 ALOGW("cannot change usage from %#x to %#x", mNativeWindowUsageBits, usageBits);
754 // get min undequeued count. We cannot switch to a surface that has a higher
772 // set up surface to the same count
783 // need to enable allocation when attaching
786 // for meta data mode, we move dequeud buffers to the new surface.
800 ALOGE("failed to attach buffer %p to the new surface: %s (%d)",
807 // cancel undequeued buffers to new surface
817 ALOGE("failed to cancel buffer %p to the new surface: %s (%d)",
828 // push blank buffers to previous window if requested
841 ALOGE("[%s] setPortMode on %s to %s failed w/ err %d",
908 // verify buffer sizes to avoid overflow in align()
914 // don't modify bufSize as OMX may not expect it to increase after negotiation
930 // specify the heap size to be
1084 ALOGE("Fail to set AndroidNativeBufferConsumerUsage: %d", err);
1143 // itself and explicitly sets def.nBufferCountActual to 0.
1170 // For now, try to allocate 1 more buffer, but don't fail if unsuccessful
1172 // Use conservative allocation while also trying to reduce starvation
1175 // minimum needed for the consumer to be able to work
1176 // 2. try to allocate two (2) additional buffers to reduce starvation from
1178 // plus an extra buffer to account for incorrect minUndequeuedBufs
1191 ALOGW("[%s] setting nBufferCountActual to %u failed: %d",
1215 // mode with metadata, which is transparent to ACodec).
1232 // Dequeue buffers and send them to OMX
1251 // TODO: We shouln't need to create MediaCodecBuffer. In metadata mode
1278 // If an error occurred while dequeuing we need to cancel any buffers
1283 // Return the required minimum undequeued buffers to the native window.
1329 // Initialize fence fd to -1 to avoid warning in freeBuffer().
1410 ALOGW_IF(err != 0, "[%s] can not return buffer %u to native window",
1465 ALOGW("not dequeuing from native window due to fatal error");
1484 // Since consumers can attach buffers to BufferQueues, it is possible
1488 // e.g. it is possible that we have queued the valid buffer to the
1509 // It is also possible to receive a previously unregistered buffer
1519 // TODO: detach stale buffer, but there is no API yet to do it.
1541 // it is impossible to dequeue an unknown buffer in non-meta mode, as the
1629 ALOGE("trying to free buffer not owned by us or ANW (%d)", info->mStatus);
1697 ALOGW("[%s] Failed to set standard component role '%s'.",
1742 // propagate bitrate to the output so that the muxer has it
1745 // average bitrate. We've been setting both bitrate and max-bitrate to this same value.
1779 && msg->findInt32("prepend-sps-pps-to-idr-frames", &prependSPSPPS)
1794 ALOGE("Encoder could not be configured to emit SPS/PPS before "
1802 // sps/pps to idr frames, since in metadata mode the bitstream is in an
1803 // opaque handle, to which we don't have access.
1824 // only allow 32-bit value, since we pass it as U32 to OMX.
1825 if (!msg->findInt64("max-pts-gap-to-encoder", &mMaxPtsGapUs)) {
1832 if (!msg->findFloat("max-fps-to-encoder", &mMaxFps)) {
1836 // notify GraphicBufferSource to allow backward frames
1863 ALOGE("protected output buffers must be sent to an ANativeWindow");
1875 ALOGI("falling back to non-native_handles");
1956 // surfaces as they never had to respond to changes in the
1957 // crop window, and we don't trust that they will be able to.
1995 ALOGV("[%s] setPortMode on output to %s succeeded",
2018 // invalid encodings will default to PCM-16bit in setupRawAudioFormat.
2067 // to SW renderer
2068 ALOGI("[%s] Falling back to software renderer", mComponentName.c_str());
2290 // NOTE: both mBaseOutputFormat and mOutputFormat are outputFormat to signal first frame.
2403 // Fallback to query through standard OMX index.
2450 ALOGI("[%s] try falling back to Cyclic", mComponentName.c_str());
2462 // Calculate macroblocks that need to be intra coded base on width and height
2568 ALOGW("Failed to set temporal layers to %s (requested %s)",
2625 ALOGE("failed to set min buffer size to %zu (is still %u)", size, def.nBufferSize);
2808 // prior to 9.0 we used a different config structure and index
2823 ALOGW("did not set AudioAndroidAacPresentation due to error %d when setting AudioAac", res);
3063 // if we could not set up raw format to non-16-bit, try with 16-bit
3116 // substitute back flexible color format to codec supported format
3210 // standard formats that were exposed to users before
3296 ALOGW("Fail to set [%s] %s port buffer number: %d", mComponentName.c_str(),
3372 // Set the component input buffer number to be |tmp|. If succeed,
3373 // component will set input port buffer number to be |tmp|. If fail,
3381 // Set the component output buffer number to be |tmp|. If succeed,
3382 // component will set output port buffer number to be |tmp|. If fail,
3472 // The default aspects will be set back to the output format during the
3480 // communicate color aspects to codec
3581 // copy config to output format as this is not exposed via getFormat
3608 // communicate color aspects to codec, but do not allow change of the platform aspects
3638 // communicate HDR static Info to codec
3659 // communicate color aspects to codec, but do not allow any change
3683 // aspects to Unspecified)
3688 ALOGV("set default color aspects, updated input format to %s, output format to %s",
3825 // propagate framerate to the output so that the muxer has it
3840 ALOGE("[%s] failed to set input port definition parameters.",
3885 ALOGE("[%s] failed to set output port definition parameters.",
3935 // Set up color aspects on input, but propagate them to the output format, as they will
3968 // TODO: do we need to support android.generic layering? webrtc layering is
4022 // PFramesSpacing (the value to be returned) is the number of P frames between I frames
4209 // convert bitrate to main/baseline profile kbps equivalent
4220 // convert size and rate to MBs
4458 // query to get the image encoder's real grid config as it might be
4459 // different from the requested, and transfer that to the output.
4719 // default the latency to be 1 if latency key is not specified or unsupported and bitrateMode
4766 // XXX Need a (much) better heuristic to compute input buffer sizes.
5021 // Fall through to set up mime.
5351 ALOGD("dataspace changed to %#x (R:%d(%s), P:%d(%s), M:%d(%s), T:%d(%s)) "
5368 ALOGE("[%s] Failed to get port format to send format change", mComponentName.c_str());
5374 sp<const AMessage> to = mOutputFormat->changesFrom(expectedFormat);
5375 if (changes->countEntries() != 0 || to->countEntries() != 0) {
5376 ALOGW("[%s] BAD CODEC: Output format changed unexpectedly from (diff) %s to (diff) %s",
5378 changes->debugString(4).c_str(), to->debugString(4).c_str());
5422 // mLastOutputFormat is not used when tunneled; doing this just to stay consistent
5496 // no need to check as we already did it for kWhatOMXMessageList
5545 ALOGE_IF("[%s] failed to release codec instance: err=%d",
5747 // OMX component had access to data that's implicitly refcounted
5835 // Do not send empty input buffer w/o EOS to the component.
5864 ALOGV("[%s] Needs to copy input data for buffer %u. (%p != %p)",
5907 // try to submit an output buffer for each input buffer
5979 ALOGV("[%s] Signalling EOS on the input port due to error %d",
6088 // or out-of-order dequeued buffers in the render queue prior to this buffer. Drop these,
6089 // as we will soon requeue this buffer to the surface. While in theory we could still keep
6090 // track of buffers that are requeued to the surface, it is better to add support to the
6091 // buffer-queue to notify us of released buffers and their fences (in the future).
6126 // pretend that output format has changed on the first frame (we used to do this)
6228 // The client wants this buffer to be rendered.
6238 ALOGW_IF(err != NO_ERROR, "failed to set crop: %d", err);
6248 ALOGW_IF(err != NO_ERROR, "failed to set dataspace: %d", err);
6259 // save buffers sent to the surface so we can get render time when they return
6278 ALOGW_IF(err != NO_ERROR, "failed to set buffer timestamp: %d", err);
6290 // keeping read fence as write fence to avoid clobbering
6295 // move read fence into write fence to avoid clobbering
6430 // nothing to do, as we have already signaled shutdown
6489 ALOGE("Unable to instantiate codec '%s' with err %#x.", componentName.c_str(), err);
6669 ALOGE("Failed to get default data space");
6676 ALOGE("[%s] Unable to configure for node (err %d)",
6687 ALOGE("[%s] Unable to configure option to repeat previous "
6705 ALOGE("[%s] Unable to configure max timestamp gap (err %d)",
6716 ALOGE("[%s] Unable to configure max fps (err %d)",
6728 ALOGE("[%s] Unable to configure time lapse (err %d)",
6739 ALOGE("[%s] Unable to configure option to suspend (err %d)",
6764 ALOGE("[%s] Unable to configure color aspects (err %d)",
6849 ALOGE("Failed to allocate buffers after transitioning to IDLE state "
7094 ALOGV("[%s] We're already active, no need to resume.", mCodec->mComponentName.c_str());
7102 ALOGW("[%s] we don't have any input buffers to resume", mCodec->mComponentName.c_str());
7263 ALOGE("[%s] Invalid to set input buffer time offset without surface",
7272 ALOGE("[%s] Unable to set input buffer time offset (err %d)",
7282 ALOGE("[%s] Invalid to set start time without surface",
7291 ALOGE("Failed to set parameter 'skip-frames-before' (err %d)", err);
7299 ALOGE("[%s] Invalid to set suspend without surface",
7310 ALOGE("Failed to set parameter 'drop-input-frames' (err %d)", err);
7318 ALOGE("[%s] Invalid to set stop time without surface",
7326 ALOGE("Failed to set parameter 'stop-time-us' (err %d)", err);
7335 ALOGE("Failed to get stop time offset (err %d)", err);
7360 ALOGI("Failed to set parameter 'operating-rate' (err %d)", err);
7392 // the minimum number of characters to keep in |key| (even if it has trailing tags).
7393 // (Used to remove trailing 'value' tags in settings names, e.g. to normalize
7394 // 'vendor.settingsX.value' to 'vendor.settingsX')
7408 * the structure is null). Used to iterate through vendor extensions.
7423 * Forward iterator to enumerate vendor extensions supported by an OMX component.
7447 // retrieves the current extension pointed to by this iterator
7494 // returns extension pointed to by this iterator
7499 // prefix increment: move to next extension
7540 std::map<std::string, std::string> vendorKeys; // maps reduced name to actual name
7546 // identify all vendor keys to speed up search later and to detect vendor keys
7551 // it is safe to limit format keys to the max vendor param size as we only
7571 // the android vendor extension support, which will lead to unnecessary OMX failure logs.
7665 ALOGW("[%s] failed to set vendor extension '%s'", mComponentName.c_str(), key);
7666 // try to set each extension, and return first failure
7763 // Error must have already been signalled to the client.
7924 ALOGE_IF(err != OK, "Failed to allocate output port buffers after port "
7974 // to shutdown.
8048 // We push enough 1x1 blank buffers to ensure that one of
8049 // them has made it to the display. This allows the OMX
8050 // component teardown to zero out any protected buffers
8098 // to shutdown.
8413 // NOTE: Without Android extensions, OMX does not provide a way to query
8453 // These are supposed be equivalent to the logic in