comparison avcodec.h @ 11754:0ec1a0299e2d libavcodec

Document CODEC_FLAG_EMU_EDGE and avcodec_align_dimensions interaction.
author reimar
date Sun, 23 May 2010 15:34:39 +0000
parents 378caf7b42ef
children cec5a6f0beec
comparison
equal deleted inserted replaced
11753:4c894b716948 11754:0ec1a0299e2d
3314 unsigned avcodec_get_edge_width(void); 3314 unsigned avcodec_get_edge_width(void);
3315 /** 3315 /**
3316 * Modifies width and height values so that they will result in a memory 3316 * Modifies width and height values so that they will result in a memory
3317 * buffer that is acceptable for the codec if you do not use any horizontal 3317 * buffer that is acceptable for the codec if you do not use any horizontal
3318 * padding. 3318 * padding.
3319 *
3320 * May only be used if a codec with CODEC_CAP_DR1 has been opened.
3321 * If CODEC_FLAG_EMU_EDGE is not set, the dimensions must have been increased
3322 * according to avcodec_get_edge_width() before.
3319 */ 3323 */
3320 void avcodec_align_dimensions(AVCodecContext *s, int *width, int *height); 3324 void avcodec_align_dimensions(AVCodecContext *s, int *width, int *height);
3321 /** 3325 /**
3322 * Modifies width and height values so that they will result in a memory 3326 * Modifies width and height values so that they will result in a memory
3323 * buffer that is acceptable for the codec if you also ensure that all 3327 * buffer that is acceptable for the codec if you also ensure that all
3324 * line sizes are a multiple of the respective linesize_align[i]. 3328 * line sizes are a multiple of the respective linesize_align[i].
3329 *
3330 * May only be used if a codec with CODEC_CAP_DR1 has been opened.
3331 * If CODEC_FLAG_EMU_EDGE is not set, the dimensions must have been increased
3332 * according to avcodec_get_edge_width() before.
3325 */ 3333 */
3326 void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height, 3334 void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height,
3327 int linesize_align[4]); 3335 int linesize_align[4]);
3328 3336
3329 /** 3337 /**