Skip to content

Commit c6bc636

Browse files
author
Clement Champetier
committed
readers: removed printInfo method
* Just need to get the properties. * See next commit.
1 parent decb49c commit c6bc636

File tree

7 files changed

+5
-28
lines changed

7 files changed

+5
-28
lines changed

app/avPlay/Window.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
21
#include "Window.hpp"
32

3+
#include <AvTranscoder/mediaProperty/print.hpp>
4+
45
#ifdef __APPLE__
56
#include <OpenGL/gl.h>
67
#include <GLUT/glut.h>
@@ -421,7 +422,9 @@ void Window::displayInformations()
421422
std::cout << textureType << " " << _width << "x" << _height << std::endl;
422423

423424
// stream info
424-
_reader->printInfo();
425+
const avtranscoder::VideoProperties* properties = _reader->getVideoProperties();
426+
if( properties != NULL )
427+
std::cout << *properties << std::endl;
425428
}
426429

427430
void Window::move( float x, float y )

src/AvTranscoder/reader/AudioReader.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include <AvTranscoder/frame/AudioFrame.hpp>
55
#include <AvTranscoder/transform/AudioTransform.hpp>
66
#include <AvTranscoder/progress/NoDisplayProgress.hpp>
7-
#include <AvTranscoder/mediaProperty/print.hpp>
87

98
namespace avtranscoder
109
{
@@ -72,9 +71,4 @@ void AudioReader::updateOutput( const size_t sampleRate, const size_t nbChannels
7271
_dstFrame = new AudioFrame( AudioFrameDesc( _outputSampleRate, _outputNbChannels, _outputSampleFormat ) );
7372
}
7473

75-
void AudioReader::printInfo()
76-
{
77-
std::cout << *_audioStreamProperties << std::endl;
78-
}
79-
8074
}

src/AvTranscoder/reader/AudioReader.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ class AvExport AudioReader : public IReader
3737
// @brief Input info
3838
const AudioProperties* getAudioProperties() const {return _audioStreamProperties;}
3939

40-
void printInfo();
4140

4241
private:
4342
void init();

src/AvTranscoder/reader/IReader.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#include "IReader.hpp"
22

3-
#include <AvTranscoder/mediaProperty/print.hpp>
4-
53
#include <cassert>
64

75
namespace avtranscoder
@@ -76,10 +74,4 @@ Frame* IReader::readFrameAt( const size_t frame )
7674
return _dstFrame;
7775
}
7876

79-
void IReader::printInfo()
80-
{
81-
assert( _streamProperties != NULL );
82-
std::cout << *_streamProperties << std::endl;
83-
}
84-
8577
}

src/AvTranscoder/reader/IReader.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ class AvExport IReader
4848
*/
4949
Frame* readFrameAt( const size_t frame );
5050

51-
/**
52-
* @brief Print info of the source stream read.
53-
*/
54-
virtual void printInfo();
5551

5652
protected:
5753
InputFile* _inputFile;

src/AvTranscoder/reader/VideoReader.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include <AvTranscoder/frame/VideoFrame.hpp>
55
#include <AvTranscoder/transform/VideoTransform.hpp>
66
#include <AvTranscoder/progress/NoDisplayProgress.hpp>
7-
#include <AvTranscoder/mediaProperty/print.hpp>
87

98
namespace avtranscoder
109
{
@@ -73,9 +72,4 @@ void VideoReader::updateOutput(const size_t width, const size_t height, const st
7372
_dstFrame = new VideoFrame( VideoFrameDesc( _outputWidth, _outputHeight, getOutputPixelFormat() ) );
7473
}
7574

76-
void VideoReader::printInfo()
77-
{
78-
std::cout << *_videoStreamProperties << std::endl;
79-
}
80-
8175
}

src/AvTranscoder/reader/VideoReader.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ class AvExport VideoReader : public IReader
4040
// @brief Input info
4141
const VideoProperties* getVideoProperties() const {return _videoStreamProperties;}
4242

43-
void printInfo();
4443

4544
private:
4645
void init();

0 commit comments

Comments
 (0)