Showing the changes to codec/processing/src/downsample/downsample.h (1 of 2 files). Show all
Unified · Split
| @@ -170,10 +170,13 @@ class CDownsampling : public IStrategy { · 169 unmodified lines | ||
| 170 | 170 | void InitDownsampleFuncs (SDownsampleFuncs& sDownsampleFunc, int32_t iCpuFlag); |
| 171 | 171 | |
| 172 | 172 | int32_t GetAlignedIndex (const int32_t kiSrcWidth); |
| 173 | − | |
| 173 | + bool AllocateSampleBuffer(); | |
| 174 | + void FreeSampleBuffer(); | |
| 174 | 175 | private: |
| 175 | 176 | SDownsampleFuncs m_pfDownsample; |
| 176 | 177 | int32_t m_iCPUFlag; |
| 178 | + uint8_t *m_pSampleBuffer[2][3]; | |
| 179 | + bool m_bNoSampleBuffer; | |
| 177 | 180 | }; |
| 178 | 181 | |
| 179 | 182 | WELSVP_NAMESPACE_END |