Mercurial > libavcodec.hg
comparison mpegvideo_xvmc.c @ 12024:fdafbcef52f5 libavcodec
Fix grammar errors in documentation
author | mru |
---|---|
date | Wed, 30 Jun 2010 15:38:06 +0000 |
parents | bfb6c7ff97b4 |
children |
comparison
equal
deleted
inserted
replaced
12023:c7455450364d | 12024:fdafbcef52f5 |
---|---|
31 | 31 |
32 #include "xvmc.h" | 32 #include "xvmc.h" |
33 #include "xvmc_internal.h" | 33 #include "xvmc_internal.h" |
34 | 34 |
35 /** | 35 /** |
36 * Initializes the block field of the MpegEncContext pointer passed as | 36 * Initialize the block field of the MpegEncContext pointer passed as |
37 * parameter after making sure that the data is not corrupted. | 37 * parameter after making sure that the data is not corrupted. |
38 * In order to implement something like direct rendering instead of decoding | 38 * In order to implement something like direct rendering instead of decoding |
39 * coefficients in s->blocks and then copying them, copy them directly | 39 * coefficients in s->blocks and then copying them, copy them directly |
40 * into the data_blocks array provided by xvmc. | 40 * into the data_blocks array provided by xvmc. |
41 */ | 41 */ |
46 | 46 |
47 s->block = (DCTELEM (*)[64])(render->data_blocks + render->next_free_data_block_num * 64); | 47 s->block = (DCTELEM (*)[64])(render->data_blocks + render->next_free_data_block_num * 64); |
48 } | 48 } |
49 | 49 |
50 /** | 50 /** |
51 * Fills individual block pointers, so there are no gaps in the data_block array | 51 * Fill individual block pointers, so there are no gaps in the data_block array |
52 * in case not all blocks in the macroblock are coded. | 52 * in case not all blocks in the macroblock are coded. |
53 */ | 53 */ |
54 void ff_xvmc_pack_pblocks(MpegEncContext *s, int cbp) | 54 void ff_xvmc_pack_pblocks(MpegEncContext *s, int cbp) |
55 { | 55 { |
56 int i, j = 0; | 56 int i, j = 0; |
65 cbp += cbp; | 65 cbp += cbp; |
66 } | 66 } |
67 } | 67 } |
68 | 68 |
69 /** | 69 /** |
70 * Finds and stores the surfaces that are used as reference frames. | 70 * Find and store the surfaces that are used as reference frames. |
71 * This function should be called for every new field and/or frame. | 71 * This function should be called for every new field and/or frame. |
72 * It should be safe to call the function a few times for the same field. | 72 * It should be safe to call the function a few times for the same field. |
73 */ | 73 */ |
74 int ff_xvmc_field_start(MpegEncContext *s, AVCodecContext *avctx) | 74 int ff_xvmc_field_start(MpegEncContext *s, AVCodecContext *avctx) |
75 { | 75 { |
132 | 132 |
133 return -1; | 133 return -1; |
134 } | 134 } |
135 | 135 |
136 /** | 136 /** |
137 * Completes frame/field rendering by passing any remaining blocks. | 137 * Complete frame/field rendering by passing any remaining blocks. |
138 * Normally ff_draw_horiz_band() is called for each slice, however, | 138 * Normally ff_draw_horiz_band() is called for each slice, however, |
139 * some leftover blocks, for example from error_resilience(), may remain. | 139 * some leftover blocks, for example from error_resilience(), may remain. |
140 * It should be safe to call the function a few times for the same field. | 140 * It should be safe to call the function a few times for the same field. |
141 */ | 141 */ |
142 void ff_xvmc_field_end(MpegEncContext *s) | 142 void ff_xvmc_field_end(MpegEncContext *s) |
147 if (render->filled_mv_blocks_num > 0) | 147 if (render->filled_mv_blocks_num > 0) |
148 ff_draw_horiz_band(s, 0, 0); | 148 ff_draw_horiz_band(s, 0, 0); |
149 } | 149 } |
150 | 150 |
151 /** | 151 /** |
152 * Synthesizes the data needed by XvMC to render one macroblock of data. | 152 * Synthesize the data needed by XvMC to render one macroblock of data. |
153 * Fills all relevant fields, if necessary do IDCT. | 153 * Fill all relevant fields, if necessary do IDCT. |
154 */ | 154 */ |
155 void ff_xvmc_decode_mb(MpegEncContext *s) | 155 void ff_xvmc_decode_mb(MpegEncContext *s) |
156 { | 156 { |
157 XvMCMacroBlock *mv_block; | 157 XvMCMacroBlock *mv_block; |
158 struct xvmc_pix_fmt *render; | 158 struct xvmc_pix_fmt *render; |