FFmpeg
Data Structures | Functions | Variables
bitpacked_dec.c File Reference
#include "avcodec.h"
#include "internal.h"
#include "get_bits.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, void *data, int *got_frame, AVPacket *avpkt)
 

Variables

const AVCodec 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 41 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 63 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 103 of file bitpacked_dec.c.

◆ bitpacked_decode()

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

Definition at line 126 of file bitpacked_dec.c.

Variable Documentation

◆ ff_bitpacked_decoder

const AVCodec ff_bitpacked_decoder
Initial value:
= {
.name = "bitpacked",
.long_name = NULL_IF_CONFIG_SMALL("Bitpacked"),
.priv_data_size = sizeof(struct BitpackedContext),
.decode = bitpacked_decode,
.capabilities = AV_CODEC_CAP_FRAME_THREADS,
.codec_tags = (const uint32_t []){
MKTAG('U', 'Y', 'V', 'Y'),
},
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}

Definition at line 146 of file bitpacked_dec.c.

FF_CODEC_CAP_INIT_THREADSAFE
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
Definition: internal.h:42
init
static int init
Definition: av_tx.c:47
bitpacked_decode
static int bitpacked_decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: bitpacked_dec.c:126
FF_CODEC_TAGS_END
#define FF_CODEC_TAGS_END
AVCodec.codec_tags termination value.
Definition: internal.h:91
bitpacked_init_decoder
static av_cold int bitpacked_init_decoder(AVCodecContext *avctx)
Definition: bitpacked_dec.c:103
AV_CODEC_CAP_FRAME_THREADS
#define AV_CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
Definition: codec.h:113
BitpackedContext
Definition: bitpacked_dec.c:35
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
AV_CODEC_ID_BITPACKED
@ AV_CODEC_ID_BITPACKED
Definition: codec_id.h:280
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
MKTAG
#define MKTAG(a, b, c, d)
Definition: macros.h:55