Lines Matching defs:hdf
208 static int read_av3a_frame_header(AVS3AHeaderInfo *hdf, const uint8_t *buf, const int32_t byte_size)
417 hdf->codec_id = codec_id;
418 hdf->sampling_rate_index = samping_rate_index;
419 hdf->sampling_rate = avs3_samplingrate_table[samping_rate_index];
420 hdf->bitdepth = bitdepth;
422 hdf->nn_type = nn_type;
423 hdf->content_type = content_type;
425 if (hdf->content_type == 0) {
426 hdf->channel_num_index = num_chan_index;
427 hdf->channels = channels;
428 hdf->objects = 0;
429 hdf->total_channels = channels;
430 hdf->channel_layout = channel_layout;
431 } else if (hdf->content_type == 1) {
432 hdf->objects = objects;
433 hdf->channels = 0;
434 hdf->total_channels = objects;
435 } else if (hdf->content_type == 2) {
436 hdf->channel_num_index = num_chan_index;
437 hdf->channels = channels;
438 hdf->objects = objects;
439 hdf->total_channels = channels + objects;
440 hdf->channel_layout = channel_layout;
441 } else if (hdf->content_type == 3) {
442 hdf->hoa_order = hoa_order;
443 hdf->channels = channels;
444 hdf->total_channels = channels;
449 hdf->total_bitrate = total_bitrate;
450 hdf->resolution = resolution;
451 hdf->resolution_index = resolution_index;
460 AVS3AHeaderInfo hdf;
469 int32_t ret = read_av3a_frame_header(&hdf, header, MAX_NBYTES_FRAME_HEADER);
474 avctx->sample_rate = hdf.sampling_rate;
475 avctx->bit_rate = hdf.total_bitrate;
476 avctx->channels = hdf.total_channels;
477 avctx->channel_layout = hdf.channel_layout;
479 s->format = hdf.bitdepth;