| OLD | NEW |
| 1 /* | 1 /* |
| 2 * The Video Decode and Presentation API for UNIX (VDPAU) is used for | 2 * The Video Decode and Presentation API for UNIX (VDPAU) is used for |
| 3 * hardware-accelerated decoding of MPEG-1/2, H.264 and VC-1. | 3 * hardware-accelerated decoding of MPEG-1/2, H.264 and VC-1. |
| 4 * | 4 * |
| 5 * Copyright (C) 2008 NVIDIA | 5 * Copyright (C) 2008 NVIDIA |
| 6 * | 6 * |
| 7 * This file is part of FFmpeg. | 7 * This file is part of FFmpeg. |
| 8 * | 8 * |
| 9 * FFmpeg is free software; you can redistribute it and/or | 9 * FFmpeg is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Lesser General Public | 10 * modify it under the terms of the GNU Lesser General Public |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 * picture parameter, bitstream information etc which are passed | 63 * picture parameter, bitstream information etc which are passed |
| 64 * between the FFmpeg decoder and its clients. | 64 * between the FFmpeg decoder and its clients. |
| 65 */ | 65 */ |
| 66 struct vdpau_render_state { | 66 struct vdpau_render_state { |
| 67 VdpVideoSurface surface; ///< Used as rendered surface, never changed. | 67 VdpVideoSurface surface; ///< Used as rendered surface, never changed. |
| 68 | 68 |
| 69 int state; ///< Holds FF_VDPAU_STATE_* values. | 69 int state; ///< Holds FF_VDPAU_STATE_* values. |
| 70 | 70 |
| 71 /** picture parameter information for all supported codecs */ | 71 /** picture parameter information for all supported codecs */ |
| 72 union VdpPictureInfo { | 72 union VdpPictureInfo { |
| 73 VdpPictureInfoH264 h264; |
| 73 VdpPictureInfoMPEG1Or2 mpeg; | 74 VdpPictureInfoMPEG1Or2 mpeg; |
| 74 VdpPictureInfoH264 h264; | 75 VdpPictureInfoVC1 vc1; |
| 75 } info; | 76 } info; |
| 76 | 77 |
| 77 /** Describe size/location of the compressed video data. */ | 78 /** Describe size/location of the compressed video data. */ |
| 78 int bitstream_buffers_allocated; | 79 int bitstream_buffers_allocated; |
| 79 int bitstream_buffers_used; | 80 int bitstream_buffers_used; |
| 80 VdpBitstreamBuffer *bitstream_buffers; | 81 VdpBitstreamBuffer *bitstream_buffers; |
| 81 }; | 82 }; |
| 82 | 83 |
| 83 /* @}*/ | 84 /* @}*/ |
| 84 | 85 |
| 85 #endif /* AVCODEC_VDPAU_H */ | 86 #endif /* AVCODEC_VDPAU_H */ |
| OLD | NEW |