FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
ylc.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "libavutil/imgutils.h"
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "avcodec.h"
#include "bswapdsp.h"
#include "get_bits.h"
#include "huffyuvdsp.h"
#include "internal.h"
#include "unary.h"

Go to the source code of this file.

Data Structures

struct  YLCContext
 
struct  Node
 

Functions

static av_cold int decode_init (AVCodecContext *avctx)
 
static void get_tree_codes (uint32_t *bits, int16_t *lens, uint8_t *xlat, Node *nodes, int node, uint32_t pfx, int pl, int *pos)
 
static int build_vlc (AVCodecContext *avctx, VLC *vlc, const uint32_t *table)
 
static int decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 
static av_cold int decode_end (AVCodecContext *avctx)
 

Variables

static const uint8_t table_y1 []
 
static const uint8_t table_u []
 
static const uint8_t table_y2 []
 
static const uint8_t table_v []
 
AVCodec ff_ylc_decoder
 

Function Documentation

static av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 46 of file ylc.c.

static void get_tree_codes ( uint32_t *  bits,
int16_t *  lens,
uint8_t xlat,
Node nodes,
int  node,
uint32_t  pfx,
int  pl,
int *  pos 
)
static

Definition at line 63 of file ylc.c.

Referenced by build_vlc().

static int build_vlc ( AVCodecContext avctx,
VLC vlc,
const uint32_t *  table 
)
static

Definition at line 86 of file ylc.c.

Referenced by decode_frame().

static int decode_frame ( AVCodecContext avctx,
void data,
int *  got_frame,
AVPacket avpkt 
)
static

Definition at line 278 of file ylc.c.

static av_cold int decode_end ( AVCodecContext avctx)
static

Definition at line 450 of file ylc.c.

Variable Documentation

const uint8_t table_y1[]
static

Definition at line 150 of file ylc.c.

Referenced by decode_frame().

const uint8_t table_u[]
static

Definition at line 182 of file ylc.c.

Referenced by decode_frame().

const uint8_t table_y2[]
static

Definition at line 214 of file ylc.c.

Referenced by decode_frame().

const uint8_t table_v[]
static

Definition at line 246 of file ylc.c.

Referenced by decode_frame().

AVCodec ff_ylc_decoder
Initial value:
= {
.name = "ylc",
.long_name = NULL_IF_CONFIG_SMALL("YUY2 Lossless Codec"),
.priv_data_size = sizeof(YLCContext),
.close = decode_end,
.capabilities = AV_CODEC_CAP_DR1,
}
static av_cold int decode_init(AVCodecContext *avctx)
Definition: ylc.c:46
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
Definition: ylc.c:36
static av_cold int decode_end(AVCodecContext *avctx)
Definition: ylc.c:450
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: ylc.c:278
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
static int decode(AVCodecContext *avctx, void *data, int *got_sub, AVPacket *avpkt)
Definition: ccaption_dec.c:722
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:956

Definition at line 462 of file ylc.c.