VSF Documented
Main Page
Related Pages
Topics
Namespaces
Data Structures
Files
File List
Globals
source
component
av
vsf_av.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Copyright(C)2009-2022 by VSF Team *
3
* *
4
* Licensed under the Apache License, Version 2.0 (the "License"); *
5
* you may not use this file except in compliance with the License. *
6
* You may obtain a copy of the License at *
7
* *
8
* http://www.apache.org/licenses/LICENSE-2.0 *
9
* *
10
* Unless required by applicable law or agreed to in writing, software *
11
* distributed under the License is distributed on an "AS IS" BASIS, *
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13
* See the License for the specific language governing permissions and *
14
* limitations under the License. *
15
* *
16
****************************************************************************/
17
18
#ifndef __VSF_AV_H__
19
#define __VSF_AV_H__
20
21
#include "
./vsf_av_cfg.h
"
22
23
#if VSF_USE_AUDIO == ENABLED || VSF_USE_VIDEO == ENABLED
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
29
/*============================ INCLUDES ======================================*/
30
31
// for stdint.h
32
#include "
utilities/vsf_utilities.h
"
33
34
/*============================ MACROS ========================================*/
35
/*============================ MACROFIED FUNCTIONS ===========================*/
36
/*============================ TYPES =========================================*/
37
38
typedef
enum
vk_av_control_type_t
{
39
// vk_av_control_value_t.sval16:
40
// 32767: 127.9961db
41
// ......
42
// -32767: -127.9961db
43
VSF_AUDIO_CTRL_VOLUME_DB
,
44
45
// vk_av_control_value_t.uval16
46
// 65535
47
// 0
48
VSF_AUDIO_CTRL_VOLUME_PERCENTAGE
,
49
50
// vk_av_control_value_t.enable
51
VSF_AUDIO_CTRL_MUTE
,
52
}
vk_av_control_type_t
;
53
54
typedef
struct
vk_av_control_value_t
{
55
union
{
56
void
*
buffer
;
57
uint8_t
uval8
;
58
int8_t
sval8
;
59
uint16_t
uval16
;
60
int16_t
sval16
;
61
uint32_t
uval32
;
62
int32_t
sval32
;
63
bool
enable
;
64
};
65
}
vk_av_control_value_t
;
66
67
/*============================ GLOBAL VARIABLES ==============================*/
68
/*============================ PROTOTYPES ====================================*/
69
70
#ifdef __cplusplus
71
}
72
#endif
73
74
/*============================ INCLUDES ======================================*/
75
76
#if VSF_USE_AUDIO == ENABLED
77
# include "
./audio/vsf_audio.h
"
78
#endif
79
80
#endif
// VSF_USE_AUDIO || VSF_USE_VIDEO
81
#endif
// __VSF_AV_H__
int16_t
signed short int16_t
Definition
lvgl.h:42
uint16_t
unsigned short uint16_t
Definition
lvgl.h:41
uint32_t
unsigned int uint32_t
Definition
lvgl.h:43
int32_t
signed int int32_t
Definition
lvgl.h:44
uint8_t
unsigned char uint8_t
Definition
lvgl.h:40
int8_t
signed char int8_t
Definition
lvgl.h:38
vk_av_control_value_t
Definition
vsf_av.h:54
vk_av_control_value_t::sval8
int8_t sval8
Definition
vsf_av.h:58
vk_av_control_value_t::uval16
uint16_t uval16
Definition
vsf_av.h:59
vk_av_control_value_t::sval16
int16_t sval16
Definition
vsf_av.h:60
vk_av_control_value_t::uval32
uint32_t uval32
Definition
vsf_av.h:61
vk_av_control_value_t::uval8
uint8_t uval8
Definition
vsf_av.h:57
vk_av_control_value_t::enable
bool enable
Definition
vsf_av.h:63
vk_av_control_value_t::buffer
void * buffer
Definition
vsf_av.h:56
vk_av_control_value_t::sval32
int32_t sval32
Definition
vsf_av.h:62
vsf_audio.h
vk_av_control_type_t
vk_av_control_type_t
Definition
vsf_av.h:38
VSF_AUDIO_CTRL_MUTE
@ VSF_AUDIO_CTRL_MUTE
Definition
vsf_av.h:51
VSF_AUDIO_CTRL_VOLUME_PERCENTAGE
@ VSF_AUDIO_CTRL_VOLUME_PERCENTAGE
Definition
vsf_av.h:48
VSF_AUDIO_CTRL_VOLUME_DB
@ VSF_AUDIO_CTRL_VOLUME_DB
Definition
vsf_av.h:43
vsf_av_cfg.h
vsf_utilities.h
Generated by
1.9.8