• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • Examples
  • File List
  • Globals

libavcodec/vdpau.h

Go to the documentation of this file.
00001 /*
00002  * The Video Decode and Presentation API for UNIX (VDPAU) is used for
00003  * hardware-accelerated decoding of MPEG-1/2, H.264 and VC-1.
00004  *
00005  * Copyright (C) 2008 NVIDIA
00006  *
00007  * This file is part of Libav.
00008  *
00009  * Libav is free software; you can redistribute it and/or
00010  * modify it under the terms of the GNU Lesser General Public
00011  * License as published by the Free Software Foundation; either
00012  * version 2.1 of the License, or (at your option) any later version.
00013  *
00014  * Libav is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017  * Lesser General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU Lesser General Public
00020  * License along with Libav; if not, write to the Free Software
00021  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
00022  */
00023 
00024 #ifndef AVCODEC_VDPAU_H
00025 #define AVCODEC_VDPAU_H
00026 
00046 #include <vdpau/vdpau.h>
00047 #include <vdpau/vdpau_x11.h>
00048 
00050 #define FF_VDPAU_STATE_USED_FOR_RENDER 1
00051 
00056 #define FF_VDPAU_STATE_USED_FOR_REFERENCE 2
00057 
00065 struct vdpau_render_state {
00066     VdpVideoSurface surface; 
00067 
00068     int state; 
00069 
00071     union VdpPictureInfo {
00072         VdpPictureInfoH264        h264;
00073         VdpPictureInfoMPEG1Or2    mpeg;
00074         VdpPictureInfoVC1          vc1;
00075         VdpPictureInfoMPEG4Part2 mpeg4;
00076     } info;
00077 
00080     int bitstream_buffers_allocated;
00081     int bitstream_buffers_used;
00083     VdpBitstreamBuffer *bitstream_buffers;
00084 };
00085 
00086 /* @}*/
00087 
00088 #endif /* AVCODEC_VDPAU_H */
Generated on Sun Apr 22 2012 21:54:05 for Libav by doxygen 1.7.1