diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-01-11 10:36:03 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-12-03 16:44:08 +0100 |
| commit | 786130019b9f9ab6996547cf78d2d47142f542ab (patch) | |
| tree | cc74a59e2004ba8e8ca9c786c48c9a322ba26d20 /src | |
| parent | 72b713cf2bad317c51f737ad8f3a2cf214f6da9d (diff) | |
Remove unused parameters to methods.
Diffstat (limited to 'src')
| -rw-r--r-- | src/AS_02_PCM.cpp | 9 | ||||
| -rwxr-xr-x | src/AS_DCP_JP2K.cpp | 2 | ||||
| -rw-r--r-- | src/KM_fileio.cpp | 4 | ||||
| -rw-r--r-- | src/KM_xml.cpp | 4 | ||||
| -rwxr-xr-x | src/MPEG2_Parser.cpp | 10 | ||||
| -rwxr-xr-x | src/MXFTypes.h | 4 | ||||
| -rwxr-xr-x | src/asdcp-info.cpp | 4 | ||||
| -rw-r--r-- | src/h__02_Writer.cpp | 12 | ||||
| -rwxr-xr-x | src/h__Writer.cpp | 2 |
9 files changed, 25 insertions, 26 deletions
diff --git a/src/AS_02_PCM.cpp b/src/AS_02_PCM.cpp index 183f424..b21d644 100644 --- a/src/AS_02_PCM.cpp +++ b/src/AS_02_PCM.cpp @@ -28,7 +28,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /*! \file AS_02_PCM.cpp - \version $Id$ + \version $Id$ \brief AS-02 library, PCM essence reader and writer implementation */ @@ -117,7 +117,7 @@ AS_02::PCM::MXFReader::h__Reader::OpenRead(const std::string& filename, const AS { DefaultLogSink().Error("Essence wrapper key is not WAVEssenceClip: %s\n", entry->name); } - + return RESULT_AS02_FORMAT; } @@ -151,7 +151,7 @@ AS_02::PCM::MXFReader::h__Reader::OpenRead(const std::string& filename, const AS // ASDCP::Result_t AS_02::PCM::MXFReader::h__Reader::ReadFrame(ui32_t FrameNum, ASDCP::PCM::FrameBuffer& FrameBuf, - ASDCP::AESDecContext* Ctx, ASDCP::HMACContext* HMAC) + ASDCP::AESDecContext*, ASDCP::HMACContext*) { if ( ! m_File.IsOpen() ) { @@ -332,7 +332,7 @@ public: ASDCP::MXF::WaveAudioDescriptor *m_WaveAudioDescriptor; byte_t m_EssenceUL[SMPTE_UL_LENGTH]; ui32_t m_BytesPerSample; - + h__Writer(const Dictionary& d) : AS_02::h__AS02WriterClip(d), m_WaveAudioDescriptor(0), m_BytesPerSample(0) { memset(m_EssenceUL, 0, SMPTE_UL_LENGTH); @@ -597,4 +597,3 @@ AS_02::PCM::MXFWriter::Finalize() // // end AS_02_PCM.cpp // - diff --git a/src/AS_DCP_JP2K.cpp b/src/AS_DCP_JP2K.cpp index 35929c6..7dcd5ee 100755 --- a/src/AS_DCP_JP2K.cpp +++ b/src/AS_DCP_JP2K.cpp @@ -207,7 +207,7 @@ static const byte_t s_PixelLayoutXYZ[PixelLayoutSize] = { 0xd8, 0x0c, 0xd9, 0x0c // ASDCP::Result_t ASDCP::JP2K_PDesc_to_MD(const JP2K::PictureDescriptor& PDesc, - const ASDCP::Dictionary& dict, + const ASDCP::Dictionary&, ASDCP::MXF::GenericPictureEssenceDescriptor& EssenceDescriptor, ASDCP::MXF::JPEG2000PictureSubDescriptor& EssenceSubDescriptor) { diff --git a/src/KM_fileio.cpp b/src/KM_fileio.cpp index ed8aa67..c95c690 100644 --- a/src/KM_fileio.cpp +++ b/src/KM_fileio.cpp @@ -1197,7 +1197,7 @@ Kumu::WriteStringIntoFile(const std::string& filename, const std::string& inStri // Kumu::Result_t -Kumu::ReadFileIntoObject(const std::string& Filename, Kumu::IArchive& Object, ui32_t max_size) +Kumu::ReadFileIntoObject(const std::string& Filename, Kumu::IArchive& Object, ui32_t) { ByteString Buffer; ui32_t file_size = static_cast<ui32_t>(FileSize(Filename)); @@ -1258,7 +1258,7 @@ Kumu::WriteObjectIntoFile(const Kumu::IArchive& Object, const std::string& Filen // Result_t -Kumu::ReadFileIntoBuffer(const std::string& Filename, Kumu::ByteString& Buffer, ui32_t max_size) +Kumu::ReadFileIntoBuffer(const std::string& Filename, Kumu::ByteString& Buffer, ui32_t) { ui32_t file_size = FileSize(Filename); Result_t result = Buffer.Capacity(file_size); diff --git a/src/KM_xml.cpp b/src/KM_xml.cpp index 8345630..ff5b728 100644 --- a/src/KM_xml.cpp +++ b/src/KM_xml.cpp @@ -1059,14 +1059,14 @@ Kumu::XMLElement::ParseFirstFromString(const char* document, ui32_t doc_len) // bool -Kumu::XMLElement::ParseString(const char* document, ui32_t doc_len) +Kumu::XMLElement::ParseString(const char*, ui32_t) { DefaultLogSink().Error("Kumu compiled without XML parser support.\n"); return false; } bool -Kumu::XMLElement::ParseFirstFromString(const char* document, ui32_t doc_len) +Kumu::XMLElement::ParseFirstFromString(const char*, ui32_t) { DefaultLogSink().Error("Kumu compiled without XML parser support.\n"); return false; diff --git a/src/MPEG2_Parser.cpp b/src/MPEG2_Parser.cpp index 89abbfd..abfe32b 100755 --- a/src/MPEG2_Parser.cpp +++ b/src/MPEG2_Parser.cpp @@ -192,7 +192,7 @@ public: ~StreamParams() {} // - Result_t Sequence(VESParser*, const byte_t* b, ui32_t s) + Result_t Sequence(VESParser*, const byte_t* b, ui32_t) { Result_t result = m_State.Goto_SEQ(); @@ -211,7 +211,7 @@ public: } // - Result_t Extension(VESParser*, const byte_t* b, ui32_t s) + Result_t Extension(VESParser*, const byte_t* b, ui32_t) { Result_t result = m_State.Goto_EXT(); @@ -286,7 +286,7 @@ public: m_State.Reset(); } - Result_t Sequence(VESParser*, const byte_t* b, ui32_t s) + Result_t Sequence(VESParser*, const byte_t*, ui32_t s) { if ( m_State.Test_SLICE() ) { @@ -324,7 +324,7 @@ public: return m_State.Test_SLICE() ? RESULT_OK : RESULT_FAIL; } - Result_t Extension(VESParser*, const byte_t* b, ui32_t s) + Result_t Extension(VESParser*, const byte_t*, ui32_t s) { m_FrameSize += s; return m_State.Goto_EXT(); @@ -339,7 +339,7 @@ public: return m_State.Goto_GOP(); } - Result_t Data(VESParser*, const byte_t* b, i32_t s) + Result_t Data(VESParser*, const byte_t*, i32_t s) { m_FrameSize += s; return RESULT_OK; diff --git a/src/MXFTypes.h b/src/MXFTypes.h index f74f4f5..b1aa39a 100755 --- a/src/MXFTypes.h +++ b/src/MXFTypes.h @@ -156,7 +156,7 @@ namespace ASDCP return result; } - void Dump(FILE* stream = 0, ui32_t depth = 0) { + void Dump(FILE* stream = 0, ui32_t = 0) { char identbuf[IdentBufferLen]; if ( stream == 0 ) @@ -250,7 +250,7 @@ namespace ASDCP } // - void Dump(FILE* stream = 0, ui32_t depth = 0) + void Dump(FILE* stream = 0, ui32_t = 0) { char identbuf[IdentBufferLen]; diff --git a/src/asdcp-info.cpp b/src/asdcp-info.cpp index b8876fe..ef9eaa3 100755 --- a/src/asdcp-info.cpp +++ b/src/asdcp-info.cpp @@ -352,7 +352,7 @@ public: } // - void get_PictureEssenceCoding(FILE* stream = 0) + void get_PictureEssenceCoding(FILE* = 0) { const Dictionary& Dict = DefaultCompositeDict(); MXF::RGBAEssenceDescriptor *descriptor = 0; @@ -462,7 +462,7 @@ public: // void - calc_Bitrate(FILE* stream = 0) + calc_Bitrate(FILE* = 0) { MXF::OPAtomIndexFooter& footer = m_Reader.OPAtomIndexFooter(); ui64_t total_frame_bytes = 0, last_stream_offset = 0; diff --git a/src/h__02_Writer.cpp b/src/h__02_Writer.cpp index f400afd..8f66a6c 100644 --- a/src/h__02_Writer.cpp +++ b/src/h__02_Writer.cpp @@ -25,7 +25,7 @@ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ +*/ /*! \file h__02_Writer.cpp \version $Id$ \brief MXF file writer base class @@ -58,7 +58,7 @@ AS_02::MXF::AS02IndexWriterVBR::WriteToFile(Kumu::FileWriter& Writer) assert(m_Dict); ASDCP::FrameBuffer index_body_buffer; ui32_t index_body_size = m_PacketList->m_List.size() * MaxIndexSegmentSize; // segment-count * max-segment-size - Result_t result = index_body_buffer.Capacity(index_body_size); + Result_t result = index_body_buffer.Capacity(index_body_size); ui64_t start_position = 0; if ( m_CurrentSegment != 0 ) @@ -185,7 +185,7 @@ AS_02::h__AS02WriterFrame::WriteEKLVPacket(const ASDCP::FrameBuffer& FrameBuf,co m_StreamOffset, FrameBuf, EssenceUL, Ctx, HMAC); if ( KM_SUCCESS(result) ) - { + { IndexTableSegment::IndexEntry Entry; Entry.StreamOffset = this_stream_offset; m_IndexWriter.PushIndexEntry(Entry); @@ -233,7 +233,7 @@ AS_02::MXF::AS02IndexWriterCBR::WriteToFile(Kumu::FileWriter& Writer) assert(m_Dict); ASDCP::FrameBuffer index_body_buffer; ui32_t index_body_size = MaxIndexSegmentSize; // segment-count * max-segment-size - Result_t result = index_body_buffer.Capacity(index_body_size); + Result_t result = index_body_buffer.Capacity(index_body_size); m_CurrentSegment = new IndexTableSegment(m_Dict); assert(m_CurrentSegment); @@ -306,7 +306,7 @@ AS_02::h__AS02WriterClip::HasOpenClip() const // Result_t -AS_02::h__AS02WriterClip::StartClip(const byte_t* EssenceUL, AESEncContext* Ctx, HMACContext* HMAC) +AS_02::h__AS02WriterClip::StartClip(const byte_t* EssenceUL, AESEncContext* Ctx, HMACContext*) { if ( Ctx != 0 ) { @@ -368,7 +368,7 @@ AS_02::h__AS02WriterClip::FinalizeClip(ui32_t bytes_per_frame) result = m_File.Seek(current_position); m_ClipStart = 0; } - + return result; } diff --git a/src/h__Writer.cpp b/src/h__Writer.cpp index 07d418f..a0fa2fc 100755 --- a/src/h__Writer.cpp +++ b/src/h__Writer.cpp @@ -227,7 +227,7 @@ ASDCP::h__ASDCPWriter::WriteASDCPFooter() // standard method of writing a plaintext or encrypted frame Result_t -ASDCP::Write_EKLV_Packet(Kumu::FileWriter& File, const ASDCP::Dictionary& Dict, const MXF::OP1aHeader& HeaderPart, +ASDCP::Write_EKLV_Packet(Kumu::FileWriter& File, const ASDCP::Dictionary& Dict, const MXF::OP1aHeader&, const ASDCP::WriterInfo& Info, ASDCP::FrameBuffer& CtFrameBuf, ui32_t& FramesWritten, ui64_t & StreamOffset, const ASDCP::FrameBuffer& FrameBuf, const byte_t* EssenceUL, AESEncContext* Ctx, HMACContext* HMAC) |
