From: Soft Works <softworkz-at-hotmail.com@ffmpeg.org> To: Stefano Sabatini <stefasab@gmail.com> Cc: Soft Works <softworkz-at-hotmail.com@ffmpeg.org>, FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>, Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Subject: Re: [FFmpeg-devel] [PATCH v3 1/7] fftools/textformat: Extract and generalize textformat api from ffprobe.c Date: Wed, 5 Mar 2025 20:58:32 +0000 Message-ID: <DM8P223MB03656F39D4FDCF0D30FBB14ABACB2@DM8P223MB0365.NAMP223.PROD.OUTLOOK.COM> (raw) In-Reply-To: <Z8iyF9FS2Key/GRF@mariano> > -----Original Message----- > From: Stefano Sabatini <stefasab@gmail.com> > Sent: Mittwoch, 5. März 2025 21:21 > To: Soft Works <softworkz@hotmail.com> > Cc: FFmpeg development discussions and patches <ffmpeg- > devel@ffmpeg.org>; Soft Works <softworkz-at-hotmail.com@ffmpeg.org>; > Andreas Rheinhardt <andreas.rheinhardt@outlook.com> > Subject: Re: [FFmpeg-devel] [PATCH v3 1/7] fftools/textformat: Extract > and generalize textformat api from ffprobe.c > > On date Sunday 2025-03-02 19:44:34 +0000, Soft Works wrote: > > > > > > > -----Original Message----- > > > From: Stefano Sabatini <stefasab@gmail.com> > > > Sent: Sonntag, 2. März 2025 18:55 > > > To: FFmpeg development discussions and patches <ffmpeg- > devel@ffmpeg.org> > > > Cc: Soft Works <softworkz-at-hotmail.com@ffmpeg.org>; softworkz > > > <softworkz@hotmail.com>; Andreas Rheinhardt > > > <andreas.rheinhardt@outlook.com> > > > Subject: Re: [FFmpeg-devel] [PATCH v3 1/7] fftools/textformat: > Extract > > > and generalize textformat api from ffprobe.c > > > > > > Hi, > > > > > > I'll have a look at this in the week. There are a few things which I > > > want to doublecheck (there is some ad-hoc application logic which > > > might be broken when generalizing this), but I like the overall > > > direction of this changeset. > > > > Hi Stefano, > > > > thanks a lot for your interest in this changeset. > > > > I think I know what you are talking about with regards to possible > breakage 😊. > > > > In this changeset, I wanted to keep the changes compact to reduce the > number of lines which needs to be reviewed. But there's a preceding > patchset > > > > "[FFmpeg-devel,v2,0/8,RFC] avtextformat: Transform text writing into > an independent API" > > > > which allows to follow the changes step-by-step. > > > > The part you are probably talking about is done here: > > > > > https://patchwork.ffmpeg.org/project/ffmpeg/patch/01413dfbc0c60ee17c7937 > 0086abb88d78552929.1740718936.git.ffmpegagent@gmail.com/ > > > > > > I have removed the specific fields.. > > > > unsigned int nb_section_packet; ///< number of the packet section > > unsigned int nb_section_frame; ///< number of the frame section > > unsigned int nb_section_packet_frame; ///< nb_section_packet or > nb_section_frame > > > > ..and replaced it with a 2-dimensional array: > > > > unsigned int nb_item[SECTION_MAX_NB_LEVELS]; > > unsigned int > nb_item_type[SECTION_MAX_NB_LEVELS][SECTION_MAX_NB_SECTIONS]; <= new > > > > While nb_item counts the total number of current items at a certain > level, nb_item_type counts the number of items for each type separately. > > > > Then, > > > > WRITER_FLAG_PUT_PACKETS_AND_FRAMES_IN_SAME_CHAPTER > > > > is replaced with > > > > TEXTFORMAT_FLAG_SUPPORTS_MIXED_ARRAY_CONTENT > > > > > and instead of checking for the specific ID > > (SECTION_ID_PACKETS_AND_FRAMES), this is done with a new flag > > (SECTION_FLAG_NUMBERING_BY_TYPE). All that combined allows to > > achieve the same result as before (separate numbering of mixed array > > content sections). > > > > > > Generally, it was done in a refactoring way (not a rewrite), so > > nothing should have gotten lost, only the output writers are new > > (aviowriter, stdoutwriter, bufferwriter). > > Cool, I think this should work indeed. Thanks for looking at it! > > > Not sure if this is ffmpeg-ish but we might move the formats within > a > > > dedicated subdirectory to make more apparent the core/components > > > distinction - anyway this is not a blocker. > > > > I'll do that, but it's not quite clear how you mean it, as they _are_ > in a subdirectory already (textformat). > > Or do you mean two separate subdirectories (textformat and > textwriters)? > > What I mean is that we might move the text formats to a dedicated > directory (e.g. fftools/textformat/formats/compact.c) but it's not > blocking at all. Originally, I had thought the similar in a way that it might not be "ffmpeg-ish"; actually I've even be afraid that somebody might object the textformat subfolder. The above (fftools/textformat/formats/) is how I'd personally organize it as well, but of course everybody needs to adapt in a community project. Some more opinions would be helpful.. > > > Another question: shall I add your name/copyright line in the header > > of the writer files? It's still your code (I assume), I've just > > transformed it a bit. > > Feel free to skip it, git blame does a better job at tracking the > authorship and I don't mind a lot about copyright anyway. Neither do I. (Well, there's not much rights to get anyway with a stupid pseudonym 😃). Thanks, sw _______________________________________________ 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:[~2025-03-05 20:58 UTC|newest] Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top 2025-02-19 9:59 [FFmpeg-devel] [PATCH 0/3] print_graphs: Complete Filtergraph Printing ffmpegagent 2025-02-19 9:59 ` [FFmpeg-devel] [PATCH 1/3] fftools/ffmpeg_filter: Move some declaration to new header file softworkz 2025-02-19 9:59 ` [FFmpeg-devel] [PATCH 2/3] fftools/ffmpeg_graphprint: Add options for filtergraph printing softworkz 2025-02-21 9:22 ` Andreas Rheinhardt 2025-02-21 9:42 ` Soft Works 2025-02-21 11:11 ` Andreas Rheinhardt 2025-02-21 11:25 ` Soft Works 2025-02-21 13:09 ` Nicolas George 2025-02-21 13:49 ` Soft Works 2025-02-24 10:41 ` Nicolas George 2025-02-24 13:19 ` Soft Works 2025-02-26 14:42 ` Nicolas George 2025-02-27 13:11 ` Soft Works 2025-02-19 9:59 ` [FFmpeg-devel] [PATCH 3/3] fftools: Enable filtergraph printing and update docs softworkz 2025-02-21 11:27 ` [FFmpeg-devel] [PATCH v2 0/4] print_graphs: Complete Filtergraph Printing ffmpegagent 2025-02-21 11:27 ` [FFmpeg-devel] [PATCH v2 1/4] fftools/ffmpeg_filter: Move some declaration to new header file softworkz 2025-02-21 11:27 ` [FFmpeg-devel] [PATCH v2 2/4] avfilter/avfilter Add avfilter_link_get_hw_frames_ctx() softworkz 2025-02-21 11:27 ` [FFmpeg-devel] [PATCH v2 3/4] fftools/ffmpeg_graphprint: Add options for filtergraph printing softworkz 2025-02-21 11:27 ` [FFmpeg-devel] [PATCH v2 4/4] fftools: Enable filtergraph printing and update docs softworkz 2025-03-01 10:01 ` [FFmpeg-devel] [PATCH v3 0/7] print_graphs: Complete Filtergraph Printing ffmpegagent 2025-03-01 10:01 ` [FFmpeg-devel] [PATCH v3 1/7] fftools/textformat: Extract and generalize textformat api from ffprobe.c softworkz 2025-03-02 17:54 ` Stefano Sabatini 2025-03-02 19:44 ` Soft Works 2025-03-05 20:20 ` Stefano Sabatini 2025-03-05 20:58 ` Soft Works [this message] 2025-03-01 10:01 ` [FFmpeg-devel] [PATCH v3 2/7] fftools/ffprobe: Change to use textformat api softworkz 2025-03-01 10:02 ` [FFmpeg-devel] [PATCH v3 3/7] fftools/ffprobe: Rename writer_print_section_* and WriterContext softworkz 2025-03-01 10:02 ` [FFmpeg-devel] [PATCH v3 4/7] fftools/ffmpeg_filter: Move some declaration to new header file softworkz 2025-03-01 10:02 ` [FFmpeg-devel] [PATCH v3 5/7] avfilter/avfilter Add avfilter_link_get_hw_frames_ctx() softworkz 2025-03-01 10:02 ` [FFmpeg-devel] [PATCH v3 6/7] fftools/ffmpeg_graphprint: Add options for filtergraph printing softworkz 2025-03-01 10:02 ` [FFmpeg-devel] [PATCH v3 7/7] fftools: Enable filtergraph printing and update docs softworkz 2025-03-01 22:54 ` [FFmpeg-devel] [PATCH v4 0/7] print_graphs: Complete Filtergraph Printing ffmpegagent 2025-03-01 22:54 ` [FFmpeg-devel] [PATCH v4 1/7] fftools/textformat: Extract and generalize textformat api from ffprobe.c softworkz 2025-03-01 22:54 ` [FFmpeg-devel] [PATCH v4 2/7] fftools/ffprobe: Change to use textformat api softworkz 2025-03-01 22:54 ` [FFmpeg-devel] [PATCH v4 3/7] fftools/ffprobe: Rename writer_print_section_* and WriterContext softworkz 2025-03-01 22:54 ` [FFmpeg-devel] [PATCH v4 4/7] fftools/ffmpeg_filter: Move some declaration to new header file softworkz 2025-03-01 22:54 ` [FFmpeg-devel] [PATCH v4 5/7] avfilter/avfilter: Add avfilter_link_get_hw_frames_ctx() softworkz 2025-03-01 22:54 ` [FFmpeg-devel] [PATCH v4 6/7] fftools/ffmpeg_graphprint: Add options for filtergraph printing softworkz 2025-03-01 22:54 ` [FFmpeg-devel] [PATCH v4 7/7] fftools: Enable filtergraph printing and update docs softworkz
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=DM8P223MB03656F39D4FDCF0D30FBB14ABACB2@DM8P223MB0365.NAMP223.PROD.OUTLOOK.COM \ --to=softworkz-at-hotmail.com@ffmpeg.org \ --cc=andreas.rheinhardt@outlook.com \ --cc=ffmpeg-devel@ffmpeg.org \ --cc=stefasab@gmail.com \ /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