[vlc-devel] [PATCH 0/3] picture API cleanup (v3)

Steve Lhomme robux4 at ycbcr.xyz
Fri Nov 15 10:03:58 CET 2019

I added a new patch to set to factorize the common code even more.

In the end it should even be possible to use a callback to setup the planes so
that picture_NewFromFormat and picture_NewFromResource are pretty much the same.

This will become convenient when/if we had the picture context and the video
context in the mix and to get rid of one or two of the dynamic data in the

Steve Lhomme (3):
  picture: avoid using void cast
  picture: factorize the code to clone a picture
  picture: always init the picture p_sys/destroy in

 src/misc/picture.c      | 83 +++++++++++++++++++++++++++--------------
 src/misc/picture.h      |  4 +-
 src/misc/picture_pool.c | 18 +--------
 3 files changed, 58 insertions(+), 47 deletions(-)


More information about the vlc-devel mailing list