- format type (PAL, NTSC, etc.) - color primaries (BT709, SMPTE170M, etc.) - transfer characteristics (BT709, SMPTE170M, etc.) - color matrix ((BT709, SMPTE170M, etc.) These modifications allow the client to specify these attributes and, if specified, makes sure they are written to the output file.
Showing the changes to codec/encoder/core/src/au_set.cpp (1 of 6 files). Show all
Unified · Split
| @@ -203,8 +203,7 @@ int32_t WelsWriteVUI (SWelsSPS* pSps, SBitStringAux* pBitStringAux) { · 202 unmodified lines | ||
| 203 | 203 | BsWriteOneBit (pLocalBitStringAux, false); //aspect_ratio_info_present_flag |
| 204 | 204 | BsWriteOneBit (pLocalBitStringAux, false); //overscan_info_present_flag |
| 205 | 205 | |
| 206 | − // 02/18/2016, Greg Wolfe, Kodak Alaris: Added support for "video signal type present" information. | |
| 207 | − // See parameter_sets.h for more info. | |
| 206 | + // See codec_app_def.h and parameter_sets.h for more info about members bVideoSignalTypePresent through uiColorMatrix. | |
| 208 | 207 | BsWriteOneBit (pLocalBitStringAux, pSps->bVideoSignalTypePresent); //video_signal_type_present_flag |
| 209 | 208 | if ( pSps->bVideoSignalTypePresent ) |
| 210 | 209 | {//write video signal type info to header |
| @@ -223,7 +222,6 @@ int32_t WelsWriteVUI (SWelsSPS* pSps, SBitStringAux* pBitStringAux) { · 12 unmodified lines | ||
| 223 | 222 | }//write color description info to header |
| 224 | 223 | |
| 225 | 224 | }//write video signal type info to header |
| 226 | − // ... end 02/18/2016 | |
| 227 | 225 | |
| 228 | 226 | BsWriteOneBit (pLocalBitStringAux, false); //chroma_loc_info_present_flag |
| 229 | 227 | BsWriteOneBit (pLocalBitStringAux, false); //timing_info_present_flag |
| @@ -540,8 +538,7 @@ int32_t WelsInitSps (SWelsSPS* pSps, SSpatialLayerConfig* pLayerParam, SSpatialL · 310 unmodified lines | ||
| 540 | 538 | |
| 541 | 539 | pSps->bVuiParamPresentFlag = true; |
| 542 | 540 | |
| 543 | − // 02/18/2016, Greg Wolfe, Kodak Alaris: Added support for "video signal type present" information. | |
| 544 | − // See codec_app_def.h and parameter_sets.h for more info. | |
| 541 | + // See codec_app_def.h and parameter_sets.h for more info about members bVideoSignalTypePresent through uiColorMatrix. | |
| 545 | 542 | pSps->bVideoSignalTypePresent = pLayerParam->bVideoSignalTypePresent; |
| 546 | 543 | pSps->uiVideoFormat = pLayerParam->uiVideoFormat; |
| 547 | 544 | pSps->bFullRange = pLayerParam->bFullRange; |
| @@ -549,7 +546,6 @@ int32_t WelsInitSps (SWelsSPS* pSps, SSpatialLayerConfig* pLayerParam, SSpatialL · 1 unmodified line | ||
| 549 | 546 | pSps->uiColorPrimaries = pLayerParam->uiColorPrimaries; |
| 550 | 547 | pSps->uiTransferCharacteristics = pLayerParam->uiTransferCharacteristics; |
| 551 | 548 | pSps->uiColorMatrix = pLayerParam->uiColorMatrix; |
| 552 | − // ... end 02/18/2016 | |
| 553 | 549 | |
| 554 | 550 | return 0; |
| 555 | 551 | } |