[FFmpeg-devel] [RFC] Document how to use avcodec_get_edge_width
Reimar Döffinger
Reimar.Doeffinger
Fri May 14 01:00:59 CEST 2010
Hello,
I am not sure how this was intended to be done, but I think something similar
to this should be done.
Index: avcodec.h
===================================================================
--- avcodec.h (revision 23070)
+++ avcodec.h (working copy)
@@ -3313,12 +3313,20 @@
* 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
* 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);
/**
* 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
* 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,
int linesize_align[4]);
More information about the ffmpeg-devel
mailing list