* http://www.pcisys.net/~melanson/codecs
*
* Supports: BGR24 (RGB 24bpp)
- *
*/
#include <stdio.h>
#include <zlib.h>
-/*
- * Decoder context
- */
typedef struct LclEncContext {
AVCodecContext *avctx;
z_stream zstream;
} LclEncContext;
-/*
- *
- * Encode a frame
- *
- */
static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
const AVFrame *pict, int *got_packet)
{
return 0;
}
-/*
- *
- * Init lcl encoder
- *
- */
static av_cold int encode_init(AVCodecContext *avctx)
{
LclEncContext *c = avctx->priv_data;
if (!avctx->extradata)
return AVERROR(ENOMEM);
+#if FF_API_CODED_FRAME
+FF_DISABLE_DEPRECATION_WARNINGS
avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
avctx->coded_frame->key_frame = 1;
+FF_ENABLE_DEPRECATION_WARNINGS
+#endif
// Will be user settable someday
c->compression = 6;
return 0;
}
-/*
- *
- * Uninit lcl encoder
- *
- */
static av_cold int encode_end(AVCodecContext *avctx)
{
LclEncContext *c = avctx->priv_data;