[][src]Function ffmpeg_sys_next::avcodec_align_dimensions2

pub unsafe extern "C" fn avcodec_align_dimensions2(
    s: *mut AVCodecContext,
    width: *mut c_int,
    height: *mut c_int,
    linesize_align: *mut c_int
)

Modify 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 AV_CODEC_CAP_DR1 has been opened.