History

Merge pull request #1794 from syureyi/monochroma

to support monochroma

huili2 committed 11 years ago

Commit 4e9e5f52 parents ab3b55a 0a8a4f25 files · +65 −39Browse files

Showing the changes to codec/decoder/core/src/au_parser.cpp (1 of 5 files). Show all

Unified · Split

codec/decoder/core/src/au_parser.cpp+9−3
@@ -948,11 +948,17 @@ int32_t ParseSps (PWelsDecoderContext pCtx, PBitStringAux pBsAux, int32_t* pPicW · 947 unmodified lines
948948
949949 WELS_READ_VERIFY (BsGetUe (pBs, &uiCode)); //chroma_format_idc
950950 pSps->uiChromaFormatIdc = uiCode;
951− if (pSps->uiChromaFormatIdc != 1) {
952− WelsLog (& (pCtx->sLogCtx), WELS_LOG_WARNING, "ParseSps(): chroma_format_idc (%d) = 1 supported.",
951+// if (pSps->uiChromaFormatIdc != 1) {
952+// WelsLog (& (pCtx->sLogCtx), WELS_LOG_WARNING, "ParseSps(): chroma_format_idc (%d) = 1 supported.",
953+// pSps->uiChromaFormatIdc);
954+// return GENERATE_ERROR_NO (ERR_LEVEL_PARAM_SETS, ERR_INFO_UNSUPPORTED_NON_BASELINE);
955+// }
956+ if (pSps->uiChromaFormatIdc > 1) {
957+ WelsLog (& (pCtx->sLogCtx), WELS_LOG_WARNING, "ParseSps(): chroma_format_idc (%d) <=1 supported.",
953958 pSps->uiChromaFormatIdc);
954959 return GENERATE_ERROR_NO (ERR_LEVEL_PARAM_SETS, ERR_INFO_UNSUPPORTED_NON_BASELINE);
955− }
960+
961+ }// To support 4:0:0; 4:2:0
956962 pSps->uiChromaArrayType = pSps->uiChromaFormatIdc;
957963 WELS_READ_VERIFY (BsGetUe (pBs, &uiCode)); //bit_depth_luma_minus8
958964 if (uiCode != 0) {

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