跳到主要内容

AVPacketSideDataType

搜索

枚举 AVPacketSideDataType 

源代码
#[repr(i32)]
pub enum AVPacketSideDataType {
Show 42 variants AV_PKT_DATA_PALETTE = 0, AV_PKT_DATA_NEW_EXTRADATA = 1, AV_PKT_DATA_PARAM_CHANGE = 2, AV_PKT_DATA_H263_MB_INFO = 3, AV_PKT_DATA_REPLAYGAIN = 4, AV_PKT_DATA_DISPLAYMATRIX = 5, AV_PKT_DATA_STEREO3D = 6, AV_PKT_DATA_AUDIO_SERVICE_TYPE = 7, AV_PKT_DATA_QUALITY_STATS = 8, AV_PKT_DATA_FALLBACK_TRACK = 9, AV_PKT_DATA_CPB_PROPERTIES = 10, AV_PKT_DATA_SKIP_SAMPLES = 11, AV_PKT_DATA_JP_DUALMONO = 12, AV_PKT_DATA_STRINGS_METADATA = 13, AV_PKT_DATA_SUBTITLE_POSITION = 14, AV_PKT_DATA_MATROSKA_BLOCKADDITIONAL = 15, AV_PKT_DATA_WEBVTT_IDENTIFIER = 16, AV_PKT_DATA_WEBVTT_SETTINGS = 17, AV_PKT_DATA_METADATA_UPDATE = 18, AV_PKT_DATA_MPEGTS_STREAM_ID = 19, AV_PKT_DATA_MASTERING_DISPLAY_METADATA = 20, AV_PKT_DATA_SPHERICAL = 21, AV_PKT_DATA_CONTENT_LIGHT_LEVEL = 22, AV_PKT_DATA_A53_CC = 23, AV_PKT_DATA_ENCRYPTION_INIT_INFO = 24, AV_PKT_DATA_ENCRYPTION_INFO = 25, AV_PKT_DATA_AFD = 26, AV_PKT_DATA_PRFT = 27, AV_PKT_DATA_ICC_PROFILE = 28, AV_PKT_DATA_DOVI_CONF = 29, AV_PKT_DATA_S12M_TIMECODE = 30, AV_PKT_DATA_DYNAMIC_HDR10_PLUS = 31, AV_PKT_DATA_IAMF_MIX_GAIN_PARAM = 32, AV_PKT_DATA_IAMF_DEMIXING_INFO_PARAM = 33, AV_PKT_DATA_IAMF_RECON_GAIN_INFO_PARAM = 34, AV_PKT_DATA_AMBIENT_VIEWING_ENVIRONMENT = 35, AV_PKT_DATA_FRAME_CROPPING = 36, AV_PKT_DATA_LCEVC = 37, AV_PKT_DATA_3D_REFERENCE_DISPLAYS = 38, AV_PKT_DATA_RTCP_SR = 39, AV_PKT_DATA_EXIF = 40, AV_PKT_DATA_NB = 41,
}
展开描述

@defgroup lavc_packet_side_data AVPacketSideData

Types and functions for working with AVPacketSideData. @{

Variants§

§

AV_PKT_DATA_PALETTE = 0

An AV_PKT_DATA_PALETTE side data packet contains exactly AVPALETTE_SIZE bytes worth of palette. This side data signals that a new palette is present.

§

AV_PKT_DATA_NEW_EXTRADATA = 1

The AV_PKT_DATA_NEW_EXTRADATA is used to notify the codec or the format that the extradata buffer was changed and the receiving side should act upon it appropriately. The new extradata is embedded in the side data buffer and should be immediately used for processing the current frame or packet.

§

AV_PKT_DATA_PARAM_CHANGE = 2

An AV_PKT_DATA_PARAM_CHANGE side data packet is laid out as follows: @code u32le param_flags if (param_flags & AV_SIDE_DATA_PARAM_CHANGE_SAMPLE_RATE) s32le sample_rate if (param_flags & AV_SIDE_DATA_PARAM_CHANGE_DIMENSIONS) s32le width s32le height @endcode

§

AV_PKT_DATA_H263_MB_INFO = 3

An AV_PKT_DATA_H263_MB_INFO side data packet contains a number of structures with info about macroblocks relevant to splitting the packet into smaller packets on macroblock edges (e.g. as for RFC 2190). That is, it does not necessarily contain info about all macroblocks, as long as the distance between macroblocks in the info is smaller than the target payload size. Each MB info structure is 12 bytes, and is laid out as follows: @code u32le bit offset from the start of the packet u8 current quantizer at the start of the macroblock u8 GOB number u16le macroblock address within the GOB u8 horizontal MV predictor u8 vertical MV predictor u8 horizontal MV predictor for block number 3 u8 vertical MV predictor for block number 3 @endcode

§

AV_PKT_DATA_REPLAYGAIN = 4

This side data should be associated with an audio stream and contains ReplayGain information in form of the AVReplayGain struct.

§

AV_PKT_DATA_DISPLAYMATRIX = 5

This side data contains a 3x3 transformation matrix describing an affine transformation that needs to be applied to the decoded video frames for correct presentation.

See libavutil/display.h for a detailed description of the data.

§

AV_PKT_DATA_STEREO3D = 6

This side data should be associated with a video stream and contains Stereoscopic 3D information in form of the AVStereo3D struct.

§

AV_PKT_DATA_AUDIO_SERVICE_TYPE = 7

This side data should be associated with an audio stream and corresponds to enum AVAudioServiceType.

§

AV_PKT_DATA_QUALITY_STATS = 8

This side data contains quality related information from the encoder. @code u32le quality factor of the compressed frame. Allowed range is between 1 (good) and FF_LAMBDA_MAX (bad). u8 picture type u8 error count u16 reserved u64le[error count] sum of squared differences between encoder in and output @endcode

§

AV_PKT_DATA_FALLBACK_TRACK = 9

This side data contains an integer value representing the stream index of a “fallback” track. A fallback track indicates an alternate track to use when the current track can not be decoded for some reason. e.g. no decoder available for codec.

§

AV_PKT_DATA_CPB_PROPERTIES = 10

This side data corresponds to the AVCPBProperties struct.

§

AV_PKT_DATA_SKIP_SAMPLES = 11

Recommends skipping the specified number of samples @code u32le number of samples to skip from start of this packet u32le number of samples to skip from end of this packet u8 reason for start skip u8 reason for end skip (0=padding silence, 1=convergence) @endcode

§

AV_PKT_DATA_JP_DUALMONO = 12

An AV_PKT_DATA_JP_DUALMONO side data packet indicates that the packet may contain “dual mono” audio specific to Japanese DTV and if it is true, recommends only the selected channel to be used. @code u8 selected channels (0=main/left, 1=sub/right, 2=both) @endcode

§

AV_PKT_DATA_STRINGS_METADATA = 13

A list of zero terminated key/value strings. There is no end marker for the list, so it is required to rely on the side data size to stop.

§

AV_PKT_DATA_SUBTITLE_POSITION = 14

Subtitle event position @code u32le x1 u32le y1 u32le x2 u32le y2 @endcode

§

AV_PKT_DATA_MATROSKA_BLOCKADDITIONAL = 15

Data found in BlockAdditional element of matroska container. There is no end marker for the data, so it is required to rely on the side data size to recognize the end. 8 byte id (as found in BlockAddId) followed by data.

§

AV_PKT_DATA_WEBVTT_IDENTIFIER = 16

The optional first identifier line of a WebVTT cue.

§

AV_PKT_DATA_WEBVTT_SETTINGS = 17

The optional settings (rendering instructions) that immediately follow the timestamp specifier of a WebVTT cue.

§

AV_PKT_DATA_METADATA_UPDATE = 18

A list of zero terminated key/value strings. There is no end marker for the list, so it is required to rely on the side data size to stop. This side data includes updated metadata which appeared in the stream.

§

AV_PKT_DATA_MPEGTS_STREAM_ID = 19

MPEGTS stream ID as uint8_t, this is required to pass the stream ID information from the demuxer to the corresponding muxer.

§

AV_PKT_DATA_MASTERING_DISPLAY_METADATA = 20

Mastering display metadata (based on SMPTE-2086:2014). This metadata should be associated with a video stream and contains data in the form of the AVMasteringDisplayMetadata struct.

§

AV_PKT_DATA_SPHERICAL = 21

This side data should be associated with a video stream and corresponds to the AVSphericalMapping structure.

§

AV_PKT_DATA_CONTENT_LIGHT_LEVEL = 22

Content light level (based on CTA-861.3). This metadata should be associated with a video stream and contains data in the form of the AVContentLightMetadata struct.

§

AV_PKT_DATA_A53_CC = 23

ATSC A53 Part 4 Closed Captions. This metadata should be associated with a video stream. A53 CC bitstream is stored as uint8_t in AVPacketSideData.data. The number of bytes of CC data is AVPacketSideData.size.

§

AV_PKT_DATA_ENCRYPTION_INIT_INFO = 24

This side data is encryption initialization data. The format is not part of ABI, use av_encryption_init_info_* methods to access.

§

AV_PKT_DATA_ENCRYPTION_INFO = 25

This side data contains encryption info for how to decrypt the packet. The format is not part of ABI, use av_encryption_info_* methods to access.

§

AV_PKT_DATA_AFD = 26

Active Format Description data consisting of a single byte as specified in ETSI TS 101 154 using AVActiveFormatDescription enum.

§

AV_PKT_DATA_PRFT = 27

Producer Reference Time data corresponding to the AVProducerReferenceTime struct, usually exported by some encoders (on demand through the prft flag set in the AVCodecContext export_side_data field).

§

AV_PKT_DATA_ICC_PROFILE = 28

ICC profile data consisting of an opaque octet buffer following the format described by ISO 15076-1.

§

AV_PKT_DATA_DOVI_CONF = 29

DOVI configuration ref: dolby-vision-bitstreams-within-the-iso-base-media-file-format-v2.1.2, section 2.2 dolby-vision-bitstreams-in-mpeg-2-transport-stream-multiplex-v1.2, section 3.3 Tags are stored in struct AVDOVIDecoderConfigurationRecord.

§

AV_PKT_DATA_S12M_TIMECODE = 30

Timecode which conforms to SMPTE ST 12-1:2014. The data is an array of 4 uint32_t where the first uint32_t describes how many (1-3) of the other timecodes are used. The timecode format is described in the documentation of av_timecode_get_smpte_from_framenum() function in libavutil/timecode.h.

§

AV_PKT_DATA_DYNAMIC_HDR10_PLUS = 31

HDR10+ dynamic metadata associated with a video frame. The metadata is in the form of the AVDynamicHDRPlus struct and contains information for color volume transform - application 4 of SMPTE 2094-40:2016 standard.

§

AV_PKT_DATA_IAMF_MIX_GAIN_PARAM = 32

IAMF Mix Gain Parameter Data associated with the audio frame. This metadata is in the form of the AVIAMFParamDefinition struct and contains information defined in sections 3.6.1 and 3.8.1 of the Immersive Audio Model and Formats standard.

§

AV_PKT_DATA_IAMF_DEMIXING_INFO_PARAM = 33

IAMF Demixing Info Parameter Data associated with the audio frame. This metadata is in the form of the AVIAMFParamDefinition struct and contains information defined in sections 3.6.1 and 3.8.2 of the Immersive Audio Model and Formats standard.

§

AV_PKT_DATA_IAMF_RECON_GAIN_INFO_PARAM = 34

IAMF Recon Gain Info Parameter Data associated with the audio frame. This metadata is in the form of the AVIAMFParamDefinition struct and contains information defined in sections 3.6.1 and 3.8.3 of the Immersive Audio Model and Formats standard.

§

AV_PKT_DATA_AMBIENT_VIEWING_ENVIRONMENT = 35

Ambient viewing environment metadata, as defined by H.274. This metadata should be associated with a video stream and contains data in the form of the AVAmbientViewingEnvironment struct.

§

AV_PKT_DATA_FRAME_CROPPING = 36

The number of pixels to discard from the top/bottom/left/right border of the decoded frame to obtain the sub-rectangle intended for presentation.

@code u32le crop_top u32le crop_bottom u32le crop_left u32le crop_right @endcode

§

AV_PKT_DATA_LCEVC = 37

Raw LCEVC payload data, as a uint8_t array, with NAL emulation bytes intact.

§

AV_PKT_DATA_3D_REFERENCE_DISPLAYS = 38

This side data contains information about the reference display width(s) and reference viewing distance(s) as well as information about the corresponding reference stereo pair(s), i.e., the pair(s) of views to be displayed for the viewer’s left and right eyes on the reference display at the reference viewing distance. The payload is the AV3DReferenceDisplaysInfo struct defined in libavutil/tdrdi.h.

§

AV_PKT_DATA_RTCP_SR = 39

Contains the last received RTCP SR (Sender Report) information in the form of the AVRTCPSenderReport struct.

§

AV_PKT_DATA_EXIF = 40

Extensible image file format metadata. The payload is a buffer containing EXIF metadata, starting with either 49 49 2a 00, or 4d 4d 00 2a.

§

AV_PKT_DATA_NB = 41

The number of side data types. This is not part of the public API/ABI in the sense that it may change when new side data types are added. This must stay the last enum value. If its value becomes huge, some code using it needs to be updated as it assumes it to be smaller than other limits.

trait 实现§

源代码§

impl Clone for AVPacketSideDataType

源代码§

fn clone(&self) -> AVPacketSideDataType

Returns a duplicate of the value. 阅读更多
1.0.0 · 源代码§

fn clone_from(&mut self, source: &Self)

source 执行拷贝赋值。 阅读更多
源代码§

impl Debug for AVPacketSideDataType

源代码§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

使用给定的格式化器格式化该值。 阅读更多
源代码§

impl Hash for AVPacketSideDataType

源代码§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. 阅读更多
1.3.0 · 源代码§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. 阅读更多
源代码§

impl PartialEq for AVPacketSideDataType

源代码§

fn eq(&self, other: &AVPacketSideDataType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · 源代码§

fn ne(&self, other: &Rhs) -> bool

测试 !=。默认实现几乎总是足够的,没有充分理由不应被重写。
源代码§

impl Copy for AVPacketSideDataType

源代码§

impl Eq for AVPacketSideDataType

源代码§

impl StructuralPartialEq for AVPacketSideDataType

自动 trait 实现§

blanket 实现§

源代码§

impl<T> Any for T
where T: 'static + ?Sized,

源代码§

fn type_id(&self) -> TypeId

获取 selfTypeId阅读更多
源代码§

impl<T> Borrow<T> for T
where T: ?Sized,

源代码§

fn borrow(&self) -> &T

从拥有的值不可变地借用。 阅读更多
源代码§

impl<T> BorrowMut<T> for T
where T: ?Sized,

源代码§

fn borrow_mut(&mut self) -> &mut T

从拥有的值可变地借用。 阅读更多
源代码§

impl<T> CloneToUninit for T
where T: Clone,

源代码§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
self 执行拷贝赋值到 dest阅读更多
源代码§

impl<T> From<T> for T

源代码§

fn from(t: T) -> T

原样返回参数。

源代码§

impl<T, U> Into<U> for T
where U: From<T>,

源代码§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U 实现选择执行的操作。

源代码§

impl<T> ToOwned for T
where T: Clone,

源代码§

type Owned = T

获取所有权后得到的类型。
源代码§

fn to_owned(&self) -> T

通常通过克隆,从借用数据创建拥有的数据。 阅读更多
源代码§

fn clone_into(&self, target: &mut T)

通常通过克隆,使用借用数据替换拥有的数据。 阅读更多
源代码§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

源代码§

type Error = Infallible

转换出错时返回的类型。
源代码§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

执行该转换。
源代码§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

源代码§

type Error = <U as TryFrom<T>>::Error

转换出错时返回的类型。
源代码§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

执行该转换。