Home | History | Annotate | Download | only in V4LCameraAdapter

Lines Matching refs:height

65 static void convertYUV422ToNV12Tiler(unsigned char *src, unsigned char *dest, int width, int height );
66 static void convertYUV422ToNV12(unsigned char *src, unsigned char *dest, int width, int height );
205 status_t V4LCameraAdapter::v4lSetFormat (int width, int height, uint32_t pix_format) {
215 mVideoInfo->height = height;
216 mVideoInfo->framesizeIn = (width * height << 1);
221 mVideoInfo->format.fmt.pix.height = height;
230 CAMHAL_LOGDB("VIDIOC_G_FMT : WxH = %dx%d", mVideoInfo->format.fmt.pix.width, mVideoInfo->format.fmt.pix.height);
238 int height = 0;
242 mParams.getPreviewSize(&width, &height);
244 ret = v4lSetFormat (width, height, DEFAULT_PIXEL_FORMAT);
384 int width, height;
390 params.getPreviewSize(&width, &height);
391 CAMHAL_LOGDB("Width * Height %d x %d format 0x%x", width, height, DEFAULT_PIXEL_FORMAT);
393 ret = v4lSetFormat( width, height, DEFAULT_PIXEL_FORMAT);
536 int height = 0;
564 mParams.getPictureSize(&width, &height);
565 CAMHAL_LOGDB("Image Capture Size WxH = %dx%d",width,height);
566 yuv422i_buff_size = width * height * 2;
568 ret = v4lSetFormat (width, height, DEFAULT_PIXEL_FORMAT);
640 frame.mHeight = height;
806 status_t V4LCameraAdapter::getFrameSize(size_t &width, size_t &height)
813 ( int * ) &height);
829 int height = 0;
834 mParams.getPictureSize( &width, &height );
835 frame.mLength = width * height * bytesPerPixel;
837 frame.mHeight = height;
951 static void convertYUV422ToNV12Tiler(unsigned char *src, unsigned char *dest, int width, int height ) {
956 unsigned char *dst_uv = dest + ( height * stride);
966 for(int i = 0; i < height; i++) {
977 for(int i = 0; i < height/2; i++) {
988 for(int i = 0; i < height; i++) {
1027 LOGD("PPM: YUV422i to NV12 Conversion(%d x %d): %llu us ( %llu ms )", width, height,
1037 static void convertYUV422ToNV12(unsigned char *src, unsigned char *dest, int width, int height ) {
1041 unsigned char *dst_uv = dest + (width * height);
1046 for(int i = 0; i < height; i++) {
1056 for(int i = 0; i < height/2; i++) {
1066 for(int i = 0; i < height; i++) {
1132 int width, height;
1139 mParams.getPreviewSize(&width, &height);
1163 //y_uv[1] = (void*) (lframe->mYuv[0] + height*stride);
1164 convertYUV422ToNV12Tiler ( (unsigned char*)fp, (unsigned char*)y_uv[0], width, height);
1168 unsigned char* nv12_buff = (unsigned char*) malloc(width*height*3/2);
1170 convertYUV422ToNV12 ( (unsigned char*)fp, nv12_buff, width, height);
1171 saveFile( nv12_buff, ((width*height)*3/2) );
1177 frame.mLength = width*height*3/2;