aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/userspace-api/media/v4l/pixfmt-meta-bcm2835-isp-stats.rst
blob: f974774c825277c024c548f8e7f31e9ab4404f37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
.. Permission is granted to copy, distribute and/or modify this
.. document under the terms of the GNU Free Documentation License,
.. Version 1.1 or any later version published by the Free Software
.. Foundation, with no Invariant Sections, no Front-Cover Texts
.. and no Back-Cover Texts. A copy of the license is included at
.. Documentation/media/uapi/fdl-appendix.rst.
..
.. TODO: replace it to GFDL-1.1-or-later WITH no-invariant-sections

.. _v4l2-meta-fmt-bcm2835-isp-stats:

*****************************************
V4L2_META_FMT_BCM2835_ISP_STATS  ('BSTA')
*****************************************

BCM2835 ISP Statistics

Description
===========

The BCM2835 ISP hardware calculate image statistics for an input Bayer frame.
These statistics are obtained from the "bcm2835-isp0-capture3" device node
using the :c:type:`v4l2_meta_format` interface. They are formatted as described
by the :c:type:`bcm2835_isp_stats` structure below.

.. code-block:: c

	#define DEFAULT_AWB_REGIONS_X 16
	#define DEFAULT_AWB_REGIONS_Y 12

	#define NUM_HISTOGRAMS 2
	#define NUM_HISTOGRAM_BINS 128
	#define AWB_REGIONS (DEFAULT_AWB_REGIONS_X * DEFAULT_AWB_REGIONS_Y)
	#define FLOATING_REGIONS 16
	#define AGC_REGIONS 16
	#define FOCUS_REGIONS 12

.. kernel-doc:: include/uapi/linux/bcm2835-isp.h
   :functions: bcm2835_isp_stats_hist bcm2835_isp_stats_region
	             bcm2835_isp_stats_focus bcm2835_isp_stats