Ut Video decoder. More...
#include <stdlib.h>#include "libavutil/intreadwrite.h"#include "avcodec.h"#include "bytestream.h"#include "get_bits.h"#include "dsputil.h"#include "thread.h"Go to the source code of this file.
Data Structures | |
| struct | UtvideoContext |
| struct | HuffEntry |
Typedefs | |
| typedef struct UtvideoContext | UtvideoContext |
| typedef struct HuffEntry | HuffEntry |
Enumerations | |
| enum | { PRED_NONE = 0, PRED_LEFT, PRED_GRADIENT, PRED_MEDIAN } |
Functions | |
| static int | huff_cmp (const void *a, const void *b) |
| static int | build_huff (const uint8_t *src, VLC *vlc, int *fsym) |
| static int | decode_plane (UtvideoContext *c, int plane_no, uint8_t *dst, int step, int stride, int width, int height, const uint8_t *src, int src_size, int use_pred) |
| static void | restore_rgb_planes (uint8_t *src, int step, int stride, int width, int height) |
| static void | restore_median (uint8_t *src, int step, int stride, int width, int height, int slices, int rmode) |
| static void | restore_median_il (uint8_t *src, int step, int stride, int width, int height, int slices, int rmode) |
| static int | decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) |
| static av_cold int | decode_init (AVCodecContext *avctx) |
| static av_cold int | decode_end (AVCodecContext *avctx) |
Variables | |
| static const int | rgb_order [4] = { 1, 2, 0, 3 } |
| AVCodec | ff_utvideo_decoder |
Ut Video decoder.
Definition in file utvideo.c.
| typedef struct UtvideoContext UtvideoContext |
| anonymous enum |
| static int build_huff | ( | const uint8_t * | src, |
| VLC * | vlc, | ||
| int * | fsym | ||
| ) | [static] |
Definition at line 70 of file utvideo.c.
Referenced by decode_plane().
| static av_cold int decode_end | ( | AVCodecContext * | avctx | ) | [static] |
| static int decode_frame | ( | AVCodecContext * | avctx, |
| void * | data, | ||
| int * | data_size, | ||
| AVPacket * | avpkt | ||
| ) | [static] |
| static av_cold int decode_init | ( | AVCodecContext * | avctx | ) | [static] |
| static int decode_plane | ( | UtvideoContext * | c, |
| int | plane_no, | ||
| uint8_t * | dst, | ||
| int | step, | ||
| int | stride, | ||
| int | width, | ||
| int | height, | ||
| const uint8_t * | src, | ||
| int | src_size, | ||
| int | use_pred | ||
| ) | [static] |
Definition at line 112 of file utvideo.c.
Referenced by decode_frame().
Definition at line 64 of file utvideo.c.
Referenced by build_huff().
| static void restore_median | ( | uint8_t * | src, |
| int | step, | ||
| int | stride, | ||
| int | width, | ||
| int | height, | ||
| int | slices, | ||
| int | rmode | ||
| ) | [static] |
Definition at line 237 of file utvideo.c.
Referenced by decode_frame().
| static void restore_median_il | ( | uint8_t * | src, |
| int | step, | ||
| int | stride, | ||
| int | width, | ||
| int | height, | ||
| int | slices, | ||
| int | rmode | ||
| ) | [static] |
Definition at line 290 of file utvideo.c.
Referenced by decode_frame().
| static void restore_rgb_planes | ( | uint8_t * | src, |
| int | step, | ||
| int | stride, | ||
| int | width, | ||
| int | height | ||
| ) | [static] |
Definition at line 220 of file utvideo.c.
Referenced by decode_frame().
{
.name = "utvideo",
.type = AVMEDIA_TYPE_VIDEO,
.id = CODEC_ID_UTVIDEO,
.priv_data_size = sizeof(UtvideoContext),
.init = decode_init,
.close = decode_end,
.decode = decode_frame,
.capabilities = CODEC_CAP_DR1 | CODEC_CAP_FRAME_THREADS,
.long_name = NULL_IF_CONFIG_SMALL("Ut Video"),
}
const int rgb_order[4] = { 1, 2, 0, 3 } [static] |
Definition at line 218 of file utvideo.c.
Referenced by decode_frame().