• Christopher Cameron's avatar
    Add media::GetFormatDescriptionColorSpace · 6c5fa707
    Christopher Cameron authored
    This function is nearly identical to media::GetImageBufferColorSpace,
    but instead operates on a CMFormatDescriptionRef.
    
    Add DCHECKs that the behavior of the two functions be the same, that is,
    the kCVImageBuffer-prefixed and  kCMFormatDescription-prefixed
    constants be equal.
    
    Use base::mac::CFCast instead of reinterpret_casts.
    
    The next patch in this sequence will move these two functions over
    to media/base/mac, because it will be accessed in capture.
    
    Bug: 959962
    Change-Id: I8a4d8468abc866a13cb6181cbd49d9ee04288124
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2436513
    Commit-Queue: ccameron <ccameron@chromium.org>
    Reviewed-by: default avatarDale Curtis <dalecurtis@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#811829}
    6c5fa707
vt_config_util.mm 24.1 KB