mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-03 06:39:39 +00:00
Add note about better quality image scaling
This commit is contained in:
parent
0ddd0b366c
commit
6fd343d7f9
1 changed files with 5 additions and 1 deletions
|
@ -90,7 +90,11 @@ static bool in_frame_to_png(
|
||||||
targetWidth,
|
targetWidth,
|
||||||
targetHeight,
|
targetHeight,
|
||||||
AV_PIX_FMT_RGB24,
|
AV_PIX_FMT_RGB24,
|
||||||
SWS_FAST_BILINEAR, 0, 0, 0);
|
// NOTE(frankleonrose): These options offer better picture
|
||||||
|
// quality in case of scaling, according to https://stackoverflow.com/a/46169884
|
||||||
|
// SWS_BILINEAR | SWS_FULL_CHR_H_INT | SWS_ACCURATE_RND,
|
||||||
|
SWS_FAST_BILINEAR,
|
||||||
|
0, 0, 0);
|
||||||
|
|
||||||
AVFrame * rgbFrame = av_frame_alloc();
|
AVFrame * rgbFrame = av_frame_alloc();
|
||||||
LOGV("Image frame width: %d height: %d scaling to %d x %d", *inframe->linesize, inframe->height, targetWidth, targetHeight);
|
LOGV("Image frame width: %d height: %d scaling to %d x %d", *inframe->linesize, inframe->height, targetWidth, targetHeight);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue