Skip to content

Commit

Permalink
k230 sdk release v1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
wuwentao committed Nov 2, 2023
1 parent ff6900f commit 98e0c1d
Show file tree
Hide file tree
Showing 67 changed files with 17 additions and 9 deletions.
2 changes: 1 addition & 1 deletion repo.mak
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ OPENSBI_VERSION = "9aa2f6d34e685bbbb0afaab4e308b93a9cd06ec7"
BUILDROOT-EXT_VERSION = "8eafd41f1dde4ff48b914d5978cecf7af627fba6"
LINUX_VERSION = "04b6371ff02d49cba18adc81dfcdbbec0cbfed56"
UBOOT_VERSION = "317894980fd498b863820b1343096fe188faae53"
CDK_VERSION = "fea98217f3a781508de19bb2ecfea390526414ba"
CDK_VERSION = "dbfb3da07812b2f73257ebc1fb0d54dded1f7740"

RT-SMART_SRC_PATH = src/big/rt-smart
MPP_SRC_PATH = src/big/mpp
Expand Down
Binary file modified src/big/mpp/kernel/lib/libaudio.a
Binary file not shown.
Binary file modified src/big/mpp/kernel/lib/libcmpi.a
Binary file not shown.
Binary file modified src/big/mpp/kernel/lib/libdma.a
Binary file not shown.
Binary file modified src/big/mpp/kernel/lib/libdpu.a
Binary file not shown.
Binary file modified src/big/mpp/kernel/lib/liblog.a
Binary file not shown.
Binary file modified src/big/mpp/kernel/lib/libmediafreq.a
Binary file not shown.
Binary file modified src/big/mpp/kernel/lib/libmmz.a
Binary file not shown.
Binary file modified src/big/mpp/kernel/lib/libpm.a
Binary file not shown.
Binary file modified src/big/mpp/kernel/lib/libsys.a
Binary file not shown.
Binary file modified src/big/mpp/kernel/lib/libvb.a
Binary file not shown.
Binary file modified src/big/mpp/kernel/lib/libvdss.a
Binary file not shown.
Binary file modified src/big/mpp/kernel/lib/libvicap.a
Binary file not shown.
Binary file modified src/big/mpp/kernel/lib/libvo.a
Binary file not shown.
Binary file modified src/big/mpp/kernel/lib/libvpu.a
Binary file not shown.
Binary file modified src/big/mpp/kernel/lib/libvvi.a
Binary file not shown.
Binary file modified src/big/mpp/kernel/lib/libvvo.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/lib3a.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libadec.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libaenc.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libai.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libao.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libauto_ctrol.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libbinder.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libbuffer_management.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libcam_caldb.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libcam_device.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libcam_engine.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libcameric_drv.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libcameric_reg_drv.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libcmd_buffer.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libcommon.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libdma.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libdpu.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libebase.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libfpga.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libhal.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libisi.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libisp_drv.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/liboslayer.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libpm.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libsom_ctrl.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libstart_engine.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libswitch.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libsys.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libt_common_c.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libt_database_c.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libt_json_c.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libt_mxml_c.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libvb.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libvdec.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libvdss.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libvenc.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libvicap.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libvideo_in.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libvirtual_hal.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libvo.a
Binary file not shown.
Binary file modified src/big/mpp/userapps/lib/libvvi.a
Binary file not shown.
Binary file modified src/common/cdk/user/component/datafifo/host/lib/libdatafifo.a
Binary file not shown.
Binary file modified src/common/cdk/user/component/datafifo/slave/lib/libdatafifo.a
Binary file not shown.
Binary file modified src/common/cdk/user/component/ipcmsg/host/lib/libipcmsg.a
Binary file not shown.
Binary file modified src/common/cdk/user/component/ipcmsg/slave/lib/libipcmsg.a
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ struct SessionAttr {
uint32_t video_width;
uint32_t video_height;
k_vicap_sensor_type sensor_type;
k_i2s_in_mono_channel auido_mono_channel_type;
};

#define MAX_SESSION_NUM 3
Expand Down Expand Up @@ -90,7 +91,7 @@ class StreamingPlayer {
void Stop();

private:
int CreateAudioEncode();
int CreateAudioEncode(const SessionAttr &session_attr);
int CreateVideoEncode(const SessionAttr &session_attr);
int StreamingPlayerInit();
int StreamingPlayerDeinit();
Expand Down
12 changes: 9 additions & 3 deletions src/common/cdk/user/samples/rtsp_demo/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ static void sigHandler(int sig_no) {
}

static void help() {
std::cout << "Usage: ./rtsp_demo -s 7 -n 2 -t h265 -w 1280 -h 720." << std::endl;
std::cout << "Usage: ./rtsp_demo -s 7 -n 2 -t h265 -w 1280 -h 720 -a 0." << std::endl;
std::cout << "-s: the sensor type: default 7" << std::endl;
std::cout << " see camera sensor doc." << std::endl;
std::cout << "-n: the session number, range: [1, 3]." << std::endl;
std::cout << "-t: the video encoder type: h264/h265/mjpeg." << std::endl;
std::cout << "-w: the video encoder width." << std::endl;
std::cout << "-h: the video encoder height." << std::endl;
std::cout << "-a: audio input type(0:mic input 1:headphone input):default 0." << std::endl;

}

int main(int argc, char *argv[]) {
Expand All @@ -33,6 +35,7 @@ int main(int argc, char *argv[]) {
int session_num = 1;
int video_width = 1280;
int video_height = 720;
k_i2s_in_mono_channel audio_input_type = KD_I2S_IN_MONO_RIGHT_CHANNEL;//mic input

if (argc > 1) {
for (int i = 1; i < argc; i += 2) {
Expand Down Expand Up @@ -60,14 +63,16 @@ int main(int argc, char *argv[]) {
video_height = atoi(argv[i+1]);
} else if (strcmp(argv[i], "-s") == 0) {
sensor_type = (k_vicap_sensor_type)atoi(argv[i+1]);
} else if (strcmp(argv[i], "-a") == 0) {
audio_input_type = (k_i2s_in_mono_channel)atoi(argv[i+1]);
}
else if (strcmp(argv[i], "--help") == 0) {
help();
return 0;
}
}
}

StreamingPlayer *sample_player = new StreamingPlayer(sensor_type, video_width, video_height, session_num);
if (!sample_player) {
std::cout << "StreamingPlayer Init failed." << std::endl;
Expand All @@ -83,14 +88,15 @@ int main(int argc, char *argv[]) {
session_attr.video_width = video_width;
session_attr.video_height = video_height;
session_attr.session_name = session_name.append(std::to_string(i));
session_attr.auido_mono_channel_type = audio_input_type;

ret = sample_player->CreateSession(session_attr);
if (ret < 0) {
std::cout << "CreateSession failed." << std::endl;
goto end;
}
}

sample_player->Start();

while (!g_exit_flag) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ int StreamingPlayer::CreateSession(const SessionAttr &session_attr) {
ServerMediaSession *sms = ServerMediaSession::createNew(*env_, streamName.c_str(), streamName.c_str(), descriptionString);

if (!audio_created_) {
int ret = CreateAudioEncode();
int ret = CreateAudioEncode(session_attr);
if (ret < 0) {
std::cout << "create audio encode failed." << std::endl;
return -1;
Expand Down Expand Up @@ -296,7 +296,7 @@ int StreamingPlayer::CreateVideoEncode(const SessionAttr &session_attr) {
return 0;
}

int StreamingPlayer::CreateAudioEncode() {
int StreamingPlayer::CreateAudioEncode(const SessionAttr &session_attr) {
k_aio_dev_attr aio_dev_attr;
memset(&aio_dev_attr, 0, sizeof(aio_dev_attr));
aio_dev_attr.audio_type = KD_AUDIO_INPUT_TYPE_I2S;
Expand All @@ -305,6 +305,7 @@ int StreamingPlayer::CreateAudioEncode() {
aio_dev_attr.kd_audio_attr.i2s_attr.chn_cnt = 2;
aio_dev_attr.kd_audio_attr.i2s_attr.i2s_mode = K_STANDARD_MODE;
aio_dev_attr.kd_audio_attr.i2s_attr.snd_mode = KD_AUDIO_SOUND_MODE_MONO;
aio_dev_attr.kd_audio_attr.i2s_attr.mono_channel = session_attr.auido_mono_channel_type;
aio_dev_attr.kd_audio_attr.i2s_attr.frame_num = AUDIO_PERSEC_DIV_NUM;
aio_dev_attr.kd_audio_attr.i2s_attr.point_num_per_frame = audio_sample_rate_ / aio_dev_attr.kd_audio_attr.i2s_attr.frame_num;
aio_dev_attr.kd_audio_attr.i2s_attr.i2s_type = K_AIO_I2STYPE_INNERCODEC;
Expand Down
2 changes: 1 addition & 1 deletion src/reference/ai_poc/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.0.2
v1.1
2 changes: 1 addition & 1 deletion src/reference/fancy_poc/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.0.2
v1.1

0 comments on commit 98e0c1d

Please sign in to comment.