[FFmpeg-devel] [PATCH 02/12] lavu: add public timecode API.
Clément Bœsch
ubitux at gmail.com
Thu Feb 2 14:43:42 CET 2012
On Tue, Jan 31, 2012 at 02:39:02PM +0100, Clément Bœsch wrote:
> On Thu, Jan 26, 2012 at 01:11:21PM +0100, Clément Bœsch wrote:
> > On Wed, Jan 25, 2012 at 07:34:23PM +0100, Alexander Strasser wrote:
> > > Hi,
> > >
> > > Clément Bœsch wrote:
> > > > On Tue, Jan 24, 2012 at 10:21:02PM +0100, Alexander Strasser wrote:
> > > > > Clément Bœsch wrote:
> > > > > > On Tue, Jan 24, 2012 at 01:47:30PM +0100, Stefano Sabatini wrote:
> > > > > > [...]
> > > > > > > > + * @note Frame number adjustment is automatically done in case of drop timecode,
> > > > > > > > + * you do NOT have to call av_adjust_ntsc_framenum().
> > > > > > >
> > > > > > > nit++: no complete sentence, lowcased and no dot at the end
> > > > > > >
> > > > > >
> > > > > > Most of the the @note I see are of two forms:
> > > > > >
> > > > > > @note frame number adjust is [...] ...framenum().
> > > > > > ==> "note that xxxx."
> > > > > > @note Frame number [...] ...framenum().
> > > > > > ==> "NOTE: xxxx."
> > > > > >
> > > > > > I used the second form, but it seems you do not want the first form
> > > > > > either. Should I just drop the period? The sentence still has verbs… Could
> > > > > > you be a bit more explicit about what you are expecting with an example?
> > > > > >
> > > > > > [...]
> > > > > > > > + */
> > > > > > > > +uint32_t av_timecode_get_smpte_from_framenum(const AVTimecode *tc, int framenum);
> > > > > > >
> > > > > > > Nit: get->make is maybe more approriate (as noted by Alexander
> > > > > > > Strasser in a recent mail)
> > > > >
> > > > > First of all thanks to Stefano for caring about naming. Second I appologize to
> > > > > you, Clément, as proper naming needs some discussion :(
> > > > >
> > > >
> > > > Proper naming for public is important, better overthink it first.
> > >
> > > I fear I have another one. Seems I am only causing you work :(
> > >
> > > But please don't do anything if you think I am not making sense here.
> > >
> > > I just saw it would be good to have the tc parameter as the first one,
> > > for all av_timecode_* functions that use (read/write) its state (I think
> > > all others don't have that param at all).
> > >
> >
> > So a read only context would likely have a higher priority than an output
> > in the parameters list priority? I don't mind much. I'll update the
> > patchset next week. Consider it done locally.
> >
>
> OK, new version. Prototypes:
>
> int av_timecode_adjust_ntsc_framenum(int framenum);
> uint32_t av_timecode_get_smpte_from_framenum(const AVTimecode *tc, int framenum);
>
> char *av_timecode_make_string(const AVTimecode *tc, char *buf, int framenum);
> char *av_timecode_make_smpte_tc_string(char *buf, uint32_t tcsmpte, int prevent_df);
> char *av_timecode_make_mpeg_tc_string(char *buf, uint32_t tc25bit);
>
> int av_timecode_init(AVTimecode *tc, AVRational rate, int flags, int frame_start, void *log_ctx);
> int av_timecode_init_from_string(AVTimecode *tc, AVRational rate, const char *str, void *log_ctx);
>
>
> So briefly what's new:
> - better comments and doxy of av_timecode_get_smpte_from_framenum()
> - add av_timecode_make_smpte_tc_string()
> - various renames
> - AVTimecode context has a higher priority than output buffer in parameters
> list
> - log_ctx is now the last parameter
>
[...]
Patchset upstream, flame me on cvslog.
--
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120202/6c63fd14/attachment.asc>
More information about the ffmpeg-devel
mailing list