VSF Documented
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
26extern "C" {
27#endif
28
29/*============================ INCLUDES ======================================*/
30
31// for stdint.h
33
34/*============================ MACROS ========================================*/
35/*============================ MACROFIED FUNCTIONS ===========================*/
36/*============================ TYPES =========================================*/
37
39 // vk_av_control_value_t.sval16:
40 // 32767: 127.9961db
41 // ......
42 // -32767: -127.9961db
44
45 // vk_av_control_value_t.uval16
46 // 65535
47 // 0
49
50 // vk_av_control_value_t.enable
53
54typedef struct vk_av_control_value_t {
55 union {
56 void *buffer;
63 bool enable;
64 };
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__
unsigned short uint16_t
Definition stdint.h:7
unsigned uint32_t
Definition stdint.h:9
int int32_t
Definition stdint.h:8
short int16_t
Definition stdint.h:6
unsigned char uint8_t
Definition stdint.h:5
signed char int8_t
Definition stdint.h:4
Definition vsf_av.h:54
int8_t sval8
Definition vsf_av.h:58
uint16_t uval16
Definition vsf_av.h:59
int16_t sval16
Definition vsf_av.h:60
uint32_t uval32
Definition vsf_av.h:61
uint8_t uval8
Definition vsf_av.h:57
bool enable
Definition vsf_av.h:63
void * buffer
Definition vsf_av.h:56
int32_t sval32
Definition vsf_av.h:62
vk_av_control_type_t
Definition vsf_av.h:38
@ VSF_AUDIO_CTRL_MUTE
Definition vsf_av.h:51
@ VSF_AUDIO_CTRL_VOLUME_PERCENTAGE
Definition vsf_av.h:48
@ VSF_AUDIO_CTRL_VOLUME_DB
Definition vsf_av.h:43