mirror of
https://github.com/mpv-player/mpv
synced 2025-02-02 13:12:05 +00:00
mp_image: add rotation parameter
This commit is contained in:
parent
5e4e248dc2
commit
3b5a331c40
@ -454,7 +454,8 @@ bool mp_image_params_equals(const struct mp_image_params *p1,
|
||||
p1->colorspace == p2->colorspace &&
|
||||
p1->colorlevels == p2->colorlevels &&
|
||||
p1->outputlevels == p2->outputlevels &&
|
||||
p1->chroma_location == p2->chroma_location;
|
||||
p1->chroma_location == p2->chroma_location &&
|
||||
p1->rotate == p2->rotate;
|
||||
}
|
||||
|
||||
void mp_image_params_from_image(struct mp_image_params *params,
|
||||
|
@ -52,6 +52,8 @@ struct mp_image_params {
|
||||
// does not describe the current state of the image. (Somewhat similar to
|
||||
// d_w/d_h vs. w/h.)
|
||||
enum mp_csp_levels outputlevels;
|
||||
// The image should be rotated clockwise (0-359 degrees).
|
||||
int rotate;
|
||||
};
|
||||
|
||||
/* Memory management:
|
||||
|
Loading…
Reference in New Issue
Block a user