Lines Matching defs:codec

67 static const char *kCodecKeyName = "codec";
72 static const char *kCodecCodec = "android.media.mediacodec.codec"; /* e.g. OMX.google.aac.decoder */
124 explicit ResourceManagerClient(MediaCodec* codec) : mMediaCodec(codec) {}
127 sp<MediaCodec> codec = mMediaCodec.promote();
128 if (codec == NULL) {
129 // codec is already gone.
132 status_t err = codec->reclaim();
134 ALOGD("Wait for the client to release codec.");
137 err = codec->reclaim(true /* force */);
140 ALOGW("ResourceManagerClient failed to release codec with err %d", err);
147 sp<MediaCodec> codec = mMediaCodec.promote();
148 if (codec == NULL) {
149 // codec is already gone.
154 if (codec->getName(&name) == OK) {
453 sp<MediaCodec> codec = new MediaCodec(looper, pid, uid);
455 status_t ret = codec->init(componentName);
460 return codec;
471 sp<MediaCodec> codec = new MediaCodec(looper, pid, uid);
473 const status_t ret = codec->init(name);
477 return ret == OK ? codec : NULL; // NULL deallocates codec.
736 // when we send a buffer to the codec;
759 // when we get a buffer back from the codec
767 // how long this buffer took for the round trip through the codec
902 mCodec = NULL; // remove the codec.
926 // video codec needs dedicated looper
1067 ALOGW("Crypto or descrambler should be given for secure codec");
1095 // To maintain backward-compatibility, do a reset() to put codec
1233 // Recover codec from previous error before retry start.
1236 ALOGE("retrying start: failed to reset codec");
1242 ALOGE("retrying start: failed to configure codec");
1956 // audio codec is currently ignored.
2106 // If codec specific data had been specified as
2199 // collect codec specific data and amend the output
2208 ALOGE("Codec spit out malformed codec "
2350 // callback can't be set after codec is executing,
2577 ALOGW("Can't reclaim codec right now due to pending buffers.");
2999 ALOGV("Found %zu pieces of codec specific data.", mCSD.size());
3093 ALOGD("port %d buffer %zu still owned by client when codec is reclaimed",
3564 // For everything else we just stash the codec specific data into