@Dialhot,
I did some more tests:
# source:
# blankclip(color=$000010, pixel_type="yuy2") # YUV = 18, 135, 127
# ConvertToRGB24
I opened this script in TMPGEnc and checked "output YUV as Basic YCbCr and not CCIR601", resulting in bc2_ycbcr.mpg. It has YUV values: 2, 136, 127 (I did it this way, because I don't know how to make this in AviSynth):
# DirectShowSource("e:\temp\test\bc2_ycbcr.mpg",fps= 25)
# coloryuv(analyze=true) # YUV = 2, 136, 127
# ConvertToRGB24
For some strange reason TMPGEnc crashes with the script above, so I loaded bc2_ycbcr.mpg directly in TMPGEnc. Now I unchecked "output YUV as Basic YCbCr and not CCIR601" and encoded to bc2_ccir601.mpg. I made the following script:
DirectShowSource("e:\temp\test\bc2_ccir601.mpg",fp s=25)
coloryuv(analyze=true) # YUV = 16, 128, 128
My conclusion is that all YUV values with Y<16 is clamped to (Y,U,V)=(16,128,12

when leaving "output YUV as Basic YCbCr and not CCIR601" unchecked.
I guess all values with Y>235 are clamped to (Y,U,V)=(235,128,12

, but I didn't check this.
Conclusion: Jorel is correct!