การรองรับกล้องหลายตัว

ในระบบภาพภายนอก (EVS) 1.1 ระบบจะรองรับอุปกรณ์กล้องเชิงตรรกะซึ่งประกอบด้วยอุปกรณ์กล้องจริงหลายเครื่อง หากต้องการใช้อุปกรณ์เสมือนนี้ การติดตั้งใช้งานอุปกรณ์ต้องรองรับ เฟรมเวิร์กการซิงค์

แจกแจง เปิด และปิดอุปกรณ์กล้องเสมือน

แอปสามารถใช้เมธอด IEvsEnumerator เดียวกันเพื่อใช้อุปกรณ์กล้องเชิงตรรกะที่มีอยู่ ออบเจ็กต์ EvsCamera ที่แสดงผล ซึ่งแสดงถึงอุปกรณ์กล้องเชิงตรรกะต้องมีรายการต่อไปนี้ในข้อมูลเมตา

  • ANDROID_REQUEST_AVAILABLE_CAPABILITIES_LOGICAL_MULTI_CAMERA
    หากออบเจ็กต์ EvsCamera ที่แสดงผลเป็นกล้องเชิงตรรกะ เมตาดาต้าของกล้องต้องมีคีย์ความสามารถนี้ในช่อง ANDROID_REQUEST_AVAILABLE_CAPABILITIES
  • ANDROID_LOGICAL_MULTI_CAMERA_PHYSICAL_IDS ช่องแสดงตัวระบุอุปกรณ์กล้องจริง
  • ANDROID_LOGICAL_MULTI_CAMERA_SENSOR_SYNC_TYPE ช่องอาจมีค่า Enum ใดค่าหนึ่งต่อไปนี้
    • ANDROID_LOGICAL_MULTI_CAMERA_SENSOR_SYNC_TYPE_APPROXIMATE มีไว้สำหรับเซ็นเซอร์ในโหมดมาสเตอร์-มาสเตอร์ ไม่มีการซิงค์ชัตเตอร์/การเปิดรับแสงของฮาร์ดแวร์
    • ANDROID_LOGICAL_MULTI_CAMERA_SENSOR_SYNC_TYPE_CALIBRATED มีไว้สำหรับเซ็นเซอร์ในโหมดหลัก/อุปกรณ์เสริม การซิงค์ชัตเตอร์/การเปิดรับแสงของฮาร์ดแวร์ กล้อง GMSL2 ที่ซิงค์กันต้องมีค่านี้

แอปจะดึงข้อมูลคําอธิบายอุปกรณ์กล้องจริงผ่าน IEvsCamera ในวิธีการ getPhysicalCameraInfo(stringcameraId) ใหม่ได้

/**
 * Returns the description of the physical camera device that backs this
 * logical camera.
 *
 * If a requested device does not either exist or back this logical device,
 * this method returns a null camera descriptor. And, if this is called on
 * a physical camera device, this method is the same as getCameraInfo_1_1()
 * method if a given device ID is matched. Otherwise, this returns a
 * null camera descriptor.
 *
 * @param  deviceId Physical camera device identifier string.
 * @return info     The description of a member physical camera device.
 *                  This must be the same value as reported by
 *                  EvsEnumerator::getCameraList_1_1().
 */
getPhysicalCameraInfo(string deviceId) generates (CameraDesc info);

กำหนดค่าการรองรับกล้องหลายตัว

กล้องเชิงตรรกะทั้งหมดต้องได้รับการกำหนดแบบคงที่และต้องได้รับการแจกแจงผ่านการติดตั้งใช้งานเครื่องมือจัดการการกําหนดค่า เนื่องจาก EVS อนุญาตให้กำหนดค่าอุปกรณ์แต่ละเครื่องในกลุ่มแตกต่างกัน EVS จึงแสดงรายการอุปกรณ์สมาชิกและระบุว่ามีการซิงค์การจับภาพหรือไม่

<!-- camera group 0 -->
<group id='group0' synchronized='>;CALI<BRAT>ED'
 <   caps
        !-- list of supported controls supported by all phy>sical dev<ices --
        su>pported_contr<ols
            control name='BRIGHTNESS>' min=<9;0' max='255'/
            co>ntrol nam<e='CONTRAST'>; min='<;0' max='255'/
        /supported_controls

        !-- l>ist of st<ream configuration supported by all physical devices --
        stream id>='<;0>9; wid<th='640' height=&>#39;4<80' format=>'RGBA<_8888' framerate='30'/
    /caps

    !-- list of parameters --
    characteristics
        parameter
            name='REQUEST_AVAILABLE_C>APABILITI<ES'
            type='enum'
            size='1'
            value='LOGICAL_MULTI_CAMERA'
        /
        parameter
            name=>'<LOGICAL_MULTI_CA>M<ERA_PH>YSICAL_IDS'
            type='byte[]'
            size='2'
            value='/dev/video3,/dev/video4'
        /
    /characteristics
/group