Lines Matching refs:videoFrame
265 JNIEnv *env, VideoFrame *videoFrame, jint dst_width, jint dst_height, in getBitmapFromVideoFrame() argument
268 videoFrame->mWidth, in getBitmapFromVideoFrame()
269 videoFrame->mHeight, in getBitmapFromVideoFrame()
270 videoFrame->mDisplayWidth, in getBitmapFromVideoFrame()
271 videoFrame->mDisplayHeight, in getBitmapFromVideoFrame()
272 videoFrame->mSize); in getBitmapFromVideoFrame()
282 if (videoFrame->mRotationAngle == 90 || videoFrame->mRotationAngle == 270) { in getBitmapFromVideoFrame()
283 width = videoFrame->mHeight; in getBitmapFromVideoFrame()
284 height = videoFrame->mWidth; in getBitmapFromVideoFrame()
286 displayWidth = videoFrame->mDisplayHeight; in getBitmapFromVideoFrame()
287 displayHeight = videoFrame->mDisplayWidth; in getBitmapFromVideoFrame()
289 width = videoFrame->mWidth; in getBitmapFromVideoFrame()
290 height = videoFrame->mHeight; in getBitmapFromVideoFrame()
291 displayWidth = videoFrame->mDisplayWidth; in getBitmapFromVideoFrame()
292 displayHeight = videoFrame->mDisplayHeight; in getBitmapFromVideoFrame()
314 (uint16_t*)((char*)videoFrame + sizeof(VideoFrame)), in getBitmapFromVideoFrame()
315 videoFrame->mWidth, in getBitmapFromVideoFrame()
316 videoFrame->mHeight, in getBitmapFromVideoFrame()
317 videoFrame->mRotationAngle); in getBitmapFromVideoFrame()
320 (uint32_t*)((char*)videoFrame + sizeof(VideoFrame)), in getBitmapFromVideoFrame()
321 videoFrame->mWidth, in getBitmapFromVideoFrame()
322 videoFrame->mHeight, in getBitmapFromVideoFrame()
323 videoFrame->mRotationAngle); in getBitmapFromVideoFrame()
397 VideoFrame *videoFrame = NULL; in android_media_MediaMetadataRetriever_getFrameAtTime() local
400 videoFrame = static_cast<VideoFrame *>(frameMemory->pointer()); in android_media_MediaMetadataRetriever_getFrameAtTime()
402 if (videoFrame == NULL) { in android_media_MediaMetadataRetriever_getFrameAtTime()
407 return getBitmapFromVideoFrame(env, videoFrame, dst_width, dst_height, kRGB_565_SkColorType); in android_media_MediaMetadataRetriever_getFrameAtTime()
423 VideoFrame *videoFrame = NULL; in android_media_MediaMetadataRetriever_getImageAtIndex() local
426 videoFrame = static_cast<VideoFrame *>(frameMemory->pointer()); in android_media_MediaMetadataRetriever_getImageAtIndex()
428 if (videoFrame == NULL) { in android_media_MediaMetadataRetriever_getImageAtIndex()
435 return getBitmapFromVideoFrame(env, videoFrame, -1, -1, outColorType); in android_media_MediaMetadataRetriever_getImageAtIndex()
453 VideoFrame *videoFrame = NULL; in android_media_MediaMetadataRetriever_getThumbnailImageAtIndex() local
457 videoFrame = static_cast<VideoFrame *>(frameMemory->pointer()); in android_media_MediaMetadataRetriever_getThumbnailImageAtIndex()
458 int32_t thumbWidth = videoFrame->mWidth; in android_media_MediaMetadataRetriever_getThumbnailImageAtIndex()
459 int32_t thumbHeight = videoFrame->mHeight; in android_media_MediaMetadataRetriever_getThumbnailImageAtIndex()
460 videoFrame = NULL; in android_media_MediaMetadataRetriever_getThumbnailImageAtIndex()
470 videoFrame = static_cast<VideoFrame *>(frameMemory->pointer()); in android_media_MediaMetadataRetriever_getThumbnailImageAtIndex()
479 if (videoFrame == NULL) { in android_media_MediaMetadataRetriever_getThumbnailImageAtIndex()
486 videoFrame->mRotationAngle = 0; in android_media_MediaMetadataRetriever_getThumbnailImageAtIndex()
490 return getBitmapFromVideoFrame(env, videoFrame, dst_width, dst_height, outColorType); in android_media_MediaMetadataRetriever_getThumbnailImageAtIndex()
527 VideoFrame *videoFrame = static_cast<VideoFrame *>(frames[i]->pointer()); in android_media_MediaMetadataRetriever_getFrameAtIndex() local
528 jobject bitmapObj = getBitmapFromVideoFrame(env, videoFrame, -1, -1, outColorType); in android_media_MediaMetadataRetriever_getFrameAtIndex()