mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-12-24 11:52:06 +08:00
- Add reget_buffer() function to AVCodecContext
- Add default reget_buffer implementation in libavcodec/utils.c - Remove AVCodecContext.cr_available, no longer needed - Remove CODEC_CAP_CR, no longer used - Add img_copy() prototype to avcodec.h (function from imgconvert.c) - Rename img_copy() to jpeg_img_copy() in libavformat/jpeg.c to avoid conflict - Updated msrle, msvideo1, rpza, smc to use reget_buffer Originally committed as revision 2531 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -68,7 +68,7 @@ static int jpeg_get_buffer(AVCodecContext *c, AVFrame *picture)
|
||||
}
|
||||
}
|
||||
|
||||
static void img_copy(uint8_t *dst, int dst_wrap,
|
||||
static void jpeg_img_copy(uint8_t *dst, int dst_wrap,
|
||||
uint8_t *src, int src_wrap,
|
||||
int width, int height)
|
||||
{
|
||||
@@ -147,7 +147,7 @@ static int jpeg_read(ByteIOContext *f,
|
||||
break;
|
||||
}
|
||||
}
|
||||
img_copy(picture->data[i], picture->linesize[i],
|
||||
jpeg_img_copy(picture->data[i], picture->linesize[i],
|
||||
picture1.data[i], picture1.linesize[i],
|
||||
w, h);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user