Skip to content

Commit c2525fb

Browse files
author
Clement Champetier
committed
Rename InputVideo / InputAudio classes to AvInputVideo / AvInputAudio
1 parent 84ce143 commit c2525fb

File tree

7 files changed

+28
-28
lines changed

7 files changed

+28
-28
lines changed

app/cpp/avTranscoder/avTranscoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ void transcodeVideo( const char* inputfilename, const char* outputFilename )
2525
input.readStream( input.getProperties().videoStreams.at( 0 ).streamId );
2626

2727
// init video decoders
28-
InputVideo inputVideo( input.getStream( 0 ) );
28+
AvInputVideo inputVideo( input.getStream( 0 ) );
2929
VideoFrameDesc VideoFrameDesc = input.getStream( 0 ).getVideoDesc().getVideoFrameDesc();
3030
VideoFrame sourceImage( VideoFrameDesc );
3131

app/cpp/avplay/AvReader.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class AvReader : public Reader
2525

2626
_inputFile.readStream( _videoStream );
2727

28-
_inputVideo = new avtranscoder::InputVideo( _inputFile.getStream( _videoStream ) );
28+
_inputVideo = new avtranscoder::AvInputVideo( _inputFile.getStream( _videoStream ) );
2929

3030
_inputVideo->setup();
3131

@@ -104,7 +104,7 @@ class AvReader : public Reader
104104
private:
105105
avtranscoder::InputFile _inputFile;
106106

107-
avtranscoder::InputVideo* _inputVideo;
107+
avtranscoder::AvInputVideo* _inputVideo;
108108

109109
avtranscoder::VideoFrame* _sourceImage;
110110
avtranscoder::VideoFrame* _imageToDisplay;

src/AvTranscoder/essenceStream/InputAudio.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ extern "C" {
2020
namespace avtranscoder
2121
{
2222

23-
InputAudio::InputAudio( AvInputStream& inputStream )
23+
AvInputAudio::AvInputAudio( AvInputStream& inputStream )
2424
: IInputEssence()
2525
, _inputStream ( &inputStream )
2626
, _codec ( NULL )
@@ -30,7 +30,7 @@ InputAudio::InputAudio( AvInputStream& inputStream )
3030
{
3131
}
3232

33-
InputAudio::~InputAudio()
33+
AvInputAudio::~AvInputAudio()
3434
{
3535
if( _codecContext != NULL )
3636
{
@@ -54,7 +54,7 @@ InputAudio::~InputAudio()
5454
}
5555

5656

57-
void InputAudio::setup()
57+
void AvInputAudio::setup()
5858
{
5959
avcodec_register_all();
6060

@@ -101,7 +101,7 @@ void InputAudio::setup()
101101
}
102102
}
103103

104-
bool InputAudio::readNextFrame( Frame& frameBuffer )
104+
bool AvInputAudio::readNextFrame( Frame& frameBuffer )
105105
{
106106
if( ! getNextFrame() )
107107
return false;
@@ -130,7 +130,7 @@ bool InputAudio::readNextFrame( Frame& frameBuffer )
130130
return true;
131131
}
132132

133-
bool InputAudio::readNextFrame( Frame& frameBuffer, const size_t subStreamIndex )
133+
bool AvInputAudio::readNextFrame( Frame& frameBuffer, const size_t subStreamIndex )
134134
{
135135
if( ! getNextFrame() )
136136
return false;
@@ -175,7 +175,7 @@ bool InputAudio::readNextFrame( Frame& frameBuffer, const size_t subStreamIndex
175175
return true;
176176
}
177177

178-
bool InputAudio::getNextFrame()
178+
bool AvInputAudio::getNextFrame()
179179
{
180180
int got_frame = 0;
181181
while( ! got_frame )

src/AvTranscoder/essenceStream/InputAudio.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef _AV_TRANSCODER_ESSENCE_STREAM_INPUT_AUDIO_HPP_
2-
#define _AV_TRANSCODER_ESSENCE_STREAM_INPUT_AUDIO_HPP_
1+
#ifndef _AV_TRANSCODER_ESSENCE_STREAM_AV_INPUT_AUDIO_HPP_
2+
#define _AV_TRANSCODER_ESSENCE_STREAM_AV_INPUT_AUDIO_HPP_
33

44
#include "IInputEssence.hpp"
55

@@ -12,11 +12,11 @@ namespace avtranscoder
1212

1313
class AvInputStream;
1414

15-
class AvExport InputAudio : public IInputEssence
15+
class AvExport AvInputAudio : public IInputEssence
1616
{
1717
public:
18-
InputAudio( AvInputStream& inputStream );
19-
~InputAudio();
18+
AvInputAudio( AvInputStream& inputStream );
19+
~AvInputAudio();
2020

2121
void setup();
2222

src/AvTranscoder/essenceStream/InputVideo.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ extern "C" {
1919
namespace avtranscoder
2020
{
2121

22-
InputVideo::InputVideo( AvInputStream& inputStream )
22+
AvInputVideo::AvInputVideo( AvInputStream& inputStream )
2323
: IInputEssence()
2424
, _inputStream ( &inputStream )
2525
, _codec ( NULL )
@@ -29,7 +29,7 @@ InputVideo::InputVideo( AvInputStream& inputStream )
2929
{
3030
}
3131

32-
InputVideo::~InputVideo()
32+
AvInputVideo::~AvInputVideo()
3333
{
3434
if( _codecContext != NULL )
3535
{
@@ -52,7 +52,7 @@ InputVideo::~InputVideo()
5252
}
5353
}
5454

55-
void InputVideo::setup()
55+
void AvInputVideo::setup()
5656
{
5757
av_register_all();
5858

@@ -95,7 +95,7 @@ void InputVideo::setup()
9595
}
9696
}
9797

98-
bool InputVideo::readNextFrame( Frame& frameBuffer )
98+
bool AvInputVideo::readNextFrame( Frame& frameBuffer )
9999
{
100100
int got_frame = 0;
101101

@@ -137,17 +137,17 @@ bool InputVideo::readNextFrame( Frame& frameBuffer )
137137
return true;
138138
}
139139

140-
bool InputVideo::readNextFrame( Frame& frameBuffer, const size_t subStreamIndex )
140+
bool AvInputVideo::readNextFrame( Frame& frameBuffer, const size_t subStreamIndex )
141141
{
142142
return false;
143143
}
144144

145-
void InputVideo::flushDecoder()
145+
void AvInputVideo::flushDecoder()
146146
{
147147
avcodec_flush_buffers( _codecContext );
148148
}
149149

150-
void InputVideo::setProfile( const Profile::ProfileDesc& desc )
150+
void AvInputVideo::setProfile( const Profile::ProfileDesc& desc )
151151
{
152152
ParamSet paramSet( _codecContext );
153153

src/AvTranscoder/essenceStream/InputVideo.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef _AV_TRANSCODER_ESSENCE_STREAM_INPUT_VIDEO_HPP_
2-
#define _AV_TRANSCODER_ESSENCE_STREAM_INPUT_VIDEO_HPP_
1+
#ifndef _AV_TRANSCODER_ESSENCE_STREAM_AV_INPUT_VIDEO_HPP_
2+
#define _AV_TRANSCODER_ESSENCE_STREAM_AV_INPUT_VIDEO_HPP_
33

44
#include "IInputEssence.hpp"
55

@@ -14,11 +14,11 @@ namespace avtranscoder
1414

1515
class AvInputStream;
1616

17-
class AvExport InputVideo : public IInputEssence
17+
class AvExport AvInputVideo : public IInputEssence
1818
{
1919
public:
20-
InputVideo( AvInputStream& inputStream );
21-
~InputVideo();
20+
AvInputVideo( AvInputStream& inputStream );
21+
~AvInputVideo();
2222

2323
void setup();
2424

src/AvTranscoder/transcoder/StreamTranscoder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ StreamTranscoder::StreamTranscoder(
9393
{
9494
case AVMEDIA_TYPE_VIDEO :
9595
{
96-
_inputEssence = new InputVideo( *static_cast<AvInputStream*>( _inputStream ) );
96+
_inputEssence = new AvInputVideo( *static_cast<AvInputStream*>( _inputStream ) );
9797
_inputEssence->setup();
9898

9999
OutputVideo* outputVideo = new OutputVideo();
@@ -119,7 +119,7 @@ StreamTranscoder::StreamTranscoder(
119119
}
120120
case AVMEDIA_TYPE_AUDIO :
121121
{
122-
_inputEssence = new InputAudio( *static_cast<AvInputStream*>( _inputStream ) );
122+
_inputEssence = new AvInputAudio( *static_cast<AvInputStream*>( _inputStream ) );
123123
_inputEssence->setup();
124124

125125
OutputAudio* outputAudio = new OutputAudio();

0 commit comments

Comments
 (0)