TizenRT Public API
v2.0 M2
Main Page
Modules
Data Structures
Files
File List
Globals
BufferOutputDataSource.h
Go to the documentation of this file.
1
/* ****************************************************************
2
*
3
* Copyright 2018 Samsung Electronics All Rights Reserved.
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*
17
******************************************************************/
18
29
#ifndef __MEDIA_BUFFEROUTPUTDATASOURCE_H
30
#define __MEDIA_BUFFEROUTPUTDATASOURCE_H
31
32
#include <
media/OutputDataSource.h
>
33
34
namespace
media
{
35
namespace
stream {
42
class
BufferOutputDataSource
:
public
OutputDataSource
43
{
44
public
:
51
BufferOutputDataSource
();
61
BufferOutputDataSource
(
unsigned
int
channels,
unsigned
int
sampleRate, audio_format_type_t pcmFormat);
67
BufferOutputDataSource
(
const
BufferOutputDataSource
&source);
73
BufferOutputDataSource
&
operator=
(
const
BufferOutputDataSource
&source);
79
virtual
~BufferOutputDataSource
();
80
87
bool
isPrepare
()
override
;
94
bool
open
()
override
;
101
bool
close
()
override
;
102
111
ssize_t
write
(
unsigned
char
*buf,
size_t
size);
112
113
private
:
114
bool
mIsPrepare;
115
};
116
117
}
// namespace stream
118
}
// namespace media
119
120
#endif
121
// end of MEDIA group
media::stream::BufferOutputDataSource::write
ssize_t write(unsigned char *buf, size_t size)
Write the file.
media::stream::BufferOutputDataSource
Definition:
BufferOutputDataSource.h:42
media::stream::BufferOutputDataSource::~BufferOutputDataSource
virtual ~BufferOutputDataSource()
Deconstructs an empty BufferOutputDataSource.
media::stream::BufferOutputDataSource::close
bool close() override
Close the file.
media::stream::BufferOutputDataSource::operator=
BufferOutputDataSource & operator=(const BufferOutputDataSource &source)
Operator= for BufferOutputDataSource.
media::stream::OutputDataSource
Definition:
OutputDataSource.h:49
OutputDataSource.h
Media OutputDataSource APIs.
media::stream::BufferOutputDataSource::BufferOutputDataSource
BufferOutputDataSource()
Constructs an empty BufferOutputDataSource.
media
Definition:
BufferObserverInterface.h:32
media::stream::BufferOutputDataSource::isPrepare
bool isPrepare() override
Whether file is ready to be write.
media::stream::BufferOutputDataSource::open
bool open() override
Open the file.
framework
include
media
BufferOutputDataSource.h
Generated by
1.8.11