Revision eb285cfe libavcodec/avcodec.h

View differences:

libavcodec/avcodec.h
1367 1367
    /**
1368 1368
     * Called at the beginning of each frame to get a buffer for it.
1369 1369
     * If pic.reference is set then the frame will be read later by libavcodec.
1370
     * avcodec_align_dimensions() should be used to find the required width and
1370
     * avcodec_align_dimensions2() should be used to find the required width and
1371 1371
     * height, as they normally need to be rounded up to the next multiple of 16.
1372 1372
     * if CODEC_CAP_DR1 is not set then get_buffer() must call
1373 1373
     * avcodec_default_get_buffer() instead of providing buffers allocated by
......
3226 3226
int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic);
3227 3227
void avcodec_default_release_buffer(AVCodecContext *s, AVFrame *pic);
3228 3228
int avcodec_default_reget_buffer(AVCodecContext *s, AVFrame *pic);
3229
/**
3230
 * Modifies width and height values so that they will result in a memory
3231
 * buffer that is acceptable for the codec if you do not use any horizontal
3232
 * padding.
3233
 */
3229 3234
void avcodec_align_dimensions(AVCodecContext *s, int *width, int *height);
3235
/**
3236
 * Modifies width and height values so that they will result in a memory
3237
 * buffer that is acceptable for the codec if you also ensure that all
3238
 * line sizes are a multiple of the respective linesize_align[i].
3239
 */
3240
void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height,
3241
                               int linesize_align[4]);
3230 3242

  
3231 3243
/**
3232 3244
 * Checks if the given dimension of a picture is valid, meaning that all

Also available in: Unified diff