FFmpeg
Data Structures | Functions | Variables
libsvtjpegxsdec.c File Reference
#include <SvtJpegxsDec.h>
#include "libavutil/mem.h"
#include "libavutil/common.h"
#include "libavutil/cpu.h"
#include "libavutil/imgutils.h"
#include "libavutil/avassert.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "decode.h"
#include "profiles.h"

Go to the source code of this file.

Data Structures

struct  SvtJpegXsDecodeContext
 

Functions

static int set_pix_fmt (void *logctx, const svt_jpeg_xs_image_config_t *config)
 
static int svt_jpegxs_dec_decode (AVCodecContext *avctx, AVFrame *picture, int *got_frame, AVPacket *avpkt)
 
static av_cold int svt_jpegxs_dec_free (AVCodecContext *avctx)
 
static av_cold int svt_jpegxs_dec_init (AVCodecContext *avctx)
 

Variables

const FFCodec ff_libsvtjpegxs_decoder
 

Function Documentation

◆ set_pix_fmt()

static int set_pix_fmt ( void *  logctx,
const svt_jpeg_xs_image_config_t *  config 
)
static

Definition at line 49 of file libsvtjpegxsdec.c.

Referenced by svt_jpegxs_dec_decode().

◆ svt_jpegxs_dec_decode()

static int svt_jpegxs_dec_decode ( AVCodecContext avctx,
AVFrame picture,
int *  got_frame,
AVPacket avpkt 
)
static

Definition at line 93 of file libsvtjpegxsdec.c.

◆ svt_jpegxs_dec_free()

static av_cold int svt_jpegxs_dec_free ( AVCodecContext avctx)
static

Definition at line 182 of file libsvtjpegxsdec.c.

◆ svt_jpegxs_dec_init()

static av_cold int svt_jpegxs_dec_init ( AVCodecContext avctx)
static

Definition at line 191 of file libsvtjpegxsdec.c.

Variable Documentation

◆ ff_libsvtjpegxs_decoder

const FFCodec ff_libsvtjpegxs_decoder
Initial value:
= {
.p.name = "libsvtjpegxs",
CODEC_LONG_NAME("SVT JPEG XS(Scalable Video Technology for JPEG XS) decoder"),
.p.type = AVMEDIA_TYPE_VIDEO,
.priv_data_size = sizeof(SvtJpegXsDecodeContext),
.p.max_lowres = 2,
.p.wrapper_name = "libsvtjpegxs",
}

Definition at line 213 of file libsvtjpegxsdec.c.

svt_jpegxs_dec_decode
static int svt_jpegxs_dec_decode(AVCodecContext *avctx, AVFrame *picture, int *got_frame, AVPacket *avpkt)
Definition: libsvtjpegxsdec.c:93
FF_CODEC_CAP_NOT_INIT_THREADSAFE
#define FF_CODEC_CAP_NOT_INIT_THREADSAFE
The codec is not known to be init-threadsafe (i.e.
Definition: codec_internal.h:34
svt_jpegxs_dec_free
static av_cold int svt_jpegxs_dec_free(AVCodecContext *avctx)
Definition: libsvtjpegxsdec.c:182
close
static av_cold void close(AVCodecParserContext *s)
Definition: apv_parser.c:197
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:347
AV_CODEC_CAP_OTHER_THREADS
#define AV_CODEC_CAP_OTHER_THREADS
Codec supports multithreading through a method other than slice- or frame-level multithreading.
Definition: codec.h:109
svt_jpegxs_dec_init
static av_cold int svt_jpegxs_dec_init(AVCodecContext *avctx)
Definition: libsvtjpegxsdec.c:191
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:332
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:550
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
FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM
#define FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM
The decoder extracts and fills its parameters even if the frame is skipped due to the skip_frame sett...
Definition: codec_internal.h:54
AV_CODEC_ID_JPEGXS
@ AV_CODEC_ID_JPEGXS
Definition: codec_id.h:334
SvtJpegXsDecodeContext
Definition: libsvtjpegxsdec.c:39
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:200
FF_CODEC_CAP_AUTO_THREADS
#define FF_CODEC_CAP_AUTO_THREADS
Codec handles avctx->thread_count == 0 (auto) internally.
Definition: codec_internal.h:72