完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
大虾们,
用DM8168, 同时保存yuv420,jpeg数据, 然后将yuv420使用opencv转成bmp。发现jpeg要比bmp模糊很多, 想问下怎么改善jpeg质量。 谢谢! |
|
相关推荐
8个回答
|
|
|
|
|
|
I saw your thread on e2e. Could you provide the screenshot of JPEG/BMP to let me know how much the difference are ?
|
|
|
|
sunsiyi92 发表于 2018-6-21 14:06 你好, 谢谢你的回复。 问下怎么修改Q? 我查看了http://wenku.baidu.com/link?url=eFDqCirAcCkf5tJ8ILeezW0wbrt0H80Nd5u7S4L7LfmnQVLiLgltqegJ5osx-Sf9t76ebE5YGznJpptFnA8aCxdTbaZQV8fuNZo-0SdpjnW 还是没找到怎么修改啊。 |
|
|
|
uuwjjfsf 发表于 2018-6-21 14:33 ######################################################################## # Encoder Control ######################################################################## FrameWidth = 176 # Frame width should be multiple of 16 FrameHeight = 144 # Frame height should be multiple of 16 QualityFactor = 20 # Quality Setting to be used. # Ranges between 2 and 97. # 2 => Lowest Quality. 97 => Best Quality. CaptureWidth = 176 # Image width to compute image pitch. # If Capture Width is > Image Width then # use the former for image pitch. generateHeader = 0 # Set 1 => Generate Header Only debugTraceLevel = 0 # Specifies the debug trace level lastNFramesToLog = 0 # Specifies the number of past frames # to log debug trace. If debugTraceLevel is # greater than 0, lastNFramesToLog must range # between 0 and 10. tilerEnable = 1 # 1 => Luma in TILER8, 0=> Luma in Raw. chromaTilerMode = 0 # Valid only if tilerEnable = 1 # 1 => Chroma in TILER8, 0 => Chroma in # TILER16 |
|
|
|
sunsiyi92 发表于 2018-6-21 14:49 我使用的是dvrrdk_0.4版本, 我的代码为: 文件 mcfw//src_bios6/links_m3video/iva_enc/encLink_jpeg.c 430 static Int enclink_jpeg_set_dynamic_params(IJPEGVENC_DynamicParams * 431 dynamicParams, 432 EncLink_AlgDynamicParams * 433 algDynamicParams) 434 [ 435 *dynamicParams = JPEGVENC_TI_DYNAMICPARAMS; 436 dynamicParams->videnc2DynamicParams.inputWidth = 437 algDynamicParams->inputWidth; 438 dynamicParams->videnc2DynamicParams.inputHeight = 439 algDynamicParams->inputHeight; 440 dynamicParams->videnc2DynamicParams.captureWidth = 441 algDynamicParams->inputPitch; 442 dynamicParams->videnc2DynamicParams.targetBitRate = 443 algDynamicParams->targetBitRate; 444 dynamicParams->videnc2DynamicParams.targetFrameRate = 445 algDynamicParams->targetFrameRate; 446 dynamicParams->videnc2DynamicParams.interFrameInterval = 447 algDynamicParams->interFrameInterval; 448 dynamicParams->videnc2DynamicParams.intraFrameInterval = 449 algDynamicParams->intraFrameInterval; 450 dynamicParams->videnc2DynamicParams.mvAccuracy = 451 algDynamicParams->mvAccuracy; 452 dynamicParams->videnc2DynamicParams.refFrameRate = 453 algDynamicParams->refFrameRate; 454 dynamicParams->videnc2DynamicParams.ignoreOutbufSizeFlag = XDAS_FALSE; 455 456 return 0; 457 ] 在函数 EncLinkJPEG_algSetConfig 中有 695 algObj->u.jpegAlgIfObj.dynamicParams.qualityFactor = algObj->algDynamicParams.qpInitI; 设置algObj->u.jpegAlgIfObj.dynamicParams.qualityFactor 是否就可以了? # Ranges between 2 and 97. # 2 => Lowest Quality. 97 => Best Quality. 也适用吗? 谢谢。 |
|
|
|
uuwjjfsf 发表于 2018-6-21 14:55 谢谢 你的答复, 我的问题已经解决了。 |
|
|
|
|
|
|
|
venc_start() 后 175 VENC_CHN_DYNAMIC_PARAM_S params = [ 0 ]; 176 params.qpMin = 97; 177 params.qpMax = 97; 178 params.qpInit = 97; 179 Venc_setDynamicParam(0, 0, ¶ms, VENC_QPVAL_I); 实际上就是设置那个qualityFactor |
|
|
|
只有小组成员才能发言,加入小组>>
865 浏览 0 评论
TMS320F28377D:新做了以377d为芯片的板子,上电后芯片复位引脚出现方波请问如何解决?
2051 浏览 0 评论
TPS55340通电后输入端保险丝烧断,芯片输入和GND之间短路
3790 浏览 4 评论
5145 浏览 0 评论
请问如何用DM368对RGB格式的图片数据进行编码生成JPEG格式图片?
1841 浏览 1 评论
CC3100BOOST使用CC3200lunchXL进行烧录
836浏览 2评论
69浏览 2评论
81浏览 2评论
71浏览 2评论
99浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-8-16 13:44 , Processed in 0.880567 second(s), Total 91, Slave 75 queries .
Powered by 电子发烧友网
© 2015 www.ws-dc.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号