Changeset 45124 in vbox for trunk/include/VBox/RemoteDesktop
- Timestamp:
- Mar 21, 2013 11:51:11 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/RemoteDesktop/VRDEVideoIn.h
r44826 r45124 278 278 * If a control request can not be fulfilled, then VRDE_VIDEOIN_CTRLHDR_F_FAIL 279 279 * will be set and u8Status contains the error code. This replaces the VC_REQUEST_ERROR_CODE_CONTROL. 280 * 281 * If the client receives an unsupported control, then the client must ignore it. 282 * That is the control request must not affect the client in any way. 283 * The client may send a VRDEVIDEOINCTRLHDR response for the unsupported control with: 284 * u16ControlSelector = the received value; 285 * u16RequestType = the received value; 286 * u16ParmSize = 0; 287 * u8Flags = VRDE_VIDEOIN_CTRLHDR_F_FAIL; 288 * u8Status = VRDE_VIDEOIN_CTRLHDR_STATUS_INVALIDCONTROL; 280 289 */ 281 290 … … 313 322 #define VRDE_VIDEOIN_CTRLHDR_STATUS_INVALIDUNIT 0x05 /* Invalid unit */ 314 323 #define VRDE_VIDEOIN_CTRLHDR_STATUS_INVALIDCONTROL 0x06 /* Invalid control */ 315 #define VRDE_VIDEOIN_CTRLHDR_STATUS_INVALIDREQUEST 0x07 /* Invalid Request */324 #define VRDE_VIDEOIN_CTRLHDR_STATUS_INVALIDREQUEST 0x07 /* Invalid request */ 316 325 #define VRDE_VIDEOIN_CTRLHDR_STATUS_UNKNOWN 0xFF /* Unknown */ 317 326 … … 372 381 373 382 #define VRDE_VIDEOIN_CTRLSEL_VS_UNDEFINED VRDE_VIDEOIN_CTRLSEL_VS(0x00) 374 #define VRDE_VIDEOIN_CTRLSEL_VS_START VRDE_VIDEOIN_CTRLSEL_VS(0x01) 375 #define VRDE_VIDEOIN_CTRLSEL_VS_STOP VRDE_VIDEOIN_CTRLSEL_VS(0x02) 383 #define VRDE_VIDEOIN_CTRLSEL_VS_SETUP VRDE_VIDEOIN_CTRLSEL_VS(0x01) 384 #define VRDE_VIDEOIN_CTRLSEL_VS_OFF VRDE_VIDEOIN_CTRLSEL_VS(0x02) 385 #define VRDE_VIDEOIN_CTRLSEL_VS_ON VRDE_VIDEOIN_CTRLSEL_VS(0x03) 376 386 #define VRDE_VIDEOIN_CTRLSEL_VS_STILL_IMAGE_TRIGGER VRDE_VIDEOIN_CTRLSEL_VS(0x05) 377 387 #define VRDE_VIDEOIN_CTRLSEL_VS_STREAM_ERROR_CODE VRDE_VIDEOIN_CTRLSEL_VS(0x06) … … 611 621 } VRDEVIDEOINCTRL_PU_ANALOG_LOCK_STATUS; 612 622 613 /* S tart sending video frames with this format. */614 #define VRDEVIDEOINCTRL_F_VS_S TART_FID 0x01615 #define VRDEVIDEOINCTRL_F_VS_S TART_EOF 0x02616 617 typedef struct VRDEVIDEOINCTRL_VS_S TART623 /* Set streaming parameters. The actual streaming will be enabled by VS_ON. */ 624 #define VRDEVIDEOINCTRL_F_VS_SETUP_FID 0x01 625 #define VRDEVIDEOINCTRL_F_VS_SETUP_EOF 0x02 626 627 typedef struct VRDEVIDEOINCTRL_VS_SETUP 618 628 { 619 629 VRDEVIDEOINCTRLHDR hdr; 620 630 uint8_t u8FormatId; /* The format id on the client: VRDEVIDEOINFORMATDESC::u8FormatId. */ 621 uint8_t u8FramingInfo; /* VRDEVIDEOINCTRL_F_VS_S TART_*. Set by the client. */631 uint8_t u8FramingInfo; /* VRDEVIDEOINCTRL_F_VS_SETUP_*. Set by the client. */ 622 632 uint16_t u16Width; 623 633 uint16_t u16Height; … … 634 644 */ 635 645 uint32_t u32ClockFrequency; /* @todo just all clocks in 100ns units? */ 636 } VRDEVIDEOINCTRL_VS_S TART;646 } VRDEVIDEOINCTRL_VS_SETUP; 637 647 638 648 /* Stop sending video frames. */ 639 typedef struct VRDEVIDEOINCTRL_VS_ STOP640 { 641 VRDEVIDEOINCTRLHDR hdr; 642 } VRDEVIDEOINCTRL_VS_ STOP;643 644 typedef struct VRDEVIDEOINCTRL_VS_SYNCH_DELAY 645 { 646 VRDEVIDEOINCTRLHDR hdr; 647 uint16_t u16Delay;648 } VRDEVIDEOINCTRL_VS_ SYNCH_DELAY;649 typedef struct VRDEVIDEOINCTRL_VS_OFF 650 { 651 VRDEVIDEOINCTRLHDR hdr; 652 } VRDEVIDEOINCTRL_VS_OFF; 653 654 /* Start sending video frames with parameters set by VS_SETUP. */ 655 typedef struct VRDEVIDEOINCTRL_VS_ON 656 { 657 VRDEVIDEOINCTRLHDR hdr; 658 } VRDEVIDEOINCTRL_VS_ON; 649 659 650 660 typedef struct VRDEVIDEOINCTRL_VS_STILL_IMAGE_TRIGGER … … 653 663 uint8_t u8Trigger; 654 664 } VRDEVIDEOINCTRL_VS_STILL_IMAGE_TRIGGER; 665 666 typedef struct VRDEVIDEOINCTRL_VS_STREAM_ERROR_CODE 667 { 668 VRDEVIDEOINCTRLHDR hdr; 669 uint8_t u8StreamErrorCode; 670 } VRDEVIDEOINCTRL_VS_STREAM_ERROR_CODE; 655 671 656 672 typedef struct VRDEVIDEOINCTRL_VS_GENERATE_KEY_FRAME … … 667 683 } VRDEVIDEOINCTRL_VS_UPDATE_FRAME_SEGMENT; 668 684 669 typedef struct VRDEVIDEOINCTRL_VS_S TREAM_ERROR_CODE670 { 671 VRDEVIDEOINCTRLHDR hdr; 672 uint 8_t u8StreamErrorCode;673 } VRDEVIDEOINCTRL_VS_S TREAM_ERROR_CODE;685 typedef struct VRDEVIDEOINCTRL_VS_SYNCH_DELAY 686 { 687 VRDEVIDEOINCTRLHDR hdr; 688 uint16_t u16Delay; 689 } VRDEVIDEOINCTRL_VS_SYNCH_DELAY; 674 690 675 691 /* A hardware button was pressed/released on the device. */ … … 716 732 * Payload transfers. How frames are sent to the server: 717 733 * the client send a PAYLOAD packet, which has the already set format. 718 * The server enables the transfers by sending VRDEVIDEOINCTRL_VS_ START.734 * The server enables the transfers by sending VRDEVIDEOINCTRL_VS_ON. 719 735 */ 720 736
Note:
See TracChangeset
for help on using the changeset viewer.