Re: [FFmpeg-devel] [PATCH] avcodec: add msrle encoder

2019-08-05 Thread Paul B Mahol
On Mon, Aug 5, 2019 at 2:05 PM Lynne wrote: > Aug 5, 2019, 9:39 AM by one...@gmail.com: > > > Hi, > > > > Patch attached. > > > > > int run = FFMIN(255, copy); > > Just replace all FFMIN(255 with av_clip_uint8, should be faster, in > theory, on some platforms. > > > > +switch (s->pixel_si

Re: [FFmpeg-devel] [PATCH] avcodec: add msrle encoder

2019-08-05 Thread Lynne
Aug 5, 2019, 9:39 AM by one...@gmail.com: > Hi, > > Patch attached. > > int run = FFMIN(255, copy); Just replace all FFMIN(255 with av_clip_uint8, should be faster, in theory, on some platforms. > +switch (s->pixel_size) {> +case 3:> + > bytestream2_put_le24(&s->pb

Re: [FFmpeg-devel] [PATCH] avcodec: add msrle encoder

2019-08-05 Thread Tomas Härdin
mån 2019-08-05 klockan 10:39 +0200 skrev Paul B Mahol: > Hi, > > Patch attached. > +static av_cold int msrle_encode_init(AVCodecContext *avctx) > +{ > +MsrleEncContext *s = avctx->priv_data; > + > +if (av_image_check_size(avctx->width, avctx->height, 0, avctx) < 0) > +return AVERR

[FFmpeg-devel] [PATCH] avcodec: add msrle encoder

2019-08-05 Thread Paul B Mahol
Hi, Patch attached. 0001-avcodec-add-msrle-encoder.patch Description: Binary data ___ 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...@ff