Home | History | Annotate | Download | only in Compress
      1 // BranchCoder.cpp
      2 
      3 #include "StdAfx.h"
      4 
      5 #include "BranchCoder.h"
      6 
      7 STDMETHODIMP CBranchConverter::Init()
      8 {
      9   _bufferPos = 0;
     10   SubInit();
     11   return S_OK;
     12 }
     13 
     14 STDMETHODIMP_(UInt32) CBranchConverter::Filter(Byte *data, UInt32 size)
     15 {
     16   UInt32 processedSize = SubFilter(data, size);
     17   _bufferPos += processedSize;
     18   return processedSize;
     19 }
     20