• Home
  • Raw
  • Download

Lines Matching refs:render

45     struct xvmc_pix_fmt *render = (struct xvmc_pix_fmt*)s->current_picture.f->data[2];  in ff_xvmc_init_block()  local
46 assert(render && render->xvmc_id == AV_XVMC_ID); in ff_xvmc_init_block()
48 s->block = (int16_t (*)[64])(render->data_blocks + render->next_free_data_block_num * 64); in ff_xvmc_init_block()
90 struct xvmc_pix_fmt *last, *next, *render = (struct xvmc_pix_fmt*)s->current_picture.f->data[2]; in ff_xvmc_field_start() local
94 if (!render || render->xvmc_id != AV_XVMC_ID || in ff_xvmc_field_start()
95 !render->data_blocks || !render->mv_blocks || in ff_xvmc_field_start()
96 (unsigned int)render->allocated_mv_blocks > INT_MAX/(64*6) || in ff_xvmc_field_start()
97 (unsigned int)render->allocated_data_blocks > INT_MAX/64 || in ff_xvmc_field_start()
98 !render->p_surface) { in ff_xvmc_field_start()
104 if (render->filled_mv_blocks_num) { in ff_xvmc_field_start()
107 render->filled_mv_blocks_num); in ff_xvmc_field_start()
110 if (render->allocated_mv_blocks < 1 || in ff_xvmc_field_start()
111 render->allocated_data_blocks < render->allocated_mv_blocks*mb_block_count || in ff_xvmc_field_start()
112 render->start_mv_blocks_num >= render->allocated_mv_blocks || in ff_xvmc_field_start()
113 render->next_free_data_block_num > in ff_xvmc_field_start()
114 render->allocated_data_blocks - in ff_xvmc_field_start()
115 mb_block_count*(render->allocated_mv_blocks-render->start_mv_blocks_num)) { in ff_xvmc_field_start()
121 render->picture_structure = s->picture_structure; in ff_xvmc_field_start()
122 render->flags = s->first_field ? 0 : XVMC_SECOND_FIELD; in ff_xvmc_field_start()
123 render->p_future_surface = NULL; in ff_xvmc_field_start()
124 render->p_past_surface = NULL; in ff_xvmc_field_start()
135 render->p_future_surface = next->p_surface; in ff_xvmc_field_start()
140 last = render; // predict second field from the first in ff_xvmc_field_start()
143 render->p_past_surface = last->p_surface; in ff_xvmc_field_start()
159 struct xvmc_pix_fmt *render = (struct xvmc_pix_fmt*)s->current_picture.f->data[2]; in ff_xvmc_field_end() local
160 assert(render); in ff_xvmc_field_end()
162 if (render->filled_mv_blocks_num > 0) in ff_xvmc_field_end()
174 struct xvmc_pix_fmt *render; in ff_xvmc_decode_mb() local
201 render = (struct xvmc_pix_fmt*)s->current_picture.f->data[2]; in ff_xvmc_decode_mb()
202 assert(render); in ff_xvmc_decode_mb()
203 assert(render->xvmc_id == AV_XVMC_ID); in ff_xvmc_decode_mb()
204 assert(render->mv_blocks); in ff_xvmc_decode_mb()
207 mv_block = &render->mv_blocks[render->start_mv_blocks_num + in ff_xvmc_decode_mb()
208 render->filled_mv_blocks_num]; in ff_xvmc_decode_mb()
286 mv_block->index = render->next_free_data_block_num; in ff_xvmc_decode_mb()
305 if (!render->unsigned_intra) in ff_xvmc_decode_mb()
320 if (s->mb_intra && (render->idct || !render->unsigned_intra)) in ff_xvmc_decode_mb()
322 if (!render->idct) { in ff_xvmc_decode_mb()
331 memcpy(&render->data_blocks[render->next_free_data_block_num*64], in ff_xvmc_decode_mb()
334 render->next_free_data_block_num++; in ff_xvmc_decode_mb()
337 render->filled_mv_blocks_num++; in ff_xvmc_decode_mb()
339 assert(render->filled_mv_blocks_num <= render->allocated_mv_blocks); in ff_xvmc_decode_mb()
340 assert(render->next_free_data_block_num <= render->allocated_data_blocks); in ff_xvmc_decode_mb()
346 if (render->filled_mv_blocks_num == render->allocated_mv_blocks) in ff_xvmc_decode_mb()