Home
last modified time | relevance | path

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

/external/libvpx/libvpx/test/
Dset_roi.cc57 unsigned char *roi_map = in TEST() local
59 memset(&roi_map[mbs >> 2], 1, (mbs >> 2)); in TEST()
60 memset(&roi_map[mbs >> 1], 2, (mbs >> 2)); in TEST()
61 memset(&roi_map[mbs - (mbs >> 2)], 3, (mbs >> 2)); in TEST()
65 vp8_set_roimap(&cpi, roi_map, cpi.common.mb_rows, cpi.common.mb_cols, in TEST()
73 const int mapcompare = memcmp(roi_map, cpi.segmentation_map, mbs); in TEST()
132 vp8_set_roimap(&cpi, roi_map, cpi.common.mb_rows, cpi.common.mb_cols, in TEST()
141 vp8_set_roimap(&cpi, roi_map, cpi.common.mb_rows, cpi.common.mb_cols, in TEST()
151 vp8_set_roimap(&cpi, roi_map, cpi.common.mb_rows + 1, in TEST()
156 vp8_set_roimap(&cpi, roi_map, cpi.common.mb_rows, in TEST()
[all …]
Dvp8_datarate_test.cc367 roi_.roi_map = in TEST_P()
368 (uint8_t *)calloc(roi_.rows * roi_.cols, sizeof(*roi_.roi_map)); in TEST_P()
373 roi_.roi_map[i * roi_.cols + j] = 1; in TEST_P()
385 free(roi_.roi_map); in TEST_P()
Dvp9_datarate_test.cc696 roi_.roi_map = reinterpret_cast<uint8_t *>( in TEST_P()
697 calloc(roi_.rows * roi_.cols, sizeof(*roi_.roi_map))); in TEST_P()
698 ASSERT_TRUE(roi_.roi_map != NULL); in TEST_P()
704 roi_.roi_map[i * roi_.cols + j] = 1; in TEST_P()
716 free(roi_.roi_map); in TEST_P()
/external/libvpx/libvpx/examples/
Dset_maps.c87 roi.roi_map = (uint8_t *)malloc(roi.rows * roi.cols); in set_roi_map()
88 for (i = 0; i < roi.rows * roi.cols; ++i) roi.roi_map[i] = i % 4; in set_roi_map()
93 free(roi.roi_map); in set_roi_map()
Dvpx_temporal_svc_encoder.c232 roi->roi_map = in set_roi_map()
233 (uint8_t *)calloc(roi->rows * roi->cols, sizeof(*roi->roi_map)); in set_roi_map()
238 roi->roi_map[i * roi->cols + j] = 1; in set_roi_map()
979 free(roi.roi_map); in main()
/external/libvpx/libvpx/vpx/
Dvp8cx.h730 unsigned char *roi_map; member
/external/libaom/libaom/aom/
Daomcx.h1290 unsigned char *roi_map; member
/external/libvpx/libvpx/vp9/encoder/
Dvp9_encoder.c603 memcpy(cpi->segmentation_map, roi->roi_map, (cm->mi_rows * cm->mi_cols)); in apply_roi_map()
725 if (roi->roi_map) { in vp9_set_roi_map()
726 vpx_free(roi->roi_map); in vp9_set_roi_map()
727 roi->roi_map = NULL; in vp9_set_roi_map()
729 CHECK_MEM_ERROR(cm, roi->roi_map, vpx_malloc(rows * cols)); in vp9_set_roi_map()
732 memcpy(roi->roi_map, map, rows * cols); in vp9_set_roi_map()
1012 vpx_free(cpi->roi.roi_map); in dealloc_compressor_data()
1013 cpi->roi.roi_map = NULL; in dealloc_compressor_data()
/external/libvpx/libvpx/vp8/
Dvp8_cx_iface.c1163 if (!vp8_set_roimap(ctx->cpi, roi->roi_map, roi->rows, roi->cols, in vp8e_set_roi_map()
/external/libvpx/libvpx/vp9/
Dvp9_cx_iface.c1442 if (!vp9_set_roi_map(ctx->cpi, roi->roi_map, roi->rows, roi->cols, in ctrl_set_roi_map()