Home
last modified time | relevance | path

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

/third_party/ffmpeg/libavcodec/
Dlibvpxenc.c1364 vpx_roi_map_t *roi_map, int block_size, int segment_cnt) in set_roi_map() argument
1384 memset(roi_map, 0, sizeof(*roi_map)); in set_roi_map()
1428 roi_map->delta_q[segment_id] = delta_q; in set_roi_map()
1433 roi_map->rows = (frame_height + block_size - 1) / block_size; in set_roi_map()
1434 roi_map->cols = (frame_width + block_size - 1) / block_size; in set_roi_map()
1435 roi_map->roi_map = av_mallocz_array(roi_map->rows * roi_map->cols, sizeof(*roi_map->roi_map)); in set_roi_map()
1436 if (!roi_map->roi_map) { in set_roi_map()
1451 starty = av_clip(roi->top / block_size, 0, roi_map->rows); in set_roi_map()
1452 endy = av_clip((roi->bottom + block_size - 1) / block_size, 0, roi_map->rows); in set_roi_map()
1453 startx = av_clip(roi->left / block_size, 0, roi_map->cols); in set_roi_map()
[all …]