Merge remote-tracking branch 'qatar/master'
* qatar/master: snow: split snow in snowdec and snowenc tiffenc: deprecate using compression_level swscale: fix failing fate tests. swscale: add support for planar RGB input. h264: add support for decoding planar RGB images. Clean up swscale pixfmt macros using av_pix_fmt_descriptors[]. pixfmt: add planar RGB formats. Conflicts: libavcodec/h264.c libavcodec/snow.c libavcodec/utils.c libavutil/avutil.h libavutil/pixdesc.c libavutil/pixfmt.h libswscale/swscale.c libswscale/swscale_internal.h libswscale/swscale_unscaled.c libswscale/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -233,6 +233,11 @@ static int encode_frame(AVCodecContext * avctx, unsigned char *buf,
|
||||
p->key_frame = 1;
|
||||
avctx->coded_frame= &s->picture;
|
||||
|
||||
#if FF_API_TIFFENC_COMPLEVEL
|
||||
if (avctx->compression_level != FF_COMPRESSION_DEFAULT)
|
||||
av_log(avctx, AV_LOG_WARNING, "Using compression_level to set compression "
|
||||
"algorithm is deprecated. Please use the compression_algo private "
|
||||
"option instead.\n");
|
||||
if (avctx->compression_level == 0) {
|
||||
s->compr = TIFF_RAW;
|
||||
} else if(avctx->compression_level == 2) {
|
||||
@@ -242,6 +247,7 @@ static int encode_frame(AVCodecContext * avctx, unsigned char *buf,
|
||||
s->compr = TIFF_DEFLATE;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
s->width = avctx->width;
|
||||
s->height = avctx->height;
|
||||
|
||||
Reference in New Issue
Block a user