demux: heif: refactor extents reading
[vlc.git] / lib / picture_internal.h
blob83b913f0f3eb5a166c62a021006238083f12f25d
1 /*****************************************************************************
2 * picture_internal.h: libvlc API picture management
3 *****************************************************************************
4 * Copyright (C) 1998-2018 VLC authors and VideoLAN
6 * Authors: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU Lesser General Public License as published by
10 * the Free Software Foundation; either version 2.1 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this program; if not, write to the Free Software Foundation,
20 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
21 *****************************************************************************/
23 #ifndef PICTURE_INTERNAL_H
24 #define PICTURE_INTERNAL_H
26 #include <vlc_picture.h>
28 /**
29 * \brief libvlc_picture_new Wraps a libvlccore's picture_t to a libvlc_picture_t
30 * \param p_obj A vlc object
31 * \param p_input Input picture
32 * \param i_type Desired converted picture type
33 * \param i_width Converted picture width
34 * \param i_height Converted picture height
35 * \return An opaque libvlc_picture_t
37 * The picture refcount is left untouched by this function, but is converted to
38 * the required format and stored as a block_t
39 * The returned picture must be released through libvlc_picture_release
41 libvlc_picture_t* libvlc_picture_new( vlc_object_t* p_obj, picture_t* p_pic,
42 libvlc_picture_type_t i_format,
43 unsigned int i_width, unsigned int i_height );
45 #endif /* PICTURE_INTERNAL_H */