VirtualBox

Changeset 48607 in vbox for trunk


Ignore:
Timestamp:
Sep 20, 2013 3:47:37 PM (11 years ago)
Author:
vboxsync
Message:

VBoxManage,Main: VideoCaptureDevice -> VideoInputDevice

Location:
trunk
Files:
6 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/log.h

    r48578 r48607  
    376376    /** Main group, IHostUSBDeviceFilter. */
    377377    LOG_GROUP_MAIN_HOSTUSBDEVICEFILTER,
    378     /** Main group, IHostVideoCaptureDevice. */
    379     LOG_GROUP_MAIN_HOSTVIDEOCAPTUREDEVICE,
     378    /** Main group, IHostVideoInputDevice. */
     379    LOG_GROUP_MAIN_HOSTVIDEOINPUTDEVICE,
    380380    /** Main group, IInternalMachineControl. */
    381381    LOG_GROUP_MAIN_INTERNALMACHINECONTROL,
     
    845845    "MAIN_HOSTUSBDEVICE", \
    846846    "MAIN_HOSTUSBDEVICEFILTER", \
    847     "MAIN_HOSTVIDEOCAPTUREDEVICE", \
     847    "MAIN_HOSTVIDEOINPUTDEVICE", \
    848848    "MAIN_INTERNALMACHINECONTROL", \
    849849    "MAIN_INTERNALSESSIONCONTROL", \
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageList.cpp

    r48600 r48607  
    738738 * @param   pVirtualBox         Reference to the IVirtualBox pointer.
    739739 */
    740 static HRESULT listVideoCaptureDevices(const ComPtr<IVirtualBox> pVirtualBox)
     740static HRESULT listVideoInputDevices(const ComPtr<IVirtualBox> pVirtualBox)
    741741{
    742742    HRESULT rc;
    743743    ComPtr<IHost> host;
    744744    CHECK_ERROR(pVirtualBox, COMGETTER(Host)(host.asOutParam()));
    745     com::SafeIfaceArray<IHostVideoCaptureDevice> hostVideoCaptureDevices;
    746     CHECK_ERROR(host, COMGETTER(VideoCaptureDevices)(ComSafeArrayAsOutParam(hostVideoCaptureDevices)));
    747     RTPrintf("Video Capture Devices: %u\n", hostVideoCaptureDevices.size());
    748     for (size_t i = 0; i < hostVideoCaptureDevices.size(); ++i)
    749     {
    750         ComPtr<IHostVideoCaptureDevice> p = hostVideoCaptureDevices[i];
     745    com::SafeIfaceArray<IHostVideoInputDevice> hostVideoInputDevices;
     746    CHECK_ERROR(host, COMGETTER(VideoInputDevices)(ComSafeArrayAsOutParam(hostVideoInputDevices)));
     747    RTPrintf("Video Input Devices: %u\n", hostVideoInputDevices.size());
     748    for (size_t i = 0; i < hostVideoInputDevices.size(); ++i)
     749    {
     750        ComPtr<IHostVideoInputDevice> p = hostVideoInputDevices[i];
    751751        Bstr name;
    752752        p->COMGETTER(Name)(name.asOutParam());
     
    790790    kListGroups,
    791791    kListNatNetworks,
    792     kListVideoCaptureDevices
     792    kListVideoInputDevices
    793793};
    794794
     
    11241124        }
    11251125
    1126         case kListVideoCaptureDevices:
    1127             rc = listVideoCaptureDevices(pVirtualBox);
     1126        case kListVideoInputDevices:
     1127            rc = listVideoInputDevices(pVirtualBox);
    11281128            break;
    11291129
     
    11761176        { "extpacks",           kListExtPacks,           RTGETOPT_REQ_NOTHING },
    11771177        { "groups",             kListGroups,             RTGETOPT_REQ_NOTHING },
    1178         { "webcams",            kListVideoCaptureDevices, RTGETOPT_REQ_NOTHING },
     1178        { "webcams",            kListVideoInputDevices, RTGETOPT_REQ_NOTHING },
    11791179    };
    11801180
     
    12221222            case kListGroups:
    12231223            case kListNatNetworks:
    1224             case kListVideoCaptureDevices:
     1224            case kListVideoInputDevices:
    12251225                enmOptCommand = (enum enmListType)ch;
    12261226                if (fOptMultiple)
  • trunk/src/VBox/Main/Makefile.kmk

    r48600 r48607  
    350350        src-server/HostNetworkInterfaceImpl.cpp \
    351351        src-server/HostPower.cpp \
    352         src-server/HostVideoCaptureDeviceImpl.cpp \
     352        src-server/HostVideoInputDeviceImpl.cpp \
    353353        src-server/MachineImpl.cpp \
    354354        src-server/MachineImplCloneVM.cpp \
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r48578 r48607  
    83098309
    83108310  <interface
    8311     name="IHostVideoCaptureDevice" extends="$unknown"
    8312     uuid="b3979ea4-bf32-4a03-8158-44d64a59487d"
     8311    name="IHostVideoInputDevice" extends="$unknown"
     8312    uuid="a1ceae44-d65e-4156-9359-d390f93ee9a0"
    83138313    wsmap="managed"
    83148314    >
     
    83328332  <interface
    83338333    name="IHost" extends="$unknown"
    8334     uuid="e1e3150d-1764-4819-b53a-c09a75a8b8f0"
     8334    uuid="93269330-48ca-4096-b4a2-1189df336267"
    83358335    wsmap="managed"
    83368336    >
     
    87888788    </method>
    87898789
    8790     <attribute name="videoCaptureDevices" type="IHostVideoCaptureDevice" safearray="yes" readonly="yes">
     8790    <attribute name="videoInputDevices" type="IHostVideoInputDevice" safearray="yes" readonly="yes">
    87918791      <desc>List of currently available host video capture devices.</desc>
    87928792    </attribute>
  • trunk/src/VBox/Main/include/HostImpl.h

    r48578 r48607  
    7878    STDMETHOD(COMGETTER(UTCTime))(LONG64 *aUTCTime);
    7979    STDMETHOD(COMGETTER(Acceleration3DAvailable))(BOOL *aSupported);
    80     STDMETHOD(COMGETTER(VideoCaptureDevices))(ComSafeArrayOut(IHostVideoCaptureDevice*, aVideoCaptureDevices));
     80    STDMETHOD(COMGETTER(VideoInputDevices))(ComSafeArrayOut(IHostVideoInputDevice*, aVideoInputDevices));
    8181
    8282    // IHost methods
  • trunk/src/VBox/Main/include/HostVideoInputDeviceImpl.h

    r48600 r48607  
    1818 */
    1919
    20 #ifndef HOSTVIDEOCAPTUREDEVICE_IMPL_H_
    21 #define HOSTVIDEOCAPTUREDEVICE_IMPL_H_
     20#ifndef HOSTVIDEOINPUTDEVICE_IMPL_H_
     21#define HOSTVIDEOINPUTDEVICE_IMPL_H_
    2222
    23 #include "HostVideoCaptureDeviceWrap.h"
     23#include "HostVideoInputDeviceWrap.h"
    2424
    2525#include <list>
    2626
    27 class HostVideoCaptureDevice;
     27class HostVideoInputDevice;
    2828
    29 typedef std::list<ComObjPtr<HostVideoCaptureDevice> > HostVideoCaptureDeviceList;
     29typedef std::list<ComObjPtr<HostVideoInputDevice> > HostVideoInputDeviceList;
    3030
    31 class ATL_NO_VTABLE HostVideoCaptureDevice :
    32     public HostVideoCaptureDeviceWrap
     31class ATL_NO_VTABLE HostVideoInputDevice :
     32    public HostVideoInputDeviceWrap
    3333{
    3434public:
    3535
    36     DECLARE_EMPTY_CTOR_DTOR(HostVideoCaptureDevice)
     36    DECLARE_EMPTY_CTOR_DTOR(HostVideoInputDevice)
    3737
    3838    HRESULT FinalConstruct();
     
    4343    void uninit();
    4444
    45     static HRESULT queryHostDevices(HostVideoCaptureDeviceList *pList);
     45    static HRESULT queryHostDevices(HostVideoInputDeviceList *pList);
    4646
    4747private:
    4848
    49     // wrapped IHostVideoCaptureDevice properties
     49    // wrapped IHostVideoInputDevice properties
    5050    virtual HRESULT getName(com::Utf8Str &aName) { aName = m.name; return S_OK; }
    5151    virtual HRESULT getPath(com::Utf8Str &aPath) { aPath = m.path; return S_OK; }
     
    6767};
    6868
    69 #endif // HOSTVIDEOCAPTUREDEVICE_IMPL_H_
     69#endif // HOSTVIDEOINPUTDEVICE_IMPL_H_
    7070
    7171/* vi: set tabstop=4 shiftwidth=4 expandtab: */
  • trunk/src/VBox/Main/src-server/HostImpl.cpp

    r48578 r48607  
    3232
    3333#include "HostNetworkInterfaceImpl.h"
    34 #include "HostVideoCaptureDeviceImpl.h"
     34#include "HostVideoInputDeviceImpl.h"
    3535#include "MachineImpl.h"
    3636#include "AutoCaller.h"
     
    17311731 *
    17321732 * @returns COM status code
    1733  * @param aVideoCaptureDevices Array of interface pointers to be filled.
    1734  */
    1735 STDMETHODIMP Host::COMGETTER(VideoCaptureDevices)(ComSafeArrayOut(IHostVideoCaptureDevice*, aVideoCaptureDevices))
    1736 {
    1737     if (ComSafeArrayOutIsNull(aVideoCaptureDevices))
     1733 * @param aVideoInputDevices Array of interface pointers to be filled.
     1734 */
     1735STDMETHODIMP Host::COMGETTER(VideoInputDevices)(ComSafeArrayOut(IHostVideoInputDevice*, aVideoInputDevices))
     1736{
     1737    if (ComSafeArrayOutIsNull(aVideoInputDevices))
    17381738        return E_POINTER;
    17391739
     
    17421742
    17431743    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    1744     HostVideoCaptureDeviceList list;
    1745 
    1746     HRESULT hr = HostVideoCaptureDevice::queryHostDevices(&list);
     1744    HostVideoInputDeviceList list;
     1745
     1746    HRESULT hr = HostVideoInputDevice::queryHostDevices(&list);
    17471747
    17481748    if (SUCCEEDED(hr))
    17491749    {
    1750         SafeIfaceArray<IHostVideoCaptureDevice> devices(list);
    1751         devices.detachTo(ComSafeArrayOutArg(aVideoCaptureDevices));
     1750        SafeIfaceArray<IHostVideoInputDevice> devices(list);
     1751        devices.detachTo(ComSafeArrayOutArg(aVideoInputDevices));
    17521752    }
    17531753
  • trunk/src/VBox/Main/src-server/HostVideoInputDeviceImpl.cpp

    r48600 r48607  
    1717 */
    1818
    19 #include "HostVideoCaptureDeviceImpl.h"
     19#include "HostVideoInputDeviceImpl.h"
    2020#include "Logging.h"
    2121
     
    2525
    2626/*
    27  * HostVideoCaptureDevice implementation.
    28  */
    29 DEFINE_EMPTY_CTOR_DTOR(HostVideoCaptureDevice)
    30 
    31 HRESULT HostVideoCaptureDevice::FinalConstruct()
     27 * HostVideoInputDevice implementation.
     28 */
     29DEFINE_EMPTY_CTOR_DTOR(HostVideoInputDevice)
     30
     31HRESULT HostVideoInputDevice::FinalConstruct()
    3232{
    3333    return BaseFinalConstruct();
    3434}
    3535
    36 void HostVideoCaptureDevice::FinalRelease()
     36void HostVideoInputDevice::FinalRelease()
    3737{
    3838    uninit();
     
    4444 * Initializes the instance.
    4545 */
    46 HRESULT HostVideoCaptureDevice::init(const com::Utf8Str &name, const com::Utf8Str &path, const com::Utf8Str &alias)
     46HRESULT HostVideoInputDevice::init(const com::Utf8Str &name, const com::Utf8Str &path, const com::Utf8Str &alias)
    4747{
    4848    LogFlowThisFunc(("\n"));
     
    6666 * Called either from FinalRelease() or by the parent when it gets destroyed.
    6767 */
    68 void HostVideoCaptureDevice::uninit()
     68void HostVideoInputDevice::uninit()
    6969{
    7070    LogFlowThisFunc(("\n"));
     
    8080}
    8181
    82 static HRESULT hostVideoCaptureDeviceAdd(HostVideoCaptureDeviceList *pList,
    83                                          const com::Utf8Str &name,
    84                                          const com::Utf8Str &path,
    85                                          const com::Utf8Str &alias)
    86 {
    87     ComObjPtr<HostVideoCaptureDevice> obj;
     82static HRESULT hostVideoInputDeviceAdd(HostVideoInputDeviceList *pList,
     83                                       const com::Utf8Str &name,
     84                                       const com::Utf8Str &path,
     85                                       const com::Utf8Str &alias)
     86{
     87    ComObjPtr<HostVideoInputDevice> obj;
    8888    HRESULT hr = obj.createObject();
    8989    if (SUCCEEDED(hr))
     
    110110}
    111111
    112 static HRESULT hvcdFillList(HostVideoCaptureDeviceList *pList, IEnumMoniker *pEnumMoniker)
     112static HRESULT hvcdFillList(HostVideoInputDeviceList *pList, IEnumMoniker *pEnumMoniker)
    113113{
    114114    int iDevice = 0;
     
    159159        com::Utf8Str alias = com::Utf8StrFmt(".%d", iDevice);
    160160
    161         hr = hostVideoCaptureDeviceAdd(pList, name, path, alias);
     161        hr = hostVideoInputDeviceAdd(pList, name, path, alias);
    162162
    163163        pPropBag->Release();
     
    171171}
    172172
    173 static HRESULT fillDeviceList(HostVideoCaptureDeviceList *pList)
     173static HRESULT fillDeviceList(HostVideoInputDeviceList *pList)
    174174{
    175175    IEnumMoniker *pEnumMoniker = NULL;
     
    191191}
    192192#else
    193 static HRESULT fillDeviceList(HostVideoCaptureDeviceList *pList)
     193static HRESULT fillDeviceList(HostVideoInputDeviceList *pList)
    194194{
    195195    NOREF(pList);
     
    198198#endif /* RT_OS_WINDOWS */
    199199
    200 /* static */ HRESULT HostVideoCaptureDevice::queryHostDevices(HostVideoCaptureDeviceList *pList)
     200/* static */ HRESULT HostVideoInputDevice::queryHostDevices(HostVideoInputDeviceList *pList)
    201201{
    202202    HRESULT hr = fillDeviceList(pList);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette