Skip to content

i am trying to convert raw grayscale data into jpec format #6

Description

@Shreyashsatone

Hello i am working on alif semiconductor with OV5647 camera to capture image and i am trying to use your encoder to convert raw grayscale data into jpec but it stuck in given below function.

static void jpec_enc_open(jpec_enc_t *e) {
assert(e);
jpec_huff_skel_init(e->hskel);
printf("huff_skel=%d\n",e->hskel);
jpec_enc_init_dqt(e);
printf("enc_init=%d\n",e);
jpec_enc_write_soi(e);
printf("jpec_enc_write_soi=%d\n",e);
jpec_enc_write_app0(e);
printf("enc_write=%d\n",e);
jpec_enc_write_dqt(e);
printf("enc_write=%d\n",e);
jpec_enc_write_sof0(e);
printf("jpec_enc_write_sof0=%d\n",e);
jpec_enc_write_dht(e);
printf("jpec_enc_write_dht=%d\n",e);
jpec_enc_write_sos(e);
printf("jpec_enc_write_sos=%d\n",e);
}

its not going into jpec_enc_write_sos(e); in this function, what is exactly issue and i tried multiple time to solve this problem but i failed to solve this issue. kindly help to solve this issue .

configuration of camera
// Select camera OV5647 frequency
// Defines camera OV5647 frequency
// Default: 158000000
#define RTE_OV5647_CAMERA_SENSOR_CSI_FREQ 158000000

// select OV5647 CSI2 Data type
// defines select CSI2 Data type
// default: 0x2B (RAW10)
#define RTE_OV5647_CAMERA_SENSOR_CSI_DATA_TYPE 0x2B

// select OV5647 number of lanes in DPHY
// defines select OV5647 number of lanes in DPHY.
// default: 2 one lane
#define RTE_OV5647_CAMERA_SENSOR_CSI_N_LANES 2

// select OV5647 virtual channel ID
// defines select OV5647 virtual channel ID.
// default: 0
#define RTE_OV5647_CAMERA_SENSOR_CSI_VC_ID 0

// select OV5647 override CPI color mode
// defines select OV5647 override CPI color mode.
// default: 1
#define RTE_OV5647_CAMERA_SENSOR_OVERRIDE_CPI_COLOR_MODE 1

// select OV5647 CPI color mode
// defines select OV5647 CPI color mode.
// default: 2 (IPI-16 RAW 8)
#define RTE_OV5647_CAMERA_SENSOR_CPI_COLOR_MODE 2

// select OV5647 frame height
// defines select OV5647 frame height.
// default: 480
#define RTE_OV5647_CAMERA_SENSOR_FRAME_HEIGHT 480

// select OV5647 frame width
// defines select OV5647 frame width.
// default: 640
#define RTE_OV5647_CAMERA_SENSOR_FRAME_WIDTH 640

Thank you

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions