This isn't necessary any longer, when all the assembly routines take care of restoring registers as necessary.
Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 9 files). Show all
Unified · Split
| @@ -138,7 +138,6 @@ CWelsH264SVCEncoder::CWelsH264SVCEncoder() · 137 unmodified lines | |||
| 138 | #endif//OUTPUT_BIT_STREAM | 138 | #endif//OUTPUT_BIT_STREAM |
| 139 | 139 | ||
| 140 | InitEncoder(); | 140 | InitEncoder(); |
| 141 | XMMREG_PROTECT_INIT(CWelsH264SVCEncoder); | ||
| 142 | } | 141 | } |
| 143 | 142 | ||
| 144 | CWelsH264SVCEncoder::~CWelsH264SVCEncoder() { | 143 | CWelsH264SVCEncoder::~CWelsH264SVCEncoder() { |
| @@ -172,7 +171,6 @@ CWelsH264SVCEncoder::~CWelsH264SVCEncoder() { · 27 unmodified lines | |||
| 172 | #endif//OUTPUT_BIT_STREAM | 171 | #endif//OUTPUT_BIT_STREAM |
| 173 | 172 | ||
| 174 | Uninitialize(); | 173 | Uninitialize(); |
| 175 | XMMREG_PROTECT_UNINIT(CWelsH264SVCEncoder); | ||
| 176 | } | 174 | } |
| 177 | 175 | ||
| 178 | void CWelsH264SVCEncoder::InitEncoder (void) { | 176 | void CWelsH264SVCEncoder::InitEncoder (void) { |
| @@ -535,9 +533,7 @@ int CWelsH264SVCEncoder::EncodeFrameInternal(const SSourcePicture* pSrcPic, SFr · 356 unmodified lines | |||
| 535 | 533 | ||
| 536 | int32_t iFrameTypeReturned = 0; | 534 | int32_t iFrameTypeReturned = 0; |
| 537 | int32_t iFrameType = videoFrameTypeInvalid; | 535 | int32_t iFrameType = videoFrameTypeInvalid; |
| 538 | XMMREG_PROTECT_STORE(CWelsH264SVCEncoder); | ||
| 539 | const int32_t kiEncoderReturn = WelsEncoderEncodeExt (m_pEncContext, pBsInfo, pSrcPic); | 536 | const int32_t kiEncoderReturn = WelsEncoderEncodeExt (m_pEncContext, pBsInfo, pSrcPic); |
| 540 | XMMREG_PROTECT_LOAD(CWelsH264SVCEncoder); | ||
| 541 | 537 | ||
| 542 | switch (kiEncoderReturn) { | 538 | switch (kiEncoderReturn) { |
| 543 | case ENC_RETURN_MEMALLOCERR: | 539 | case ENC_RETURN_MEMALLOCERR: |