/* SPDX-License-Identifier: BSD-2-Clause */
/*
 * Copyright (C) 2019, Raspberry Pi (Trading) Limited
 *
 * awb_status.h - AWB control algorithm status
 */
#pragma once

// The AWB algorithm places its results into both the image and global metadata,
// under the tag "awb.status".

#ifdef __cplusplus
extern "C" {
#endif

struct AwbStatus {
	char mode[32];
	double temperature_K;
	double gain_r;
	double gain_g;
	double gain_b;
};

#ifdef __cplusplus
}
#endif
ad>
<body>
<div id='cgit'><table id='header'>
<tr>
<td class='logo' rowspan='2'><a href='/'><img src='/logo.png' alt='cgit logo'/></a></td>
<td class='main'><a href='/'>index</a> : <a title='libcamera/vivid.git' href='/libcamera/vivid.git/'>libcamera/vivid.git</a></td><td class='form'><form method='get'>
<input type='hidden' name='id' value='bfd91857360b59bdba41abe911654e0a02c31086'/><select name='h' onchange='this.form.submit();'>
<option value='pobrn/rebase'>pobrn/rebase</option>
<option value='vivid'>vivid</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>libcamera pipeline handler for VIVID</td><td class='sub right'>git repository hosting on libcamera.org</td></tr></table>
<table class='tabs'><tr><td>
<a href='/libcamera/vivid.git/?h=vivid-pre-0e1ff86e78ae'>summary</a><a href='/libcamera/vivid.git/refs/?h=vivid-pre-0e1ff86e78ae&amp;id=bfd91857360b59bdba41abe911654e0a02c31086'>refs</a><a href='/libcamera/vivid.git/log/test/libtest/buffer_source.h?h=vivid-pre-0e1ff86e78ae'>log</a><a class='active' href='/libcamera/vivid.git/tree/test/libtest/buffer_source.h?h=vivid-pre-0e1ff86e78ae&amp;id=bfd91857360b59bdba41abe911654e0a02c31086'>tree</a><a href='/libcamera/vivid.git/commit/test/libtest/buffer_source.h?h=vivid-pre-0e1ff86e78ae&amp;id=bfd91857360b59bdba41abe911654e0a02c31086'>commit</a><a href='/libcamera/vivid.git/diff/test/libtest/buffer_source.h?h=vivid-pre-0e1ff86e78ae&amp;id=bfd91857360b59bdba41abe911654e0a02c31086'>diff</a></td><td class='form'><form class='right' method='get' action='/libcamera/vivid.git/log/test/libtest/buffer_source.h'>
<input type='hidden' name='h' value='vivid-pre-0e1ff86e78ae'/><input type='hidden' name='id' value='bfd91857360b59bdba41abe911654e0a02c31086'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/libcamera/vivid.git/tree/?h=vivid-pre-0e1ff86e78ae&amp;id=bfd91857360b59bdba41abe911654e0a02c31086'>root</a>/<a href='/libcamera/vivid.git/tree/test?h=vivid-pre-0e1ff86e78ae&amp;id=bfd91857360b59bdba41abe911654e0a02c31086'>test</a>/<a href='/libcamera/vivid.git/tree/test/libtest?h=vivid-pre-0e1ff86e78ae&amp;id=bfd91857360b59bdba41abe911654e0a02c31086'>libtest</a>/<a href='/libcamera/vivid.git/tree/test/libtest/buffer_source.h?h=vivid-pre-0e1ff86e78ae&amp;id=bfd91857360b59bdba41abe911654e0a02c31086'>buffer_source.h</a></div><div class='content'>blob: ae0879c9948087bb2fcb0aff3334f6a18fcc7a16 (<a href='/libcamera/vivid.git/plain/test/libtest/buffer_source.h?h=vivid-pre-0e1ff86e78ae&amp;id=bfd91857360b59bdba41abe911654e0a02c31086'>plain</a>)
<table summary='blob content' class='blob'>
<tr><td class='linenumbers'><pre><a id='n1' href='#n1'>1</a>
<a id='n2' href='#n2'>2</a>
<a id='n3' href='#n3'>3</a>
<a id='n4' href='#n4'>4</a>
<a id='n5' href='#n5'>5</a>
<a id='n6' href='#n6'>6</a>
<a id='n7' href='#n7'>7</a>
<a id='n8' href='#n8'>8</a>
<a id='n9' href='#n9'>9</a>
<a id='n10' href='#n10'>10</a>
<a id='n11' href='#n11'>11</a>
<a id='n12' href='#n12'>12</a>
<a id='n13' href='#n13'>13</a>
<a id='n14' href='#n14'>14</a>
<a id='n15' href='#n15'>15</a>
<a id='n16' href='#n16'>16</a>
<a id='n17' href='#n17'>17</a>
<a id='n18' href='#n18'>18</a>
<a id='n19' href='#n19'>19</a>
<a id='n20' href='#n20'>20</a>
<a id='n21' href='#n21'>21</a>
<a id='n22' href='#n22'>22</a>
<a id='n23' href='#n23'>23</a>
<a id='n24' href='#n24'>24</a>
<a id='n25' href='#n25'>25</a>
<a id='n26' href='#n26'>26</a>
<a id='n27' href='#n27'>27</a>
<a id='n28' href='#n28'>28</a>
<a id='n29' href='#n29'>29</a>
<a id='n30' href='#n30'>30</a>
<a id='n31' href='#n31'>31</a>
</pre></td>
<td class='lines'><pre><code><span class="hl com">/* SPDX-License-Identifier: GPL-2.0-or-later */</span>
<span class="hl com">/*</span>
<span class="hl com"> * Copyright (C) 2020, Google Inc.</span>
<span class="hl com"> *</span>
<span class="hl com"> * buffer_source.h - libcamera camera test helper to create FrameBuffers</span>
<span class="hl com"> */</span>
<span class="hl ppc">#ifndef __LIBCAMERA_BUFFER_SOURCE_TEST_H__</span>
<span class="hl ppc">#define __LIBCAMERA_BUFFER_SOURCE_TEST_H__</span>

<span class="hl ppc">#include &lt;libcamera/libcamera.h&gt;</span>

<span class="hl ppc">#include</span> <span class="hl pps">&quot;media_device.h&quot;</span><span class="hl ppc"></span>
<span class="hl ppc">#include</span> <span class="hl pps">&quot;v4l2_videodevice.h&quot;</span><span class="hl ppc"></span>

<span class="hl kwa">using namespace</span> libcamera<span class="hl opt">;</span>

<span class="hl kwc">class</span> BufferSource
<span class="hl opt">{</span>
<span class="hl kwc">public</span><span class="hl opt">:</span>
	<span class="hl kwd">BufferSource</span><span class="hl opt">();</span>
	<span class="hl opt">~</span><span class="hl kwd">BufferSource</span><span class="hl opt">();</span>

	<span class="hl kwb">int</span> <span class="hl kwd">allocate</span><span class="hl opt">(</span><span class="hl kwb">const</span> StreamConfiguration <span class="hl opt">&amp;</span>config<span class="hl opt">);</span>
	<span class="hl kwb">const</span> <span class="hl kwc">std</span><span class="hl opt">::</span>vector<span class="hl opt">&lt;</span><span class="hl kwc">std</span><span class="hl opt">::</span>unique_ptr<span class="hl opt">&lt;</span>FrameBuffer<span class="hl opt">&gt;&gt; &amp;</span><span class="hl kwd">buffers</span><span class="hl opt">();</span>

<span class="hl kwc">private</span><span class="hl opt">:</span>
	<span class="hl kwc">std</span><span class="hl opt">::</span>shared_ptr<span class="hl opt">&lt;</span>MediaDevice<span class="hl opt">&gt;</span> media_<span class="hl opt">;</span>
	<span class="hl kwc">std</span><span class="hl opt">::</span>vector<span class="hl opt">&lt;</span><span class="hl kwc">std</span><span class="hl opt">::</span>unique_ptr<span class="hl opt">&lt;</span>FrameBuffer<span class="hl opt">&gt;&gt;</span> buffers_<span class="hl opt">;</span>
<span class="hl opt">};</span>

<span class="hl ppc">#endif</span> <span class="hl com">/* __LIBCAMERA_BUFFER_SOURCE_TEST_H__ */</span><span class="hl ppc"></span>
</code></pre></td></tr></table>
</div> <!-- class=content -->
<div class='footer'>generated by <a href='https://git.zx2c4.com/cgit/about/'>cgit v1.2.1</a> (<a href='https://git-scm.com/'>git 2.18.0</a>) at 2025-03-13 06:14:36 +0000</div>
</div> <!-- id=cgit -->
</body>
</html>