Mercurial > libavcodec.hg
comparison avcodec.h @ 8883:62342da1ec78 libavcodec
Attempt to clarify draw_horiz_band description and fix two random typos.
author | diego |
---|---|
date | Sat, 14 Feb 2009 21:00:26 +0000 |
parents | 55edd698a8f3 |
children | 21e7e2e89379 |
comparison
equal
deleted
inserted
replaced
8882:55edd698a8f3 | 8883:62342da1ec78 |
---|---|
958 /** | 958 /** |
959 * If non NULL, 'draw_horiz_band' is called by the libavcodec | 959 * If non NULL, 'draw_horiz_band' is called by the libavcodec |
960 * decoder to draw a horizontal band. It improves cache usage. Not | 960 * decoder to draw a horizontal band. It improves cache usage. Not |
961 * all codecs can do that. You must check the codec capabilities | 961 * all codecs can do that. You must check the codec capabilities |
962 * beforehand. | 962 * beforehand. |
963 * It is also used by hardware acceleration APIs as a callback | 963 * The functino is also used by hardware acceleration APIs as a callback |
964 * to pass specific (partially decoded) data to the calling | 964 * to pass specific (partially decoded) data to the calling application |
965 * application so it could be passed to the rendering hardware. | 965 * so that the data can be passed to the rendering hardware. |
966 * In that mode all relevant function paramerers are inside special | 966 * In that mode all relevant function parameters are inside a special |
967 * structure passed by AVFrame in place of the pixel data. | 967 * structure passed by AVFrame in place of the pixel data. |
968 * The exact structure depends on the acceleration API. | 968 * The exact structure depends on the acceleration API. |
969 * The application is allowed to make changes in the strucure. | 969 * The application is allowed to make changes in the structure. |
970 * - encoding: unused | 970 * - encoding: unused |
971 * - decoding: Set by user. | 971 * - decoding: Set by user. |
972 * @param height the height of the slice | 972 * @param height the height of the slice |
973 * @param y the y position of the slice | 973 * @param y the y position of the slice |
974 * @param type 1->top field, 2->bottom field, 3->frame | 974 * @param type 1->top field, 2->bottom field, 3->frame |
1218 */ | 1218 */ |
1219 void (*release_buffer)(struct AVCodecContext *c, AVFrame *pic); | 1219 void (*release_buffer)(struct AVCodecContext *c, AVFrame *pic); |
1220 | 1220 |
1221 /** | 1221 /** |
1222 * Size of the frame reordering buffer in the decoder. | 1222 * Size of the frame reordering buffer in the decoder. |
1223 * for mpeg2 its 1 IPB or 0 low delay IP | 1223 * For MPEG-2 it is 1 IPB or 0 low delay IP. |
1224 * - encoding: Set by libavcodec. | 1224 * - encoding: Set by libavcodec. |
1225 * - decoding: Set by libavcodec. | 1225 * - decoding: Set by libavcodec. |
1226 */ | 1226 */ |
1227 int has_b_frames; | 1227 int has_b_frames; |
1228 | 1228 |
3126 /** | 3126 /** |
3127 * Parses \p str and put in \p frame_rate the detected values. | 3127 * Parses \p str and put in \p frame_rate the detected values. |
3128 * | 3128 * |
3129 * @return 0 in case of a successful parsing, a negative value otherwise | 3129 * @return 0 in case of a successful parsing, a negative value otherwise |
3130 * @param[in] str the string to parse: it has to be a string in the format | 3130 * @param[in] str the string to parse: it has to be a string in the format |
3131 * <frame_rate_nom>/<frame_rate_den>, a float number or a valid video rate abbreviation | 3131 * <frame_rate_num>/<frame_rate_den>, a float number or a valid video rate abbreviation |
3132 * @param[in,out] frame_rate pointer to the AVRational which will contain the detected | 3132 * @param[in,out] frame_rate pointer to the AVRational which will contain the detected |
3133 * frame rate | 3133 * frame rate |
3134 */ | 3134 */ |
3135 int av_parse_video_frame_rate(AVRational *frame_rate, const char *str); | 3135 int av_parse_video_frame_rate(AVRational *frame_rate, const char *str); |
3136 | 3136 |