MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / set_default_window_size

Function set_default_window_size

fftools/ffplay.c:1378–1388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1376}
1377
1378static void set_default_window_size(int width, int height, AVRational sar)
1379{
1380 SDL_Rect rect;
1381 int max_width = screen_width ? screen_width : INT_MAX;
1382 int max_height = screen_height ? screen_height : INT_MAX;
1383 if (max_width == INT_MAX && max_height == INT_MAX)
1384 max_height = height;
1385 calculate_display_rect(&rect, 0, 0, max_width, max_height, width, height, sar);
1386 default_width = rect.w;
1387 default_height = rect.h;
1388}
1389
1390static int video_open(VideoState *is)
1391{

Callers 2

queue_pictureFunction · 0.85
read_threadFunction · 0.85

Calls 1

calculate_display_rectFunction · 0.85

Tested by

no test coverage detected