1 2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 3 <html><head><title>Python: module telemetry.internal.image_processing.frame_generator</title> 4 <meta charset="utf-8"> 5 </head><body bgcolor="#f0f0f8"> 6 7 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> 8 <tr bgcolor="#7799ee"> 9 <td valign=bottom> <br> 10 <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry.internal.html"><font color="#ffffff">internal</font></a>.<a href="telemetry.internal.image_processing.html"><font color="#ffffff">image_processing</font></a>.frame_generator</strong></big></big></font></td 11 ><td align=right valign=bottom 12 ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="../telemetry/internal/image_processing/frame_generator.py">telemetry/internal/image_processing/frame_generator.py</a></font></td></tr></table> 13 <p><tt># Copyright 2014 The Chromium Authors. All rights reserved.<br> 14 # Use of this source code is governed by a BSD-style license that can be<br> 15 # found in the LICENSE file.</tt></p> 16 <p> 17 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 18 <tr bgcolor="#aa55cc"> 19 <td colspan=3 valign=bottom> <br> 20 <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> 21 22 <tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> 23 <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="abc.html">abc</a><br> 24 </td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p> 25 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 26 <tr bgcolor="#ee77aa"> 27 <td colspan=3 valign=bottom> <br> 28 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> 29 30 <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> 31 <td width="100%"><dl> 32 <dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a> 33 </font></dt><dd> 34 <dl> 35 <dt><font face="helvetica, arial"><a href="telemetry.internal.image_processing.frame_generator.html#FrameGenerator">FrameGenerator</a> 36 </font></dt></dl> 37 </dd> 38 <dt><font face="helvetica, arial"><a href="exceptions.html#Exception">exceptions.Exception</a>(<a href="exceptions.html#BaseException">exceptions.BaseException</a>) 39 </font></dt><dd> 40 <dl> 41 <dt><font face="helvetica, arial"><a href="telemetry.internal.image_processing.frame_generator.html#FrameReadError">FrameReadError</a> 42 </font></dt></dl> 43 </dd> 44 </dl> 45 <p> 46 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 47 <tr bgcolor="#ffc8d8"> 48 <td colspan=3 valign=bottom> <br> 49 <font color="#000000" face="helvetica, arial"><a name="FrameGenerator">class <strong>FrameGenerator</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> 50 51 <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> 52 <td colspan=2><tt>Defines an interface for reading input frames.<br> 53 <br> 54 Attributes:<br> 55 _generator: A reference to the created generator.<br> </tt></td></tr> 56 <tr><td> </td> 57 <td width="100%">Methods defined here:<br> 58 <dl><dt><a name="FrameGenerator-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Initializes the <a href="#FrameGenerator">FrameGenerator</a> <a href="__builtin__.html#object">object</a>.</tt></dd></dl> 59 60 <hr> 61 Data descriptors defined here:<br> 62 <dl><dt><strong>CurrentFrameNumber</strong></dt> 63 <dd><tt>Returns:<br> 64 int, The frame index of the current frame.</tt></dd> 65 </dl> 66 <dl><dt><strong>CurrentTimestamp</strong></dt> 67 <dd><tt>Returns:<br> 68 float, The timestamp of the current frame in milliseconds.</tt></dd> 69 </dl> 70 <dl><dt><strong>Dimensions</strong></dt> 71 <dd><tt>Returns:<br> 72 The dimensions of the frame sequence as a tuple int (width, height).<br> 73 This value should be constant across frames.</tt></dd> 74 </dl> 75 <dl><dt><strong>Generator</strong></dt> 76 <dd><tt>Returns:<br> 77 A reference to the created generator.</tt></dd> 78 </dl> 79 <dl><dt><strong>__dict__</strong></dt> 80 <dd><tt>dictionary for instance variables (if defined)</tt></dd> 81 </dl> 82 <dl><dt><strong>__weakref__</strong></dt> 83 <dd><tt>list of weak references to the object (if defined)</tt></dd> 84 </dl> 85 <hr> 86 Data and other attributes defined here:<br> 87 <dl><dt><strong>__abstractmethods__</strong> = frozenset(['CurrentFrameNumber', 'CurrentTimestamp', 'Dimensions', '_CreateGenerator'])</dl> 88 89 <dl><dt><strong>__metaclass__</strong> = <class 'abc.ABCMeta'><dd><tt>Metaclass for defining Abstract Base Classes (ABCs).<br> 90 <br> 91 Use this metaclass to create an ABC. An ABC can be subclassed<br> 92 directly, and then acts as a mix-in class. You can also register<br> 93 unrelated concrete classes (even built-in classes) and unrelated<br> 94 ABCs as 'virtual subclasses' -- these and their descendants will<br> 95 be considered subclasses of the registering ABC by the built-in<br> 96 issubclass() function, but the registering ABC won't show up in<br> 97 their MRO (Method Resolution Order) nor will method<br> 98 implementations defined by the registering ABC be callable (not<br> 99 even via super()).</tt></dl> 100 101 </td></tr></table> <p> 102 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 103 <tr bgcolor="#ffc8d8"> 104 <td colspan=3 valign=bottom> <br> 105 <font color="#000000" face="helvetica, arial"><a name="FrameReadError">class <strong>FrameReadError</strong></a>(<a href="exceptions.html#Exception">exceptions.Exception</a>)</font></td></tr> 106 107 <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> 108 <td width="100%"><dl><dt>Method resolution order:</dt> 109 <dd><a href="telemetry.internal.image_processing.frame_generator.html#FrameReadError">FrameReadError</a></dd> 110 <dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd> 111 <dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd> 112 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> 113 </dl> 114 <hr> 115 Data descriptors defined here:<br> 116 <dl><dt><strong>__weakref__</strong></dt> 117 <dd><tt>list of weak references to the object (if defined)</tt></dd> 118 </dl> 119 <hr> 120 Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br> 121 <dl><dt><a name="FrameReadError-__init__"><strong>__init__</strong></a>(...)</dt><dd><tt>x.<a href="#FrameReadError-__init__">__init__</a>(...) initializes x; see help(type(x)) for signature</tt></dd></dl> 122 123 <hr> 124 Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br> 125 <dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#FrameReadError-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</tt></dl> 126 127 <hr> 128 Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> 129 <dl><dt><a name="FrameReadError-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#FrameReadError-__delattr__">__delattr__</a>('name') <==> del x.name</tt></dd></dl> 130 131 <dl><dt><a name="FrameReadError-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#FrameReadError-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl> 132 133 <dl><dt><a name="FrameReadError-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#FrameReadError-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl> 134 135 <dl><dt><a name="FrameReadError-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#FrameReadError-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br> 136 <br> 137 Use of negative indices is not supported.</tt></dd></dl> 138 139 <dl><dt><a name="FrameReadError-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl> 140 141 <dl><dt><a name="FrameReadError-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#FrameReadError-__repr__">__repr__</a>() <==> repr(x)</tt></dd></dl> 142 143 <dl><dt><a name="FrameReadError-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#FrameReadError-__setattr__">__setattr__</a>('name', value) <==> x.name = value</tt></dd></dl> 144 145 <dl><dt><a name="FrameReadError-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl> 146 147 <dl><dt><a name="FrameReadError-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#FrameReadError-__str__">__str__</a>() <==> str(x)</tt></dd></dl> 148 149 <dl><dt><a name="FrameReadError-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl> 150 151 <hr> 152 Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> 153 <dl><dt><strong>__dict__</strong></dt> 154 </dl> 155 <dl><dt><strong>args</strong></dt> 156 </dl> 157 <dl><dt><strong>message</strong></dt> 158 </dl> 159 </td></tr></table></td></tr></table> 160 </body></html>