Lines Matching refs:codec

280         JNIEnv *env, jobject thiz, const sp<JMediaCodec> &codec) {
282 if (codec != NULL) {
283 codec->incStrong(thiz);
288 env->SetIntField(thiz, gFields.context, (int)codec.get());
356 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
358 if (codec == NULL) {
390 err = codec->configure(format, surfaceTexture, crypto, flags);
398 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
400 if (codec == NULL) {
405 status_t err = codec->start();
413 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
415 if (codec == NULL) {
420 status_t err = codec->stop();
428 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
430 if (codec == NULL) {
435 status_t err = codec->flush();
450 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
452 if (codec == NULL) {
459 status_t err = codec->queueInputBuffer(
476 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
478 if (codec == NULL) {
577 err = codec->queueSecureInputBuffer(
608 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
610 if (codec == NULL) {
616 status_t err = codec->dequeueInputBuffer(&index, timeoutUs);
629 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
631 if (codec == NULL) {
637 status_t err = codec->dequeueOutputBuffer(
651 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
653 if (codec == NULL) {
658 status_t err = codec->releaseOutputBuffer(index, render);
667 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
669 if (codec == NULL) {
675 status_t err = codec->getOutputFormat(env, &format);
690 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
692 if (codec == NULL) {
698 status_t err = codec->getBuffers(env, input, &buffers);
711 sp<JMediaCodec> codec = getMediaCodec(env, thiz);
713 if (codec == NULL) {
724 codec->setVideoScalingMode(mode);
773 sp<JMediaCodec> codec = new JMediaCodec(env, thiz, tmp, nameIsType, encoder);
775 status_t err = codec->initCheck();
788 setMediaCodec(env,thiz, codec);