/cts/tests/tests/media/libmediandkjni/ |
D | codec-utils-jni.cpp | 167 NativeImage *img = new NativeImage; in getNativeImage() local 168 img->format = env->CallIntMethod(image, gFields.methodFormat); in getNativeImage() 169 img->width = env->CallIntMethod(image, gFields.methodWidth); in getNativeImage() 170 img->height = env->CallIntMethod(image, gFields.methodHeight); in getNativeImage() 171 img->timestamp = env->CallLongMethod(image, gFields.methodTimestamp); in getNativeImage() 179 img->crop.left = env->GetIntField(area, gFields.fieldLeft); in getNativeImage() 180 img->crop.top = env->GetIntField(area, gFields.fieldTop); in getNativeImage() 181 img->crop.right = env->GetIntField(area, gFields.fieldRight); in getNativeImage() 182 img->crop.bottom = env->GetIntField(area, gFields.fieldBottom); in getNativeImage() 183 if (img->crop.right == 0 && img->crop.bottom == 0) { in getNativeImage() [all …]
|
/cts/apps/CameraITS/pymodules/its/ |
D | image.py | 104 def unpack_raw10_image(img): argument 116 if img.shape[1] % 5 != 0: 118 w = img.shape[1]*4/5 119 h = img.shape[0] 121 msbs = numpy.delete(img, numpy.s_[4::5], 1) 126 lsbs = img[::, 4::5].reshape(h,w/4) 154 def unpack_raw12_image(img): argument 166 if img.shape[1] % 3 != 0: 168 w = img.shape[1]*2/3 169 h = img.shape[0] [all …]
|
/cts/apps/CameraITS/tests/scene1/ |
D | test_yuv_jpeg_all.py | 49 img = its.image.convert_capture_to_rgb_image(cap) 50 its.image.write_image(img, "%s_yuv_w%d_h%d.jpg"%( 52 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1) 62 img = its.image.decompress_jpeg_to_rgb_image(cap["data"]) 63 its.image.write_image(img, "%s_jpg_w%d_h%d.jpg"%( 65 assert(img.shape[0] == size[1]) 66 assert(img.shape[1] == size[0]) 67 assert(img.shape[2] == 3) 69 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
|
D | test_crop_region_raw.py | 87 img = its.image.convert_capture_to_rgb_image(cap, props=props) 88 its.image.write_image(img, "%s_%s.jpg" % (NAME, s)) 89 imgs[s] = img 115 for s,img in imgs.iteritems(): 116 h,w,ch = img.shape 118 img = img.reshape(h/2,2,w/2,2,3).mean(3).mean(1) 119 img = img.reshape(h/2,w/2,3) 120 imgs2[s] = img 132 for s,img in imgs2.iteritems(): 133 its.image.write_image(img, "%s_comp_%s.jpg" % (NAME, s))
|
D | test_yuv_plus_jpeg.py | 44 img = its.image.convert_capture_to_rgb_image(cap_yuv, True) 45 its.image.write_image(img, "%s_yuv.jpg" % (NAME)) 46 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1) 49 img = its.image.convert_capture_to_rgb_image(cap_jpeg, True) 50 its.image.write_image(img, "%s_jpeg.jpg" % (NAME)) 51 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
|
D | test_yuv_plus_raw12.py | 44 img = its.image.convert_capture_to_rgb_image(cap_yuv) 45 its.image.write_image(img, "%s_yuv.jpg" % (NAME), True) 46 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1) 51 img = its.image.convert_capture_to_rgb_image(cap_raw, props=props) 52 its.image.write_image(img, "%s_raw.jpg" % (NAME), True) 53 tile = its.image.get_image_patch(img, 0.475, 0.475, 0.05, 0.05)
|
D | test_yuv_plus_raw10.py | 44 img = its.image.convert_capture_to_rgb_image(cap_yuv) 45 its.image.write_image(img, "%s_yuv.jpg" % (NAME), True) 46 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1) 51 img = its.image.convert_capture_to_rgb_image(cap_raw, props=props) 52 its.image.write_image(img, "%s_raw.jpg" % (NAME), True) 53 tile = its.image.get_image_patch(img, 0.475, 0.475, 0.05, 0.05)
|
D | test_yuv_plus_raw.py | 43 img = its.image.convert_capture_to_rgb_image(cap_yuv) 44 its.image.write_image(img, "%s_yuv.jpg" % (NAME), True) 45 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1) 50 img = its.image.convert_capture_to_rgb_image(cap_raw, props=props) 51 its.image.write_image(img, "%s_raw.jpg" % (NAME), True) 52 tile = its.image.get_image_patch(img, 0.475, 0.475, 0.05, 0.05)
|
D | test_jpeg.py | 42 img = its.image.convert_capture_to_rgb_image(cap) 43 its.image.write_image(img, "%s_fmt=yuv.jpg" % (NAME)) 44 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1) 51 img = its.image.decompress_jpeg_to_rgb_image(cap["data"]) 52 its.image.write_image(img, "%s_fmt=jpg.jpg" % (NAME)) 53 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
|
D | test_tonemap_sequence.py | 46 img = its.image.convert_capture_to_rgb_image(cap) 47 its.image.write_image(img, "%s_i=%d.jpg" % (NAME, i)) 48 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1) 55 img = its.image.convert_capture_to_rgb_image(cap) 56 its.image.write_image(img, "%s_i=%d.jpg" % (NAME, i)) 57 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
|
D | test_black_white.py | 47 img = its.image.convert_capture_to_rgb_image(cap) 48 its.image.write_image(img, "%s_black.jpg" % (NAME)) 49 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1) 62 img = its.image.convert_capture_to_rgb_image(cap) 63 its.image.write_image(img, "%s_white.jpg" % (NAME)) 64 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
|
D | test_param_tonemap_mode.py | 64 img = its.image.convert_capture_to_rgb_image(cap) 66 img, "%s_n=%d.jpg" %(NAME, n)) 67 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1) 89 img = its.image.convert_capture_to_rgb_image(cap) 91 img, "%s_size=%02d.jpg" %(NAME, size)) 92 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
|
D | test_reprocess_noise_reduction.py | 77 img = its.image.decompress_jpeg_to_rgb_image(cap["data"]) 78 its.image.write_image(img, "%s_low_gain_fmt=jpg.jpg" % (NAME)) 79 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1) 99 img = its.image.decompress_jpeg_to_rgb_image(cap["data"]) 101 img, "%s_high_gain_nr=%d_fmt=jpg.jpg" % (NAME, nr_mode)) 102 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
|
D | test_linearity.py | 74 img = its.image.convert_capture_to_rgb_image(cap) 76 img, "%s_sens=%04d.jpg" % (NAME, sens)) 77 img = its.image.apply_lut_to_image(img, inv_gamma_lut[1::2] * LM1) 78 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
|
D | test_param_flash_mode.py | 49 img = its.image.convert_capture_to_rgb_image(cap) 50 its.image.write_image(img, "%s_mode=%d.jpg" % (NAME, f)) 51 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
|
D | test_locked_burst.py | 59 img = its.image.convert_capture_to_rgb_image(cap) 60 its.image.write_image(img, "%s_frame%d.jpg"%(NAME,i)) 61 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
|
D | test_param_exposure_time.py | 44 img = its.image.convert_capture_to_rgb_image(cap) 46 img, "%s_frame%d.jpg" % (NAME, i)) 47 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
|
D | test_param_sensitivity.py | 50 img = its.image.convert_capture_to_rgb_image(cap) 52 img, "%s_iso=%04d.jpg" % (NAME, s)) 53 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
|
D | test_yuv_plus_dng.py | 36 img = its.image.convert_capture_to_rgb_image(cap_yuv) 37 its.image.write_image(img, "%s.jpg" % (NAME))
|
D | test_param_noise_reduction.py | 64 img = planes[j] 65 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1) 89 img = planes[j] 90 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
|
D | test_param_color_correction.py | 74 img = its.image.convert_capture_to_rgb_image(cap) 75 its.image.write_image(img, "%s_req=%d.jpg" % (NAME, i)) 76 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
|
/cts/apps/CameraITS/tools/ |
D | convert_yuv_to_jpg.py | 32 img = its.image.load_yuv420_to_rgb_image(fname, w,h, layout=layout) 33 its.image.write_image(img, fname.replace(".yuv",".jpg"), False)
|
/cts/apps/CameraITS/tests/inprog/ |
D | test_test_patterns.py | 36 img = its.image.convert_capture_to_rgb_image(caps[1]) 37 its.image.write_image(img, "%s_pattern=%d.jpg" % (NAME, i))
|
D | test_param_edge_mode.py | 43 img = its.image.convert_capture_to_rgb_image(cap) 44 its.image.write_image(img, "%s_mode=%d.jpg" % (NAME, e))
|
D | test_blc_lsc.py | 75 img = its.image.convert_capture_to_rgb_image(cap) 76 its.image.write_image(img, "%s_i=%d.jpg"%(NAME, i)) 78 tile_center = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1) 84 tile_corner = its.image.get_image_patch(img, 0.0, 0.0, 0.1, 0.1)
|