- Timestamp:
- 6 Dec 2014, 00:22:38 (10 years ago)
- Location:
- branches/SHM-dev/source/App/TAppEncoder
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.cpp
r912 r925 380 380 Int* cfg_FrameRate [MAX_LAYERS]; 381 381 Int* cfg_IntraPeriod [MAX_LAYERS]; 382 Int* cfg_conformanceMode [MAX_LAYERS]; 382 Int* cfg_conformanceMode[MAX_LAYERS]; 383 Int* cfg_confWinLeft [MAX_LAYERS]; 384 Int* cfg_confWinRight [MAX_LAYERS]; 385 Int* cfg_confWinTop [MAX_LAYERS]; 386 Int* cfg_confWinBottom [MAX_LAYERS]; 387 Int* cfg_aiPadX [MAX_LAYERS]; 388 Int* cfg_aiPadY [MAX_LAYERS]; 383 389 #if LAYER_CTB 384 390 // coding unit (CU) definition … … 503 509 cfg_IntraPeriod[layer] = &m_acLayerCfg[layer].m_iIntraPeriod; 504 510 cfg_conformanceMode[layer] = &m_acLayerCfg[layer].m_conformanceMode; 511 cfg_confWinLeft[layer] = &m_acLayerCfg[layer].m_confWinLeft; 512 cfg_confWinRight[layer] = &m_acLayerCfg[layer].m_confWinRight; 513 cfg_confWinTop[layer] = &m_acLayerCfg[layer].m_confWinTop; 514 cfg_confWinBottom[layer]= &m_acLayerCfg[layer].m_confWinBottom; 515 cfg_aiPadX[layer] = &m_acLayerCfg[layer].m_aiPad[0]; 516 cfg_aiPadY[layer] = &m_acLayerCfg[layer].m_aiPad[1]; 505 517 #if LAYER_CTB 506 518 // coding unit (CU) definition … … 690 702 ("AuxId%d", cfg_auxId, 0, MAX_LAYERS, "Auxilary picture ID for layer %d (0: Not aux pic, 1: Alpha plane, 2: Depth picture, 3: Cb enh, 4: Cr enh") 691 703 #endif 692 ("ConformanceMode%d", cfg_conformanceMode,0, MAX_LAYERS, "Window conformance mode (0: no cropping, 1:automatic padding, 2: padding, 3:cropping") 704 ("ConformanceMode%d", cfg_conformanceMode, 0, MAX_LAYERS, "Window conformance mode (0: no cropping, 1:automatic padding, 2: padding, 3:cropping") 705 ("ConfLeft%d", cfg_confWinLeft, 0, MAX_LAYERS, "Deprecated alias of ConfWinLeft") 706 ("ConfRight%d", cfg_confWinRight, 0, MAX_LAYERS, "Deprecated alias of ConfWinRight") 707 ("ConfTop%d", cfg_confWinTop, 0, MAX_LAYERS, "Deprecated alias of ConfWinTop") 708 ("ConfBottom%d", cfg_confWinBottom, 0, MAX_LAYERS, "Deprecated alias of ConfWinBottom") 709 ("ConfWinLeft%d", cfg_confWinLeft, 0, MAX_LAYERS, "Left offset for window conformance mode 3") 710 ("ConfWinRight%d", cfg_confWinRight, 0, MAX_LAYERS, "Right offset for window conformance mode 3") 711 ("ConfWinTop%d", cfg_confWinTop, 0, MAX_LAYERS, "Top offset for window conformance mode 3") 712 ("ConfWinBottom%d", cfg_confWinBottom, 0, MAX_LAYERS, "Bottom offset for window conformance mode 3") 713 ("HorizontalPadding%d,-pdx%d", cfg_aiPadX, 0, MAX_LAYERS, "Horizontal source padding for conformance window mode 2") 714 ("VerticalPadding%d,-pdy%d", cfg_aiPadY, 0, MAX_LAYERS, "Vertical source padding for conformance window mode 2") 693 715 ("ScalabilityMask1", m_scalabilityMask[1], 0, "scalability_mask[1] (multiview)") 694 716 ("ScalabilityMask2", m_scalabilityMask[2], 1, "scalability_mask[2] (scalable)" ) -
branches/SHM-dev/source/App/TAppEncoder/TAppEncLayerCfg.cpp
r875 r925 354 354 case 1: 355 355 { 356 // conformance 357 if ((m_confWinLeft != 0) || (m_confWinRight != 0) || (m_confWinTop != 0) || (m_confWinBottom != 0)) 358 { 359 fprintf(stderr, "Warning: Automatic padding enabled, but cropping parameters are set. Undesired size possible.\n"); 360 } 361 if ((m_aiPad[1] != 0) || (m_aiPad[0] != 0)) 362 { 363 fprintf(stderr, "Warning: Automatic padding enabled, but padding parameters are also set\n"); 364 } 356 365 // automatic padding to minimum CU size 357 366 #if LAYER_CTB … … 385 394 case 2: 386 395 { 396 // conformance 397 if ((m_confWinLeft != 0) || (m_confWinRight != 0) || (m_confWinTop != 0) || (m_confWinBottom != 0)) 398 { 399 fprintf(stderr, "Warning: Automatic padding enabled, but cropping parameters are set. Undesired size possible.\n"); 400 } 387 401 //padding 388 402 m_iSourceWidth += m_aiPad[0];
Note: See TracChangeset for help on using the changeset viewer.