Lines Matching refs:codec

822         JNIEnv *env, jobject thiz, const sp<JMediaCodec> &codec) {
824 if (codec != NULL) {
825 codec->incStrong(thiz);
836 env->SetLongField(thiz, gFields.context, (jlong)codec.get());
941 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
943 if (codec == NULL) {
948 status_t err = codec->enableOnFrameRenderedListener(enabled);
957 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
959 if (codec == NULL) {
964 status_t err = codec->setCallback(cb);
977 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
979 if (codec == NULL) {
1017 err = codec->configure(format, bufferProducer, crypto, descrambler, flags);
1026 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
1028 if (codec == NULL) {
1047 status_t err = codec->setSurface(bufferProducer);
1150 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
1151 if (codec == NULL) {
1159 status_t err = codec->setInputSurface(persistentSurface);
1169 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
1170 if (codec == NULL) {
1177 status_t err = codec->createInputSurface(&bufferProducer);
1191 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
1193 if (codec == NULL) {
1198 status_t err = codec->start();
1206 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
1208 if (codec == NULL) {
1213 status_t err = codec->stop();
1221 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
1223 if (codec == NULL) {
1228 status_t err = codec->reset();
1243 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
1245 if (codec == NULL) {
1250 status_t err = codec->flush();
1265 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
1267 if (codec == NULL) {
1274 status_t err = codec->queueInputBuffer(
1291 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
1293 if (codec == NULL) {
1418 err = codec->queueSecureInputBuffer(
1450 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
1452 if (codec == NULL) {
1458 status_t err = codec->dequeueInputBuffer(&index, timeoutUs);
1471 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
1473 if (codec == NULL) {
1479 status_t err = codec->dequeueOutputBuffer(
1494 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
1496 if (codec == NULL) {
1501 status_t err = codec->releaseOutputBuffer(index, render, updatePTS, timestampNs);
1510 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
1511 if (codec == NULL) {
1516 status_t err = codec->signalEndOfInputStream();
1525 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
1527 if (codec == NULL) {
1533 status_t err = codec->getFormat(env, input, &format);
1548 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
1550 if (codec == NULL) {
1556 status_t err = codec->getOutputFormat(env, index, &format);
1571 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
1573 if (codec == NULL) {
1579 status_t err = codec->getBuffers(env, input, &buffers);
1597 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
1599 if (codec == NULL) {
1605 status_t err = codec->getBuffer(env, input, index, &buffer);
1623 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
1625 if (codec == NULL) {
1631 status_t err = codec->getImage(env, input, index, &image);
1649 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
1651 if (codec == NULL) {
1657 status_t err = codec->getName(env, &name);
1673 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
1674 if (codec == NULL ) {
1679 // get what we have for the metrics from the codec
1682 status_t err = codec->getMetrics(env, item);
1701 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
1703 if (codec == NULL) {
1712 err = codec->setParameters(params);
1720 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
1722 if (codec == NULL) {
1733 codec->setVideoScalingMode(mode);
1896 sp<JMediaCodec> codec = new JMediaCodec(env, thiz, tmp, nameIsType, encoder);
1898 const status_t err = codec->initCheck();
1913 String8::format("Failed to find matching codec %s, error %#x", tmp, err));
1920 codec->registerSelf();
1922 setMediaCodec(env,thiz, codec);