Skip to content

Commit fe41702

Browse files
committed
Merge pull request #380 from cchampet/dev_AudioVideoUpToAvTranscoder0.5.3
AudioVideo: up avtranscoder to v0.5.3
2 parents fd01013 + 94ba083 commit fe41702

File tree

9 files changed

+13
-14
lines changed

9 files changed

+13
-14
lines changed

plugins/image/io/AudioVideo/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ if(FFMPEG_FOUND)
1313
tuttle_install_shared_libs("${${var}}")
1414
endforeach()
1515
# Build avTranscoder library
16+
set(AVTRANSCODER_DISABLE_APPS True)
17+
set(AVTRANSCODER_DISABLE_BINDINGS True)
1618
add_subdirectory(avTranscoder)
1719
endif(FFMPEG_FOUND)
1820

Submodule avTranscoder updated 45 files

plugins/image/io/AudioVideo/src/common/util.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#include <AvTranscoder/util.hpp>
55
#include <AvTranscoder/Option.hpp>
6-
#include <AvTranscoder/ProfileLoader.hpp>
6+
#include <AvTranscoder/profile/ProfileLoader.hpp>
77

88
#include <ofxsImageEffect.h>
99

plugins/image/io/AudioVideo/src/reader/AVReaderPlugin.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,9 +491,9 @@ void AVReaderPlugin::beginSequenceRender( const OFX::BeginSequenceRenderArgument
491491

492492
// manage verbose level
493493
if( _paramVerbose->getValue() )
494-
avtranscoder::setLogLevel( AV_LOG_DEBUG );
494+
avtranscoder::Logger::setLogLevel( AV_LOG_DEBUG );
495495
else
496-
avtranscoder::setLogLevel( AV_LOG_QUIET );
496+
avtranscoder::Logger::setLogLevel( AV_LOG_QUIET );
497497
}
498498

499499
void AVReaderPlugin::render( const OFX::RenderArguments& args )

plugins/image/io/AudioVideo/src/reader/AVReaderPluginFactory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace reader {
3030
void AVReaderPluginFactory::describe( OFX::ImageEffectDescriptor& desc )
3131
{
3232
avtranscoder::preloadCodecsAndFormats();
33-
avtranscoder::setLogLevel( AV_LOG_QUIET );
33+
avtranscoder::Logger::setLogLevel( AV_LOG_QUIET );
3434

3535
desc.setLabels(
3636
"TuttleAVReader",

plugins/image/io/AudioVideo/src/writer/AVWriterPlugin.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,9 +1049,9 @@ void AVWriterPlugin::beginSequenceRender( const OFX::BeginSequenceRenderArgument
10491049

10501050
// manage verbose level
10511051
if( _paramVerbose->getValue() )
1052-
avtranscoder::setLogLevel( AV_LOG_DEBUG );
1052+
avtranscoder::Logger::setLogLevel( AV_LOG_DEBUG );
10531053
else
1054-
avtranscoder::setLogLevel( AV_LOG_QUIET );
1054+
avtranscoder::Logger::setLogLevel( AV_LOG_QUIET );
10551055
}
10561056

10571057
/**

plugins/image/io/AudioVideo/src/writer/AVWriterPlugin.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
#include <tuttle/plugin/context/WriterPlugin.hpp>
77

8-
#include <AvTranscoder/ProfileLoader.hpp>
98
#include <AvTranscoder/transcoder/Transcoder.hpp>
9+
#include <AvTranscoder/profile/ProfileLoader.hpp>
1010
#include <AvTranscoder/file/OutputFile.hpp>
1111
#include <AvTranscoder/frame/Frame.hpp>
1212

plugins/image/io/AudioVideo/src/writer/AVWriterPluginFactory.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include <AvTranscoder/common.hpp>
1010
#include <AvTranscoder/util.hpp>
1111
#include <AvTranscoder/Library.hpp>
12-
#include <AvTranscoder/ProfileLoader.hpp>
12+
#include <AvTranscoder/profile/ProfileLoader.hpp>
1313
#include <AvTranscoder/file/FormatContext.hpp>
1414

1515
#include <boost/algorithm/string/join.hpp>
@@ -33,7 +33,7 @@ namespace writer {
3333
void AVWriterPluginFactory::describe( OFX::ImageEffectDescriptor& desc )
3434
{
3535
avtranscoder::preloadCodecsAndFormats();
36-
avtranscoder::setLogLevel( AV_LOG_QUIET );
36+
avtranscoder::Logger::setLogLevel( AV_LOG_QUIET );
3737

3838
desc.setLabels(
3939
"TuttleAVWriter",

plugins/image/io/AudioVideo/src/writer/AVWriterProcess.tcc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@ void AVWriterProcess<View>::multiThreadProcessImages( const OfxRectI& procWindow
3838

3939
rgb8_image_t img ( this->_srcView.dimensions() );
4040
rgb8_view_t vw ( view( img ) );
41-
42-
// Convert pixels to destination
43-
copy_and_convert_pixels( this->_srcView, this->_dstView );
44-
41+
4542
// Convert pixels in PIX_FMT_RGB24
4643
copy_and_convert_pixels( this->_srcView, vw );
4744

0 commit comments

Comments
 (0)