History

correct a typo along with the in-plan v1.5 release

Sijia Chen committed 11 years ago

Commit 6ca397e1 parent 9d251613 files · +7 −7Browse files

Showing the changes to test/api/encode_decode_api_test.cpp (1 of 3 files). Show all

Unified · Split

test/api/encode_decode_api_test.cpp+5−5
@@ -204,7 +204,7 @@ class EncodeDecodeTestAPIBase : public EncodeDecodeTestBase { · 203 unmodified lines
204 if (0 == iCheckTypeIndex)204 if (0 == iCheckTypeIndex)
205 ASSERT_TRUE (rv == cmResultSuccess);205 ASSERT_TRUE (rv == cmResultSuccess);
206 else if (1 == iCheckTypeIndex)206 else if (1 == iCheckTypeIndex)
207 ASSERT_TRUE (rv == cmResultSuccess || rv == cmUnkonwReason);207 ASSERT_TRUE (rv == cmResultSuccess || rv == cmUnknownReason);
208 }208 }
209 209
210 void EncDecOneFrame (const int iWidth, const int iHeight, const int iFrame, FILE* pfEnc) {210 void EncDecOneFrame (const int iWidth, const int iHeight, const int iFrame, FILE* pfEnc) {
@@ -990,7 +990,7 @@ TEST_P (EncodeDecodeTestAPI, GetOptionLTR_ALLLTR) { · 779 unmodified lines
990 if (m_LTR_Recover_Request.uiFeedbackType == IDR_RECOVERY_REQUEST) {990 if (m_LTR_Recover_Request.uiFeedbackType == IDR_RECOVERY_REQUEST) {
991 ASSERT_TRUE (info.eFrameType == videoFrameTypeIDR);991 ASSERT_TRUE (info.eFrameType == videoFrameTypeIDR);
992 }992 }
993 ASSERT_TRUE (rv == cmResultSuccess || rv == cmUnkonwReason);993 ASSERT_TRUE (rv == cmResultSuccess || rv == cmUnknownReason);
994 m_LTR_Recover_Request.uiFeedbackType = LTR_RECOVERY_REQUEST;994 m_LTR_Recover_Request.uiFeedbackType = LTR_RECOVERY_REQUEST;
995 m_LTR_Recover_Request.iCurrentFrameNum = rand() % 2 == 1 ? -rand() % 10000 : rand() % 10000;995 m_LTR_Recover_Request.iCurrentFrameNum = rand() % 2 == 1 ? -rand() % 10000 : rand() % 10000;
996 m_LTR_Recover_Request.uiIDRPicId = rand() % 2 == 1 ? -rand() % 10000 : rand() % 10000;996 m_LTR_Recover_Request.uiIDRPicId = rand() % 2 == 1 ? -rand() % 10000 : rand() % 10000;
@@ -2277,7 +2277,7 @@ class DecodeCrashTestAPI : public ::testing::TestWithParam<EncodeDecodeFileParam · 1280 unmodified lines
2277 memset (buf_.data(), iRandValue, (frameSize >> 2));2277 memset (buf_.data(), iRandValue, (frameSize >> 2));
2278 memset (buf_.data() + (frameSize >> 2), rand() % 256, (frameSize - (frameSize >> 2)));2278 memset (buf_.data() + (frameSize >> 2), rand() % 256, (frameSize - (frameSize >> 2)));
2279 int rv = encoder_->EncodeFrame (&EncPic, &info);2279 int rv = encoder_->EncodeFrame (&EncPic, &info);
2280 ASSERT_TRUE (rv == cmResultSuccess || rv == cmUnkonwReason);2280 ASSERT_TRUE (rv == cmResultSuccess || rv == cmUnknownReason);
2281 }2281 }
2282 protected:2282 protected:
2283 unsigned char* ucBuf_;2283 unsigned char* ucBuf_;
@@ -2562,7 +2562,7 @@ class DecodeParseAPI : public ::testing::TestWithParam<EncodeDecodeFileParamBase · 278 unmodified lines
2562 ASSERT_TRUE (iSize == iFrameSize);2562 ASSERT_TRUE (iSize == iFrameSize);
2563 }2563 }
2564 int rv = encoder_->EncodeFrame (&EncPic, &info);2564 int rv = encoder_->EncodeFrame (&EncPic, &info);
2565 ASSERT_TRUE (rv == cmResultSuccess || rv == cmUnkonwReason);2565 ASSERT_TRUE (rv == cmResultSuccess || rv == cmUnknownReason);
2566 }2566 }
2567 2567
2568 void prepareParam (int iLayerNum, int iSliceNum, int width, int height, float framerate, SEncParamExt* pParam) {2568 void prepareParam (int iLayerNum, int iSliceNum, int width, int height, float framerate, SEncParamExt* pParam) {
@@ -3505,7 +3505,7 @@ class EncodeTestAPI : public ::testing::TestWithParam<EncodeOptionParam>, public · 936 unmodified lines
3505 if (0 == iCheckTypeIndex)3505 if (0 == iCheckTypeIndex)
3506 ASSERT_TRUE (rv == cmResultSuccess) << "rv=" << rv;3506 ASSERT_TRUE (rv == cmResultSuccess) << "rv=" << rv;
3507 else if (1 == iCheckTypeIndex)3507 else if (1 == iCheckTypeIndex)
3508 ASSERT_TRUE (rv == cmResultSuccess || rv == cmUnkonwReason) << "rv=" << rv;3508 ASSERT_TRUE (rv == cmResultSuccess || rv == cmUnknownReason) << "rv=" << rv;
3509 }3509 }
3510};3510};
3511 3511

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