> From: ffmpeg-devel <ffmpeg-devel-boun...@ffmpeg.org> On Behalf Of Fu, > Linjie > Sent: Tuesday, March 31, 2020 23:59 > To: FFmpeg development discussions and patches <ffmpeg- > de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH 7/7] lavc/libopenh264enc: separate > svc_encode_init() into several functions > > > From: ffmpeg-devel <ffmpeg-devel-boun...@ffmpeg.org> On Behalf Of > > James Almer > > Sent: Tuesday, March 31, 2020 23:46 > > To: ffmpeg-devel@ffmpeg.org > > Subject: Re: [FFmpeg-devel] [PATCH 7/7] lavc/libopenh264enc: separate > > svc_encode_init() into several functions > > > > On 3/31/2020 12:33 PM, Linjie Fu wrote: > > > Separate the initialization procedure into different functions. > > > > > > Make it more readable and easier to be extended. > > > > > > Signed-off-by: Linjie Fu <linjie...@intel.com> > > > --- > > > libavcodec/libopenh264enc.c | 302 +++++++++++++++++++++++++++--- > -- > > ------------ > > > 1 file changed, 186 insertions(+), 116 deletions(-) > > > > > > diff --git a/libavcodec/libopenh264enc.c b/libavcodec/libopenh264enc.c > > > index 692aba9..ab54454 100644 > > > --- a/libavcodec/libopenh264enc.c > > > +++ b/libavcodec/libopenh264enc.c > > > @@ -85,6 +85,11 @@ static const AVOption options[] = { > > > { NULL } > > > }; > > > > > > +static av_cold int svc_encode_init_profile(AVCodecContext *avctx, > > SEncParamExt *param); > > > +static av_cold int svc_encode_init_rate_control(AVCodecContext > *avctx, > > SEncParamExt *param); > > > +static av_cold int svc_encode_init_spatial_layer(AVCodecContext > *avctx, > > SEncParamExt *param); > > > +static av_cold int svc_encode_init_params(AVCodecContext *avctx, > > SEncParamExt *param); > > > > Why use forward declarations? Just put the functions right above > > svc_encode_init(). > > It's seems to be easier/clearer for review the diffs, otherwise this would be > mixed > up.
Ping for the rest patches in this patch set. Will update V2 soon with the forward declarations removed as suggested. - Linjie _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".