Home | History | Annotate | Download | only in examples

Lines Matching refs:map

29 // An ROI map is set on frame 22. If the width of the image in macroblocks
34 // An active map is set on frame 33. If the width of the image in macroblocks
38 // The active map is cleared on frame 44.
92 die_codec(codec, "Failed to set ROI map");
100 vpx_active_map_t map = {0};
102 map.rows = (cfg->g_h + 15) / 16;
103 map.cols = (cfg->g_w + 15) / 16;
105 map.active_map = (uint8_t *)malloc(map.rows * map.cols);
106 for (i = 0; i < map.rows * map.cols; ++i)
107 map.active_map[i] = i % 2;
109 if (vpx_codec_control(codec, VP8E_SET_ACTIVEMAP, &map))
110 die_codec(codec, "Failed to set active map");
112 free(map.active_map);
117 vpx_active_map_t map = {0};
119 map.rows = (cfg->g_h + 15) / 16;
120 map.cols = (cfg->g_w + 15) / 16;
121 map.active_map = NULL;
123 if (vpx_codec_control(codec, VP8E_SET_ACTIVEMAP, &map))
124 die_codec(codec, "Failed to set active map");