FFmpeg
Data Structures | Functions | Variables
bitpacked_dec.c File Reference
#include "avcodec.h"
#include "codec_internal.h"
#include "libavutil/imgutils.h"
#include "thread.h"

Go to the source code of this file.

Data Structures

struct  BitpackedContext
 

Functions

static int bitpacked_decode_uyvy422 (AVCodecContext *avctx, AVFrame *frame, const AVPacket *avpkt)
 
static int bitpacked_decode_yuv422p10 (AVCodecContext *avctx, AVFrame *frame, const AVPacket *avpkt)
 
static av_cold int bitpacked_init_decoder (AVCodecContext *avctx)
 
static int bitpacked_decode (AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
 

Variables

const FFCodec ff_bitpacked_decoder
 

Detailed Description

Bitpacked

Definition in file bitpacked_dec.c.

Function Documentation

◆ bitpacked_decode_uyvy422()

static int bitpacked_decode_uyvy422 ( AVCodecContext avctx,
AVFrame frame,
const AVPacket avpkt 
)
static

Definition at line 40 of file bitpacked_dec.c.

Referenced by bitpacked_init_decoder().

◆ bitpacked_decode_yuv422p10()

static int bitpacked_decode_yuv422p10 ( AVCodecContext avctx,
AVFrame frame,
const AVPacket avpkt 
)
static

Definition at line 62 of file bitpacked_dec.c.

Referenced by bitpacked_init_decoder().

◆ bitpacked_init_decoder()

static av_cold int bitpacked_init_decoder ( AVCodecContext avctx)
static

Definition at line 99 of file bitpacked_dec.c.

◆ bitpacked_decode()

static int bitpacked_decode ( AVCodecContext avctx,
AVFrame frame,
int got_frame,
AVPacket avpkt 
)
static

Definition at line 122 of file bitpacked_dec.c.

Variable Documentation

◆ ff_bitpacked_decoder

const FFCodec ff_bitpacked_decoder
Initial value:
= {
.p.name = "bitpacked",
CODEC_LONG_NAME("Bitpacked"),
.p.type = AVMEDIA_TYPE_VIDEO,
.p.capabilities = AV_CODEC_CAP_FRAME_THREADS,
.priv_data_size = sizeof(struct BitpackedContext),
.codec_tags = (const uint32_t []){
MKTAG('U', 'Y', 'V', 'Y'),
},
}

Definition at line 141 of file bitpacked_dec.c.

bitpacked_decode
static int bitpacked_decode(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
Definition: bitpacked_dec.c:122
FF_CODEC_TAGS_END
#define FF_CODEC_TAGS_END
FFCodec.codec_tags termination value.
Definition: codec_internal.h:95
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:287
bitpacked_init_decoder
static av_cold int bitpacked_init_decoder(AVCodecContext *avctx)
Definition: bitpacked_dec.c:99
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
BitpackedContext
Definition: bitpacked_dec.c:34
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:366
AV_CODEC_ID_BITPACKED
@ AV_CODEC_ID_BITPACKED
Definition: codec_id.h:281
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
MKTAG
#define MKTAG(a, b, c, d)
Definition: macros.h:55