History

cleanup encoder parameters

ruil2 committed 12 years ago

Commit c79e78c1 parent abc24954 files · +22 −30Browse files

Showing the changes to codec/api (1 of 4 files). Show all

Unified · Split

codec/api/svc/codec_app_def.h+21−23
@@ -193,7 +193,7 @@ typedef struct TagEncParamBase{ · 192 unmodified lines
193 193
194typedef struct TagEncParamExt194typedef struct TagEncParamExt
195{195{
196 int iUsageType; //enable_screen_content_signal;// 0: //camera video signal; 1: screen content signal;196 int iUsageType; //application type;// 0: //camera video signal; 1: screen content signal;
197 int iInputCsp; // color space of input sequence197 int iInputCsp; // color space of input sequence
198 198
199 int iPicWidth; // width of picture in samples199 int iPicWidth; // width of picture in samples
@@ -204,47 +204,45 @@ typedef struct TagEncParamExt · 4 unmodified lines
204 204
205 int iTemporalLayerNum; // layer number at temporal level205 int iTemporalLayerNum; // layer number at temporal level
206 int iSpatialLayerNum; // layer number at spatial level206 int iSpatialLayerNum; // layer number at spatial level
207 SSpatialLayerConfig sSpatialLayers[MAX_SPATIAL_LAYER_NUM];
207 208
208 unsigned int uiIntraPeriod; // period of Intra frame209 unsigned int uiIntraPeriod; // period of Intra frame
210 int iNumRefFrame; // number of reference frame used
211 unsigned int uiFrameToBeCoded; // frame to be encoded (at input frame rate)
209 bool bEnableSpsPpsIdAddition;212 bool bEnableSpsPpsIdAddition;
210 bool bPrefixNalAddingCtrl;213 bool bPrefixNalAddingCtrl;
211 bool bEnableDenoise; // denoise control214 bool bEnableSSEI;
212 bool bEnableBackgroundDetection;// background detection control //VAA_BACKGROUND_DETECTION //BGD cmd215
213 bool bEnableAdaptiveQuant; // adaptive quantization control216 /* rc control */
217 bool bEnableRc;
214 bool bEnableFrameSkip; // allow skipping frames to keep the bitrate within limits218 bool bEnableFrameSkip; // allow skipping frames to keep the bitrate within limits
215 bool bEnableCropPic; // enable cropping source picture. 8/25/2010219 int iMaxQp;
216 // false: Streaming Video Sharing; true: Video Conferencing Meeting;220 int iMinQp;
217 221
222 /*LTR settings*/
218 bool bEnableLongTermReference; // 0: on, 1: off223 bool bEnableLongTermReference; // 0: on, 1: off
224 int iLTRRefNum;
219 int iLtrMarkPeriod;225 int iLtrMarkPeriod;
220 int iPaddingFlag; // 0:disable padding;1:padding226 int iPaddingFlag; // 0:disable padding;1:padding
221 int iEtropyCodingModeFlag;227 int iEtropyCodingModeFlag;
222 228
223 SSpatialLayerConfig sSpatialLayers[MAX_SPATIAL_LAYER_NUM];
224 int iNumRefFrame; // number of reference frame used
225 unsigned int uiFrameToBeCoded; // frame to be encoded (at input frame rate)
226 bool bEnableRc;
227 short iMultipleThreadIdc; // 1 # 0: auto(dynamic imp. internal encoder); 1: multiple threads imp. disabled; > 1: count number of threads;229 short iMultipleThreadIdc; // 1 # 0: auto(dynamic imp. internal encoder); 1: multiple threads imp. disabled; > 1: count number of threads;
228 short iCountThreadsNum; // # derived from disable_multiple_slice_idc (=0 or >1) means;230 short iCountThreadsNum; // # derived from disable_multiple_slice_idc (=0 or >1) means;
229 231
230 int iLTRRefNum;232 /* Deblocking loop filter */
231 bool bEnableSSEI;
232 bool bEnableFrameCroppingFlag;// enable frame cropping flag: TRUE always in application
233
234 /* Deblocking loop filter */
235 int iLoopFilterDisableIdc; // 0: on, 1: off, 2: on except for slice boundaries233 int iLoopFilterDisableIdc; // 0: on, 1: off, 2: on except for slice boundaries
236 int iLoopFilterAlphaC0Offset;// AlphaOffset: valid range [-6, 6], default 0234 int iLoopFilterAlphaC0Offset;// AlphaOffset: valid range [-6, 6], default 0
237
238 int iLoopFilterBetaOffset; // BetaOffset: valid range [-6, 6], default 0235 int iLoopFilterBetaOffset; // BetaOffset: valid range [-6, 6], default 0
239 int iInterLayerLoopFilterDisableIdc; // Employed based upon inter-layer, same comment as above236 int iInterLayerLoopFilterDisableIdc; // Employed based upon inter-layer, same comment as above
240 int iInterLayerLoopFilterAlphaC0Offset; // InterLayerLoopFilterAlphaC0Offset237 int iInterLayerLoopFilterAlphaC0Offset; // InterLayerLoopFilterAlphaC0Offset
241 int iInterLayerLoopFilterBetaOffset; // InterLayerLoopFilterBetaOffset238 int iInterLayerLoopFilterBetaOffset; // InterLayerLoopFilterBetaOffset
242 bool bEnableSceneChangeDetect;
243
244 //added
245 int iMaxQp;
246 int iMinQp;
247 239
240 /*pre-processing feature*/
241 bool bEnableDenoise; // denoise control
242 bool bEnableBackgroundDetection;// background detection control //VAA_BACKGROUND_DETECTION //BGD cmd
243 bool bEnableAdaptiveQuant; // adaptive quantization control
244 bool bEnableFrameCroppingFlag;// enable frame cropping flag: TRUE always in application
245 bool bEnableSceneChangeDetect;
248}SEncParamExt;246}SEncParamExt;
249 247
250//Define a new struct to show the property of video bitstream.248//Define a new struct to show the property of video bitstream.

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