This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Runtime dynamically change DM385 Aptina 3M AR0331 CMOS sensor resolution

Other Parts Discussed in Thread: DM385

Hi:

How to change runtime dynamically change  CMOS sensor resolution on DM385 without  reset IPIPE  and ISIF?
We hope to change the CMOS sensor resolution as soon as possible.

Our usage is a following:
Normally the DM385 records H264 video at 1080P@30 fps. When a GPIO is trigger,  DM385 will capture a still image in cmos full resolution (2052x1536) and then go back to 1080P to record H264 video.

Thank you

-Jack

  • How about using sclr?   you can sclr down to 2M to H264 encoder, and send the original 3M frames to MJPEG encoder.

  • Hi Eason:

    At full resolution the CMOS sensor cannot reach the 30 FPS. We have to use low resolution for video record and dynamically change to full resolution for still  image capture. Therefore, using "sclr"  is not suitable for us.

    Thank you

    -Jack

  • There are 2 contexts in the AR0331 sensor registers.
    Each context can be set according to the resolution you want.
    For the snapshot, change the context, capture a full frame and then go back to context A.

    See data sheet page 42 -
    Real-Time Context Switching
    In the AR0331, the user may switch between two full register sets A and B by writing to a
    context switch change bit in R0x30B0[13]. When the context switch is configured to
    context A the sensor will reference the context A registers. If the context switch is
    changed from A to B during the readout of frame n, the sensor will then reference the
    context B coarse_integration_time registers in frame n+1 and all other context B registers
    at the beginning of reading frame n+2. The sensor will show the same behavior when
    changing from context B to context A.