History

fix decoder win64 asm float issues

Licai Guo committed 12 years ago

Commit def55c11 parent 9efbef62 files · +7 −2Browse files

Showing the changes to codec/decoder (2 of 2 files). Show all

Unified · Split

2 files
  1. codec/decoder/plus/inc/welsDecoderExt.h +3 −1
  2. codec/decoder/plus/src/welsDecoderExt.cpp +4 −1
codec/decoder/plus/inc/welsDecoderExt.h+3−1
@@ -46,7 +46,7 @@ · 45 unmodified lines
4646 #include "codec_app_def.h"
4747 #include "decoder_context.h"
4848 #include "welsCodecTrace.h"
49−
49+#include "cpu.h"
5050
5151 class ISVCDecoder;
5252
@@ -104,6 +104,8 @@ IWelsTrace* m_pTrace; · 51 unmodified lines
104104 void_t InitDecoder (void_t);
105105 void_t UninitDecoder (void_t);
106106
107+XMMREG_PROTECT_DECLARE(CWelsH264Decoder);
108+
107109 #ifdef OUTPUT_BIT_STREAM
108110 WelsFileHandle* m_pFBS;
109111 WelsFileHandle* m_pFBSSize;
codec/decoder/plus/src/welsDecoderExt.cpp+4−1
@@ -99,7 +99,7 @@ CWelsDecoder::CWelsDecoder (void_t) · 98 unmodified lines
9999 m_pTrace = CreateWelsTrace (Wels_Trace_Type);
100100
101101 IWelsTrace::WelsVTrace (m_pTrace, IWelsTrace::WELS_LOG_INFO, "CWelsDecoder::CWelsDecoder() entry");
102−
102+ XMMREG_PROTECT_INIT(CWelsH264Decoder);
103103
104104 #ifdef OUTPUT_BIT_STREAM
105105 SWelsTime sCurTime;
@@ -151,6 +151,7 @@ CWelsDecoder::~CWelsDecoder() { · 45 unmodified lines
151151 IWelsTrace::WelsVTrace (m_pTrace, IWelsTrace::WELS_LOG_INFO, "CWelsDecoder::~CWelsDecoder()");
152152
153153 UninitDecoder();
154+ XMMREG_PROTECT_UNINIT(CWelsH264Decoder);
154155
155156 #ifdef OUTPUT_BIT_STREAM
156157 if (m_pFBS) {
@@ -384,8 +385,10 @@ DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc, · 227 unmodified lines
384385
385386 m_pDecContext->iFeedbackTidInAu = -1; //initialize
386387
388+ XMMREG_PROTECT_STORE(CWelsH264Decoder);
387389 WelsDecodeBs (m_pDecContext, kpSrc, kiSrcLen, (unsigned char**)ppDst,
388390 pDstInfo); //iErrorCode has been modified in this function
391+ XMMREG_PROTECT_LOAD(CWelsH264Decoder);
389392
390393 pDstInfo->eWorkMode = (EDecodeMode)m_pDecContext->iDecoderMode;
391394

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t