Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 15 files). Show all
Unified · Split
| @@ -218,6 +218,7 @@ CWelsH264SVCEncoder::CWelsH264SVCEncoder() · 217 unmodified lines | ||
| 218 | 218 | #endif//OUTPUT_BIT_STREAM |
| 219 | 219 | |
| 220 | 220 | InitEncoder(); |
| 221 | + XMMREG_PROTECT_INIT(CWelsH264SVCEncoder); | |
| 221 | 222 | } |
| 222 | 223 | |
| 223 | 224 | CWelsH264SVCEncoder::~CWelsH264SVCEncoder() { |
| @@ -253,6 +254,7 @@ CWelsH264SVCEncoder::~CWelsH264SVCEncoder() { · 29 unmodified lines | ||
| 253 | 254 | #endif//OUTPUT_BIT_STREAM |
| 254 | 255 | |
| 255 | 256 | Uninitialize(); |
| 257 | + XMMREG_PROTECT_UNINIT(CWelsH264SVCEncoder); | |
| 256 | 258 | } |
| 257 | 259 | |
| 258 | 260 | void CWelsH264SVCEncoder::InitEncoder (void) { |
| @@ -628,7 +630,9 @@ int CWelsH264SVCEncoder::EncodeFrame (const SSourcePicture** pSrcPicList, int · 369 unmodified lines | ||
| 628 | 630 | int32_t iFrameType = videoFrameTypeInvalid; |
| 629 | 631 | |
| 630 | 632 | if (nSrcPicNum > 0) { |
| 633 | + XMMREG_PROTECT_STORE(CWelsH264SVCEncoder); | |
| 631 | 634 | iFrameTypeReturned = WelsEncoderEncodeExt (m_pEncContext, pBsInfo, pSrcPicList, nSrcPicNum); |
| 635 | + XMMREG_PROTECT_LOAD(CWelsH264SVCEncoder); | |
| 632 | 636 | } else { |
| 633 | 637 | assert (0); |
| 634 | 638 | return videoFrameTypeInvalid; |