Commit 44f116c8 authored by Jean-Paul Saman's avatar Jean-Paul Saman

VAAPI-XCB: Include vaapi.h and vasub.h only once.

Include the headerfiles vaaph.h and vasub.h only once.
parent f68270b4
......@@ -17,6 +17,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
****************************************************************************/
#ifndef VLC_VAAPI_H
#define VLC_VAAPI_H 1
#ifdef HAVE_AVCODEC_VAAPI
/* VA API connection shared structure
......@@ -97,3 +100,4 @@ struct picture_sys_t
};
#endif
#endif
......@@ -20,6 +20,7 @@
#ifndef VLC_VAAPI_VASUB_H
#define VLC_VAAPI_VASUB_H 1
#ifdef HAVE_AVCODEC_VAAPI
/* Check if subtitle format is supported by VA API */
int VASubtitleFourCC(vlc_va_conn_t *vaconn, const unsigned int vafourcc, VAImageFormat *sub_fmt, int *flags);
int FindVAFourCC(vlc_va_conn_t *vaconn, VAImageFormat *fmt, vlc_fourcc_t *i_chroma, int32_t *i_bits_per_pixel);
......@@ -56,3 +57,5 @@ subpicture_cache_t *RenderDirectSubpicture(vlc_object_t *obj, vlc_va_conn_t *vac
int RenderCachedSubpictures(vlc_object_t *obj, vlc_va_conn_t *vaconn, vlc_array_t *cache_array, const int cache_id,
picture_t *picture, subpicture_t *subpicture);
#endif
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment