1/*
2Copyright (c) 2012, Broadcom Europe Ltd
3All rights reserved.
4
5Redistribution and use in source and binary forms, with or without
6modification, are permitted provided that the following conditions are met:
7 * Redistributions of source code must retain the above copyright
8 notice, this list of conditions and the following disclaimer.
9 * Redistributions in binary form must reproduce the above copyright
10 notice, this list of conditions and the following disclaimer in the
11 documentation and/or other materials provided with the distribution.
12 * Neither the name of the copyright holder nor the
13 names of its contributors may be used to endorse or promote products
14 derived from this software without specific prior written permission.
15
16THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
20DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26*/
27
28#ifndef MMAL_PARAMETERS_CLOCK_H
29#define MMAL_PARAMETERS_CLOCK_H
30
31#include "mmal_clock.h"
32#include "mmal_parameters_common.h"
33
34/*************************************************
35 * ALWAYS ADD NEW ENUMS AT THE END OF THIS LIST! *
36 ************************************************/
37
38/** Clock-specific MMAL parameter IDs.
39 * @ingroup MMAL_PARAMETER_IDS
40 */
41enum
42{
43 MMAL_PARAMETER_CLOCK_REFERENCE /**< Takes a MMAL_PARAMETER_BOOLEAN_T */
44 = MMAL_PARAMETER_GROUP_CLOCK,
45 MMAL_PARAMETER_CLOCK_ACTIVE, /**< Takes a MMAL_PARAMETER_BOOLEAN_T */
46 MMAL_PARAMETER_CLOCK_SCALE, /**< Takes a MMAL_PARAMETER_RATIONAL_T */
47 MMAL_PARAMETER_CLOCK_TIME, /**< Takes a MMAL_PARAMETER_INT64_T */
48 MMAL_PARAMETER_CLOCK_UPDATE_THRESHOLD, /**< Takes a MMAL_PARAMETER_CLOCK_UPDATE_THRESHOLD_T */
49 MMAL_PARAMETER_CLOCK_DISCONT_THRESHOLD, /**< Takes a MMAL_PARAMETER_CLOCK_DISCONT_THRESHOLD_T */
50 MMAL_PARAMETER_CLOCK_REQUEST_THRESHOLD, /**< Takes a MMAL_PARAMETER_CLOCK_REQUEST_THRESHOLD_T */
51 MMAL_PARAMETER_CLOCK_ENABLE_BUFFER_INFO, /**< Takes a MMAL_PARAMETER_BOOLEAN_T */
52 MMAL_PARAMETER_CLOCK_FRAME_RATE, /**< Takes a MMAL_PARAMETER_RATIONAL_T */
53 MMAL_PARAMETER_CLOCK_LATENCY, /**< Takes a MMAL_PARAMETER_CLOCK_LATENCY_T */
54};
55
56/** Media-time update thresholds */
57typedef struct MMAL_PARAMETER_CLOCK_UPDATE_THRESHOLD_T
58{
59 MMAL_PARAMETER_HEADER_T hdr;
60
61 MMAL_CLOCK_UPDATE_THRESHOLD_T value;
62} MMAL_PARAMETER_CLOCK_UPDATE_THRESHOLD_T;
63
64/** Media-time discontinuity settings */
65typedef struct MMAL_PARAMETER_CLOCK_DISCONT_THRESHOLD_T
66{
67 MMAL_PARAMETER_HEADER_T hdr;
68
69 MMAL_CLOCK_DISCONT_THRESHOLD_T value;
70} MMAL_PARAMETER_CLOCK_DISCONT_THRESHOLD_T;
71
72/** Media-time future frame drop settings */
73typedef struct MMAL_PARAMETER_CLOCK_REQUEST_THRESHOLD_T
74{
75 MMAL_PARAMETER_HEADER_T hdr;
76
77 MMAL_CLOCK_REQUEST_THRESHOLD_T value;
78} MMAL_PARAMETER_CLOCK_REQUEST_THRESHOLD_T;
79
80/** Clock latency parameter */
81typedef struct MMAL_PARAMETER_CLOCK_LATENCY_T
82{
83 MMAL_PARAMETER_HEADER_T hdr;
84
85 MMAL_CLOCK_LATENCY_T value;
86} MMAL_PARAMETER_CLOCK_LATENCY_T;
87
88#endif /* MMAL_PARAMETERS_CLOCK_H */
89