Function rsmpeg::ffi::av_pix_fmt_get_chroma_sub_sample[][src]

pub unsafe extern "C" fn av_pix_fmt_get_chroma_sub_sample(
    pix_fmt: i32,
    h_shift: *mut i32,
    v_shift: *mut i32
) -> i32
Expand description

Utility function to access log2_chroma_w log2_chroma_h from the pixel format AVPixFmtDescriptor.

@param[in] pix_fmt the pixel format @param[out] h_shift store log2_chroma_w (horizontal/width shift) @param[out] v_shift store log2_chroma_h (vertical/height shift)

@return 0 on success, AVERROR(ENOSYS) on invalid or unknown pixel format