UniMRCP
1.3.0
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
libs
mpf
include
mpf_frame_buffer.h
Go to the documentation of this file.
1
/*
2
* Copyright 2008-2014 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
* $Id: mpf_frame_buffer.h 2136 2014-07-04 06:33:36Z achaloyan@gmail.com $
17
*/
18
19
#ifndef MPF_FRAME_BUFFER_H
20
#define MPF_FRAME_BUFFER_H
21
22
/**
23
* @file mpf_frame_buffer.h
24
* @brief Buffer of Media Frames
25
*/
26
27
#include "
mpf_frame.h
"
28
29
APT_BEGIN_EXTERN_C
30
31
/** Opaque frame buffer declaration */
32
typedef
struct
mpf_frame_buffer_t
mpf_frame_buffer_t
;
33
34
35
/** Create frame buffer */
36
mpf_frame_buffer_t
*
mpf_frame_buffer_create
(apr_size_t frame_size, apr_size_t frame_count, apr_pool_t *pool);
37
38
/** Destroy frame buffer */
39
void
mpf_frame_buffer_destroy
(
mpf_frame_buffer_t
*buffer);
40
41
/** Restart frame buffer */
42
apt_bool_t
mpf_frame_buffer_restart
(
mpf_frame_buffer_t
*buffer);
43
44
/** Write frame to buffer */
45
apt_bool_t
mpf_frame_buffer_write
(
mpf_frame_buffer_t
*buffer,
const
mpf_frame_t
*frame);
46
47
/** Read frame from buffer */
48
apt_bool_t
mpf_frame_buffer_read
(
mpf_frame_buffer_t
*buffer,
mpf_frame_t
*frame);
49
50
#ifdef MPF_FRAME_BUFFER_DEBUG
51
apt_bool_t
mpf_frame_buffer_file_open(
mpf_frame_buffer_t
*buffer,
const
char
*utt_file_in,
const
char
*utt_file_out);
52
#endif
53
54
APT_END_EXTERN_C
55
56
#endif
/* MPF_FRAME_BUFFER_H */
Generated on Mon Feb 2 2015 19:41:38 for UniMRCP by
1.8.3.1