您尚未登录。

楼主 # 2022-04-20 15:08:25

Ozelot
会员
所在地: Ukraine
注册时间: 2020-06-22
已发帖子: 52
积分: 36
个人网站

Baremetal hardware JPEG-decoder example (F1C100S)

Simple example of hardware decoding JPEG image.
Resolution 800x480. Decoding time 3-4ms.
Sources: jpgdec.7z
girl.jpg
flower.jpg

离线

#1 2022-04-20 16:27:08

LinjieGuo
Moderator
注册时间: 2019-07-24
已发帖子: 583
积分: 587
个人网站

Re: Baremetal hardware JPEG-decoder example (F1C100S)

仰望大佬↑↑↑↑↑↑↑↑↑↑↑

离线

#2 2022-04-20 19:29:26

zzm24
会员
注册时间: 2018-05-07
已发帖子: 120
积分: 107

Re: Baremetal hardware JPEG-decoder example (F1C100S)

大佬什么都极简,还喜欢rt-thread

离线

#3 2022-04-20 20:40:23

libc0607
会员
注册时间: 2018-12-13
已发帖子: 24
积分: 47.5

Re: Baremetal hardware JPEG-decoder example (F1C100S)

牛啊

离线

#4 2022-04-21 09:34:33

村民
会员
注册时间: 2019-03-06
已发帖子: 42
积分: 12

Re: Baremetal hardware JPEG-decoder example (F1C100S)

仰望大佬↑↑↑↑↑↑↑↑↑↑↑

离线

#5 2022-04-21 10:27:48

xfdr0805
会员
注册时间: 2020-07-23
已发帖子: 312
积分: 350

Re: Baremetal hardware JPEG-decoder example (F1C100S)

Niubility!!!

离线

#6 2022-04-23 23:14:52

varzhou
会员
注册时间: 2020-07-14
已发帖子: 108
积分: 2

Re: Baremetal hardware JPEG-decoder example (F1C100S)

Niubility!!!

离线

#7 2022-04-23 23:46:59

myxiaonia
会员
注册时间: 2019-06-18
已发帖子: 81
积分: 49.5

Re: Baremetal hardware JPEG-decoder example (F1C100S)

在乌克兰的坛友,你的国家正遭受战争,为你祈祷

离线

楼主 #8 2022-04-24 00:34:19

Ozelot
会员
所在地: Ukraine
注册时间: 2020-06-22
已发帖子: 52
积分: 36
个人网站

Re: Baremetal hardware JPEG-decoder example (F1C100S)

myxiaonia 说:

在乌克兰的坛友,你的国家正遭受战争,为你祈祷

Thank you!
There are fights near my city.
We will win!

离线

#9 2022-04-24 11:25:10

kin
会员
注册时间: 2020-04-06
已发帖子: 31
积分: 75.5

Re: Baremetal hardware JPEG-decoder example (F1C100S)

感谢分享!

离线

楼主 #10 2022-04-26 19:25:26

Ozelot
会员
所在地: Ukraine
注册时间: 2020-06-22
已发帖子: 52
积分: 36
个人网站

Re: Baremetal hardware JPEG-decoder example (F1C100S)

Simple MJPEG decoding (800x480 @ 25fps)
This example also contains module for working with SD memory card and FATFS library.
The vid directory and its contents must be copied to the root directory of the memory card.
Sources: mjpgdec.7z

离线

#11 2022-05-04 03:23:04

polestar
会员
注册时间: 2019-12-24
已发帖子: 14
积分: 30

Re: Baremetal hardware JPEG-decoder example (F1C100S)

Thanks for sharing!

very very goooooooooooood

最近编辑记录 polestar (2022-05-04 03:24:15)

离线

#12 2022-05-04 09:57:43

thindcna
会员
注册时间: 2020-04-25
已发帖子: 34
积分: 8.5

Re: Baremetal hardware JPEG-decoder example (F1C100S)

人们可以获得哪些文件来构建此功能?

离线

#13 2022-05-04 11:10:57

thindcna
会员
注册时间: 2020-04-25
已发帖子: 34
积分: 8.5

Re: Baremetal hardware JPEG-decoder example (F1C100S)

Ozelot 说:

Simple example of hardware decoding JPEG image.
Resolution 800x480. Decoding time 3-4ms.
Sources: jpgdec.7z
https://whycan.com/files/members/4572/girl.jpg
https://whycan.com/files/members/4572/flower.jpg

Thank Ozelot. Do you have the document about this feature? For example: Allwinner user manual...?

离线

楼主 #14 2022-05-04 13:35:45

Ozelot
会员
所在地: Ukraine
注册时间: 2020-06-22
已发帖子: 52
积分: 36
个人网站

Re: Baremetal hardware JPEG-decoder example (F1C100S)

thindcna 说:

Do you have the document about this feature? For example: Allwinner user manual...?

This project is based on CEDRUS sources.
JPEG decoding is fast. YUV2RGB converting in the first sources is slow (~60mS), so in the mjpeg demo I did a table conversion (~24mS).

离线

#15 2022-05-04 21:01:59

polestar
会员
注册时间: 2019-12-24
已发帖子: 14
积分: 30

Re: Baremetal hardware JPEG-decoder example (F1C100S)

Was it not possible to launch the H264 decoder ???

离线

楼主 #16 2022-05-04 21:39:13

Ozelot
会员
所在地: Ukraine
注册时间: 2020-06-22
已发帖子: 52
积分: 36
个人网站

Re: Baremetal hardware JPEG-decoder example (F1C100S)

polestar 说:

Was it not possible to launch the H264 decoder ???

All in good time smile

离线

#17 2022-05-05 17:53:30

polestar
会员
注册时间: 2019-12-24
已发帖子: 14
积分: 30

Re: Baremetal hardware JPEG-decoder example (F1C100S)

Ozelot 说:
polestar 说:

Was it not possible to launch the H264 decoder ???

All in good time smile

In the hope of victory and a world without war and bloodshed

离线

#18 2022-05-06 20:20:35

vuthai
会员
注册时间: 2021-06-04
已发帖子: 1
积分: 1

Re: Baremetal hardware JPEG-decoder example (F1C100S)

你可以上传github

离线

#19 2022-05-06 23:24:14

thindcna
会员
注册时间: 2020-04-25
已发帖子: 34
积分: 8.5

Re: Baremetal hardware JPEG-decoder example (F1C100S)

@Ozelot
very helpful. thank you

离线

#20 2022-05-30 17:40:08

视觉℡
会员
注册时间: 2019-01-29
已发帖子: 41
积分: 23
个人网站

Re: Baremetal hardware JPEG-decoder example (F1C100S)

感谢大佬分享,最近正在找硬解的相关代码





离线

#21 2022-05-31 03:44:26

musich
会员
注册时间: 2018-04-17
已发帖子: 249
积分: 281

Re: Baremetal hardware JPEG-decoder example (F1C100S)

好厉害啊,不知v3s 能否用上。

离线

#22 2022-05-31 11:58:49

视觉℡
会员
注册时间: 2019-01-29
已发帖子: 41
积分: 23
个人网站

Re: Baremetal hardware JPEG-decoder example (F1C100S)

这个是软件解码,并不是硬件解码





离线

楼主 #23 2022-05-31 16:20:00

Ozelot
会员
所在地: Ukraine
注册时间: 2020-06-22
已发帖子: 52
积分: 36
个人网站

Re: Baremetal hardware JPEG-decoder example (F1C100S)

视觉℡ 说:

这个是软件解码,并不是硬件解码

Why?

离线

#24 2022-05-31 19:55:06

hameyou
会员
注册时间: 2018-04-15
已发帖子: 200
积分: 7.5

Re: Baremetal hardware JPEG-decoder example (F1C100S)

这个解码是裸机下的还是linux下的

离线

楼主 #25 2022-05-31 20:39:22

Ozelot
会员
所在地: Ukraine
注册时间: 2020-06-22
已发帖子: 52
积分: 36
个人网站

Re: Baremetal hardware JPEG-decoder example (F1C100S)

hameyou 说:

这个解码是裸机下的还是linux下的

NonOs Baremetal

离线

#26 2022-05-31 21:41:50

视觉℡
会员
注册时间: 2019-01-29
已发帖子: 41
积分: 23
个人网站

Re: Baremetal hardware JPEG-decoder example (F1C100S)

Ozelot 说:
视觉℡ 说:

这个是软件解码,并不是硬件解码

Why?

非常抱歉,我理解错误。
mjpgdec.bin 在flash中的地址是多少? 32768?





离线

楼主 #27 2022-05-31 21:58:03

Ozelot
会员
所在地: Ukraine
注册时间: 2020-06-22
已发帖子: 52
积分: 36
个人网站

Re: Baremetal hardware JPEG-decoder example (F1C100S)

视觉℡ 说:

非常抱歉,我理解错误。
mjpgdec.bin 在flash中的地址是多少? 32768?

Yes. See makefile:
run:    all
    $(FEL) -p spl $(BOOT).bin
    $(FEL) -p write 0x80000000 $(NAME).bin
    $(FEL) exec 0x80000000
flash:    all
    $(FEL) -p spiflash-write 0 $(BOOT).bin
    $(FEL) -p spiflash-write 32768 $(NAME).bin

离线

#28 2022-06-19 21:28:29

Ican
会员
注册时间: 2022-06-11
已发帖子: 30
积分: 0

Re: Baremetal hardware JPEG-decoder example (F1C100S)

could you please share this project on github or gitee?i can't download it on this website.

离线

楼主 #29 2022-08-19 19:55:55

Ozelot
会员
所在地: Ukraine
注册时间: 2020-06-22
已发帖子: 52
积分: 36
个人网站

Re: Baremetal hardware JPEG-decoder example (F1C100S)

Small modification of the previous demo.
Converting tile-based data is done by the mb32dec function. Color conversion - hardware by debe-module.
Decoding time 3-4ms. MB32 transformation 8-9mS. As a result: fps = 1 / (0.004 + 0.009) = 76
Sources: mjpgdec_60fps.7z
60fps video playback example:

最近编辑记录 Ozelot (2022-08-20 04:37:01)

离线

#30 2022-08-22 19:03:14

neotendo
会员
注册时间: 2022-08-19
已发帖子: 180
积分: 203

Re: Baremetal hardware JPEG-decoder example (F1C100S)

wow, thats looks cool. keep up, very good work bro

离线

#31 2022-08-25 09:14:32

笔走天下
会员
注册时间: 2021-08-13
已发帖子: 126
积分: 0.5

Re: Baremetal hardware JPEG-decoder example (F1C100S)

wowo,so good,thank you for your share

离线

#32 2022-08-30 14:54:57

robiin
会员
注册时间: 2022-08-08
已发帖子: 3
积分: 3

Re: Baremetal hardware JPEG-decoder example (F1C100S)

nice work.

离线

#33 2022-08-31 22:52:01

stephone
会员
注册时间: 2019-10-09
已发帖子: 57
积分: 9

Re: Baremetal hardware JPEG-decoder example (F1C100S)

thats looks cool.

离线

#34 2022-12-14 22:08:36

at12
会员
注册时间: 2020-05-08
已发帖子: 2
积分: 2

Re: Baremetal hardware JPEG-decoder example (F1C100S)

wowo,so good,thank you for your share

离线

#35 2022-12-14 23:36:57

Mitko
会员
注册时间: 2018-03-13
已发帖子: 219
积分: 202

Re: Baremetal hardware JPEG-decoder example (F1C100S)

Ozelot 说:

We will win!

You will not win, Ukraine and Russia are the same country. Just Ukrainians are poor and brainwashed by the West. It would be better if Ukraine surrenders.

离线

楼主 #36 2022-12-15 04:51:12

Ozelot
会员
所在地: Ukraine
注册时间: 2020-06-22
已发帖子: 52
积分: 36
个人网站

Re: Baremetal hardware JPEG-decoder example (F1C100S)

Mitko 说:

You will not win, Ukraine and Russia are the same country. Just Ukrainians are poor and brainwashed by the West. It would be better if Ukraine surrenders.

I am in Ukraine and I tell you - we are fighting for our freedom! Russians are fascists. They are killing our people, so in this war we will accept any help.

离线

#37 2022-12-15 08:09:05

Blueskull
会员
注册时间: 2020-02-20
已发帖子: 458
积分: 444.5

Re: Baremetal hardware JPEG-decoder example (F1C100S)

Dude, this is a TECH forum. May our Russian and Ukrainian friends here be at least peaceful to each other? If you want to go political, Reddit is a good place.

离线

#39 2023-02-17 17:10:42

hoel
会员
注册时间: 2019-06-15
已发帖子: 96
积分: 31

Re: Baremetal hardware JPEG-decoder example (F1C100S)

@Ozelot
https://github.com/mikhailk-2012/sunxi-cedarx2/tree/80e3090ad9ae76706b7d78fdb1fbbf16c56508e4/SOURCE/plugin/vdecoder/h264

what about the H264 decoder?

最近编辑记录 hoel (2023-02-17 17:11:08)

离线

楼主 #40 2023-02-17 19:47:18

Ozelot
会员
所在地: Ukraine
注册时间: 2020-06-22
已发帖子: 52
积分: 36
个人网站

Re: Baremetal hardware JPEG-decoder example (F1C100S)

hoel 说:

what about the H264 decoder?

Now I have too little time. Because of the war, I had to leave my city and now I settle down with my family in a new place. At the moment I have an MPEG1/2 decoder implementation. I'll try to put it out as soon as possible in my repository: https://github.com/minilogic/f1c_nonos

最近编辑记录 Ozelot (2023-02-17 19:48:00)

离线

#41 2023-02-17 21:41:29

hoel
会员
注册时间: 2019-06-15
已发帖子: 96
积分: 31

Re: Baremetal hardware JPEG-decoder example (F1C100S)

@Ozelot
wow, that is a reality check, hard to realize what you are going through. With my best wishes for a fast resolution of this terrible situation and a fast recovery of the country.
I'll update here too if i have some news about the H264, i already started to port it months ago but there was just too many third party linux dependencies. I still have the Keil project though.

最近编辑记录 hoel (2023-02-17 22:59:07)

离线

#42 2023-02-17 23:21:57

hoel
会员
注册时间: 2019-06-15
已发帖子: 96
积分: 31

Re: Baremetal hardware JPEG-decoder example (F1C100S)

离线

#43 2023-06-23 21:33:59

sh200436
会员
注册时间: 2023-02-23
已发帖子: 33
积分: 8

Re: Baremetal hardware JPEG-decoder example (F1C100S)

@Ozelot
hi, dear friend, i downloaded baremetal project from your repository.
I set timer0 interrupt enable, but it didn't work.
how to add irq_handler( such as timer, uart, gpio ...) to f1c_nonos-main\src\lvgl\main.c?


------------------------------------------
void timer_irq_handler(void) {
    lv_tick_inc(1);
    tim_clear_irq(TIM0);
    timer_count ++;
   
    if(timer_count == 1000)//1S
    {
       timer_count = 0;
       
       uart_sendbyte(UART1, 0x55);//send 1byte every 1s
    }
}

void timer_init(void) {
    // Configure timer to generate update event every 1ms
    tim_init(TIM0, TIM_MODE_CONT, TIM_SRC_HOSC, TIM_PSC_1);
    tim_set_period(TIM0, 24000000UL / 1000UL);//1ms
    tim_int_enable(TIM0);
    // IRQ configuration
    intc_set_irq_handler(IRQ_TIMER0, timer_irq_handler);
    intc_enable_irq(IRQ_TIMER0);

    tim_start(TIM0);   
}
------------------------------------------

thank you.

最近编辑记录 sh200436 (2023-06-23 21:35:26)

离线

楼主 #44 2023-06-27 21:11:06

Ozelot
会员
所在地: Ukraine
注册时间: 2020-06-22
已发帖子: 52
积分: 36
个人网站

Re: Baremetal hardware JPEG-decoder example (F1C100S)

@sh200436
See an example of an interrupt handler: https://github.com/minilogic/f1c_nonos/tree/main/src/irq

离线

#45 2023-07-08 10:24:37

sh200436
会员
注册时间: 2023-02-23
已发帖子: 33
积分: 8

Re: Baremetal hardware JPEG-decoder example (F1C100S)

Ozelot 说:

@sh200436
See an example of an interrupt handler: https://github.com/minilogic/f1c_nonos/tree/main/src/irq

Wonderful!
I found 'IRQ'  in /drv/sys.c, but i didn’t know how to deal with it, so new irq example is very wonderful.
IRQ.png

Thank you so much!

离线

#46 2023-12-05 18:25:13

tongshezheng
会员
注册时间: 2023-11-08
已发帖子: 10
积分: 0

Re: Baremetal hardware JPEG-decoder example (F1C100S)

Ozelot 说:
hameyou 说:

这个解码是裸机下的还是linux下的

NonOs Baremetal

最近在找F1C100硬解资料。
是在unbuntu哪个版本上编译的呢?

离线

#47 2024-01-03 10:30:35

qqqqlyyy
会员
注册时间: 2024-01-03
已发帖子: 1
积分: 1

Re: Baremetal hardware JPEG-decoder example (F1C100S)

请问和ST的硬件解码器相比如何呢?

离线

#50 2024-02-18 10:30:32

paul_zdchun
会员
注册时间: 2024-01-23
已发帖子: 26
积分: 6

Re: Baremetal hardware JPEG-decoder example (F1C100S)

3~4ms?这个速度真是够快的

离线

#51 2024-02-18 18:46:46

paul_zdchun
会员
注册时间: 2024-01-23
已发帖子: 26
积分: 6

Re: Baremetal hardware JPEG-decoder example (F1C100S)

你说的是和ST有JPEG硬解的单片机比?貌似应该是这个更强,STM32H7硬解800x480的JPEG耗时大概10ms

qqqqlyyy 说:

请问和ST的硬件解码器相比如何呢?

离线

#53 2024-04-12 14:10:20

dykxjh
会员
注册时间: 2020-03-25
已发帖子: 171
积分: 166

Re: Baremetal hardware JPEG-decoder example (F1C100S)

Ozelot 说:

Simple example of hardware decoding JPEG image.
Resolution 800x480. Decoding time 3-4ms.
Sources: jpgdec.7z
https://whycan.com/files/members/4572/girl.jpg
https://whycan.com/files/members/4572/flower.jpg

大佬你好,我移植了你的代码,测试了花,结果如下图,请问可能是什么原因?
fl.jpg

花原图如下:
Data.jpg

离线

#54 2024-04-12 16:41:42

xiaorui
会员
所在地: 深圳
注册时间: 2022-06-11
已发帖子: 6
积分: 107
个人网站

Re: Baremetal hardware JPEG-decoder example (F1C100S)

看起来是RGB反了,或是大小端反了。
搞个RGB纯色图片来测试下看看。

离线

#55 2024-04-12 18:00:48

dykxjh
会员
注册时间: 2020-03-25
已发帖子: 171
积分: 166

Re: Baremetal hardware JPEG-decoder example (F1C100S)

xiaorui 说:

看起来是RGB反了,或是大小端反了。
搞个RGB纯色图片来测试下看看。

确实是大小端反了

离线

#58 2024-08-07 09:27:34

metri
会员
注册时间: 2024-08-05
已发帖子: 11
积分: 12

Re: Baremetal hardware JPEG-decoder example (F1C100S)

Ozelot, 谢谢你,软件很好用。Make file 改了点,文件架没自动做。

Great software and I was able to run all of them. Just made a quick change to the makefiles to create the directory structure.

jpgdec_makefile.zip

mjpgdec_makefile.zip

Note the mksuxi line is commented out, just uncomment or run separately. I compile on Linux and mksunxi provided is windows.
copy bin to windows and run mksunxi boot.bin

最近编辑记录 metri (2024-08-07 09:33:39)

离线

#61 2024-10-17 19:40:26

middle007
会员
注册时间: 2021-05-06
已发帖子: 18
积分: 3

Re: Baremetal hardware JPEG-decoder example (F1C100S)

我今天测试一下. 可以成功显示了.  涉及到yuv 软件转码. 我觉得可以通过defe硬件功能转化

离线

#62 2024-10-21 14:43:28

metri
会员
注册时间: 2024-08-05
已发帖子: 11
积分: 12

Re: Baremetal hardware JPEG-decoder example (F1C100S)

If anyone tries the 60fps example, there is a caveat. Your screen resolution must be divisible by 32 as the m32dec function relies on this. I'm not sure the best way to solve this. I use 720 resolution so I found this problem. I solved by padding video to 736 with ffmpeg. There may be a better way to fix, but this made it work for me.

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn