• mcasas@chromium.org's avatar
    Mac VideoCapture: return empty GetModel() for non-USB non-built-in cameras. · 79bde7a0
    mcasas@chromium.org authored
    This CL adds support for storage of the camera connection
    information in the devices' names enumeration and subsequently
    in the VideoCaptureDevice::Name structure.
    
    -[AVCaptureDevice transportType] indicates the connection type 
    to the camera: USB, Built-in, PCI, etc. Note that this info is only 
    available for AVFoundation API and not for QTKit. 
    
    Chromium style check forces to move complex constructors
    and destructors from video_capture_device.h to .cc.
    
    TEST: Verify that the FaceTime Built-in HD (USB) used in 
    MBA >=2013 does not show incorrect modelID and vendorID
    in the camera name -- those fields should be empty since
    they only exist for USB or built-in cameras..
    
    BUG=336651
    
    Review URL: https://codereview.chromium.org/366593003
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282063 0039d316-1c4b-4281-b951-d872f2087c98
    79bde7a0
video_capture_device.cc 2.77 KB