dilagurung / libyuv

Automatically exported from code.google.com/p/libyuv
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

How to use functions like I420ToBGRA ? #249

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Include <libyuv.h>
2. Use libyuv::I420ToBGRA
3. Function not found

What is the expected output? What do you see instead?
I want to use functions like I420ToBGRA. But this function is not found

What version of the product are you using? On what operating system?
iPhone

Please provide any additional information below.
I can use some functions like NV12ToI420, ... but I can't use some like 
I420ToBGRA. I see this functions exist, as in this 
https://code.google.com/p/webrtc/source/browse/trunk/src/common_video/libyuv/lib
yuv.cc?r=1151

I've included <libyuv.h> but the XCode says that this function does not exist

Original issue reported on code.google.com by onmyway...@gmail.com on 17 Jun 2013 at 1:27

GoogleCodeExporter commented 9 years ago
Can you provide the exact error message?

I see the function prototype in 
https://code.google.com/p/libyuv/source/browse/trunk/include/libyuv/convert_from
.h
and the function in
https://code.google.com/p/libyuv/source/browse/trunk/source/convert_from.cc

Original comment by fbarch...@google.com on 17 Jun 2013 at 5:31

GoogleCodeExporter commented 9 years ago
Also you likely want I420ToARGB, which is the most common 32 bit format.
BGRA is a big endian format, not commonly used; Most common occurrence is OSX 
format kCMPixelFormat_32ARGB

Original comment by fbarch...@google.com on 17 Jun 2013 at 5:37

GoogleCodeExporter commented 9 years ago
So I must include <convert_from.h> as well?

Original comment by onmyway...@gmail.com on 18 Jun 2013 at 2:20

GoogleCodeExporter commented 9 years ago
no, libyuv.h includes convert_from.h
Is the error that you can't find the header, a compile error, or a link error?
If you're using xcode natively, make sure source/convert_from.cc is in your 
project.

Original comment by fbarch...@chromium.org on 18 Jun 2013 at 5:16

GoogleCodeExporter commented 9 years ago
Any updates on what the build issues are?

Original comment by fbarch...@chromium.org on 23 Jul 2013 at 9:33

GoogleCodeExporter commented 9 years ago
Closing due to lack of response.  If you still have questions, email or post an 
issue.

Original comment by fbarch...@google.com on 5 Aug 2013 at 9:38