24 #ifndef AVCODEC_INTERNAL_H
25 #define AVCODEC_INTERNAL_H
33 #define FF_SANE_NB_CHANNELS 128U
65 #if FF_API_OLD_DECODE_AUDIO
117 #define FF_MAX_EXTRADATA_SIZE ((1 << 28) - FF_INPUT_BUFFER_PADDING_SIZE)
This structure describes decoded (raw) audio or video data.
int avpriv_unlock_avformat(void)
enum AVPixelFormat pix_fmt
#define AV_NUM_DATA_POINTERS
int buffer_count
internal buffer count used by default get/release/reget_buffer().
InternalBuffer * buffer
internal buffers used by default get/release/reget_buffer().
AVRational time_base
This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented...
uint8_t * base[AV_NUM_DATA_POINTERS]
struct InternalBuffer InternalBuffer
int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq)
Rescale a 64-bit integer by 2 rational numbers.
AVCodecID
Identify the syntax and semantics of the bitstream.
int is_copy
Whether the parent AVCodecContext is a copy of the context which had init() called on it...
int avpriv_lock_avformat(void)
int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame)
Get a buffer for a frame.
int ff_alloc_packet(AVPacket *avpkt, int size)
Check AVPacket size and/or allocate data.
enum AVPixelFormat pix_fmt
uint8_t * audio_data
The data for the last allocated audio frame.
int sample_rate
samples per second
uint8_t * data[AV_NUM_DATA_POINTERS]
main external API structure.
struct AVCodecInternal AVCodecInternal
unsigned int avpriv_toupper4(unsigned int x)
rational number numerator/denominator
AVHWAccel * ff_find_hwaccel(enum AVCodecID codec_id, enum AVPixelFormat pix_fmt)
Return the hardware accelerated codec for codec codec_id and pixel format pix_fmt.
static const struct twinvq_data tab
static av_always_inline int64_t ff_samples_to_time_base(AVCodecContext *avctx, int64_t samples)
Rescale from sample rate to AVCodecContext.time_base.
AVPixelFormat
Pixel format.
This structure stores compressed data.
int linesize[AV_NUM_DATA_POINTERS]
int ff_match_2uint16(const uint16_t(*tab)[2], int size, int a, int b)
Return the index into tab at which {a,b} match elements {[0],[1]} of tab.
int last_audio_frame
An audio frame with less than required samples has been submitted and padded with silence...