History

remove RawData2SrcPic, which is never called

volvet committed 12 years ago

Commit b0ed3cb1 parent bed051b2 files · +0 −32Browse files

Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 2 files). Show all

Unified · Split

codec/encoder/plus/src/welsEncoderExt.cpp+0−31
@@ -470,37 +470,6 @@ int32_t CWelsH264SVCEncoder::Uninitialize() { · 469 unmodified lines
470}470}
471 471
472 472
473int32_t CWelsH264SVCEncoder::RawData2SrcPic (const uint8_t* pSrc) {
474 assert (m_iSrcListSize > 0);
475
476 int32_t y_length = m_iMaxPicWidth * m_iMaxPicHeight;
477 m_pSrcPicList[0]->pData[0] = const_cast<uint8_t*> (pSrc);
478
479 switch (m_iCspInternal & (~videoFormatVFlip)) {
480 case videoFormatYVYU:
481 case videoFormatUYVY:
482 case videoFormatYUY2:
483 case videoFormatRGB:
484 case videoFormatBGR:
485 case videoFormatBGRA:
486 case videoFormatRGBA:
487 case videoFormatARGB:
488 case videoFormatABGR:
489 m_pSrcPicList[0]->pData[1] = m_pSrcPicList[0]->pData[2] = NULL;
490 break;
491 case videoFormatI420:
492 case videoFormatYV12:
493 m_pSrcPicList[0]->pData[1] = m_pSrcPicList[0]->pData[0] + y_length;
494 m_pSrcPicList[0]->pData[2] = m_pSrcPicList[0]->pData[1] + (y_length >> 2);
495 break;
496 default:
497 return 1;
498 }
499
500 return 0;
501}
502
503
504/*473/*
505 * SVC core encoding474 * SVC core encoding
506 */475 */

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