VP8编码的结果在谷歌眼镜的灰度图像 [英] VP8 Encoding results in grayscale image on Google Glass

查看:192
本文介绍了VP8编码的结果在谷歌眼镜的灰度图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作申请的是谷歌Glass开发的,但在Android平板电脑上运行的well.It使用VP8编码拍摄的图像传输到远程应用程序。

The application I am working on is developed for Google Glass but runs on Android tablets as well.It uses VP8 encoding to transfer camera images to a remote application.

相机上的preVIEW格式参数设置为ImageFormat.YV12。

The preview format parameter on the camera is set to ImageFormat.YV12.

该VP8 EN codeR被初始化为VPX_IMG_FMT_YV12参数。

The VP8 encoder is initialized with VPX_IMG_FMT_YV12 parameter.

当安装该应用程序的.apk文件,并从玻璃运行时,图像被显示在灰度上的远程应用程序

When the application .apk file is installed and run from the Glass, the image is displayed in gray scale on the remote application.

当安装在片剂或电话相同.apk文件时,图像被显示在适当的颜色

When the same .apk file is installed on a tablet or a phone, the image is displayed in proper colors.

我想知道如果任何人有那里的问题可能在于任何想法。问候。

I am wondering if anyone has any idea on where the problem could lie. Regards.

推荐答案

我终于想通了,发生了什么。

I finally figured out what is happening.

有在谷歌眼镜相机模块的错误。虽然欣然接受YV12请求的图像格式,在preVIEW缓冲区实际上包含了NV21格式的数据。

There is a bug in Google Glass camera module. Although it gladly accepts the requested image format of YV12, the preview buffer actually contains data in NV21 format.

我只好相机preVIEW缓冲区转储到一个文件,并检查每个字节只是为了算出这个:-(。

I had to dump the camera preview buffer into a file and examine each byte just to figure this out:-(.

如果您打算使用YV12格式时,你可能会更好使用NV21格式,现在到这个错误是固定的。

If you intend to use YV12 format, you may be better off using NV21 format for now until this bug is fixed.

这篇关于VP8编码的结果在谷歌眼镜的灰度图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆