History

Added support for "video signal type present" information. The "Video signal type present" information is written to the output video file when it is created, and later is used by the decoder to properly decode the compressed video data. The saved attributes are:

- 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.

Gregory J. Wolfe committed 10 years ago

Commit c7fcba01 parent f35a0da6 files · +113 −31Browse files

Showing the changes to codec/encoder/core/src/au_set.cpp (1 of 6 files). Show all

Unified · Split

codec/encoder/core/src/au_set.cpp+2−6
@@ -203,8 +203,7 @@ int32_t WelsWriteVUI (SWelsSPS* pSps, SBitStringAux* pBitStringAux) { · 202 unmodified lines
203 BsWriteOneBit (pLocalBitStringAux, false); //aspect_ratio_info_present_flag203 BsWriteOneBit (pLocalBitStringAux, false); //aspect_ratio_info_present_flag
204 BsWriteOneBit (pLocalBitStringAux, false); //overscan_info_present_flag204 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.206 // See codec_app_def.h and parameter_sets.h for more info about members bVideoSignalTypePresent through uiColorMatrix.
207 // See parameter_sets.h for more info.
208 BsWriteOneBit (pLocalBitStringAux, pSps->bVideoSignalTypePresent); //video_signal_type_present_flag207 BsWriteOneBit (pLocalBitStringAux, pSps->bVideoSignalTypePresent); //video_signal_type_present_flag
209 if ( pSps->bVideoSignalTypePresent )208 if ( pSps->bVideoSignalTypePresent )
210 {//write video signal type info to header209 {//write video signal type info to header
@@ -223,7 +222,6 @@ int32_t WelsWriteVUI (SWelsSPS* pSps, SBitStringAux* pBitStringAux) { · 12 unmodified lines
223 }//write color description info to header222 }//write color description info to header
224 223
225 }//write video signal type info to header224 }//write video signal type info to header
226 // ... end 02/18/2016
227 225
228 BsWriteOneBit (pLocalBitStringAux, false); //chroma_loc_info_present_flag226 BsWriteOneBit (pLocalBitStringAux, false); //chroma_loc_info_present_flag
229 BsWriteOneBit (pLocalBitStringAux, false); //timing_info_present_flag227 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 pSps->bVuiParamPresentFlag = true;539 pSps->bVuiParamPresentFlag = true;
542 540
543 // 02/18/2016, Greg Wolfe, Kodak Alaris: Added support for "video signal type present" information.541 // See codec_app_def.h and parameter_sets.h for more info about members bVideoSignalTypePresent through uiColorMatrix.
544 // See codec_app_def.h and parameter_sets.h for more info.
545 pSps->bVideoSignalTypePresent = pLayerParam->bVideoSignalTypePresent;542 pSps->bVideoSignalTypePresent = pLayerParam->bVideoSignalTypePresent;
546 pSps->uiVideoFormat = pLayerParam->uiVideoFormat;543 pSps->uiVideoFormat = pLayerParam->uiVideoFormat;
547 pSps->bFullRange = pLayerParam->bFullRange;544 pSps->bFullRange = pLayerParam->bFullRange;
@@ -549,7 +546,6 @@ int32_t WelsInitSps (SWelsSPS* pSps, SSpatialLayerConfig* pLayerParam, SSpatialL · 1 unmodified line
549 pSps->uiColorPrimaries = pLayerParam->uiColorPrimaries;546 pSps->uiColorPrimaries = pLayerParam->uiColorPrimaries;
550 pSps->uiTransferCharacteristics = pLayerParam->uiTransferCharacteristics;547 pSps->uiTransferCharacteristics = pLayerParam->uiTransferCharacteristics;
551 pSps->uiColorMatrix = pLayerParam->uiColorMatrix;548 pSps->uiColorMatrix = pLayerParam->uiColorMatrix;
552 // ... end 02/18/2016
553 549
554 return 0;550 return 0;
555}551}

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