History

This refine is to remove slice number limitation in the future. The changes contains: 1. add pNalLen in Structure SWelsEncoderOutput to store each nal length 2. rename iNalLengthInByte[MAX_NAL_UNITS_IN_LAYER] to pNalLengthInByte in Structure SLayerBSInfo, the pointer point to pNalLen, like pBSBuf point to pFrameBS.

ganyang committed 12 years ago

Commit c08c0f81 parent 3c4d1518 files · +34 −34Browse files

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

Unified · Split

codec/encoder/plus/src/welsEncoderExt.cpp+1−1
@@ -479,7 +479,7 @@ int CWelsH264SVCEncoder::EncodeFrameInternal (const SSourcePicture* pSrcPic, SF · 478 unmodified lines
479 479
480 iCurLayerBits = 0;480 iCurLayerBits = 0;
481 for (j = 0; j < pLayer->iNalCount; j++) {481 for (j = 0; j < pLayer->iNalCount; j++) {
482 iCurLayerBits += pLayer->iNalLengthInByte[j];482 iCurLayerBits += pLayer->pNalLengthInByte[j];
483 }483 }
484 total_bits += iCurLayerBits;484 total_bits += iCurLayerBits;
485 if (m_pFileBs != NULL)485 if (m_pFileBs != NULL)

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