FFmpeg
|
#include "config.h"
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include "libavutil/error.h"
#include "libavutil/mem.h"
#include "adts_header.h"
#include "adts_parser.h"
Go to the source code of this file.
Functions | |
int | av_adts_header_parse (const uint8_t *buf, uint32_t *samples, uint8_t *frames) |
Extract the number of samples and frames from AAC data. More... | |
int | avpriv_adts_header_parse (AACADTSHeaderInfo **phdr, const uint8_t *buf, size_t size) |
Parse the ADTS frame header contained in the buffer, which is the first 54 bits. More... | |
int av_adts_header_parse | ( | const uint8_t * | buf, |
uint32_t * | samples, | ||
uint8_t * | frames | ||
) |
Extract the number of samples and frames from AAC data.
[in] | buf | pointer to AAC data buffer |
[out] | samples | Pointer to where number of samples is written |
[out] | frames | Pointer to where number of frames is written |
Definition at line 30 of file adts_parser.c.
Referenced by spdif_get_offset_and_codec(), and spdif_header_aac().
int avpriv_adts_header_parse | ( | AACADTSHeaderInfo ** | phdr, |
const uint8_t * | buf, | ||
size_t | size | ||
) |
Parse the ADTS frame header contained in the buffer, which is the first 54 bits.
[in] | buf | Pointer to buffer containing the first 54 bits of the frame. |
[in] | size | Size of buffer containing the first 54 bits of the frame. |
[out] | phdr | Pointer to pointer to struct AACADTSHeaderInfo for which memory is allocated and header info is written into it. After using the header information, the allocated memory must be freed by using av_free. |
Definition at line 50 of file adts_parser.c.
Referenced by get_next_adts_frame().