History

to support monochroma

add mbtype judge logic

zhuiling committed 11 years ago

Commit 0a8a4f21 parent a00dd565 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
@@ -936,11 +936,17 @@ int32_t ParseSps (PWelsDecoderContext pCtx, PBitStringAux pBsAux, int32_t* pPicW · 935 unmodified lines
936 936
937 WELS_READ_VERIFY (BsGetUe (pBs, &uiCode)); //chroma_format_idc937 WELS_READ_VERIFY (BsGetUe (pBs, &uiCode)); //chroma_format_idc
938 pSps->uiChromaFormatIdc = uiCode;938 pSps->uiChromaFormatIdc = uiCode;
939 if (pSps->uiChromaFormatIdc != 1) {939// if (pSps->uiChromaFormatIdc != 1) {
940 WelsLog (& (pCtx->sLogCtx), WELS_LOG_WARNING, "ParseSps(): chroma_format_idc (%d) = 1 supported.",940// WelsLog (& (pCtx->sLogCtx), WELS_LOG_WARNING, "ParseSps(): chroma_format_idc (%d) = 1 supported.",
941// pSps->uiChromaFormatIdc);
942// return GENERATE_ERROR_NO (ERR_LEVEL_PARAM_SETS, ERR_INFO_UNSUPPORTED_NON_BASELINE);
943// }
944 if (pSps->uiChromaFormatIdc > 1) {
945 WelsLog (& (pCtx->sLogCtx), WELS_LOG_WARNING, "ParseSps(): chroma_format_idc (%d) <=1 supported.",
941 pSps->uiChromaFormatIdc);946 pSps->uiChromaFormatIdc);
942 return GENERATE_ERROR_NO (ERR_LEVEL_PARAM_SETS, ERR_INFO_UNSUPPORTED_NON_BASELINE);947 return GENERATE_ERROR_NO (ERR_LEVEL_PARAM_SETS, ERR_INFO_UNSUPPORTED_NON_BASELINE);
943 }948
949 }// To support 4:0:0; 4:2:0
944 pSps->uiChromaArrayType = pSps->uiChromaFormatIdc;950 pSps->uiChromaArrayType = pSps->uiChromaFormatIdc;
945 WELS_READ_VERIFY (BsGetUe (pBs, &uiCode)); //bit_depth_luma_minus8951 WELS_READ_VERIFY (BsGetUe (pBs, &uiCode)); //bit_depth_luma_minus8
946 if (uiCode != 0) {952 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