Lines Matching refs:retriever
80 …MediaMetadataRetriever* retriever = (MediaMetadataRetriever*) env->GetLongField(thiz, fields.conte… in getRetriever() local
81 return retriever; in getRetriever()
84 static void setRetriever(JNIEnv* env, jobject thiz, const sp<MediaMetadataRetriever> &retriever) in setRetriever() argument
88 if (retriever != NULL) { in setRetriever()
89 retriever->incStrong(thiz); in setRetriever()
96 env->SetLongField(thiz, fields.context, (jlong) retriever.get()); in setRetriever()
105 sp<MediaMetadataRetriever> retriever = getRetriever(env, thiz); in android_media_MediaMetadataRetriever_setDataSourceAndHeaders() local
106 if (retriever == 0) { in android_media_MediaMetadataRetriever_setDataSourceAndHeaders()
152 retriever->setDataSource( in android_media_MediaMetadataRetriever_setDataSourceAndHeaders()
164 sp<MediaMetadataRetriever> retriever = getRetriever(env, thiz); in android_media_MediaMetadataRetriever_setDataSourceFD() local
165 if (retriever == 0) { in android_media_MediaMetadataRetriever_setDataSourceFD()
187 …process_media_retriever_call(env, retriever->setDataSource(fd, offset, length), "java/lang/Runtime… in android_media_MediaMetadataRetriever_setDataSourceFD()
193 sp<MediaMetadataRetriever> retriever = getRetriever(env, thiz); in android_media_MediaMetadataRetriever_setDataSourceCallback() local
194 if (retriever == 0) { in android_media_MediaMetadataRetriever_setDataSourceCallback()
204 …process_media_retriever_call(env, retriever->setDataSource(callbackDataSource), "java/lang/Runtime… in android_media_MediaMetadataRetriever_setDataSourceCallback()
374 sp<MediaMetadataRetriever> retriever = getRetriever(env, thiz); in android_media_MediaMetadataRetriever_getFrameAtTime() local
375 if (retriever == 0) { in android_media_MediaMetadataRetriever_getFrameAtTime()
388 sp<IMemory> frameMemory = retriever->getFrameAtTime(timeUs, option, colorFormat); in android_media_MediaMetadataRetriever_getFrameAtTime()
409 sp<MediaMetadataRetriever> retriever = getRetriever(env, thiz); in android_media_MediaMetadataRetriever_getImageAtIndex() local
410 if (retriever == 0) { in android_media_MediaMetadataRetriever_getImageAtIndex()
419 sp<IMemory> frameMemory = retriever->getImageAtIndex(index, colorFormat); in android_media_MediaMetadataRetriever_getImageAtIndex()
441 sp<MediaMetadataRetriever> retriever = getRetriever(env, thiz); in android_media_MediaMetadataRetriever_getThumbnailImageAtIndex() local
442 if (retriever == 0) { in android_media_MediaMetadataRetriever_getThumbnailImageAtIndex()
452 sp<IMemory> frameMemory = retriever->getImageAtIndex( in android_media_MediaMetadataRetriever_getThumbnailImageAtIndex()
470 frameMemory = retriever->getImageAtIndex( in android_media_MediaMetadataRetriever_getThumbnailImageAtIndex()
504 sp<MediaMetadataRetriever> retriever = getRetriever(env, thiz); in android_media_MediaMetadataRetriever_getFrameAtIndex() local
505 if (retriever == 0) { in android_media_MediaMetadataRetriever_getFrameAtIndex()
523 sp<IMemory> frame = retriever->getFrameAtIndex(frameIndex + i, colorFormat); in android_media_MediaMetadataRetriever_getFrameAtIndex()
553 sp<MediaMetadataRetriever> retriever = getRetriever(env, thiz); in android_media_MediaMetadataRetriever_getEmbeddedPicture() local
554 if (retriever == 0) { in android_media_MediaMetadataRetriever_getEmbeddedPicture()
563 sp<IMemory> albumArtMemory = retriever->extractAlbumArt(); in android_media_MediaMetadataRetriever_getEmbeddedPicture()
592 sp<MediaMetadataRetriever> retriever = getRetriever(env, thiz); in android_media_MediaMetadataRetriever_extractMetadata() local
593 if (retriever == 0) { in android_media_MediaMetadataRetriever_extractMetadata()
597 const char* value = retriever->extractMetadata(keyCode); in android_media_MediaMetadataRetriever_extractMetadata()
698 sp<MediaMetadataRetriever> retriever = new MediaMetadataRetriever(); in android_media_MediaMetadataRetriever_native_setup() local
699 if (retriever == 0) { in android_media_MediaMetadataRetriever_native_setup()
703 setRetriever(env, thiz, retriever); in android_media_MediaMetadataRetriever_native_setup()