Find Jobs
Hire Freelancers

C++ flying blind

$50 USD

Закрито
Опублікований almost 11 years ago

$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 yrs ago

Хочете заробити?

Переваги подання заявок на 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
Спосіб оплати верифіковано
На сайті з вер. 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)
Завантажуємо для перегляду
Дозвіл на визначення геолокації надано.
Ваш сеанс входу закінчився, і сеанс було закрито. Будь ласка, увійдіть знову.