Lines Matching refs:hd_buf
71 uint8_t *hd_buf; ///< allocated buffer to concatenate hd audio frames
123 ctx->hd_buf = av_fast_realloc(ctx->hd_buf, &ctx->hd_buf_size, ctx->hd_buf_filled + pkt->size);
124 if (!ctx->hd_buf)
127 memcpy(&ctx->hd_buf[ctx->hd_buf_filled], pkt->data, pkt->size);
136 ctx->out_buf = ctx->hd_buf;
229 av_fast_malloc(&ctx->hd_buf, &ctx->hd_buf_size, ctx->out_bytes);
230 if (!ctx->hd_buf)
233 ctx->out_buf = ctx->hd_buf;
235 memcpy(ctx->hd_buf, dtshd_start_code, sizeof(dtshd_start_code));
236 AV_WB16(ctx->hd_buf + sizeof(dtshd_start_code), pkt_size);
237 memcpy(ctx->hd_buf + sizeof(dtshd_start_code) + 2, pkt->data, pkt_size);
405 memcpy(ctx->hd_buf, mat_start_code, sizeof(mat_start_code));
410 memcpy(&ctx->hd_buf[12 * TRUEHD_FRAME_OFFSET - BURST_HEADER_SIZE + MAT_MIDDLE_CODE_OFFSET],
422 memcpy(&ctx->hd_buf[ctx->hd_buf_count * TRUEHD_FRAME_OFFSET - BURST_HEADER_SIZE + mat_code_length],
424 memset(&ctx->hd_buf[ctx->hd_buf_count * TRUEHD_FRAME_OFFSET - BURST_HEADER_SIZE + mat_code_length + pkt->size],
431 memcpy(&ctx->hd_buf[MAT_FRAME_SIZE - sizeof(mat_end_code)], mat_end_code, sizeof(mat_end_code));
436 ctx->out_buf = ctx->hd_buf;
466 ctx->hd_buf = av_malloc(MAT_FRAME_SIZE);
467 if (!ctx->hd_buf)
481 av_freep(&ctx->hd_buf);