diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2018-11-21 00:32:59 +0300 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2018-11-21 00:50:37 +0300 |
commit | c4be071d739c356d67f2a9f5d9ea3963a69dd662 (patch) | |
tree | ac18345236b25be6063046c4966f9a7a65e7e2e1 /src/picture.h | |
parent | b716083c7a5a689072cb8f61fc70e31546e8e45e (diff) |
Merge dav1d_picture_alloc() and dav1d_picture_alloc_copy()
Also ensure we apply film-grain to delayed pictures.
Diffstat (limited to 'src/picture.h')
-rw-r--r-- | src/picture.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/picture.h b/src/picture.h index 60fb59c..12f1f97 100644 --- a/src/picture.h +++ b/src/picture.h @@ -54,10 +54,6 @@ typedef struct Dav1dThreadPicture { /* * Allocate a picture with custom border size. */ -int dav1d_picture_alloc(Dav1dPicture *p, int w, int h, - enum Dav1dPixelLayout layout, int bpc, - Dav1dPicAllocator *); - int dav1d_thread_picture_alloc(Dav1dThreadPicture *p, int w, int h, enum Dav1dPixelLayout layout, int bpc, struct thread_data *t, int visible, @@ -65,8 +61,13 @@ int dav1d_thread_picture_alloc(Dav1dThreadPicture *p, int w, int h, /** * Allocate a picture with identical metadata to an existing picture. + * The width is a separate argument so this function can be used for + * super-res, where the width changes, but everything else is the same. + * For the more typical use case of allocating a new image of the same + * dimensions, use src->p.w as width. */ -int dav1d_picture_alloc_copy(Dav1dPicture *dst, const Dav1dPicture *src); +int dav1d_picture_alloc_copy(Dav1dPicture *dst, const int w, + const Dav1dPicture *src); /** * Create a copy of a picture. |