Showing the changes to codec/decoder (2 of 2 files). Show all
Unified · Split
| @@ -46,7 +46,7 @@ · 45 unmodified lines | ||
| 46 | 46 | #include "codec_app_def.h" |
| 47 | 47 | #include "decoder_context.h" |
| 48 | 48 | #include "welsCodecTrace.h" |
| 49 | − | |
| 49 | +#include "cpu.h" | |
| 50 | 50 | |
| 51 | 51 | class ISVCDecoder; |
| 52 | 52 | |
| @@ -104,6 +104,8 @@ IWelsTrace* m_pTrace; · 51 unmodified lines | ||
| 104 | 104 | void_t InitDecoder (void_t); |
| 105 | 105 | void_t UninitDecoder (void_t); |
| 106 | 106 | |
| 107 | +XMMREG_PROTECT_DECLARE(CWelsH264Decoder); | |
| 108 | + | |
| 107 | 109 | #ifdef OUTPUT_BIT_STREAM |
| 108 | 110 | WelsFileHandle* m_pFBS; |
| 109 | 111 | WelsFileHandle* m_pFBSSize; |
| @@ -99,7 +99,7 @@ CWelsDecoder::CWelsDecoder (void_t) · 98 unmodified lines | ||
| 99 | 99 | m_pTrace = CreateWelsTrace (Wels_Trace_Type); |
| 100 | 100 | |
| 101 | 101 | IWelsTrace::WelsVTrace (m_pTrace, IWelsTrace::WELS_LOG_INFO, "CWelsDecoder::CWelsDecoder() entry"); |
| 102 | − | |
| 102 | + XMMREG_PROTECT_INIT(CWelsH264Decoder); | |
| 103 | 103 | |
| 104 | 104 | #ifdef OUTPUT_BIT_STREAM |
| 105 | 105 | SWelsTime sCurTime; |
| @@ -151,6 +151,7 @@ CWelsDecoder::~CWelsDecoder() { · 45 unmodified lines | ||
| 151 | 151 | IWelsTrace::WelsVTrace (m_pTrace, IWelsTrace::WELS_LOG_INFO, "CWelsDecoder::~CWelsDecoder()"); |
| 152 | 152 | |
| 153 | 153 | UninitDecoder(); |
| 154 | + XMMREG_PROTECT_UNINIT(CWelsH264Decoder); | |
| 154 | 155 | |
| 155 | 156 | #ifdef OUTPUT_BIT_STREAM |
| 156 | 157 | if (m_pFBS) { |
| @@ -384,8 +385,10 @@ DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc, · 227 unmodified lines | ||
| 384 | 385 | |
| 385 | 386 | m_pDecContext->iFeedbackTidInAu = -1; //initialize |
| 386 | 387 | |
| 388 | + XMMREG_PROTECT_STORE(CWelsH264Decoder); | |
| 387 | 389 | WelsDecodeBs (m_pDecContext, kpSrc, kiSrcLen, (unsigned char**)ppDst, |
| 388 | 390 | pDstInfo); //iErrorCode has been modified in this function |
| 391 | + XMMREG_PROTECT_LOAD(CWelsH264Decoder); | |
| 389 | 392 | |
| 390 | 393 | pDstInfo->eWorkMode = (EDecodeMode)m_pDecContext->iDecoderMode; |
| 391 | 394 | |