Originally committed as revision 16435 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diego Biurrun authored on 2009/01/05 20:49:15... | ... |
@@ -1,8 +1,8 @@ |
1 | 1 |
/* |
2 |
- * Video Decode and Presentation API for UNIX (VDPAU) is used for |
|
3 |
- * HW decode acceleration for MPEG-1/2, H.264 and VC-1. |
|
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. |
|
4 | 4 |
* |
5 |
- * Copyright (C) 2008 NVIDIA. |
|
5 |
+ * Copyright (C) 2008 NVIDIA |
|
6 | 6 |
* |
7 | 7 |
* This file is part of FFmpeg. |
8 | 8 |
* |
... | ... |
@@ -27,15 +27,15 @@ |
27 | 27 |
/** |
28 | 28 |
* \defgroup Decoder VDPAU Decoder and Renderer |
29 | 29 |
* |
30 |
- * VDPAU HW acceleration has two modules |
|
31 |
- * - VDPAU Decoding |
|
32 |
- * - VDPAU Presentation |
|
30 |
+ * VDPAU hardware acceleration has two modules |
|
31 |
+ * - VDPAU decoding |
|
32 |
+ * - VDPAU presentation |
|
33 | 33 |
* |
34 |
- * VDPAU decoding module parses all headers using FFmpeg |
|
35 |
- * parsing mechanism and uses VDPAU for the actual decoding. |
|
34 |
+ * The VDPAU decoding module parses all headers using FFmpeg |
|
35 |
+ * parsing mechanisms and uses VDPAU for the actual decoding. |
|
36 | 36 |
* |
37 | 37 |
* As per the current implementation, the actual decoding |
38 |
- * and rendering (API calls) are done as part of VDPAU |
|
38 |
+ * and rendering (API calls) are done as part of the VDPAU |
|
39 | 39 |
* presentation (vo_vdpau.c) module. |
40 | 40 |
* |
41 | 41 |
* @{ |
... | ... |
@@ -47,35 +47,33 @@ |
47 | 47 |
#include "vdpau/vdpau.h" |
48 | 48 |
#include "vdpau/vdpau_x11.h" |
49 | 49 |
|
50 |
-/** |
|
51 |
- * \brief The videoSurface is used for render. |
|
52 |
- */ |
|
50 |
+/** \brief The videoSurface is used for rendering. */ |
|
53 | 51 |
#define FF_VDPAU_STATE_USED_FOR_RENDER 1 |
54 | 52 |
|
55 | 53 |
/** |
56 |
- * \brief The videoSurface is needed for reference/prediction, |
|
57 |
- * codec manipulates this. |
|
54 |
+ * \brief The videoSurface is needed for reference/prediction. |
|
55 |
+ * The codec manipulates this. |
|
58 | 56 |
*/ |
59 | 57 |
#define FF_VDPAU_STATE_USED_FOR_REFERENCE 2 |
60 | 58 |
|
61 | 59 |
/** |
62 |
- * \brief This structure is used as a CALL-BACK between the ffmpeg |
|
60 |
+ * \brief This structure is used as a callback between the FFmpeg |
|
63 | 61 |
* decoder (vd_) and presentation (vo_) module. |
64 |
- * This is used for defining a video-frame containing surface, |
|
65 |
- * picture-parameter, bitstream informations etc which are passed |
|
66 |
- * between ffmpeg decoder and its clients. |
|
62 |
+ * This is used for defining a video frame containing surface, |
|
63 |
+ * picture parameter, bitstream information etc which are passed |
|
64 |
+ * between the FFmpeg decoder and its clients. |
|
67 | 65 |
*/ |
68 |
-struct vdpau_render_state{ |
|
69 |
- VdpVideoSurface surface; ///< used as rendered surface, never changed. |
|
66 |
+struct vdpau_render_state { |
|
67 |
+ VdpVideoSurface surface; ///< Used as rendered surface, never changed. |
|
70 | 68 |
|
71 |
- int state; ///< Holds FF_VDPAU_STATE_* values |
|
69 |
+ int state; ///< Holds FF_VDPAU_STATE_* values. |
|
72 | 70 |
|
73 |
- /** Picture Parameter information for all supported codecs */ |
|
71 |
+ /** picture parameter information for all supported codecs */ |
|
74 | 72 |
union _VdpPictureInfo { |
75 | 73 |
VdpPictureInfoH264 h264; |
76 | 74 |
} info; |
77 | 75 |
|
78 |
- /** Describe size/location of the compressed video data */ |
|
76 |
+ /** Describe size/location of the compressed video data. */ |
|
79 | 77 |
int bitstreamBuffersAlloced; |
80 | 78 |
int bitstreamBuffersUsed; |
81 | 79 |
VdpBitstreamBuffer *bitstreamBuffers; |