使用libjpeg-turbo进行JPG编解码-YUV422P转JPG为例

原创 嵌入式Lee 2023-08-10 17:15

.前言

   在UVC项目中需要测试MJPEG的传输, 通常JPG使用的是YUV420采样压缩,恰好有个UVC的显示设备不支持YUV420采样压缩,只支持YUV422采样压缩,所以需要生成YUV422采样压缩的JPG文件用于测试。于是使用libjpeg代码库生成。这里使用libjpeg-turbo,相对官方的libjpeg,其使用了SIMD进行了速度优化,并且进一步封装了接口,接口更简洁更方便使用。

   关于YUV422YUV420采样的JPG,以下文章有更详细的说明,总的来说YUV420更常见,毕竟都有损压缩了,使用YUV422带来的质量提升已经没什么意义了,使用YUV420空间更小,质量差异不大。https://calendar.perfplanet.com/2015/why-arent-your-images-using-chroma-subsampling/

项目见: https://github.com/libjpeg-turbo/libjpeg-turbo.git

https://libjpeg-turbo.org/

libjpeg:http://www.ijg.org/files/

以下基于WSL+Ubuntu环境进行。

.下载代码

lhj@lhj:~$ git clone https://github.com/libjpeg-turbo/libjpeg-turbo.git

Cloning into 'libjpeg-turbo'...remote: Enumerating objects: 19401, done.remote: Counting objects: 100% (432/432), done.remote: Compressing objects: 100% (199/199), done.remote: Total 19401 (delta 259), reused 325 (delta 219), pack-reused 18969Receiving objects: 100% (19401/19401), 17.02 MiB | 10.70 MiB/s, done.Resolving deltas: 100% (14372/14372), done.

进入目录查看文件如下

lhj@lhj:~$ cd libjpeg-turbo/

lhj@lhj:~/libjpeg-turbo$ ls

BUILDING.md        fuzz          jconfig.txt      jdhuff.c    jfdctfst.c          jstdhuff.c      tjexampletest.inCMakeLists.txt     jaricom.c     jconfigint.h.in  jdhuff.h    jfdctint.c          jutils.c        tjunittest.cChangeLog.md       java          jcparam.c        jdicc.c     jidctflt.c          jversion.h.in   tjutil.cLICENSE.md         jcapimin.c    jcphuff.c        jdinput.c   jidctfst.c          libjpeg.map.in  tjutil.hREADME.ijg         jcapistd.c    jcprepct.c       jdlhuff.c   jidctint.c          libjpeg.txt     transupp.cREADME.md          jcarith.c     jcsample.c       jdlossls.c  jidctred.c          md5             transupp.happveyor.yml       jccoefct.c    jcstest.c        jdmainct.c  jinclude.h          rdbmp.c         turbojpeg-jni.ccderror.h          jccolext.c    jctrans.c        jdmainct.h  jlossls.h           rdcolmap.c      turbojpeg-mapfilecdjpeg.c           jccolor.c     jdapimin.c       jdmarker.c  jmemmgr.c           rdgif.c         turbojpeg-mapfile.jnicdjpeg.h           jcdctmgr.c    jdapistd.c       jdmaster.c  jmemnobs.c          rdjpgcom.1      turbojpeg-mp.cchange.log         jcdiffct.c    jdarith.c        jdmaster.h  jmemsys.h           rdjpgcom.c      turbojpeg.ccjpeg.1            jchuff.c      jdatadst-tj.c    jdmerge.c   jmorecfg.h          rdppm.c         turbojpeg.hcjpeg.c            jchuff.h      jdatadst.c       jdmerge.h   jpeg_nbits_table.h  rdswitch.c      usage.txtdoxygen-extra.css  jcmaster.h    jdct.h           jerror.c    jsamplecomp.h       tjbench.c       wrtarga.cdoxygen.config     jcomapi.c     jddctmgr.c       jerror.h    jsimd.h             tjbenchtest.inexample.c          jconfig.h.in  jddiffct.c       jfdctflt.c  jsimddct.h          tjexample.c

lhj@lhj:~/libjpeg-turbo$ code .

.安装nasm

lhj@lhj:~/libjpeg-turbo$ sudo apt install nasm

[sudo] password for lhj:Reading package lists... DoneBuilding dependency treeReading state information... DoneThe following NEW packages will be installed:  nasm0 upgraded, 1 newly installed, 0 to remove and 224 not upgraded.Need to get 362 kB of archives.After this operation, 3374 kB of additional disk space will be used.Get:1 http://archive.ubuntu.com/ubuntu focal/universe amd64 nasm amd64 2.14.02-1 [362 kB]Fetched 362 kB in 2s (185 kB/s)Selecting previously unselected package nasm.(Reading database ... 131163 files and directories currently installed.)Preparing to unpack .../nasm_2.14.02-1_amd64.deb ...Unpacking nasm (2.14.02-1) ...Setting up nasm (2.14.02-1) ...Processing triggers for man-db (2.9.1-1) ...

.编译

lhj@lhj:~/libjpeg-turbo$ mkdir build

lhj@lhj:~/libjpeg-turbo$ cd build

lhj@lhj:~/libjpeg-turbo/build$ cmake ../

-- The C compiler identification is GNU 9.4.0-- Check for working C compiler: /usr/bin/cc-- Check for working C compiler: /usr/bin/cc -- works-- Detecting C compiler ABI info-- Detecting C compiler ABI info - done-- Detecting C compile features-- Detecting C compile features - done-- CMAKE_BUILD_TYPE = Release-- VERSION = 3.0.1, BUILD = 20230810-- 64-bit build (x86_64)-- CMAKE_INSTALL_PREFIX = /opt/libjpeg-turbo-- CMAKE_INSTALL_BINDIR = bin (/opt/libjpeg-turbo/bin)-- CMAKE_INSTALL_DATAROOTDIR =  (/opt/libjpeg-turbo)-- CMAKE_INSTALL_DOCDIR = doc (/opt/libjpeg-turbo/doc)-- CMAKE_INSTALL_INCLUDEDIR = include (/opt/libjpeg-turbo/include)-- CMAKE_INSTALL_LIBDIR = lib64 (/opt/libjpeg-turbo/lib64)-- CMAKE_INSTALL_MANDIR = man (/opt/libjpeg-turbo/man)-- Shared libraries enabled (ENABLE_SHARED = 1)-- Static libraries enabled (ENABLE_STATIC = 1)-- Arithmetic decoding support enabled (WITH_ARITH_DEC = 1)-- Arithmetic encoding support enabled (WITH_ARITH_ENC = 1)-- TurboJPEG API library enabled (WITH_TURBOJPEG = 1)-- TurboJPEG Java wrapper disabled (WITH_JAVA = 0)-- Emulating libjpeg API/ABI v6.2 (WITH_JPEG7 = 0, WITH_JPEG8 = 0)-- libjpeg API shared library version = 62.4.0-- Compiler flags =  -O3 -DNDEBUG-- Linker flags =-- Looking for sys/types.h-- Looking for sys/types.h - found-- Looking for stdint.h-- Looking for stdint.h - found-- Looking for stddef.h-- Looking for stddef.h - found-- Check size of size_t-- Check size of size_t - done-- Check size of unsigned long-- Check size of unsigned long - done-- Performing Test HAVE_BUILTIN_CTZL-- Performing Test HAVE_BUILTIN_CTZL - Success-- Performing Test RIGHT_SHIFT_IS_UNSIGNED-- Performing Test RIGHT_SHIFT_IS_UNSIGNED - Failed-- Performing Test INLINE_WORKS-- Performing Test INLINE_WORKS - Success-- INLINE = __inline__ __attribute__((always_inline)) (FORCE_INLINE = 1)-- Performing Test HAVE_THREAD_LOCAL-- Performing Test HAVE_THREAD_LOCAL - Success-- THREAD_LOCAL = __thread-- Performing Test HAVE_VERSION_SCRIPT-- Performing Test HAVE_VERSION_SCRIPT - Success-- Linker supports GNU-style version scripts-- CMAKE_EXECUTABLE_SUFFIX =-- Looking for a ASM_NASM compiler-- Looking for a ASM_NASM compiler - /usr/bin/nasm-- The ASM_NASM compiler identification is NASM-- Found assembler: /usr/bin/nasm-- CMAKE_ASM_NASM_COMPILER = /usr/bin/nasm-- CMAKE_ASM_NASM_OBJECT_FORMAT = elf64-- CMAKE_ASM_NASM_FLAGS =  -DELF -D__x86_64__ -DPIC-- SIMD extensions: x86_64 (WITH_SIMD = 1)-- FLOATTEST8 = sse-- FLOATTEST12 = no-fp-contract-- RPM architecture = x86_64, DEB architecture = amd64-- Configuring done-- Generating done-- Build files have been written to: /home/lhj/libjpeg-turbo/build

lhj@lhj:~/libjpeg-turbo/build$ make

Scanning dependencies of target simd[  0%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jsimdcpu.asm.o[  0%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jfdctflt-sse.asm.o[  0%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jccolor-sse2.asm.o[  0%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jcgray-sse2.asm.o[  1%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jchuff-sse2.asm.o[  1%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jcphuff-sse2.asm.o[  1%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jcsample-sse2.asm.o[  1%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jdcolor-sse2.asm.o[  1%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jdmerge-sse2.asm.o[  2%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jdsample-sse2.asm.o[  2%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jfdctfst-sse2.asm.o[  2%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jfdctint-sse2.asm.o[  2%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jidctflt-sse2.asm.o[  3%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jidctfst-sse2.asm.o[  3%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jidctint-sse2.asm.o[  3%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jidctred-sse2.asm.o[  3%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jquantf-sse2.asm.o[  3%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jquanti-sse2.asm.o[  4%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jccolor-avx2.asm.o[  4%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jcgray-avx2.asm.o[  4%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jcsample-avx2.asm.o[  4%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jdcolor-avx2.asm.o[  5%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jdmerge-avx2.asm.o[  5%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jdsample-avx2.asm.o[  5%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jfdctint-avx2.asm.o[  5%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jidctint-avx2.asm.o[  5%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jquanti-avx2.asm.o[  6%] Building C object simd/CMakeFiles/simd.dir/x86_64/jsimd.c.o[  6%] Built target simdScanning dependencies of target turbojpeg12
.......Scanning dependencies of target md5cmp[ 99%] Building C object md5/CMakeFiles/md5cmp.dir/md5cmp.c.o[100%] Building C object md5/CMakeFiles/md5cmp.dir/md5.c.o[100%] Building C object md5/CMakeFiles/md5cmp.dir/md5hl.c.o[100%] Linking C executable md5cmp[100%] Built target md5cmp

生成文件如下

lhj@lhj:~/libjpeg-turbo/build$ ls

CMakeCache.txt       cmake_uninstall.cmake  jconfigint.h     libjpeg.so             md5         tjbench-staticCMakeFiles           croptest               jcstest          libjpeg.so.62          pkgscripts  tjbenchtestCTestTestfile.cmake  djpeg                  jpegtran         libjpeg.so.62.4.0      rdjpgcom    tjexampleMakefile             djpeg-static           jpegtran-static  libturbojpeg.a         sharedlib   tjexampletestcjpeg                example                jversion.h       libturbojpeg.so        simd        tjunittestcjpeg-static         example-static         libjpeg.a        libturbojpeg.so.0      strtest     tjunittest-staticcmake_install.cmake  jconfig.h              libjpeg.map      libturbojpeg.so.0.3.0  tjbench     wrjpgcom

.安装

lhj@lhj:~/libjpeg-turbo/build$ sudo make install

安装于/opt/libjpeg-turbo/lib64

[sudo] password for lhj: [  6%] Built target simd[  7%] Built target turbojpeg12[ 10%] Built target jpeg16[ 16%] Built target jpeg12[ 17%] Built target turbojpeg16[ 31%] Built target turbojpeg[ 31%] Built target turbojpeg12-static[ 34%] Built target jpeg16-static[ 40%] Built target jpeg12-static[ 53%] Built target jpeg-static[ 54%] Built target djpeg12-static[ 54%] Built target djpeg16-static[ 56%] Built target djpeg-static[ 56%] Built target example-static[ 57%] Built target tjexample[ 57%] Built target turbojpeg16-static[ 71%] Built target turbojpeg-static[ 72%] Built target jpegtran-static[ 73%] Built target tjunittest-static[ 74%] Built target rdjpgcom[ 75%] Built target tjunittest[ 75%] Built target tjbench-static[ 76%] Built target cjpeg16-static[ 76%] Built target strtest[ 77%] Built target cjpeg12-static[ 79%] Built target cjpeg-static[ 80%] Built target wrjpgcom[ 81%] Built target tjbench[ 81%] Built target cjpeg12[ 81%] Built target cjpeg16[ 93%] Built target jpeg[ 94%] Built target cjpeg[ 94%] Built target djpeg16[ 94%] Built target djpeg12[ 96%] Built target djpeg[ 97%] Built target jpegtran[ 98%] Built target example[ 99%] Built target jcstest[100%] Built target md5cmpInstall the project...-- Install configuration: "Release"-- Installing: /opt/libjpeg-turbo/lib64/libturbojpeg.so.0.3.0-- Installing: /opt/libjpeg-turbo/lib64/libturbojpeg.so.0-- Set runtime path of "/opt/libjpeg-turbo/lib64/libturbojpeg.so.0.3.0" to "/opt/libjpeg-turbo/lib64"-- Installing: /opt/libjpeg-turbo/lib64/libturbojpeg.so-- Installing: /opt/libjpeg-turbo/bin/tjbench-- Set runtime path of "/opt/libjpeg-turbo/bin/tjbench" to "/opt/libjpeg-turbo/lib64"-- Installing: /opt/libjpeg-turbo/lib64/libturbojpeg.a-- Installing: /opt/libjpeg-turbo/include/turbojpeg.h-- Installing: /opt/libjpeg-turbo/lib64/libjpeg.a-- Installing: /opt/libjpeg-turbo/bin/rdjpgcom-- Set runtime path of "/opt/libjpeg-turbo/bin/rdjpgcom" to "/opt/libjpeg-turbo/lib64"-- Installing: /opt/libjpeg-turbo/bin/wrjpgcom-- Set runtime path of "/opt/libjpeg-turbo/bin/wrjpgcom" to "/opt/libjpeg-turbo/lib64"-- Installing: /opt/libjpeg-turbo/doc/README.ijg-- Installing: /opt/libjpeg-turbo/doc/README.md-- Installing: /opt/libjpeg-turbo/doc/example.c-- Installing: /opt/libjpeg-turbo/doc/tjexample.c-- Installing: /opt/libjpeg-turbo/doc/libjpeg.txt-- Installing: /opt/libjpeg-turbo/doc/structure.txt-- Installing: /opt/libjpeg-turbo/doc/usage.txt-- Installing: /opt/libjpeg-turbo/doc/wizard.txt-- Installing: /opt/libjpeg-turbo/doc/LICENSE.md-- Installing: /opt/libjpeg-turbo/man/man1/cjpeg.1-- Installing: /opt/libjpeg-turbo/man/man1/djpeg.1-- Installing: /opt/libjpeg-turbo/man/man1/jpegtran.1-- Installing: /opt/libjpeg-turbo/man/man1/rdjpgcom.1-- Installing: /opt/libjpeg-turbo/man/man1/wrjpgcom.1-- Installing: /opt/libjpeg-turbo/lib64/pkgconfig/libjpeg.pc-- Installing: /opt/libjpeg-turbo/lib64/pkgconfig/libturbojpeg.pc-- Installing: /opt/libjpeg-turbo/lib64/cmake/libjpeg-turbo/libjpeg-turboConfig.cmake-- Installing: /opt/libjpeg-turbo/lib64/cmake/libjpeg-turbo/libjpeg-turboConfigVersion.cmake-- Installing: /opt/libjpeg-turbo/lib64/cmake/libjpeg-turbo/libjpeg-turboTargets.cmake-- Installing: /opt/libjpeg-turbo/lib64/cmake/libjpeg-turbo/libjpeg-turboTargets-release.cmake-- Installing: /opt/libjpeg-turbo/include/jconfig.h-- Installing: /opt/libjpeg-turbo/include/jerror.h-- Installing: /opt/libjpeg-turbo/include/jmorecfg.h-- Installing: /opt/libjpeg-turbo/include/jpeglib.h-- Installing: /opt/libjpeg-turbo/lib64/libjpeg.so.62.4.0-- Installing: /opt/libjpeg-turbo/lib64/libjpeg.so.62-- Set runtime path of "/opt/libjpeg-turbo/lib64/libjpeg.so.62.4.0" to "/opt/libjpeg-turbo/lib64"-- Installing: /opt/libjpeg-turbo/lib64/libjpeg.so-- Installing: /opt/libjpeg-turbo/bin/cjpeg-- Set runtime path of "/opt/libjpeg-turbo/bin/cjpeg" to "/opt/libjpeg-turbo/lib64"-- Installing: /opt/libjpeg-turbo/bin/djpeg-- Set runtime path of "/opt/libjpeg-turbo/bin/djpeg" to "/opt/libjpeg-turbo/lib64"-- Installing: /opt/libjpeg-turbo/bin/jpegtran-- Set runtime path of "/opt/libjpeg-turbo/bin/jpegtran" to "/opt/libjpeg-turbo/lib64"

.测试

lhj@lhj:~/libjpeg-turbo/build$ sudo make test

Running tests...Test project /home/lhj/libjpeg-turbo/build        Start   1: tjunittest-shared  1/590 Test   #1: tjunittest-shared ...................................   Passed    3.48 sec        Start   2: tjunittest-shared-alloc  2/590 Test   #2: tjunittest-shared-alloc .............................   Passed    3.48 sec......        Start 590: example-12bit-static-decompress-cmp590/590 Test #590: example-12bit-static-decompress-cmp .................   Passed    0.00 sec
100% tests passed, 0 tests failed out of 590
Total Test time (real) = 79.40 sec

.YUV422PJPG

代码

#include #include #include #include #include #include #include 
/* Y = 0.298R + 0.612G + 0.117B;   [13,235] U = -0.168R - 0.330G + 0.498B + 128; [16,239] V = 0.449R - 0.435G - 0.083B + 128; [16,239]*/uint8_t* yuv422p(uint32_t w, uint32_t h, uint32_t color){    uint8_t* p = (uint8_t*)malloc(w*h*2);    uint8_t* ret = p;    if(p == NULL)    {        return NULL;    }
    int y = 0;    int u = 0;    int v = 0;    uint8_t r = 0;    uint8_t g = 0;    uint8_t b = 0;    r = (color >> 16) & 0xFF;    g = (color >> 8) & 0xFF;    b = (color >> 0) & 0xFF;    y = (0.298*r + 0.612*g + 0.117*b);    u = (-0.168*r - 0.330*g + 0.498*b + 128);    v = (0.449*r - 0.435*g - 0.083*b + 128);    if(y>235)    {        y=235;    }    if(y<16)    {        y=16;    }    if(u>239)    {        u=239;    }    if(u<16)    {        u=16;    }    if(v>239)    {        v=239;    }    if(v<16)    {        v=16;    }    for(int i=0;i    {        *p++ = y;    }    for(int i=0;i2;i++)    {        *p++ = u;    }    for(int i=0;i2;i++)    {        *p++ = v;    }    return ret;}
/*写内存到文件*/void write_buffer2file(char *filename, uint8_t *buffer, int size){  FILE *fd = fopen(filename,"wb");  if (NULL == fd) {    return;  }  fwrite(buffer,1,size,fd);  fclose(fd);}
int tyuv2jpeg(unsigned char* yuv_buffer, int yuv_size, int width, int height, int subsample, unsigned char** jpeg_buffer, unsigned long* jpeg_size, int quality,char *name){    tjhandle handle = NULL;    int flags = 0;    int padding = 16; // 1或4均可,但不能是0    int need_size = 0;    int ret = 0;     handle = tjInitCompress();       flags |= 0;     need_size = tjBufSizeYUV2(width, padding, height, subsample);    if (need_size != yuv_size)    {        printf("we detect yuv size: %d, but you give: %d, check again.\n", need_size, yuv_size);        return 0;    }     ret = tjCompressFromYUV(handle, yuv_buffer, width, padding, height, subsample, jpeg_buffer, jpeg_size, quality, flags);    if (ret < 0)    {        printf("compress to jpeg failed: %s\n", tjGetErrorStr());    }    write_buffer2file(name,*jpeg_buffer,*jpeg_size);    tjDestroy(handle);     return ret;}
int main(){    unsigned long jpeg_size;    unsigned char* yuv_buffer;    unsigned char* jpeg_buffer;    yuv_buffer = yuv422p(800, 480, 0xFFFF00);    tyuv2jpeg(yuv_buffer, 800*480*2, 800, 480, TJSAMP_422, &jpeg_buffer, &jpeg_size, 90, "out.jpg");    free(yuv_buffer);}

编译

gcc test.c -o test -lturbojpeg -I/opt/libjpeg-turbo/include -L/opt/libjpeg-turbo/lib64

运行

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/libjpeg-turbo/lib64 &&  ./test

生成out.jpg

八. 总结

   以上使用libjpeg实现了YUV422PJPG,可以导入自己项目用于UVCMJPEG测试。后面再单独讲将其移植到MCU以实现软jpg的编解码。



评论
  • 高速先生成员--黄刚这不马上就要过年了嘛,高速先生就不打算给大家上难度了,整一篇简单但很实用的文章给大伙瞧瞧好了。相信这个标题一出来,尤其对于PCB设计工程师来说,心就立马凉了半截。他们辛辛苦苦进行PCB的过孔设计,高速先生居然说设计多大的过孔他们不关心!另外估计这时候就跳出很多“挑刺”的粉丝了哈,因为翻看很多以往的文章,高速先生都表达了过孔孔径对高速性能的影响是很大的哦!咋滴,今天居然说孔径不关心了?别,别急哈,听高速先生在这篇文章中娓娓道来。首先还是要对各位设计工程师的设计表示肯定,毕竟像我
    一博科技 2025-01-21 16:17 197浏览
  • 飞凌嵌入式基于瑞芯微RK3562系列处理器打造的FET3562J-C全国产核心板,是一款专为工业自动化及消费类电子设备设计的产品,凭借其强大的功能和灵活性,自上市以来得到了各行业客户的广泛关注。本文将详细介绍如何启动并测试RK3562J处理器的MCU,通过实际操作步骤,帮助各位工程师朋友更好地了解这款芯片。1、RK3562J处理器概述RK3562J处理器采用了4*Cortex-A53@1.8GHz+Cortex-M0@200MHz架构。其中,4个Cortex-A53核心作为主要核心,负责处理复杂
    飞凌嵌入式 2025-01-24 11:21 167浏览
  • 嘿,咱来聊聊RISC-V MCU技术哈。 这RISC-V MCU技术呢,简单来说就是基于一个叫RISC-V的指令集架构做出的微控制器技术。RISC-V这个啊,2010年的时候,是加州大学伯克利分校的研究团队弄出来的,目的就是想搞个新的、开放的指令集架构,能跟上现代计算的需要。到了2015年,专门成立了个RISC-V基金会,让这个架构更标准,也更好地推广开了。这几年啊,这个RISC-V的生态系统发展得可快了,好多公司和机构都加入了RISC-V International,还推出了不少RISC-V
    丙丁先生 2025-01-21 12:10 1023浏览
  •  万万没想到!科幻电影中的人形机器人,正在一步步走进我们人类的日常生活中来了。1月17日,乐聚将第100台全尺寸人形机器人交付北汽越野车,再次吹响了人形机器人疯狂进厂打工的号角。无独有尔,银河通用机器人作为一家成立不到两年时间的创业公司,在短短一年多时间内推出革命性的第一代产品Galbot G1,这是一款轮式、双臂、身体可折叠的人形机器人,得到了美团战投、经纬创投、IDG资本等众多投资方的认可。作为一家成立仅仅只有两年多时间的企业,智元机器人也把机器人从梦想带进了现实。2024年8月1
    刘旷 2025-01-21 11:15 825浏览
  •     IPC-2581是基于ODB++标准、结合PCB行业特点而指定的PCB加工文件规范。    IPC-2581旨在替代CAM350格式,成为PCB加工行业的新的工业规范。    有一些免费软件,可以查看(不可修改)IPC-2581数据文件。这些软件典型用途是工艺校核。    1. Vu2581        出品:Downstream     
    电子知识打边炉 2025-01-22 11:12 225浏览
  • 项目展示①正面、反面②左侧、右侧项目源码:https://mbb.eet-china.com/download/316656.html前言为什么想到要做这个小玩意呢,作为一个死宅,懒得看手机,但又想要抬头就能看见时间和天气信息,于是就做个这么个小东西,放在示波器上面正好(示波器外壳有个小槽,刚好可以卡住)功能主要有,获取国家气象局的天气信息,还有实时的温湿度,主控采用ESP32,所以后续还可以开放更多奇奇怪怪的功能,比如油价信息、股票信息之类的,反正能联网可操作性就大多了原理图、PCB、面板设计
    小恶魔owo 2025-01-25 22:09 160浏览
  • 数字隔离芯片是一种实现电气隔离功能的集成电路,在工业自动化、汽车电子、光伏储能与电力通信等领域的电气系统中发挥着至关重要的作用。其不仅可令高、低压系统之间相互独立,提高低压系统的抗干扰能力,同时还可确保高、低压系统之间的安全交互,使系统稳定工作,并避免操作者遭受来自高压系统的电击伤害。典型数字隔离芯片的简化原理图值得一提的是,数字隔离芯片历经多年发展,其应用范围已十分广泛,凡涉及到在高、低压系统之间进行信号传输的场景中基本都需要应用到此种芯片。那么,电气工程师在进行电路设计时到底该如何评估选择一
    华普微HOPERF 2025-01-20 16:50 166浏览
  • 书接上回:【2022年终总结】阳光总在风雨后,启航2023-面包板社区  https://mbb.eet-china.com/blog/468701-438244.html 总结2019,松山湖有个欧洲小镇-面包板社区  https://mbb.eet-china.com/blog/468701-413397.html        2025年该是总结下2024年的喜怒哀乐,有个好的开始,才能更好的面对2025年即将
    liweicheng 2025-01-24 23:18 130浏览
  • 前篇文章中『服务器散热效能不佳有解吗?』提到气冷式的服务器其散热效能对于系统稳定度是非常重要的关键因素,同时也说明了百佳泰对于散热效能能提供的协助与服务。本篇将为您延伸说明我们如何进行评估,同时也会举例在测试过程中发现的问题及改善后的数据。AI服务器的散热架构三大重点:GPU导风罩:尝试不同的GPU导风罩架构,用以集中服务器进风量,加强对GPU的降温效果。GPU托盘:改动GPU托盘架构,验证出风面积大小对GPU散热的影想程度。CPU导风罩:尝试封闭CPU导风罩间隙,集中风流,验证CPU降温效果。
    百佳泰测试实验室 2025-01-24 16:58 63浏览
  • 2024年是很平淡的一年,能保住饭碗就是万幸了,公司业绩不好,跳槽又不敢跳,还有一个原因就是老板对我们这些员工还是很好的,碍于人情也不能在公司困难时去雪上加霜。在工作其间遇到的大问题没有,小问题还是有不少,这里就举一两个来说一下。第一个就是,先看下下面的这个封装,你能猜出它的引脚间距是多少吗?这种排线座比较常规的是0.6mm间距(即排线是0.3mm间距)的,而这个规格也是我们用得最多的,所以我们按惯性思维来看的话,就会认为这个座子就是0.6mm间距的,这样往往就不会去细看规格书了,所以这次的运气
    wuliangu 2025-01-21 00:15 479浏览
  • 临近春节,各方社交及应酬也变得多起来了,甚至一月份就排满了各式约见。有的是关系好的专业朋友的周末“恳谈会”,基本是关于2025年经济预判的话题,以及如何稳定工作等话题;但更多的预约是来自几个客户老板及副总裁们的见面,他们为今年的经济预判与企业发展焦虑而来。在聊天过程中,我发现今年的聊天有个很有意思的“点”,挺多人尤其关心我到底是怎么成长成现在的多领域风格的,还能掌握一些经济趋势的分析能力,到底学过哪些专业、在企业管过哪些具体事情?单单就这个一个月内,我就重复了数次“为什么”,再辅以我上次写的:《
    牛言喵语 2025-01-22 17:10 297浏览
  • 故障现象 一辆2007款日产天籁车,搭载VQ23发动机(气缸编号如图1所示,点火顺序为1-2-3-4-5-6),累计行驶里程约为21万km。车主反映,该车起步加速时偶尔抖动,且行驶中加速无力。 图1 VQ23发动机的气缸编号 故障诊断接车后试车,发动机怠速运转平稳,但只要换挡起步,稍微踩下一点加速踏板,就能感觉到车身明显抖动。用故障检测仪检测,发动机控制模块(ECM)无故障代码存储,且无失火数据流。用虹科Pico汽车示波器测量气缸1点火信号(COP点火信号)和曲轴位置传感器信
    虹科Pico汽车示波器 2025-01-23 10:46 161浏览
  • 随着AI大模型训练和推理对计算能力的需求呈指数级增长,AI数据中心的网络带宽需求大幅提升,推动了高速光模块的发展。光模块作为数据中心和高性能计算系统中的关键器件,主要用于提供高速和大容量的数据传输服务。 光模块提升带宽的方法有两种:1)提高每个通道的比特速率,如直接提升波特率,或者保持波特率不变,使用复杂的调制解调方式(如PAM4);2)增加通道数,如提升并行光纤数量,或采用波分复用(CWDM、LWDM)。按照传输模式,光模块可分为并行和波分两种类型,其中并行方案主要应用在中短距传输场景中成本
    hycsystembella 2025-01-25 17:24 95浏览
  • 不让汽车专美于前,近年来哈雷(Harley-Davidson)和本田(Honda)等大型重型机车大厂的旗下车款皆已陆续配备车载娱乐系统与语音助理,在路上也有越来越多的普通机车车主开始使用安全帽麦克风,在骑车时透过蓝牙连线执行语音搜寻地点导航、音乐播放控制或免持拨打接听电话等各种「机车语音助理」功能。客户背景与面临的挑战以本次分享的客户个案为例,该客户是一个跨国车用语音软件供货商,过往是与车厂合作开发前装车机为主,且有着多年的「汽车语音助理」产品经验。由于客户这次是首度跨足「机车语音助理」产品,因
    百佳泰测试实验室 2025-01-24 17:00 79浏览
我要评论
0
点击右上角,分享到朋友圈 我知道啦
请使用浏览器分享功能 我知道啦