check the number of spatial layer for screen content
check resolution configure
rename some varialbes
Merge pull request #985 from ruil2/encoder_check

input parameters validation
Merge pull request #986 from ruil2/rename

rename some varialbes
Merge remote-tracking branch 'upstream/master' into travis.android