Lines Matching refs:format

253         const sp<AMessage> &format,
259 msg->setMessage("format", format);
495 status_t MediaCodec::getOutputFormat(sp<AMessage> *format) const {
504 CHECK(response->findMessage("format", format));
509 status_t MediaCodec::getInputFormat(sp<AMessage> *format) const {
518 CHECK(response->findMessage("format", format));
556 sp<AMessage> format;
557 return getBufferAndFormat(kPortIndexOutput, index, buffer, &format);
560 status_t MediaCodec::getOutputFormat(size_t index, sp<AMessage> *format) {
562 return getBufferAndFormat(kPortIndexOutput, index, &buffer, format);
566 sp<AMessage> format;
567 return getBufferAndFormat(kPortIndexInput, index, buffer, &format);
576 sp<ABuffer> *buffer, sp<AMessage> *format) {
580 format->clear();
598 *format = info.mFormat;
894 CHECK(msg->findMessage("input-format", &mInputFormat));
895 CHECK(msg->findMessage("output-format", &mOutputFormat));
993 ALOGV("codec output format changed");
1009 // Before we announce the format change we should
1011 // format as necessary.
1050 // part of the format in the call to configure and
1106 // format change was signalled, it'll either contain
1212 sp<AMessage> format = new AMessage;
1215 format->setString("mime", name.c_str());
1216 format->setInt32("encoder", encoder);
1218 format->setString("componentName", name.c_str());
1221 mCodec->initiateAllocateComponent(format);
1272 sp<AMessage> format;
1273 CHECK(msg->findMessage("format", &format));
1276 format->setObject("native-window", obj);
1304 format->setInt32("encoder", true);
1308 extractCSD(format);
1310 mCodec->initiateConfigureComponent(format);
1635 sp<AMessage> format =
1644 || format == NULL) {
1653 response->setMessage("format", format);
1708 void MediaCodec::extractCSD(const sp<AMessage> &format) {
1714 if (!format->findBuffer(StringPrintf("csd-%u", i).c_str(), &csd)) {
2165 msg->setMessage("format", mOutputFormat);
2221 // We separate the two and put them into the output format
2247 // the output format as a single piece of csd under "csd-0".