diff options
| author | 2024-10-28 13:08:13 -0400 | |
|---|---|---|
| committer | 2024-10-28 13:23:02 -0400 | |
| commit | 846e17728f2ed2af3672987ef61853f0bc96c224 (patch) | |
| tree | e8e81fc8a2a7de208bd9ba397ef3928d33110824 /src/screen | |
| parent | d6735566cebf82a5d22a3ade22b9acd52fbe11a5 (diff) | |
| download | camu-846e17728f2ed2af3672987ef61853f0bc96c224.tar.gz camu-846e17728f2ed2af3672987ef61853f0bc96c224.tar.bz2 camu-846e17728f2ed2af3672987ef61853f0bc96c224.zip | |
Refactor video buffer and scaler, better A/V sync
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/screen')
| -rw-r--r-- | src/screen/screen.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/screen/screen.c b/src/screen/screen.c index afc6b9b..30c77d6 100644 --- a/src/screen/screen.c +++ b/src/screen/screen.c @@ -1,8 +1,6 @@ #include <al/log.h> #include <aki/thread.h> -#include "../liana/list.h" - #include "view.h" #include "screen.h" @@ -325,19 +323,19 @@ static void add_buffer_internal(struct camu_screen *scr, struct camu_video_buffe struct camu_screen_video video = { .buf = buf }; - struct camu_codec_stream *stream = buf->stream; + struct camu_video_format *fmt = &buf->fmt.req; if (buf->view.mode != CAMU_VIEW_NONE) { video.view = buf->view; #if 0 } else if (!al_array_is_empty(scr->videos)) { video.view = al_array_last(scr->videos).view; - video.view.width = stream->video.width; - video.view.height = stream->video.height; + video.view.width = fmt->width; + video.view.height = fmt->height; #endif } else { video.view.mode = CAMU_DEFAULT_VIEW; - video.view.width = stream->video.width; - video.view.height = stream->video.height; + video.view.width = fmt->width; + video.view.height = fmt->height; video.view.stretch = 1.0; video.view.rotation = CAMU_VIEW_ROTATION_0; video.view.zindex = 0; |