Function ffmpeg_sys::av_pix_fmt_get_chroma_sub_sample [−][src]
pub unsafe extern "C" fn av_pix_fmt_get_chroma_sub_sample(
pix_fmt: AVPixelFormat,
h_shift: *mut c_int,
v_shift: *mut c_int
) -> c_int
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