jvcleave / ofxRPiCameraVideoGrabber

development of ofxRPiCameraVideoGrabber, an addon to control the native Raspberry Pi camera in openFrameworks
89 stars 17 forks source link

Picture in picture #29

Closed rihani closed 8 years ago

rihani commented 8 years ago

Could you please help setup a picture in picture PIP of RPI camera, I would like to show the camera in full screen and then show a zoomed area of the camera on top of the full screen video. Thanks

jvcleave commented 8 years ago

example-texture-mode somewhat does this - you will just have to scale/mask the second texture to simulate the zooming

rihani commented 8 years ago

thanks, i have this issue, when resizing the screen i.e. omxCameraSettings.width = 1280; //default 1280 omxCameraSettings.height = 720; to omxCameraSettings.width = 720; //default 1280 omxCameraSettings.height = 480; //default 720, the screen goes white? please if you may help.

jvcleave commented 8 years ago

typically it means you don't have enough memory assigned to the GPU. You should have at least 128MB but 256 is better.

rihani commented 8 years ago

thx, i narrowed it down to omxCameraSettings.enableTexture = false; . if this is false it work, also my gnu em is gpu_mem=256...