Lines Matching defs:hd_buf
72 uint8_t *hd_buf[2]; ///< allocated buffers to concatenate hd audio frames
131 tmp = av_fast_realloc(ctx->hd_buf[0], &ctx->hd_buf_size, ctx->hd_buf_filled + pkt->size);
134 ctx->hd_buf[0] = tmp;
136 memcpy(&ctx->hd_buf[0][ctx->hd_buf_filled], pkt->data, pkt->size);
145 ctx->out_buf = ctx->hd_buf[0];
238 av_fast_malloc(&ctx->hd_buf[0], &ctx->hd_buf_size, ctx->out_bytes);
239 if (!ctx->hd_buf[0])
242 ctx->out_buf = ctx->hd_buf[0];
244 memcpy(ctx->hd_buf[0], dtshd_start_code, sizeof(dtshd_start_code));
245 AV_WB16(ctx->hd_buf[0] + sizeof(dtshd_start_code), pkt_size);
246 memcpy(ctx->hd_buf[0] + sizeof(dtshd_start_code) + 2, pkt->data, pkt_size);
424 uint8_t *hd_buf = ctx->hd_buf[ctx->hd_buf_idx];
496 memcpy(hd_buf + mat_codes[next_code_idx].pos,
506 ctx->out_buf = hd_buf;
508 hd_buf = ctx->hd_buf[ctx->hd_buf_idx];
531 memset(hd_buf + ctx->hd_buf_filled, 0, padding_to_insert);
543 memcpy(hd_buf + ctx->hd_buf_filled, dataptr, data_to_insert);
593 for (int i = 0; i < FF_ARRAY_ELEMS(ctx->hd_buf); i++) {
594 ctx->hd_buf[i] = av_malloc(MAT_FRAME_SIZE);
595 if (!ctx->hd_buf[i])
611 for (int i = 0; i < FF_ARRAY_ELEMS(ctx->hd_buf); i++)
612 av_freep(&ctx->hd_buf[i]);