Commit 6dd6df8d authored by reimar's avatar reimar

Document CODEC_FLAG_EMU_EDGE and avcodec_align_dimensions interaction.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23258 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a9376e5c
...@@ -3316,12 +3316,20 @@ unsigned avcodec_get_edge_width(void); ...@@ -3316,12 +3316,20 @@ unsigned avcodec_get_edge_width(void);
* Modifies width and height values so that they will result in a memory * Modifies width and height values so that they will result in a memory
* buffer that is acceptable for the codec if you do not use any horizontal * buffer that is acceptable for the codec if you do not use any horizontal
* padding. * padding.
*
* May only be used if a codec with CODEC_CAP_DR1 has been opened.
* If CODEC_FLAG_EMU_EDGE is not set, the dimensions must have been increased
* according to avcodec_get_edge_width() before.
*/ */
void avcodec_align_dimensions(AVCodecContext *s, int *width, int *height); void avcodec_align_dimensions(AVCodecContext *s, int *width, int *height);
/** /**
* Modifies width and height values so that they will result in a memory * Modifies width and height values so that they will result in a memory
* buffer that is acceptable for the codec if you also ensure that all * buffer that is acceptable for the codec if you also ensure that all
* line sizes are a multiple of the respective linesize_align[i]. * line sizes are a multiple of the respective linesize_align[i].
*
* May only be used if a codec with CODEC_CAP_DR1 has been opened.
* If CODEC_FLAG_EMU_EDGE is not set, the dimensions must have been increased
* according to avcodec_get_edge_width() before.
*/ */
void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height, void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height,
int linesize_align[4]); int linesize_align[4]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment