From: Anton Khirnov <anton@khirnov.net> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Subject: Re: [FFmpeg-devel] [PATCH 1/8] avutil: introduce an Immersive Audio Model and Formats API Date: Mon, 18 Dec 2023 12:04:52 +0100 Message-ID: <170289749260.8914.14905207691567469566@lain.khirnov.net> (raw) In-Reply-To: <20231214201433.4608-2-jamrial@gmail.com> Quoting James Almer (2023-12-14 21:14:26) > +/** > + * Mix Gain Parameter Data as defined in section 3.8.1 of IAMF. > + */ > +typedef struct AVIAMFMixGain { > + const AVClass *av_class; > + > + /** > + * Duration for the given subblock. It must not be 0. In what units? Same for all durations in this patch. > +typedef struct AVIAMFParamDefinition { > + const AVClass *av_class; > + > + /** > + * Offset in bytes from the start of this struct, at which the subblocks > + * array is located. > + */ > + size_t subblocks_offset; > + /** > + * Size in bytes of each element in the subblocks array. > + */ > + size_t subblock_size; > + /** > + * Number of subblocks in the array. > + * > + * Must be 0 if @ref constant_subblock_duration is not 0. > + */ > + unsigned int nb_subblocks; > + > + /** > + * Parameters type. Determines the type of the subblock elements. > + */ > + enum AVIAMFParamDefinitionType type; > + > + /** > + * Identifier for the paremeter substream. > + */ > + unsigned int parameter_id; > + /** > + * Sample rate for the paremeter substream. It must not be 0. > + */ > + unsigned int parameter_rate; > + > + /** > + * The duration of the all subblocks in this parameter definition. > + * > + * May be 0, in which case all duration values should be specified in > + * another parameter definition referencing the same parameter_id. > + */ > + unsigned int duration; > + /** > + * The duration of every subblock in the case where all subblocks, with > + * the optional exception of the last subblock, have equal durations. > + * > + * Must be 0 if subblocks have different durations. > + */ > + unsigned int constant_subblock_duration; This also seems like should be a flags field. Otherwise looks good. -- Anton Khirnov _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2023-12-18 11:05 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-12-14 20:14 [FFmpeg-devel] [PATCH v7 0/8] avformat: introduce AVStreamGroup James Almer 2023-12-14 20:14 ` [FFmpeg-devel] [PATCH 1/8] avutil: introduce an Immersive Audio Model and Formats API James Almer 2023-12-18 11:04 ` Anton Khirnov [this message] 2023-12-18 18:10 ` James Almer 2023-12-14 20:14 ` [FFmpeg-devel] [PATCH 2/8] avformat: introduce AVStreamGroup James Almer 2023-12-14 20:14 ` [FFmpeg-devel] [PATCH 3/8] ffmpeg: add support for muxing AVStreamGroups James Almer 2023-12-15 21:28 ` James Almer 2023-12-14 20:14 ` [FFmpeg-devel] [PATCH 4/8] avcodec/packet: add IAMF Parameters side data types James Almer 2023-12-14 20:14 ` [FFmpeg-devel] [PATCH 5/8] avcodec/get_bits: add get_leb() James Almer 2023-12-14 20:14 ` [FFmpeg-devel] [PATCH 6/8] avformat/aviobuf: add ffio_read_leb() and ffio_write_leb() James Almer 2023-12-14 20:14 ` [FFmpeg-devel] [PATCH 7/8] avformat: Immersive Audio Model and Formats demuxer James Almer 2023-12-14 20:14 ` [FFmpeg-devel] [PATCH 8/8] avformat: Immersive Audio Model and Formats muxer James Almer -- strict thread matches above, loose matches on Subject: below -- 2023-12-05 22:43 [FFmpeg-devel] [PATCH v6 0/8] avformat: introduce AVStreamGroup James Almer 2023-12-05 22:43 ` [FFmpeg-devel] [PATCH 1/8] avutil: introduce an Immersive Audio Model and Formats API James Almer 2023-12-11 10:19 ` Anton Khirnov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=170289749260.8914.14905207691567469566@lain.khirnov.net \ --to=anton@khirnov.net \ --cc=ffmpeg-devel@ffmpeg.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git