Function avcodec_align_dimensions2
pub unsafe extern "C" fn avcodec_align_dimensions2(
s: *mut AVCodecContext,
width: *mut i32,
height: *mut i32,
linesize_align: *mut i32,
)
Expand description
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.