FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Enumerations | Functions | Variables
magicyuv.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "libavutil/qsort.h"
#include "avcodec.h"
#include "bytestream.h"
#include "get_bits.h"
#include "huffyuvdsp.h"
#include "internal.h"
#include "thread.h"

Go to the source code of this file.

Data Structures

struct  Slice
 
struct  MagicYUVContext
 
struct  HuffEntry
 

Enumerations

enum  Prediction { LEFT = 1, GRADIENT, MEDIAN }
 

Functions

static av_cold int decode_init (AVCodecContext *avctx)
 
static int ff_magy_huff_cmp_len (const void *a, const void *b)
 
static int build_huff (VLC *vlc, uint8_t *len)
 
static int decode_slice (AVCodecContext *avctx, void *tdata, int j, int threadnr)
 
static int decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 
static av_cold int decode_end (AVCodecContext *avctx)
 

Variables

AVCodec ff_magicyuv_decoder
 

Enumeration Type Documentation

enum Prediction
Enumerator
LEFT 
GRADIENT 
MEDIAN 

Definition at line 39 of file magicyuv.c.

Function Documentation

static av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 62 of file magicyuv.c.

static int ff_magy_huff_cmp_len ( const void a,
const void b 
)
static

Definition at line 75 of file magicyuv.c.

Referenced by build_huff().

static int build_huff ( VLC vlc,
uint8_t len 
)
static

Definition at line 81 of file magicyuv.c.

Referenced by decode_frame().

static int decode_slice ( AVCodecContext avctx,
void tdata,
int  j,
int  threadnr 
)
static

Definition at line 111 of file magicyuv.c.

Referenced by decode_frame().

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

Definition at line 237 of file magicyuv.c.

static av_cold int decode_end ( AVCodecContext avctx)
static

Definition at line 448 of file magicyuv.c.

Variable Documentation

AVCodec ff_magicyuv_decoder
Initial value:
= {
.name = "magicyuv",
.long_name = NULL_IF_CONFIG_SMALL("MagicYUV Lossless Video"),
.priv_data_size = sizeof(MagicYUVContext),
.init_thread_copy = ONLY_IF_THREADS_ENABLED(decode_init_thread_copy),
.close = decode_end,
.decode = decode_frame,
}
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: magicyuv.c:237
static int init_thread_copy(AVCodecContext *avctx)
Definition: tta.c:390
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
#define AV_CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
Definition: avcodec.h:1019
#define ONLY_IF_THREADS_ENABLED(x)
Define a function with only the non-default version specified.
Definition: internal.h:215
#define AV_CODEC_CAP_SLICE_THREADS
Codec supports slice-based (or partition-based) multithreading.
Definition: avcodec.h:1023
static av_cold int decode_init(AVCodecContext *avctx)
Definition: magicyuv.c:62
static av_cold int decode_end(AVCodecContext *avctx)
Definition: magicyuv.c:448
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:956

Definition at line 468 of file magicyuv.c.