[][src]Function ffmpeg_sys_next::av_crc_init

pub unsafe extern "C" fn av_crc_init(
    ctx: *mut AVCRC,
    le: c_int,
    bits: c_int,
    poly: u32,
    ctx_size: c_int
) -> c_int

Initialize a CRC table. @param ctx must be an array of size sizeof(AVCRC)*257 or sizeof(AVCRC)*1024 @param le If 1, the lowest bit represents the coefficient for the highest exponent of the corresponding polynomial (both for poly and actual CRC). If 0, you must swap the CRC parameter and the result of av_crc if you need the standard representation (can be simplified in most cases to e.g. bswap16): av_bswap32(crc << (32-bits)) @param bits number of bits for the CRC @param poly generator polynomial without the x**bits coefficient, in the representation as specified by le @param ctx_size size of ctx in bytes @return <0 on failure