FFmpeg
Classes | Macros | Typedefs | Enumerations | Variables
loco.c File Reference

LOCO codec. More...

#include "avcodec.h"
#include "get_bits.h"
#include "golomb.h"
#include "internal.h"
#include "mathops.h"

Classes

struct  LOCOContext
 
struct  RICEContext
 

Macros

#define ADVANCE_BY_DECODED
 

Typedefs

typedef struct LOCOContext LOCOContext
 
typedef struct RICEContext RICEContext
 

Enumerations

enum  LOCO_MODE {
  LOCO_UNKN = 0, LOCO_CYUY2 = -1, LOCO_CRGB = -2, LOCO_CRGBA = -3,
  LOCO_CYV12 = -4, LOCO_YUY2 = 1, LOCO_UYVY = 2, LOCO_RGB = 3,
  LOCO_RGBA = 4, LOCO_YV12 = 5
}
 

Variables

AVCodec ff_loco_decoder
 

Detailed Description

LOCO codec.

Macro Definition Documentation

§ ADVANCE_BY_DECODED

#define ADVANCE_BY_DECODED
Value:
do { \
if (decoded < 0 || decoded >= buf_size) goto buf_too_small; \
buf += decoded; buf_size -= decoded; \
} while(0)

Variable Documentation

§ ff_loco_decoder

AVCodec ff_loco_decoder
Initial value:
= {
.name = "loco",
.long_name = NULL_IF_CONFIG_SMALL("LOCO"),
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_LOCO,
.priv_data_size = sizeof(LOCOContext),
.init = decode_init,
.decode = decode_frame,
.capabilities = AV_CODEC_CAP_DR1,
}
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
Definition: loco.c:46
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:959