Questions tagged [libyuv]

libyuv is an open source project that includes YUV scaling and conversion functionality

libyuv is an open source project that includes YUV scaling and conversion functionality.

  • Scale YUV to prepare content for compression, with point, bilinear or box filter.
  • Converts webcam formats to YUV (I420).
  • Convert YUV to formats for rendering/effects.
  • Rotate by 90 degrees to adjust for mobile devices in portrait mode.
  • Optimized for SSE2/SSSE3 on x86/x64.
  • Optimized for Neon on Arm.

Source: code.google.com (libyuv)

39 questions
1
vote
1 answer

libyuv::NV21ToI420 messes up colors

I am using libyuv to convert NV21 image format to I420: void convert(uint8* input, int width, int height) { int size = width * height * 3/2; uint8* output = new uint8[size]; uint8* src_y = input; int src_stride_y = width; uint8* src_vu =…
Peter
  • 9,657
  • 12
  • 61
  • 124
1
vote
0 answers

Build pjsip for android with video support

Not sure if PJSIP for android support video now(v2.3). I've built openh264v1.0.0 & libyuv(from google code) and install v4l2, sdl2 with apt-get. $ sudo apt-get install libsdl2-dev $ sudo apt-get install v4l-utils $ sudo apt-get install…
Robert
  • 1,538
  • 20
  • 34
1
vote
0 answers

Getting a green screen when encoding and then decoding vp8 streamed video

I am trying to add vp8 encoding and decoding to my streaming project. I am reading in color frames from OpenNI into a color frame buffer using the openni::PIXEL_FORMAT_RGB888 format. Then I am trying to compress each RGB888 frame using vp8 and…
bensch128
  • 63
  • 10
1
vote
1 answer

Libyuv compile meets asm error of unknown register name ‘ymm1’ in ‘asm’

Libyuv compile meets asm error of unknown register name ‘ymm1’ in ‘asm’ I tried to compile libyuv(seem to be the latest) in Ubuntu14. When I proceed to make it, there are asm related errors that stop compiling process. It reports: make -j7 V=1 -f…
yinyz
  • 11
  • 1
1
vote
4 answers

How to convert a kCVPixelFormatType_420YpCbCr8BiPlanarFullRange Buffer to YUV420 using libyuv library in ios?

i have captured video using AVFoundation .i have set (video setting )and get in outputsamplebuffer kCVPixelFormatType_420YpCbCr8BiPlanarFullRange format. But i need YUV420 format for further processing. For that i use libyuv…
user1831635
  • 43
  • 1
  • 6
1
vote
1 answer

Does libyuv have a YUV420ToRGB565 function optimized for NEON?

Does libyuv have a YUV420ToRGB565 function optimized for NEON? From what I see in libyuv sources there's a function I420ToRGB565 but it first converts to ARGB and only then to RGB565 and that last conversion is not NEON-optimized. Am I mistaken?
Alexander Kulyakhtin
  • 45,879
  • 35
  • 103
  • 155
0
votes
0 answers

Android How to split camera stream into several streams with different fps/resolution/water_marks for preview/record/Live Stream/AI

I'm working on a project with Preview/Local Recording/Live Stream/AI features. All those features might be activated/deactivated at any time. and each stream have their own resolution at a certain frame rate with customized water marks. So i'm…
Lee BC
  • 1
  • 2
0
votes
0 answers

What color format should use to encode i420 frame converted by libyuv in mediacodec?

I converted nv21 frame to i420 frame with libyuv, and then encode the frame into a video file with mediacodec, the video looks strange. I use COLOR_FormatYUV420SemiPlanar and COLOR_FormatYUV420Flexible color format. So, what color format should i…
boybeak
  • 267
  • 2
  • 12
0
votes
1 answer

Can't build yuvlib library function by visual stduio in cpp file

I builded and used libyuv in visual studio 2017. I can build libyuv.h and function in c file. but If i change main.c file to main.cpp file then I cant build in cpp file. can anyone help me? i attached source/ refer to following…
0
votes
1 answer

Example usage of a libyuv API MJPGToI420()

I'm trying to use a libyuv API, more specifically MJPGToI420(). I want to first take a jpeg image as input to MJPGToI420(), the signature of which is below: int MJPGToI420(const uint8_t* sample, size_t sample_size, …
picotard
  • 717
  • 8
  • 21
0
votes
1 answer

convert raw video image to I420 for vpx encoder

im trying to feed raw video frames to libyuv to convert UYVY video to I420 but when i use libyuv to convert the frames i only get the to left hand corner of the video im trying to capture from my decklink card. here is the code of the function im…
Matthew
  • 11
  • 3
0
votes
0 answers

H264 decoding using ffmpeg with strange points in the decoded image

I'm trying to decode H264 stream to YUV data using FFmpeg, then convert YUV data to RGB data by LibYUV, finally paint it. But some strange points (dots) appear. How to fix it? Decoded Image av_init_packet(&m_avpkt); int cur_size; uint8_t…
ShaoQing
  • 13
  • 4
0
votes
1 answer

is the audio source for .yuv test video sequences available?

i need the audio file for the yuv test video sequences like foreman.yuv, akiyo.yuv ,etc. none of the yuv sequences online have the audio file. any other yuv sequences with the audio file suitable for encoder analysis also works.
zahraesb
  • 153
  • 6
0
votes
1 answer

C++ Runtime component(Universal Windows) project build error "LINK : fatal error LNK1104: cannot open file 'LIBCMT.lib'"

I create C++ Runtime component(Universal Windows) project which a  reference to libyuv.lib (a google library). After I set the reference and build for x64, and I got an error "LINK : fatal error LNK1104: cannot open file 'LIBCMT.lib'". But In…
Josh Pi
  • 11
  • 3
0
votes
1 answer

How to insert cursor image in YUV(NV12) buffer?

i have captured screen with Intel Capture in NV12(YUV) format. Intel capture does not capture Mouse cursor. So i have to include cursor image in Intel captured yuv buffer. Is it possible to edit(include) cursor image in yuv buffer ? Guide me…
M.Taha
  • 31
  • 3