Home
last modified time | relevance | path

Searched refs:dst_width (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/media/jni/
Dandroid_media_MediaMetadataRetriever.cpp265 JNIEnv *env, VideoFrame *videoFrame, jint dst_width, jint dst_height, in getBitmapFromVideoFrame() argument
326 if (dst_width <= 0 || dst_height <= 0) { in getBitmapFromVideoFrame()
327 dst_width = displayWidth; in getBitmapFromVideoFrame()
330 float factor = std::min((float)dst_width / (float)displayWidth, in getBitmapFromVideoFrame()
332 dst_width = std::round(displayWidth * factor); in getBitmapFromVideoFrame()
336 if ((uint32_t)dst_width != width || (uint32_t)dst_height != height) { in getBitmapFromVideoFrame()
338 width, height, dst_width, dst_height); in getBitmapFromVideoFrame()
342 dst_width, in getBitmapFromVideoFrame()
386 JNIEnv *env, jobject thiz, jlong timeUs, jint option, jint dst_width, jint dst_height) in android_media_MediaMetadataRetriever_getFrameAtTime() argument
389 (long long)timeUs, option, dst_width, dst_height); in android_media_MediaMetadataRetriever_getFrameAtTime()
[all …]
/frameworks/native/services/surfaceflinger/
DDisplayDevice.cpp238 float dst_width = frame.width(); in setProjection() local
240 if (src_width != dst_width || src_height != dst_height) { in setProjection()
241 float sx = dst_width / src_width; in setProjection()