FFmpeg
|
loco.c File Reference
LOCO codec. More...
#include "avcodec.h"
#include "get_bits.h"
#include "golomb.h"
#include "internal.h"
#include "mathops.h"
Include dependency graph for loco.c:
Go to the source code of this file.
Data Structures | |
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 } |
Functions | |
static int | loco_get_rice_param (RICEContext *r) |
static void | loco_update_rice_param (RICEContext *r, int val) |
static int | loco_get_rice (RICEContext *r) |
static int | loco_predict (uint8_t *data, int stride, int step) |
static int | loco_decode_plane (LOCOContext *l, uint8_t *data, int width, int height, int stride, const uint8_t *buf, int buf_size, int step) |
static int | decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) |
static av_cold int | decode_init (AVCodecContext *avctx) |
Variables | |
AVCodec | ff_loco_decoder |
Detailed Description
LOCO codec.
Definition in file loco.c.
Macro Definition Documentation
#define ADVANCE_BY_DECODED |
Value:
do { \
if (decoded < 0 || decoded >= buf_size) goto buf_too_small; \
buf += decoded; buf_size -= decoded; \
} while(0)
initialize output if(nPeaks >3)%at least 3 peaks in spectrum for trying to find f0 nf0peaks
Synth Windw Norm while(pin< pend)%Until the end...%---Analysis x_w
Referenced by decode_frame().
Typedef Documentation
typedef struct LOCOContext LOCOContext |
typedef struct RICEContext RICEContext |
Enumeration Type Documentation
enum LOCO_MODE |
Function Documentation
|
static |
|
static |
|
static |
Definition at line 128 of file loco.c.
Referenced by decode_frame().
|
inlinestatic |
Definition at line 83 of file loco.c.
Referenced by loco_decode_plane().
|
static |
Definition at line 59 of file loco.c.
Referenced by loco_get_rice().
|
inlinestatic |
Definition at line 117 of file loco.c.
Referenced by loco_decode_plane().
|
inlinestatic |
Definition at line 72 of file loco.c.
Referenced by loco_get_rice().
Variable Documentation
AVCodec ff_loco_decoder |
Initial value:
= {
.name = "loco",
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_LOCO,
.priv_data_size = sizeof(LOCOContext),
.init = decode_init,
.decode = decode_frame,
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("LOCO"),
}
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: libavcodec/avcodec.h:743
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: libavutil/internal.h:123
struct LOCOContext LOCOContext
Definition: libavcodec/avcodec.h:175
Definition: avutil.h:143
static int decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: crystalhd.c:868
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: loco.c:171
Generated on Fri Dec 20 2024 06:56:13 for FFmpeg by 1.8.11