Scale video/image to output size instead of adding black bars or no scaling

This commit is contained in:
dec05eba
2025-11-17 23:19:26 +01:00
parent a3e1b2a896
commit cc43ca0336
6 changed files with 10 additions and 25 deletions

View File

@@ -20,7 +20,7 @@ typedef struct {
} gsr_capture_metadata;
struct gsr_capture {
/* These methods should not be called manually. Call gsr_capture_* instead. |capture_metdata->width| and |capture_metadata->height| should be set by this function */
/* These methods should not be called manually. Call gsr_capture_* instead. |capture_metadata->width| and |capture_metadata->height| should be set by this function */
int (*start)(gsr_capture *cap, gsr_capture_metadata *capture_metadata);
void (*on_event)(gsr_capture *cap, gsr_egl *egl); /* can be NULL */
void (*tick)(gsr_capture *cap); /* can be NULL. If there is an event then |on_event| is called before this */