#include <avcodec.h>
This struct describes the properties of an encoded stream.
sizeof(AVCodecParameters) is not a part of the public ABI, this struct must be allocated with avcodec_parameters_alloc() and freed with avcodec_parameters_free().
См. определение в файле avcodec.h строка 3949
◆ codec_type
General type of the encoded data.
См. определение в файле avcodec.h строка 3953
◆ codec_id
Specific type of the encoded data (the codec used).
См. определение в файле avcodec.h строка 3957
◆ codec_tag
Additional information about the codec (corresponds to the AVI FOURCC).
См. определение в файле avcodec.h строка 3961
◆ extradata
uint8_t* AVCodecParameters::extradata |
Extra binary data needed for initializing the decoder, codec-dependent.
Must be allocated with av_malloc() and will be freed by avcodec_parameters_free(). The allocated size of extradata must be at least extradata_size + AV_INPUT_BUFFER_PADDING_SIZE, with the padding bytes zeroed.
См. определение в файле avcodec.h строка 3971
◆ extradata_size
int AVCodecParameters::extradata_size |
Size of the extradata content in bytes.
См. определение в файле avcodec.h строка 3975
◆ format
int AVCodecParameters::format |
- video: the pixel format, the value corresponds to enum AVPixelFormat.
- audio: the sample format, the value corresponds to enum AVSampleFormat.
См. определение в файле avcodec.h строка 3981
◆ bit_rate
int64_t AVCodecParameters::bit_rate |
The average bitrate of the encoded data (in bits per second).
См. определение в файле avcodec.h строка 3986
◆ bits_per_coded_sample
int AVCodecParameters::bits_per_coded_sample |
The number of bits per sample in the codedwords.
This is basically the bitrate per sample. It is mandatory for a bunch of formats to actually decode them. It's the number of bits for one sample in the actual coded bitstream.
This could be for example 4 for ADPCM For PCM formats this matches bits_per_raw_sample Can be 0
См. определение в файле avcodec.h строка 3999
◆ bits_per_raw_sample
int AVCodecParameters::bits_per_raw_sample |
This is the number of valid bits in each output sample. If the sample format has more bits, the least significant bits are additional padding bits, which are always 0. Use right shifts to reduce the sample to its actual size. For example, audio formats with 24 bit samples will have bits_per_raw_sample set to 24, and format set to AV_SAMPLE_FMT_S32. To get the original sample use "(int32_t)sample >> 8"."
For ADPCM this might be 12 or 16 or similar Can be 0
См. определение в файле avcodec.h строка 4012
◆ profile
int AVCodecParameters::profile |
Codec-specific bitstream restrictions that the stream conforms to.
См. определение в файле avcodec.h строка 4017
◆ level
int AVCodecParameters::level |
◆ width
int AVCodecParameters::width |
Video only. The dimensions of the video frame in pixels.
См. определение в файле avcodec.h строка 4023
◆ height
int AVCodecParameters::height |
◆ sample_aspect_ratio
Video only. The aspect ratio (width / height) which a single pixel should have when displayed.
When the aspect ratio is unknown / undefined, the numerator should be set to 0 (the denominator may have any value).
См. определение в файле avcodec.h строка 4033
◆ field_order
Video only. The order of the fields in interlaced video.
См. определение в файле avcodec.h строка 4038
◆ color_range
Video only. Additional colorspace characteristics.
См. определение в файле avcodec.h строка 4043
◆ color_primaries
◆ color_trc
◆ color_space
◆ chroma_location
◆ video_delay
int AVCodecParameters::video_delay |
Video only. Number of delayed frames.
См. определение в файле avcodec.h строка 4052
◆ channel_layout
uint64_t AVCodecParameters::channel_layout |
Audio only. The channel layout bitmask. May be 0 if the channel layout is unknown or unspecified, otherwise the number of bits set must be equal to the channels field.
См. определение в файле avcodec.h строка 4059
◆ channels
int AVCodecParameters::channels |
Audio only. The number of audio channels.
См. определение в файле avcodec.h строка 4063
◆ sample_rate
int AVCodecParameters::sample_rate |
Audio only. The number of audio samples per second.
См. определение в файле avcodec.h строка 4067
◆ block_align
int AVCodecParameters::block_align |
Audio only. The number of bytes per coded audio frame, required by some formats.
Corresponds to nBlockAlign in WAVEFORMATEX.
См. определение в файле avcodec.h строка 4074
◆ frame_size
int AVCodecParameters::frame_size |
Audio only. Audio frame size, if known. Required by some formats to be static.
См. определение в файле avcodec.h строка 4078
◆ initial_padding
int AVCodecParameters::initial_padding |
Audio only. The amount of padding (in samples) inserted by the encoder at the beginning of the audio. I.e. this number of leading decoded samples must be discarded by the caller to get the original audio without leading padding.
См. определение в файле avcodec.h строка 4086
◆ trailing_padding
int AVCodecParameters::trailing_padding |
Audio only. The amount of padding (in samples) appended by the encoder to the end of the audio. I.e. this number of decoded samples must be discarded by the caller from the end of the stream to get the original audio without any trailing padding.
См. определение в файле avcodec.h строка 4093
◆ seek_preroll
int AVCodecParameters::seek_preroll |
Audio only. Number of samples to skip after a discontinuity.
См. определение в файле avcodec.h строка 4097
Объявления и описания членов структуры находятся в файле:
- C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h