Lines Matching refs:codec
330 JNIEnv *env, jobject thiz, const sp<JMediaCodec> &codec) {
332 if (codec != NULL) {
333 codec->incStrong(thiz);
338 env->SetIntField(thiz, gFields.context, (int)codec.get());
427 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
429 if (codec == NULL) {
461 err = codec->configure(format, bufferProducer, crypto, flags);
470 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
471 if (codec == NULL) {
478 status_t err = codec->createInputSurface(&bufferProducer);
492 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
494 if (codec == NULL) {
495 jniThrowException(env, "java/lang/IllegalStateException", "no codec found");
499 status_t err = codec->start();
507 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
509 if (codec == NULL) {
514 status_t err = codec->stop();
522 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
524 if (codec == NULL) {
529 status_t err = codec->flush();
544 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
546 if (codec == NULL) {
553 status_t err = codec->queueInputBuffer(
570 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
572 if (codec == NULL) {
671 err = codec->queueSecureInputBuffer(
702 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
704 if (codec == NULL) {
710 status_t err = codec->dequeueInputBuffer(&index, timeoutUs);
723 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
725 if (codec == NULL) {
731 status_t err = codec->dequeueOutputBuffer(
745 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
747 if (codec == NULL) {
752 status_t err = codec->releaseOutputBuffer(index, render);
761 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
762 if (codec == NULL) {
767 status_t err = codec->signalEndOfInputStream();
776 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
778 if (codec == NULL) {
784 status_t err = codec->getOutputFormat(env, &format);
799 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
801 if (codec == NULL) {
807 status_t err = codec->getBuffers(env, input, &buffers);
825 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
827 if (codec == NULL) {
833 status_t err = codec->getName(env, &name);
848 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
850 if (codec == NULL) {
859 err = codec->setParameters(params);
867 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
869 if (codec == NULL) {
880 codec->setVideoScalingMode(mode);
949 sp<JMediaCodec> codec = new JMediaCodec(env, thiz, tmp, nameIsType, encoder);
951 status_t err = codec->initCheck();
964 setMediaCodec(env,thiz, codec);