CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
楼主: blessed

H264高清硬编解教程《附相应的库》

[复制链接]
发表于 2014-3-28 15:44:26 | 显示全部楼层
root@ktd-server:~/work/h264_0# make
arm-none-linux-gnueabi-g++ -static -I ./render -I ./decode -I ./include -I ./capture -D__OS_LINUX -o test render/render.c decode/decode_api.c capture/capture.c -L./linux_lib/libcedarv_osal.a ./linux_lib/libcedarxalloc.a ./linux_lib/libh264enc.a ./linux_lib/libcedarv.a
render/render.c: In function 'void render_exit()':
render/render.c:539: error: 'close' was not declared in this scope
render/render.c: In function 'int render_render(void*, int)':
render/render.c:571: error: invalid conversion from 'u8*' to '__u32'
render/render.c:572: error: invalid conversion from 'u8*' to '__u32'
decode/decode_api.c: In function 'int decode_update_data_from_enc(cedarv_decoder_t*, __vbv_data_ctrl_info_t*, int)':
decode/decode_api.c:127: error: 'memset' was not declared in this scope
decode/decode_api.c:142: error: 'mem_cpy' was not declared in this scope
decode/decode_api.c:143: error: 'cedarx_cache_op' was not declared in this scope
decode/decode_api.c:172: error: 'memset' was not declared in this scope
decode/decode_api.c:182: error: 'mem_cpy' was not declared in this scope
decode/decode_api.c:183: error: 'cedarx_cache_op' was not declared in this scope
decode/decode_api.c:188: error: 'mem_cpy' was not declared in this scope
decode/decode_api.c:189: error: 'cedarx_cache_op' was not declared in this scope
decode/decode_api.c:225: error: 'usleep' was not declared in this scope
decode/decode_api.c:231: error: 'mem_cpy' was not declared in this scope
decode/decode_api.c:232: error: 'cedarx_cache_op' was not declared in this scope
decode/decode_api.c:236: error: 'mem_cpy' was not declared in this scope
decode/decode_api.c:238: error: 'cedarx_cache_op' was not declared in this scope
capture/capture.c: In function 'int InitCapture()':
capture/capture.c:522: error: invalid conversion from 'void*' to 'buffer*'
make: *** [test] Error 1

错误中的函数' cedarx_cache_op,mem_cpy 在哪?
回复 支持 反对

使用道具 举报

发表于 2014-3-29 08:45:49 | 显示全部楼层
langshake 发表于 2014-3-28 15:44
root@ktd-server:~/work/h264_0# make
arm-none-linux-gnueabi-g++ -static -I ./render -I ./decode -I ./ ...

这两个函数都是在库文件中,编译出错应该是你的库文件没有链接好
回复 支持 反对

使用道具 举报

发表于 2014-3-31 15:20:19 | 显示全部楼层
noudle614 发表于 2014-3-28 08:50
gcc version 4.6.1 (Sourcery CodeBench Lite 2011.09-70)
这个可以用,目前正在捣鼓中.... ...

哥们,能付把你的4.6.1版本编译器提供下,我找不到啊,这几天了,还是编译器版本问题啊,Q:376226323,跪谢!
回复 支持 反对

使用道具 举报

发表于 2014-3-31 15:52:28 | 显示全部楼层
这个例子中,V4L2在设置参数中,设置帧的宽和高貌似是自动获取的(在set_para函数中),而我这获取的是176*144,画面好小啊,我尝试过将那两个改为640*480(我的摄像头支持这么大的),但是修改之后画面是一跳一跳的,一点不连续,176*144的还能流畅显示,不知道这是什么原因啊?        format.fmt.pix.width = width;  format.fmt.pix.height =height;我记得V4L2这个参数是可以自己设定的啊
回复 支持 反对

使用道具 举报

发表于 2014-4-11 10:00:27 | 显示全部楼层
终于实现摄像头采集->h264硬编->h264硬解->实时LCD显示了,感谢共享该库!
回复 支持 反对

使用道具 举报

发表于 2014-4-14 11:10:31 | 显示全部楼层
noudle614 发表于 2014-4-11 10:00
终于实现摄像头采集->h264硬编->h264硬解->实时LCD显示了,感谢共享该库!

什么平台硬解
回复 支持 反对

使用道具 举报

发表于 2014-4-14 15:41:18 | 显示全部楼层
noudle614 发表于 2014-4-11 10:00
终于实现摄像头采集->h264硬编->h264硬解->实时LCD显示了,感谢共享该库!

什么平台?A10还是A20
回复 支持 反对

使用道具 举报

发表于 2014-4-15 08:52:46 | 显示全部楼层
carpediem 发表于 2014-4-14 15:41
什么平台?A10还是A20

CubieBoard A10
回复 支持 反对

使用道具 举报

发表于 2014-4-24 17:08:24 | 显示全部楼层
wangchenxicool 发表于 2014-2-27 10:51
楼主你好! client我编译OK了,但执行的时候打开摄像头有问题:
StartStreaming: Unable to start captur ...

请问你之怎样解决这问题的啊?
回复 支持 反对

使用道具 举报

发表于 2014-4-24 17:13:38 | 显示全部楼层
noudle614 发表于 2014-3-18 15:23
将摄像头抓的数据保存为yuv文件,放在YUV viewer中播放是很流畅的。改了下楼主的这个文件,去掉了显示那部 ...

请问怎么将 将摄像头抓的数据保存为yuv文件??
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-4-20 17:44 , Processed in 0.024379 second(s), 13 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部