Home
last modified time | relevance | path

Searched refs:img_height (Results 1 – 17 of 17) sorted by relevance

/third_party/ffmpeg/libavformat/
Dmtv.c47 unsigned int img_height; member
117 mtv->img_height = avio_rl16(pb); in mtv_read_header()
131 if (!mtv->img_width && mtv->img_height > 0 && mtv->img_bpp >= 8) in mtv_read_header()
133 / mtv->img_height; in mtv_read_header()
135 if (!mtv->img_height && mtv->img_width > 0 && mtv->img_bpp >= 8) in mtv_read_header()
136 mtv->img_height=mtv->img_segment_size / (mtv->img_bpp>>3) in mtv_read_header()
139 if(!mtv->img_height || !mtv->img_width || !mtv->img_segment_size){ in mtv_read_header()
172 st->codecpar->height = mtv->img_height; in mtv_read_header()
/third_party/mindspore/mindspore/dataset/vision/
Dpy_transforms_util.py290 img_width, img_height = img.size
291 aspect_ratio = img_width / img_height # maintain the aspect ratio
292 if (img_width <= img_height and img_width == size) or \
293 (img_height <= img_width and img_height == size):
295 if img_width < img_height:
323 img_width, img_height = img.size
325 crop_top = int(round((img_height - crop_height) / 2.))
361 img_width, img_height = img.size
362 img_area = img_width * img_height
374 if 0 < width <= img_width and 0 < height <= img_height:
[all …]
/third_party/mesa3d/src/mesa/drivers/dri/i915/
Dintel_tex_layout.c160 GLuint img_height; in i945_miptree_layout_2d() local
165 img_height = ALIGN(height, mt->align_h); in i945_miptree_layout_2d()
167 img_height /= mt->align_h; in i945_miptree_layout_2d()
172 mt->total_height = MAX2(mt->total_height, y + img_height); in i945_miptree_layout_2d()
180 y += img_height; in i945_miptree_layout_2d()
Di915_tex_layout.c204 GLuint img_height; in i915_miptree_layout_2d() local
216 img_height = ALIGN(height, 4) / 4; in i915_miptree_layout_2d()
218 img_height = ALIGN(height, 2); in i915_miptree_layout_2d()
220 mt->total_height += img_height; in i915_miptree_layout_2d()
/third_party/mindspore/tests/st/fl/cross_silo_faster_rcnn/src/
Ddataset.py163 …img_data, scale_factor = mmcv.imrescale(img, (config.img_width, config.img_height), return_scale=T…
164 if img_data.shape[0] > config.img_height:
165 …img_data, scale_factor2 = mmcv.imrescale(img_data, (config.img_height, config.img_height), return_…
172 pad_h = config.img_height - img_data.shape[0]
176 pad_img_data = np.zeros((config.img_height, config.img_width, 3)).astype(img_data.dtype)
179 img_shape = (config.img_height, config.img_width, 1.0)
186 …img_data, scale_factor = mmcv.imrescale(img, (config.img_width, config.img_height), return_scale=T…
187 if img_data.shape[0] > config.img_height:
188 …img_data, scale_factor2 = mmcv.imrescale(img_data, (config.img_height, config.img_height), return_…
191 pad_h = config.img_height - img_data.shape[0]
[all …]
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/soft_dvpp/
Dsoft_dvpp_decode_random_crop_resize_jpeg_op.cc43 int img_height = 0; in GetCropInfo() local
44 RETURN_IF_NOT_OK(GetJpegImageInfo(input, &img_width, &img_height)); in GetCropInfo()
52 …RETURN_IF_NOT_OK(random_crop_resize->GetCropBox(img_height, img_width, &x, &y, &crop_heigh, &crop_… in GetCropInfo()
/third_party/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_blit.c241 static inline void calc_tex_coords(float img_width, float img_height, in calc_tex_coords() argument
248 buf[2] = y / img_height; in calc_tex_coords()
249 buf[3] = buf[2] + reg_height / img_height; in calc_tex_coords()
/third_party/mesa3d/src/mesa/drivers/dri/r200/
Dr200_blit.c392 static inline void calc_tex_coords(float img_width, float img_height, argument
399 buf[2] = y / img_height;
400 buf[3] = buf[2] + reg_height / img_height;
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/
Dlite_image_utils.h78 Status GetJpegImageInfo(const std::shared_ptr<Tensor> &input, int *img_width, int *img_height);
Dimage_utils.h335 Status GetJpegImageInfo(const std::shared_ptr<Tensor> &input, int *img_width, int *img_height);
Dlite_image_utils.cc309 Status GetJpegImageInfo(const std::shared_ptr<Tensor> &input, int *img_width, int *img_height) { in GetJpegImageInfo() argument
323 *img_height = cinfo.output_height; in GetJpegImageInfo()
Dimage_utils.cc1449 Status GetJpegImageInfo(const std::shared_ptr<Tensor> &input, int *img_width, int *img_height) { in GetJpegImageInfo() argument
1463 *img_height = cinfo.output_height; in GetJpegImageInfo()
/third_party/mesa3d/src/mapi/glapi/gen/
Dgl_API.dtd58 img_height NMTOKEN #IMPLIED attribute
109 img_width / img_height / img_depth / img_extent - name of parameters
/third_party/mindspore/tests/st/fl/cross_silo_faster_rcnn/src/FasterRcnn/
Dproposal_generator.py88 self.decode = P.BoundingBoxDecode(max_shape=(cfg.img_height, cfg.img_width), \
Dfaster_rcnn_resnet50v1.py119 …self.decode = P.BoundingBoxDecode(max_shape=(config.img_height, config.img_width), means=self.targ…
Dfaster_rcnn_resnet.py118 …self.decode = P.BoundingBoxDecode(max_shape=(config.img_height, config.img_width), means=self.targ…
/third_party/mindspore/third_party/proto/caffe/
Dcaffe.proto1504 // By default, we calculate img_height, img_width, step_x, step_y based on