/** This way the picture_Release can be overloaded */
struct
{
- vlc_atomic_t refcount;
+ atomic_uintptr_t refcount;
void (*pf_destroy)( picture_t * );
picture_gc_sys_t *p_sys;
} gc;
typedef struct
{
picture_sys_t *p_sys;
+ void (*pf_destroy)(picture_t *);
/* Plane resources
* XXX all fields MUST be set to the right value.
*
* It can be useful to get the properties of planes.
*/
-VLC_API int picture_Setup( picture_t *, vlc_fourcc_t i_chroma, int i_width, int i_height, int i_sar_num, int i_sar_den );
+VLC_API int picture_Setup( picture_t *, const video_format_t * );
/**