Lines Matching defs:codec
69 sp<MediaCodec> codec;
70 auto configure = [=](const sp<MediaCodec> &codec, const AString &componentName)
72 if (codec != NULL) {
73 ALOGI("Successfully allocated codec '%s'", componentName.c_str());
75 status_t err = codec->configure(format, surface, NULL /* crypto */, 0 /* flags */);
78 err = codec->getOutputFormat(&outFormat);
81 return new SimpleDecodingSource(codec, source, looper,
87 ALOGD("Failed to configure codec '%s'", componentName.c_str());
88 codec->release();
94 codec = MediaCodec::CreateByComponentName(looper, desiredCodec);
95 return configure(codec, desiredCodec);
104 ALOGV("Attempting to allocate codec '%s'", componentName.c_str());
106 codec = MediaCodec::CreateByComponentName(looper, componentName);
107 sp<SimpleDecodingSource> res = configure(codec, componentName);
111 codec = NULL;
121 const sp<MediaCodec> &codec, const sp<MediaSource> &source, const sp<ALooper> &looper,
123 : mCodec(codec),
233 // flush codec on seek
247 // the codec produces at least one output buffer. Also, the codec