UniMRCP  1.7.0
mpf_frame_buffer.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008-2015 Arsen Chaloyan
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 #ifndef MPF_FRAME_BUFFER_H
18 #define MPF_FRAME_BUFFER_H
19 
20 /**
21  * @file mpf_frame_buffer.h
22  * @brief Buffer of Media Frames
23  */
24 
25 #include "mpf_frame.h"
26 
28 
29 /** Opaque frame buffer declaration */
31 
32 
33 /** Create frame buffer */
34 mpf_frame_buffer_t* mpf_frame_buffer_create(apr_size_t frame_size, apr_size_t frame_count, apr_pool_t *pool);
35 
36 /** Destroy frame buffer */
38 
39 /** Restart frame buffer */
41 
42 /** Write frame to buffer */
44 
45 /** Read frame from buffer */
47 
48 #ifdef MPF_FRAME_BUFFER_DEBUG
49 apt_bool_t mpf_frame_buffer_file_open(mpf_frame_buffer_t *buffer, const char *utt_file_in, const char *utt_file_out);
50 #endif
51 
53 
54 #endif /* MPF_FRAME_BUFFER_H */
apt_bool_t mpf_frame_buffer_write(mpf_frame_buffer_t *buffer, const mpf_frame_t *frame)
apt_bool_t mpf_frame_buffer_restart(mpf_frame_buffer_t *buffer)
#define APT_END_EXTERN_C
Definition: apt.h:38
int apt_bool_t
Definition: apt.h:57
apt_bool_t mpf_frame_buffer_read(mpf_frame_buffer_t *buffer, mpf_frame_t *frame)
void mpf_frame_buffer_destroy(mpf_frame_buffer_t *buffer)
typedefAPT_BEGIN_EXTERN_C struct mpf_frame_buffer_t mpf_frame_buffer_t
Definition: mpf_frame_buffer.h:30
Definition: mpf_frame.h:50
#define APT_BEGIN_EXTERN_C
Definition: apt.h:36
MPF Audio/Video/Named-event Frame.
mpf_frame_buffer_t * mpf_frame_buffer_create(apr_size_t frame_size, apr_size_t frame_count, apr_pool_t *pool)