44 const unsigned char *
buf;
75 void *
data,
int *data_size,
78 const uint8_t *buf = avpkt->
data;
79 int buf_size = avpkt->
size;
109 uint8_t *buf = avpkt->
data + (avctx->
height-1)*istride;
112 for (i = 0; i < avctx->
height; i++) {
114 for (j = 0; j < avctx->
width - 1; j += 2) {
115 ptr[j+0] = buf[j>>1] >> 4;
116 ptr[j+1] = buf[j>>1] & 0xF;
118 if (avctx->
width & 1)
119 ptr[j+0] = buf[j>>1] >> 4;
121 memcpy(ptr, buf, linesize);
enum PixelFormat pix_fmt
Pixel format, see PIX_FMT_xxx.
#define FF_BUFFER_HINTS_VALID
int buffer_hints
codec suggestion on buffer type if != 0
void(* release_buffer)(struct AVCodecContext *c, AVFrame *pic)
Called to release buffers which were allocated with get_buffer.
static av_always_inline void bytestream2_init(GetByteContext *g, const uint8_t *buf, int buf_size)
four components are given, that's all.
int(* reget_buffer)(struct AVCodecContext *c, AVFrame *pic)
Called at the beginning of a frame to get cr buffer for it.
static int decode(MimicContext *ctx, int quality, int num_coeffs, int is_iframe)
int bits_per_coded_sample
bits per sample/pixel from the demuxer (needed for huffyuv).
static int init(AVCodecParserContext *s)
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
int reference
is this picture used as reference The values for this are the same as the MpegEncContext.picture_structure variable, that is 1->top field, 2->bottom field, 3->frame/both fields.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
void av_log(void *avcl, int level, const char *fmt,...)
const char * name
Name of the codec implementation.
static int msrle_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
int width
picture width / height.
struct AVFrame AVFrame
Audio Video Frame.
const unsigned char * buf
#define FF_BUFFER_HINTS_REUSABLE
uint8_t * av_packet_get_side_data(AVPacket *pkt, enum AVPacketSideDataType type, int *size)
Get side information from packet.
int linesize[AV_NUM_DATA_POINTERS]
Size, in bytes, of the data for each picture/channel plane.
main external API structure.
static void close(AVCodecParserContext *s)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#define FF_BUFFER_HINTS_PRESERVE
int palette_has_changed
Tell user application that palette has changed from previous frame.
packed RGB 8:8:8, 24bpp, BGRBGR...
struct MsrleContext MsrleContext
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
8 bit with PIX_FMT_RGB32 palette
int ff_msrle_decode(AVCodecContext *avctx, AVPicture *pic, int depth, GetByteContext *gb)
Decode stream in MS RLE format into frame.
static av_cold int msrle_decode_init(AVCodecContext *avctx)
static av_cold int msrle_decode_end(AVCodecContext *avctx)