Lines Matching defs:tokens
72 int *tokens[TM2_NUM_STREAMS];
343 /* check if we have sane number of tokens */
345 av_log(ctx->avctx, AV_LOG_ERROR, "Incorrect number of tokens: %i\n", toks);
349 ret = av_reallocp_array(&ctx->tokens[stream_id], toks, sizeof(int));
363 av_log(ctx->avctx, AV_LOG_ERROR, "Incorrect number of tokens: %i\n", toks);
366 ctx->tokens[stream_id][i] = tm2_get_token(&ctx->gb, &codes);
367 if (stream_id <= TM2_MOT && ctx->tokens[stream_id][i] >= TM2_DELTAS || ctx->tokens[stream_id][i]<0) {
369 ctx->tokens[stream_id][i], stream_id, i);
375 ctx->tokens[stream_id][i] = codes.recode[0];
376 if (stream_id <= TM2_MOT && ctx->tokens[stream_id][i] >= TM2_DELTAS) {
378 ctx->tokens[stream_id][i], stream_id, i);
395 if (ctx->tokens[type][ctx->tok_ptrs[type]] >= TM2_DELTAS) {
396 av_log(ctx->avctx, AV_LOG_ERROR, "token %d is too large\n", ctx->tokens[type][ctx->tok_ptrs[type]]);
399 return ctx->deltas[type][ctx->tokens[type][ctx->tok_ptrs[type]++]];
401 return ctx->tokens[type][ctx->tok_ptrs[type]++];
763 av_log(ctx->avctx,AV_LOG_ERROR,"Got %i tokens for %i blocks\n",ctx->tok_lens[TM2_TYPE],bw*bh);
909 memset(l->tokens[j], 0, sizeof(**l->tokens) * l->tok_lens[j]);
950 l->tokens[i] = NULL;
999 av_free(l->tokens[i]);