Lines Matching refs:format

913             const sp<AMessage> &format =
935 ? new SecureBuffer(format, ptr, bufSize)
936 : new SecureBuffer(format, native_handle, bufSize);
984 format, hidlMem);
988 format, mem);
1013 info.mData = new SharedMemoryBuffer(format, hidlMem);
1021 info.mData = new SharedMemoryBuffer(format, mem);
1118 def.format.video.nFrameWidth,
1119 def.format.video.nFrameHeight,
1120 def.format.video.eColorFormat,
2046 if (msg->findInt32("color-format", &requestedColorFormat) &&
2054 if (!outputFormat->findInt32("color-format", &colorFormat)) {
2055 ALOGE("ouptut port did not have a color format (wrong domain?)");
2058 ALOGD("[%s] Requested output format %#x and got %#x.",
2412 OMX_VIDEO_PORTDEFINITIONTYPE *video_def = &def.format.video;
2459 OMX_VIDEO_PORTDEFINITIONTYPE *video_def = &def.format.video;
2577 mOutputFormat = mOutputFormat->dup(); // trigger an output format change event
2627 OMX_AUDIO_PARAM_PORTFORMATTYPE format;
2628 InitOMXParams(&format);
2630 format.nPortIndex = portIndex;
2632 format.nIndex = index;
2634 OMX_IndexParamAudioPortFormat, &format, sizeof(format));
2640 if (format.eEncoding == desiredFormat) {
2647 asString(format.eEncoding), format.eEncoding);
2653 OMX_IndexParamAudioPortFormat, &format, sizeof(format));
2692 def.format.audio.bFlagErrorConcealment = OMX_TRUE;
2693 def.format.audio.eEncoding = OMX_AUDIO_CodingAAC;
2994 def.format.audio.eEncoding = OMX_AUDIO_CodingPCM;
3041 // if we could not set up raw format to non-16-bit, try with 16-bit
3078 OMX_VIDEO_PARAM_PORTFORMATTYPE format;
3079 InitOMXParams(&format);
3080 format.nPortIndex = portIndex;
3081 format.nIndex = 0;
3085 format.nIndex = index;
3088 &format, sizeof(format));
3094 // substitute back flexible color format to codec supported format
3098 mOMXNode, format.eColorFormat, usingNativeBuffers, &flexibleEquivalent)
3100 ALOGI("[%s] using color format %#x in place of %#x",
3101 mComponentName.c_str(), format.eColorFormat, colorFormat);
3102 colorFormat = format.eColorFormat;
3106 // CHECK_EQ(format.nIndex, index);
3110 && colorFormat == format.eColorFormat) {
3116 && compressionFormat == format.eCompressionFormat) {
3123 if (format.eCompressionFormat == compressionFormat
3124 && format.eColorFormat == colorFormat) {
3132 asString(format.eCompressionFormat), format.eCompressionFormat,
3133 asString(format.eColorFormat), format.eColorFormat);
3142 OMX_IndexParamVideoPortFormat, &format, sizeof(format));
3147 // Set optimal output format. OMX component lists output formats in the order
3150 // surface output, do not specify an output format, but expect a "usable" standard
3151 // OMX format. SW readable and standard formats must be flex-YUV.
3154 // - optimal format for texture rendering (mediaplayer behavior)
3155 // - optimal SW readable & texture renderable format (flex-YUV support)
3156 // - optimal SW readable non-renderable format (flex-YUV bytebuffer support)
3159 // For legacy support, we prefer a standard format, but will settle for a SW readable
3160 // flex-YUV format.
3162 OMX_VIDEO_PARAM_PORTFORMATTYPE format, legacyFormat;
3163 InitOMXParams(&format);
3164 format.nPortIndex = kPortIndexOutput;
3167 // this field will change when we find a suitable legacy format
3171 format.nIndex = index;
3173 OMX_IndexParamVideoPortFormat, &format, sizeof(format));
3175 // no more formats, pick legacy format if found
3177 memcpy(&format, &legacyFormat, sizeof(format));
3182 if (format.eCompressionFormat != OMX_VIDEO_CodingUnused) {
3189 if (format.eColorFormat == OMX_COLOR_FormatYUV420Planar
3190 || format.eColorFormat == OMX_COLOR_FormatYUV420PackedPlanar
3191 || format.eColorFormat == OMX_COLOR_FormatYUV420SemiPlanar
3192 || format.eColorFormat == OMX_COLOR_FormatYUV420PackedSemiPlanar
3193 || format.eColorFormat == OMX_TI_COLOR_FormatYUV420PackedSemiPlanar) {
3196 // find best legacy non-standard format
3200 mOMXNode, format.eColorFormat, false /* usingNativeBuffers */,
3203 memcpy(&legacyFormat, &format, sizeof(format));
3207 OMX_IndexParamVideoPortFormat, &format, sizeof(format));
3315 if (msg->findInt32("color-format", &tmp)) {
3321 ALOGW("[%s] does not support color format %d",
3433 // The default aspects will be set back to the output format during the
3435 // format, in case component does not support this enumeration.
3468 status_t ACodec::getInputColorAspectsForVideoEncoder(sp<AMessage> &format) {
3475 setColorAspectsIntoFormat(params.sAspects, format, true /* force */);
3519 // reset default format and get resulting format
3542 // copy config to output format as this is not exposed via getFormat
3611 // reset default format and store resulting format into both input and output formats
3643 // update input format with codec supported color aspects (basically set unsupported
3649 ALOGV("set default color aspects, updated input format to %s, output format to %s",
3655 status_t ACodec::getHDRStaticInfoForVideoCodec(OMX_U32 portIndex, sp<AMessage> &format) {
3664 setHDRStaticInfoIntoFormat(params.sInfo, format);
3715 if (!msg->findInt32("color-format", &tmp)) {
3726 ALOGE("[%s] does not support color format %d",
3737 OMX_VIDEO_PORTDEFINITIONTYPE *video_def = &def.format.video;
3816 ALOGE("[%s] does not support compression format %d",
3891 // Set up color aspects on input, but propagate them to the output format, as they will
4652 OMX_VIDEO_PORTDEFINITIONTYPE *video_def = &def.format.video;
4787 OMX_VIDEO_PORTDEFINITIONTYPE *videoDef = &def.format.video;
4796 notify->setInt32("color-format", videoDef->eColorFormat);
4922 ALOGE("Raw port video compression format is %s(%d)",
4944 ALOGV("[%s] %s format is %s", mComponentName.c_str(),
4953 OMX_AUDIO_PORTDEFINITIONTYPE *audioDef = &def.format.audio;
5233 mOutputFormat = mOutputFormat->dup(); // trigger an output format changed event
5257 // store new output format, at the same time mark that this is no longer the first frame
5261 ALOGE("[%s] Failed to get port format to send format change", mComponentName.c_str());
5269 ALOGW("[%s] BAD CODEC: Output format changed unexpectedly from (diff) %s to (diff) %s",
6019 // pretend that output format has changed on the first frame (we used to do this)
6124 if (buffer->format()->findRect("crop", &crop.left, &crop.top, &crop.right, &crop.bottom)) {
6136 if (buffer->format()->findInt32("android._dataspace", &dataSpace)
7498 // it is safe to limit format keys to the max vendor param size as we only
7626 status_t ACodec::getVendorParameters(OMX_U32 portIndex, sp<AMessage> &format) {
7664 format->setInt32(key, config->param[paramIndex].nInt32);
7669 format->setInt64(key, config->param[paramIndex].nInt64);
7675 format->setString(key, (const char *)config->param[paramIndex].cString);
8309 // Color format query