1 2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 3 <html><head><title>Python: module telemetry.internal.image_processing.fake_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>.fake_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/fake_frame_generator.py">telemetry/internal/image_processing/fake_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="telemetry.internal.util.external_modules.html">telemetry.internal.util.external_modules</a><br> 24 </td><td width="25%" valign=top><a href="telemetry.internal.image_processing.frame_generator.html">telemetry.internal.image_processing.frame_generator</a><br> 25 </td><td width="25%" valign=top><a href="numpy.html">numpy</a><br> 26 </td><td width="25%" valign=top></td></tr></table></td></tr></table><p> 27 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 28 <tr bgcolor="#ee77aa"> 29 <td colspan=3 valign=bottom> <br> 30 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> 31 32 <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> 33 <td width="100%"><dl> 34 <dt><font face="helvetica, arial"><a href="telemetry.internal.image_processing.frame_generator.html#FrameGenerator">telemetry.internal.image_processing.frame_generator.FrameGenerator</a>(<a href="__builtin__.html#object">__builtin__.object</a>) 35 </font></dt><dd> 36 <dl> 37 <dt><font face="helvetica, arial"><a href="telemetry.internal.image_processing.fake_frame_generator.html#FakeFrameGenerator">FakeFrameGenerator</a> 38 </font></dt></dl> 39 </dd> 40 </dl> 41 <p> 42 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 43 <tr bgcolor="#ffc8d8"> 44 <td colspan=3 valign=bottom> <br> 45 <font color="#000000" face="helvetica, arial"><a name="FakeFrameGenerator">class <strong>FakeFrameGenerator</strong></a>(<a href="telemetry.internal.image_processing.frame_generator.html#FrameGenerator">telemetry.internal.image_processing.frame_generator.FrameGenerator</a>)</font></td></tr> 46 47 <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> 48 <td colspan=2><tt>Fakes a Frame Generator, for testing.<br> 49 <br> 50 Attributes:<br> 51 _frame_index: A frame read counter.<br> 52 _timestamps: A generator of timestamps to return, or None.<br> 53 _timestamp: The current timestamp.<br> 54 _dimensions: The dimensions to return.<br> 55 _channels: The number of color channels to return in the generated frames.<br> 56 _frames: The number of frames to return before fake EOF.<br> </tt></td></tr> 57 <tr><td> </td> 58 <td width="100%"><dl><dt>Method resolution order:</dt> 59 <dd><a href="telemetry.internal.image_processing.fake_frame_generator.html#FakeFrameGenerator">FakeFrameGenerator</a></dd> 60 <dd><a href="telemetry.internal.image_processing.frame_generator.html#FrameGenerator">telemetry.internal.image_processing.frame_generator.FrameGenerator</a></dd> 61 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> 62 </dl> 63 <hr> 64 Methods defined here:<br> 65 <dl><dt><a name="FakeFrameGenerator-__init__"><strong>__init__</strong></a>(self, frames<font color="#909090">=1e+16</font>, dimensions<font color="#909090">=(320, 240)</font>, channels<font color="#909090">=3</font>, timestamps<font color="#909090">=<generator object <genexpr>></font>)</dt><dd><tt>Initializes the <a href="#FakeFrameGenerator">FakeFrameGenerator</a> object.<br> 66 <br> 67 Args:<br> 68 frames: int, The number of frames to return before fake EOF.<br> 69 dimensions: (int, int), The dimensions to return.<br> 70 timestamps: generator, A generator of timestamps to return. The default<br> 71 value is an infinite 0 generator.<br> 72 channels: int, The number of color channels to return in the generated<br> 73 frames, 1 for greyscale, 3 for RGB.</tt></dd></dl> 74 75 <hr> 76 Data descriptors defined here:<br> 77 <dl><dt><strong>CurrentFrameNumber</strong></dt> 78 </dl> 79 <dl><dt><strong>CurrentTimestamp</strong></dt> 80 </dl> 81 <dl><dt><strong>Dimensions</strong></dt> 82 </dl> 83 <hr> 84 Data and other attributes defined here:<br> 85 <dl><dt><strong>__abstractmethods__</strong> = frozenset([])</dl> 86 87 <hr> 88 Data descriptors inherited from <a href="telemetry.internal.image_processing.frame_generator.html#FrameGenerator">telemetry.internal.image_processing.frame_generator.FrameGenerator</a>:<br> 89 <dl><dt><strong>Generator</strong></dt> 90 <dd><tt>Returns:<br> 91 A reference to the created generator.</tt></dd> 92 </dl> 93 <dl><dt><strong>__dict__</strong></dt> 94 <dd><tt>dictionary for instance variables (if defined)</tt></dd> 95 </dl> 96 <dl><dt><strong>__weakref__</strong></dt> 97 <dd><tt>list of weak references to the object (if defined)</tt></dd> 98 </dl> 99 <hr> 100 Data and other attributes inherited from <a href="telemetry.internal.image_processing.frame_generator.html#FrameGenerator">telemetry.internal.image_processing.frame_generator.FrameGenerator</a>:<br> 101 <dl><dt><strong>__metaclass__</strong> = <class 'abc.ABCMeta'><dd><tt>Metaclass for defining Abstract Base Classes (ABCs).<br> 102 <br> 103 Use this metaclass to create an ABC. An ABC can be subclassed<br> 104 directly, and then acts as a mix-in class. You can also register<br> 105 unrelated concrete classes (even built-in classes) and unrelated<br> 106 ABCs as 'virtual subclasses' -- these and their descendants will<br> 107 be considered subclasses of the registering ABC by the built-in<br> 108 issubclass() function, but the registering ABC won't show up in<br> 109 their MRO (Method Resolution Order) nor will method<br> 110 implementations defined by the registering ABC be callable (not<br> 111 even via super()).</tt></dl> 112 113 </td></tr></table></td></tr></table> 114 </body></html>