Lines Matching refs:videoFrame
264 JNIEnv *env, VideoFrame *videoFrame, jint dst_width, jint dst_height, in getBitmapFromVideoFrame() argument
267 videoFrame->mWidth, in getBitmapFromVideoFrame()
268 videoFrame->mHeight, in getBitmapFromVideoFrame()
269 videoFrame->mDisplayWidth, in getBitmapFromVideoFrame()
270 videoFrame->mDisplayHeight, in getBitmapFromVideoFrame()
271 videoFrame->mSize); in getBitmapFromVideoFrame()
281 if (videoFrame->mRotationAngle == 90 || videoFrame->mRotationAngle == 270) { in getBitmapFromVideoFrame()
282 width = videoFrame->mHeight; in getBitmapFromVideoFrame()
283 height = videoFrame->mWidth; in getBitmapFromVideoFrame()
285 displayWidth = videoFrame->mDisplayHeight; in getBitmapFromVideoFrame()
286 displayHeight = videoFrame->mDisplayWidth; in getBitmapFromVideoFrame()
288 width = videoFrame->mWidth; in getBitmapFromVideoFrame()
289 height = videoFrame->mHeight; in getBitmapFromVideoFrame()
290 displayWidth = videoFrame->mDisplayWidth; in getBitmapFromVideoFrame()
291 displayHeight = videoFrame->mDisplayHeight; in getBitmapFromVideoFrame()
313 (uint16_t*)((char*)videoFrame + sizeof(VideoFrame)), in getBitmapFromVideoFrame()
314 videoFrame->mWidth, in getBitmapFromVideoFrame()
315 videoFrame->mHeight, in getBitmapFromVideoFrame()
316 videoFrame->mRotationAngle); in getBitmapFromVideoFrame()
319 (uint32_t*)((char*)videoFrame + sizeof(VideoFrame)), in getBitmapFromVideoFrame()
320 videoFrame->mWidth, in getBitmapFromVideoFrame()
321 videoFrame->mHeight, in getBitmapFromVideoFrame()
322 videoFrame->mRotationAngle); in getBitmapFromVideoFrame()
396 VideoFrame *videoFrame = NULL; in android_media_MediaMetadataRetriever_getFrameAtTime() local
399 videoFrame = static_cast<VideoFrame *>(frameMemory->pointer()); in android_media_MediaMetadataRetriever_getFrameAtTime()
401 if (videoFrame == NULL) { in android_media_MediaMetadataRetriever_getFrameAtTime()
406 return getBitmapFromVideoFrame(env, videoFrame, dst_width, dst_height, kRGB_565_SkColorType); in android_media_MediaMetadataRetriever_getFrameAtTime()
422 VideoFrame *videoFrame = NULL; in android_media_MediaMetadataRetriever_getImageAtIndex() local
425 videoFrame = static_cast<VideoFrame *>(frameMemory->pointer()); in android_media_MediaMetadataRetriever_getImageAtIndex()
427 if (videoFrame == NULL) { in android_media_MediaMetadataRetriever_getImageAtIndex()
434 return getBitmapFromVideoFrame(env, videoFrame, -1, -1, outColorType); in android_media_MediaMetadataRetriever_getImageAtIndex()
452 VideoFrame *videoFrame = NULL; in android_media_MediaMetadataRetriever_getThumbnailImageAtIndex() local
456 videoFrame = static_cast<VideoFrame *>(frameMemory->pointer()); in android_media_MediaMetadataRetriever_getThumbnailImageAtIndex()
457 int32_t thumbWidth = videoFrame->mWidth; in android_media_MediaMetadataRetriever_getThumbnailImageAtIndex()
458 int32_t thumbHeight = videoFrame->mHeight; in android_media_MediaMetadataRetriever_getThumbnailImageAtIndex()
459 videoFrame = NULL; in android_media_MediaMetadataRetriever_getThumbnailImageAtIndex()
469 videoFrame = static_cast<VideoFrame *>(frameMemory->pointer()); in android_media_MediaMetadataRetriever_getThumbnailImageAtIndex()
478 if (videoFrame == NULL) { in android_media_MediaMetadataRetriever_getThumbnailImageAtIndex()
485 videoFrame->mRotationAngle = 0; in android_media_MediaMetadataRetriever_getThumbnailImageAtIndex()
489 return getBitmapFromVideoFrame(env, videoFrame, dst_width, dst_height, outColorType); in android_media_MediaMetadataRetriever_getThumbnailImageAtIndex()
526 VideoFrame *videoFrame = static_cast<VideoFrame *>(frames[i]->pointer()); in android_media_MediaMetadataRetriever_getFrameAtIndex() local
527 jobject bitmapObj = getBitmapFromVideoFrame(env, videoFrame, -1, -1, outColorType); in android_media_MediaMetadataRetriever_getFrameAtIndex()