mirror of https://github.com/buggins/dlangui.git
428 lines
15 KiB
XML
428 lines
15 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2006 Jeremy Kolb.
|
|
All Rights Reserved.
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
in the Software without restriction, including without limitation the rights
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
|
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
Except as contained in this notice, the names of the authors or their
|
|
institutions shall not be used in advertising or otherwise to promote the
|
|
sale, use or other dealings in this Software without prior written
|
|
authorization from the authors.
|
|
-->
|
|
|
|
<xcb header="xv" extension-xname="XVideo" extension-name="Xv" major-version="2" minor-version="2">
|
|
<import>xproto</import>
|
|
<import>shm</import>
|
|
<!-- Implements version 2.2 of XV -->
|
|
|
|
<!-- XIDs -->
|
|
<xidtype name="PORT" />
|
|
<xidtype name="ENCODING" />
|
|
|
|
<enum name="Type">
|
|
<item name="InputMask"><value>0x00000001</value></item>
|
|
<item name="OutputMask"><value>0x00000002</value></item>
|
|
<item name="VideoMask"><value>0x00000004</value></item>
|
|
<item name="StillMask"><value>0x00000008</value></item>
|
|
<item name="ImageMask"><value>0x00000010</value></item>
|
|
</enum>
|
|
|
|
<enum name="ImageFormatInfoType">
|
|
<item name="RGB" />
|
|
<item name="YUV" />
|
|
</enum>
|
|
|
|
<enum name="ImageFormatInfoFormat">
|
|
<item name="Packed" />
|
|
<item name="Planar" />
|
|
</enum>
|
|
|
|
<enum name="AttributeFlag">
|
|
<item name="Gettable"><value>0x01</value></item>
|
|
<item name="Settable"><value>0x02</value></item>
|
|
</enum>
|
|
|
|
<struct name="Rational">
|
|
<field type="INT32" name="numerator" />
|
|
<field type="INT32" name="denominator" />
|
|
</struct>
|
|
|
|
<struct name="AdaptorInfo">
|
|
<field type="PORT" name="base_id" />
|
|
<field type="CARD16" name="name_size" />
|
|
<field type="CARD16" name="num_ports" />
|
|
<field type="CARD16" name="num_formats" />
|
|
<field type="CARD8" name="type" />
|
|
<field type="CARD8" name="pad" />
|
|
<list type="char" name="name">
|
|
<fieldref>name_size</fieldref>
|
|
</list>
|
|
<list type="Format" name="formats">
|
|
<fieldref>num_formats</fieldref>
|
|
</list>
|
|
|
|
</struct>
|
|
|
|
<struct name="EncodingInfo">
|
|
<field type="ENCODING" name="encoding" />
|
|
<field type="CARD16" name="name_size" />
|
|
<field type="CARD16" name="width" />
|
|
<field type="CARD16" name="height" />
|
|
<field type="Rational" name="rate" />
|
|
<!--
|
|
Xvproto.h has a padding CARD16 here but the name
|
|
overlaps.
|
|
-->
|
|
<list type="char" name="name">
|
|
<fieldref>name_size</fieldref>
|
|
</list>
|
|
</struct>
|
|
|
|
<struct name="Format">
|
|
<field type="VISUALID" name="visual" />
|
|
<field type="CARD8" name="depth" />
|
|
</struct>
|
|
|
|
<struct name="Image">
|
|
<field type="CARD32" name="id" />
|
|
<field type="CARD16" name="width" />
|
|
<field type="CARD16" name="height" />
|
|
<field type="CARD32" name="data_size" />
|
|
<field type="CARD32" name="num_planes" />
|
|
<list type="CARD32" name="pitches">
|
|
<fieldref>num_planes</fieldref>
|
|
</list>
|
|
<list type="CARD32" name="offsets">
|
|
<fieldref>num_planes</fieldref>
|
|
</list>
|
|
<list type="CARD8" name="data">
|
|
<fieldref>data_size</fieldref>
|
|
</list>
|
|
<!-- Some XPointer "obdata" for SHM use-->
|
|
</struct>
|
|
|
|
<struct name="AttributeInfo">
|
|
<field type="CARD32" name="flags" />
|
|
<field type="INT32" name="min" />
|
|
<field type="INT32" name="max" />
|
|
<field type="CARD32" name="size" />
|
|
<list type="char" name="name">
|
|
<fieldref>size</fieldref>
|
|
</list>
|
|
</struct>
|
|
|
|
<struct name="ImageFormatInfo">
|
|
<field type="CARD32" name="id" />
|
|
<field type="CARD8" name="type" />
|
|
<field type="CARD8" name="byte_order" />
|
|
<field type="CARD16" name="pad1" />
|
|
<list type="CARD8" name="guid">
|
|
<value>16</value>
|
|
</list>
|
|
<field type="CARD8" name="bpp" />
|
|
<field type="CARD8" name="num_planes" />
|
|
<field type="CARD16" name="pad2" />
|
|
<field type="CARD8" name="depth" />
|
|
<field type="CARD8" name="pad3" />
|
|
<field type="CARD16" name="pad4" />
|
|
<field type="CARD32" name="red_mask" />
|
|
<field type="CARD32" name="green_mask" />
|
|
<field type="CARD32" name="blue_mask" />
|
|
<field type="CARD8" name="format" />
|
|
<field type="CARD8" name="pad5" />
|
|
<field type="CARD16" name="pad6" />
|
|
<field type="CARD32" name="y_sample_bits" />
|
|
<field type="CARD32" name="u_sample_bits" />
|
|
<field type="CARD32" name="v_sample_bits" />
|
|
<field type="CARD32" name="vhorz_y_period" />
|
|
<field type="CARD32" name="vhorz_u_period" />
|
|
<field type="CARD32" name="vhorz_v_period" />
|
|
<field type="CARD32" name="vvert_y_period" />
|
|
<field type="CARD32" name="vvert_u_period" />
|
|
<field type="CARD32" name="vvert_v_period" />
|
|
<list type="CARD8" name="vcomp_order">
|
|
<value>32</value>
|
|
</list>
|
|
<field type="CARD8" name="vscanline_order" />
|
|
<field type="CARD8" name="vpad7" />
|
|
<field type="CARD16" name="vpad8" />
|
|
<field type="CARD32" name="vpad9" />
|
|
<field type="CARD32" name="vpad10" />
|
|
</struct>
|
|
|
|
|
|
<!-- Errors -->
|
|
<error name="BadPort" number="0"/>
|
|
<error name="BadEncoding" number="1"/>
|
|
<error name="BadControl" number="2"/>
|
|
|
|
<!-- Events -->
|
|
<event name="VideoNotify" number="0">
|
|
<field type="BYTE" name="reason" />
|
|
<field type="TIMESTAMP" name="time" />
|
|
<field type="DRAWABLE" name="drawable" />
|
|
<field type="PORT" name="port" />
|
|
</event>
|
|
|
|
<event name="PortNotify" number="1">
|
|
<pad bytes="1" />
|
|
<field type="TIMESTAMP" name="time" />
|
|
<field type="PORT" name="port" />
|
|
<field type="ATOM" name="attribute" />
|
|
<field type="INT32" name="value" />
|
|
</event>
|
|
|
|
|
|
<!-- Requests -->
|
|
<request name="QueryExtension" opcode="0">
|
|
<reply>
|
|
<pad bytes="1" />
|
|
<field type="CARD16" name="major" />
|
|
<field type="CARD16" name="minor" />
|
|
</reply>
|
|
</request>
|
|
|
|
<request name="QueryAdaptors" opcode="1">
|
|
<field type="WINDOW" name="window" />
|
|
<reply>
|
|
<pad bytes="1" />
|
|
<field type="CARD16" name="num_adaptors" />
|
|
<pad bytes="22" />
|
|
<list type="AdaptorInfo" name="info">
|
|
<fieldref>num_adaptors</fieldref>
|
|
</list>
|
|
</reply>
|
|
</request>
|
|
|
|
<request name="QueryEncodings" opcode="2">
|
|
<field type="PORT" name="port" />
|
|
<reply>
|
|
<pad bytes="1" />
|
|
<field type="CARD16" name="num_encodings" />
|
|
<!--
|
|
In Xvproto.h this padding is 24 bytes
|
|
in actuality it is 22 bytes
|
|
-->
|
|
<pad bytes="22" />
|
|
<list type="EncodingInfo" name="info">
|
|
<fieldref>num_encodings</fieldref>
|
|
</list>
|
|
</reply>
|
|
</request>
|
|
|
|
<request name="GrabPort" opcode="3">
|
|
<field type="PORT" name="port" />
|
|
<field type="TIMESTAMP" name="time" />
|
|
<reply>
|
|
<field type="BYTE" name="result" />
|
|
</reply>
|
|
</request>
|
|
|
|
<request name="UngrabPort" opcode="4">
|
|
<field type="PORT" name="port" />
|
|
<field type="TIMESTAMP" name="time" />
|
|
</request>
|
|
|
|
<request name="PutVideo" opcode="5">
|
|
<field type="PORT" name="port" />
|
|
<field type="DRAWABLE" name="drawable" />
|
|
<field type="GCONTEXT" name="gc" />
|
|
<field type="INT16" name="vid_x" />
|
|
<field type="INT16" name="vid_y" />
|
|
<field type="CARD16" name="vid_w" />
|
|
<field type="CARD16" name="vid_h" />
|
|
<field type="INT16" name="drw_x" />
|
|
<field type="INT16" name="drw_y" />
|
|
<field type="CARD16" name="drw_w" />
|
|
<field type="CARD16" name="drw_h" />
|
|
</request>
|
|
|
|
<request name="PutStill" opcode="6">
|
|
<field type="PORT" name="port" />
|
|
<field type="DRAWABLE" name="drawable" />
|
|
<field type="GCONTEXT" name="gc" />
|
|
<field type="INT16" name="vid_x" />
|
|
<field type="INT16" name="vid_y" />
|
|
<field type="CARD16" name="vid_w" />
|
|
<field type="CARD16" name="vid_h" />
|
|
<field type="INT16" name="drw_x" />
|
|
<field type="INT16" name="drw_y" />
|
|
<field type="CARD16" name="drw_w" />
|
|
<field type="CARD16" name="drw_h" />
|
|
</request>
|
|
|
|
<request name="GetVideo" opcode="7">
|
|
<field type="PORT" name="port" />
|
|
<field type="DRAWABLE" name="drawable" />
|
|
<field type="GCONTEXT" name="gc" />
|
|
<field type="INT16" name="vid_x" />
|
|
<field type="INT16" name="vid_y" />
|
|
<field type="CARD16" name="vid_w" />
|
|
<field type="CARD16" name="vid_h" />
|
|
<field type="INT16" name="drw_x" />
|
|
<field type="INT16" name="drw_y" />
|
|
<field type="CARD16" name="drw_w" />
|
|
<field type="CARD16" name="drw_h" />
|
|
</request>
|
|
|
|
<request name="GetStill" opcode="8">
|
|
<field type="PORT" name="port" />
|
|
<field type="DRAWABLE" name="drawable" />
|
|
<field type="GCONTEXT" name="gc" />
|
|
<field type="INT16" name="vid_x" />
|
|
<field type="INT16" name="vid_y" />
|
|
<field type="CARD16" name="vid_w" />
|
|
<field type="CARD16" name="vid_h" />
|
|
<field type="INT16" name="drw_x" />
|
|
<field type="INT16" name="drw_y" />
|
|
<field type="CARD16" name="drw_w" />
|
|
<field type="CARD16" name="drw_h" />
|
|
</request>
|
|
|
|
<request name="StopVideo" opcode="9">
|
|
<field type="PORT" name="port" />
|
|
<field type="DRAWABLE" name="drawable" />
|
|
</request>
|
|
|
|
<request name="SelectVideoNotify" opcode="10">
|
|
<field type="DRAWABLE" name="drawable" />
|
|
<field type="BOOL" name="onoff" />
|
|
</request>
|
|
|
|
<request name="SelectPortNotify" opcode="11">
|
|
<field type="DRAWABLE" name="drawable" />
|
|
<field type="BOOL" name="onoff" />
|
|
</request>
|
|
|
|
<request name="QueryBestSize" opcode="12">
|
|
<field type="PORT" name="port" />
|
|
<field type="CARD16" name="vid_w" />
|
|
<field type="CARD16" name="vid_h" />
|
|
<field type="CARD16" name="drw_w" />
|
|
<field type="CARD16" name="drw_h" />
|
|
<field type="BOOL" name="motion" />
|
|
<reply>
|
|
<pad bytes="1" />
|
|
<field type="CARD16" name="actual_width" />
|
|
<field type="CARD16" name="actual_height" />
|
|
</reply>
|
|
</request>
|
|
|
|
<request name="SetPortAttribute" opcode="13">
|
|
<field type="PORT" name="port" />
|
|
<field type="ATOM" name="attribute" />
|
|
<field type="INT32" name="value" />
|
|
</request>
|
|
|
|
<request name="GetPortAttribute" opcode="14">
|
|
<field type="PORT" name="port" />
|
|
<field type="ATOM" name="attribute" />
|
|
<reply>
|
|
<pad bytes="1" />
|
|
<field type="INT32" name="value" />
|
|
</reply>
|
|
</request>
|
|
|
|
<!-- Not in the docs beyond this point :( -->
|
|
|
|
<request name="QueryPortAttributes" opcode="15">
|
|
<field type="PORT" name="port" />
|
|
<reply>
|
|
<pad bytes="1" />
|
|
<field type="CARD32" name="num_attributes" />
|
|
<field type="CARD32" name="text_size" />
|
|
<pad bytes="16" />
|
|
<list type="AttributeInfo" name="attributes">
|
|
<fieldref>num_attributes</fieldref>
|
|
</list>
|
|
</reply>
|
|
</request>
|
|
|
|
<request name="ListImageFormats" opcode="16">
|
|
<field type="PORT" name="port" />
|
|
<reply>
|
|
<pad bytes="1" />
|
|
<field type="CARD32" name="num_formats" />
|
|
<pad bytes="20" />
|
|
<list type="ImageFormatInfo" name="format">
|
|
<fieldref>num_formats</fieldref>
|
|
</list>
|
|
</reply>
|
|
</request>
|
|
|
|
<request name="QueryImageAttributes" opcode="17">
|
|
<field type="PORT" name="port" />
|
|
<field type="CARD32" name="id" />
|
|
<field type="CARD16" name="width" />
|
|
<field type="CARD16" name="height" />
|
|
<reply>
|
|
<pad bytes="1" />
|
|
<field type="CARD32" name="num_planes" />
|
|
<field type="CARD32" name="data_size" />
|
|
<field type="CARD16" name="width" />
|
|
<field type="CARD16" name="height" />
|
|
<pad bytes="12" />
|
|
<list type="CARD32" name="pitches">
|
|
<fieldref>num_planes</fieldref>
|
|
</list>
|
|
<list type="CARD32" name="offsets">
|
|
<fieldref>num_planes</fieldref>
|
|
</list>
|
|
</reply>
|
|
</request>
|
|
|
|
<request name="PutImage" opcode="18">
|
|
<field type="PORT" name="port" />
|
|
<field type="DRAWABLE" name="drawable" />
|
|
<field type="GCONTEXT" name="gc" />
|
|
<field type="CARD32" name="id" />
|
|
<field type="INT16" name="src_x" />
|
|
<field type="INT16" name="src_y" />
|
|
<field type="CARD16" name="src_w" />
|
|
<field type="CARD16" name="src_h" />
|
|
<field type="INT16" name="drw_x" />
|
|
<field type="INT16" name="drw_y" />
|
|
<field type="CARD16" name="drw_w" />
|
|
<field type="CARD16" name="drw_h" />
|
|
<field type="CARD16" name="width" />
|
|
<field type="CARD16" name="height" />
|
|
<list type="CARD8" name="data" />
|
|
</request>
|
|
|
|
<request name="ShmPutImage" opcode="19">
|
|
<field type="PORT" name="port" />
|
|
<field type="DRAWABLE" name="drawable" />
|
|
<field type="GCONTEXT" name="gc" />
|
|
<field type="SEG" name="shmseg" />
|
|
<field type="CARD32" name="id" />
|
|
<field type="CARD32" name="offset" />
|
|
<field type="INT16" name="src_x" />
|
|
<field type="INT16" name="src_y" />
|
|
<field type="CARD16" name="src_w" />
|
|
<field type="CARD16" name="src_h" />
|
|
<field type="INT16" name="drw_x" />
|
|
<field type="INT16" name="drw_y" />
|
|
<field type="CARD16" name="drw_w" />
|
|
<field type="CARD16" name="drw_h" />
|
|
<field type="CARD16" name="width" />
|
|
<field type="CARD16" name="height" />
|
|
<field type="CARD8" name="send_event" />
|
|
</request>
|
|
</xcb>
|