Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6690e59

Browse files
author
Clement Champetier
committed
Transcoder: refactoring - addDummyStream with const EssenceDesc
* Use "const EssenceDesc" instead of "EssenceDesc" when add aDummyStream.* Consequences: * AudioDesc: copy constructor with const EssenceDesc. * VideoDesc: copy constructor with const EssenceDesc. * DummyVideo: setVideoDesc from a const VideoDesc (already the casefor setAudioDesc in DummyAudio).
1 parent7650933 commit6690e59

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

‎src/AvTranscoder/DatasStructures/AudioDesc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ AudioDesc::AudioDesc( const AVCodecID codecId )
1515
{
1616
}
1717

18-
AudioDesc::AudioDesc( EssenceDesc& essenceDesc )
18+
AudioDesc::AudioDesc(constEssenceDesc& essenceDesc )
1919
: EssenceDesc( essenceDesc.getCodecId() )
2020
{
2121
m_codec = essenceDesc.getCodec();

‎src/AvTranscoder/DatasStructures/AudioDesc.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class AvExport AudioDesc : public EssenceDesc
2626
public:
2727
AudioDesc(const std::string& codecName ="" );
2828
AudioDesc(const AVCodecID codecId );
29-
AudioDesc( EssenceDesc& essenceDesc );
29+
AudioDesc(constEssenceDesc& essenceDesc );
3030

3131
AudioFrameDescgetFrameDesc()const;
3232
constsize_tgetSampleRate()const;

‎src/AvTranscoder/DatasStructures/VideoDesc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ VideoDesc::VideoDesc( const AVCodecID codecId )
1515
{
1616
}
1717

18-
VideoDesc::VideoDesc( EssenceDesc& essenceDesc )
18+
VideoDesc::VideoDesc(constEssenceDesc& essenceDesc )
1919
: EssenceDesc( essenceDesc.getCodecId() )
2020
{
2121
m_codec = essenceDesc.getCodec();

‎src/AvTranscoder/DatasStructures/VideoDesc.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class AvExport VideoDesc : public EssenceDesc
2626
public:
2727
VideoDesc(const std::string& codecName ="" );
2828
VideoDesc(const AVCodecID codecId );
29-
VideoDesc( EssenceDesc& essenceDesc );
29+
VideoDesc(constEssenceDesc& essenceDesc );
3030

3131
ImageDescgetImageDesc()const;
3232
std::pair<size_t,size_t >getTimeBase()const;

‎src/AvTranscoder/EssenceStream/DummyVideo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ DummyVideo::~DummyVideo( )
1717
{
1818
}
1919

20-
voidDummyVideo::setVideoDesc( VideoDesc& videoDesc )
20+
voidDummyVideo::setVideoDesc(constVideoDesc& videoDesc )
2121
{
2222
_videoDesc = videoDesc;
2323
_imageDesc = _videoDesc.getImageDesc();

‎src/AvTranscoder/EssenceStream/DummyVideo.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class AvExport DummyVideo : public InputEssence
1717
~DummyVideo( );
1818

1919
// Stream properties
20-
voidsetVideoDesc( VideoDesc& videoDesc );
20+
voidsetVideoDesc(constVideoDesc& videoDesc );
2121

2222
VideoDescgetVideoDesc()const;
2323

‎src/AvTranscoder/Transcoder/Transcoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ void Transcoder::addTranscodeStream( const std::string& filename, const size_t s
291291
}
292292
}
293293

294-
voidTranscoder::addDummyStream(const Profile::ProfileDesc& profile, EssenceDesc& essenceDesc )
294+
voidTranscoder::addDummyStream(const Profile::ProfileDesc& profile,constEssenceDesc& essenceDesc )
295295
{
296296
if( ! profile.count( Profile::avProfileType ) )
297297
throwstd::runtime_error("unable to found stream type (audio, video, etc.)" );

‎src/AvTranscoder/Transcoder/Transcoder.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class Transcoder
7979

8080
voidaddTranscodeStream(const std::string& filename,constsize_t streamIndex,constsize_t subStreamIndex, Profile::ProfileDesc& profile );
8181

82-
voidaddDummyStream(const Profile::ProfileDesc& profile, EssenceDesc& essenceDesc );
82+
voidaddDummyStream(const Profile::ProfileDesc& profile,constEssenceDesc& essenceDesc );
8383

8484
InputFile*addInputFile(const std::string& filename,constsize_t streamIndex );
8585

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp