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
203203 BsWriteOneBit (pLocalBitStringAux, false); //aspect_ratio_info_present_flag
204204 BsWriteOneBit (pLocalBitStringAux, false); //overscan_info_present_flag
205205
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.
208207 BsWriteOneBit (pLocalBitStringAux, pSps->bVideoSignalTypePresent); //video_signal_type_present_flag
209208 if ( pSps->bVideoSignalTypePresent )
210209 {//write video signal type info to header
@@ -223,7 +222,6 @@ int32_t WelsWriteVUI (SWelsSPS* pSps, SBitStringAux* pBitStringAux) { · 12 unmodified lines
223222 }//write color description info to header
224223
225224 }//write video signal type info to header
226− // ... end 02/18/2016
227225
228226 BsWriteOneBit (pLocalBitStringAux, false); //chroma_loc_info_present_flag
229227 BsWriteOneBit (pLocalBitStringAux, false); //timing_info_present_flag
@@ -540,8 +538,7 @@ int32_t WelsInitSps (SWelsSPS* pSps, SSpatialLayerConfig* pLayerParam, SSpatialL · 310 unmodified lines
540538
541539 pSps->bVuiParamPresentFlag = true;
542540
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.
545542 pSps->bVideoSignalTypePresent = pLayerParam->bVideoSignalTypePresent;
546543 pSps->uiVideoFormat = pLayerParam->uiVideoFormat;
547544 pSps->bFullRange = pLayerParam->bFullRange;
@@ -549,7 +546,6 @@ int32_t WelsInitSps (SWelsSPS* pSps, SSpatialLayerConfig* pLayerParam, SSpatialL · 1 unmodified line
549546 pSps->uiColorPrimaries = pLayerParam->uiColorPrimaries;
550547 pSps->uiTransferCharacteristics = pLayerParam->uiTransferCharacteristics;
551548 pSps->uiColorMatrix = pLayerParam->uiColorMatrix;
552− // ... end 02/18/2016
553549
554550 return 0;
555551 }

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