FFmpeg
Functions | Variables
rtv1.c File Reference
#include <stdio.h>
#include <string.h>
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "decode.h"
#include "texturedsp.h"
#include "thread.h"

Go to the source code of this file.

Functions

static av_cold int decode_init (AVCodecContext *avctx)
 
static int decode_rtv1 (GetByteContext *gb, uint8_t *dst, ptrdiff_t linesize, int width, int height, int flag, int(*dxt1_block)(uint8_t *dst, ptrdiff_t stride, const uint8_t *block))
 
static int decode_frame (AVCodecContext *avctx, AVFrame *p, int *got_frame, AVPacket *avpkt)
 

Variables

const FFCodec ff_rtv1_decoder
 

Function Documentation

◆ decode_init()

static av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 32 of file rtv1.c.

◆ decode_rtv1()

static int decode_rtv1 ( GetByteContext gb,
uint8_t *  dst,
ptrdiff_t  linesize,
int  width,
int  height,
int  flag,
int(*)(uint8_t *dst, ptrdiff_t stride, const uint8_t *block dxt1_block 
)
static

Definition at line 40 of file rtv1.c.

Referenced by decode_frame().

◆ decode_frame()

static int decode_frame ( AVCodecContext avctx,
AVFrame p,
int got_frame,
AVPacket avpkt 
)
static

Definition at line 96 of file rtv1.c.

Variable Documentation

◆ ff_rtv1_decoder

const FFCodec ff_rtv1_decoder
Initial value:
= {
.p.name = "rtv1",
CODEC_LONG_NAME("RTV1 (RivaTuner Video)"),
.p.type = AVMEDIA_TYPE_VIDEO,
.priv_data_size = sizeof(TextureDSPContext),
}

Definition at line 143 of file rtv1.c.

AV_CODEC_ID_RTV1
@ AV_CODEC_ID_RTV1
Definition: codec_id.h:322
TextureDSPContext
Definition: texturedsp.h:45
decode_frame
static int decode_frame(AVCodecContext *avctx, AVFrame *p, int *got_frame, AVPacket *avpkt)
Definition: rtv1.c:96
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:287
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:272
AV_CODEC_CAP_FRAME_THREADS
#define AV_CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
Definition: codec.h:110
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:365
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
decode_init
static av_cold int decode_init(AVCodecContext *avctx)
Definition: rtv1.c:32
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201