Find Jobs
Hire Freelancers

C++ flying blind

$50 USD

已关闭
已发布将近 11 年前

$50 USD

货到付款
Hello! I have a C++ code here that deals with Opus. This code is surely NOT correct. I am looking for somebody who can guess what the correct code should be. Please only place a bid if you have any idea of what the correct code should be. I think you also need to read a bit of the Opus documentation. To make it clear again: My code is most probally VERY VERY WRONG. I want to feed encoded bytes and have shorts returned. If you can do this crazy task, you can be sure to get a greating rating as well. Thank you very much. int FrameByteCount(int uFrameCount) { int iInputChannels=1; int iBitrate = 16; int iBytesPerSample = (iBitrate / 8) * iInputChannels; return uFrameCount * iBytesPerSample; } void COpusCodec::Decode(unsigned char* uEncoded, short* uDecoded, unsigned int uLen) { int segmentFrames = 960; int bytesPerSegment = FrameByteCount(segmentFrames); int byteCap = bytesPerSegment; //this is not C++ code, and I don't know if it is needed. int segmentCount = (int)[login to view URL]((decimal)[login to view URL]() / byteCap); // we can not decode everything in one rush. We need to split it into packets and decode each packet // but I am not sure if I do it correctly. Most probally not. for (int i = 0; i < segmentCount; i++) { unsigned char segment[1920]; int iCount=0; for (int j = 0; j < 1920; j++) { segment[j] = uEncoded[(i*byteCap) + j]; iCount++; } unsigned char decoded[1920];//most probally wrong int len; int frame_size=opus_decode(dec, segment, len, decoded, max_size, 0); //now we have to put this part of the decoded data into the final "decoded" shorts somehow } }
项目 ID: 4519776

关于此项目

3提案
远程项目
活跃11 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
3威客以平均价$53 USD来参与此工作竞价
用户头像
I am professional developer and I can help you in this task. Looking forward to hear from you.
$55 USD 在3天之内
0.0 (1条评论)
0.0
0.0
用户头像
Ready to start
$50 USD 在5天之内
0.0 (0条评论)
0.0
0.0
用户头像
Hi. It's simple.
$53 USD 在3天之内
0.0 (0条评论)
0.0
0.0
用户头像
I am something of an audio/video codec freak. I can solve this for you.
$50 USD 在3天之内
0.0 (0条评论)
0.0
0.0

关于客户

GERMANY的国旗
Darmstadt, Germany
5.0
642
付款方式已验证
会员自9月 22, 2009起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。