You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
Merge commit '0cdbc4d39394965bd8712395b19160da8f3fe144'
* commit '0cdbc4d39394965bd8712395b19160da8f3fe144': ljpegenc: rename the encoding function. Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -57,8 +57,8 @@ typedef struct LJpegEncContext {
|
|||||||
uint16_t (*scratch)[4];
|
uint16_t (*scratch)[4];
|
||||||
} LJpegEncContext;
|
} LJpegEncContext;
|
||||||
|
|
||||||
static int encode_picture_lossless(AVCodecContext *avctx, AVPacket *pkt,
|
static int ljpeg_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
||||||
const AVFrame *pict, int *got_packet)
|
const AVFrame *pict, int *got_packet)
|
||||||
{
|
{
|
||||||
LJpegEncContext *s = avctx->priv_data;
|
LJpegEncContext *s = avctx->priv_data;
|
||||||
PutBitContext pb;
|
PutBitContext pb;
|
||||||
@@ -304,7 +304,7 @@ AVCodec ff_ljpeg_encoder = {
|
|||||||
.id = AV_CODEC_ID_LJPEG,
|
.id = AV_CODEC_ID_LJPEG,
|
||||||
.priv_data_size = sizeof(LJpegEncContext),
|
.priv_data_size = sizeof(LJpegEncContext),
|
||||||
.init = ljpeg_encode_init,
|
.init = ljpeg_encode_init,
|
||||||
.encode2 = encode_picture_lossless,
|
.encode2 = ljpeg_encode_frame,
|
||||||
.close = ljpeg_encode_close,
|
.close = ljpeg_encode_close,
|
||||||
.pix_fmts = (const enum AVPixelFormat[]){
|
.pix_fmts = (const enum AVPixelFormat[]){
|
||||||
AV_PIX_FMT_BGR24 , AV_PIX_FMT_BGRA , AV_PIX_FMT_BGR0,
|
AV_PIX_FMT_BGR24 , AV_PIX_FMT_BGRA , AV_PIX_FMT_BGR0,
|
||||||
|
Reference in New Issue
Block a user