I'm a new one to the media layer and the photo layer ,and what makes me confused is that there a lot of objects like CGImageRef
and CMSampleBufferRef
,and I don't know why apple let us use objects like "XXXRef" not objects like "XXX"? I know there must be some reasons but I don't know,can anyone tell me why ?
update:
I mean ,why apple want us to us CGImageRef
instead of we create the Ref ourselves like CGImage *theCGImage
?