xine-lib 1.2.11
Data Structures | Macros | Typedefs | Functions | Variables
libaom.c File Reference
#include <stdlib.h>
#include <aom/aom_decoder.h>
#include <aom/aomdx.h>
#include <xine/xine_internal.h>
#include <xine/video_out.h>
#include <xine/buffer.h>
#include <xine/xineutils.h>

Data Structures

struct  aom_decoder_s
 

Macros

#define LOG_MODULE   "libaom_video_decoder"
 
#define LOG_VERBOSE
 

Typedefs

typedef struct aom_decoder_s aom_decoder_t
 

Functions

static void _copy_yv12_16_to_8 (vo_frame_t *img, struct aom_image *aom_img, int width, int height)
 
static void _draw_image (aom_decoder_t *this, aom_image_t *aom_img)
 
static void _decode (aom_decoder_t *this, const uint8_t *buf, size_t size)
 
static void _aom_decode_data (video_decoder_t *this_gen, buf_element_t *buf)
 
static void _aom_flush (video_decoder_t *this_gen)
 
static void _aom_reset (video_decoder_t *this_gen)
 
static void _aom_discontinuity (video_decoder_t *this_gen)
 
static void _aom_dispose (video_decoder_t *this_gen)
 
static video_decoder_t_open_plugin (video_decoder_class_t *class_gen, xine_stream_t *stream)
 
static void * init_plugin_aom (xine_t *xine, const void *data)
 

Variables

static const uint32_t video_types_aom []
 
static const decoder_info_t dec_info_video_aom
 
const plugin_info_t xine_plugin_info[] EXPORTED
 

Macro Definition Documentation

◆ LOG_MODULE

#define LOG_MODULE   "libaom_video_decoder"

◆ LOG_VERBOSE

#define LOG_VERBOSE

Typedef Documentation

◆ aom_decoder_t

typedef struct aom_decoder_s aom_decoder_t

Function Documentation

◆ _aom_decode_data()

static void _aom_decode_data ( video_decoder_t this_gen,
buf_element_t buf 
)
static

◆ _aom_discontinuity()

static void _aom_discontinuity ( video_decoder_t this_gen)
static

References _aom_flush().

Referenced by _open_plugin().

◆ _aom_dispose()

static void _aom_dispose ( video_decoder_t this_gen)
static

References _x_freep().

Referenced by _open_plugin().

◆ _aom_flush()

static void _aom_flush ( video_decoder_t this_gen)
static

References _decode(), and NULL.

Referenced by _aom_discontinuity(), and _open_plugin().

◆ _aom_reset()

static void _aom_reset ( video_decoder_t this_gen)
static

References NULL.

Referenced by _open_plugin().

◆ _copy_yv12_16_to_8()

static void _copy_yv12_16_to_8 ( vo_frame_t img,
struct aom_image *  aom_img,
int  width,
int  height 
)
static

References vo_frame_s::base, height, vo_frame_s::pitches, and width.

Referenced by _draw_image().

◆ _decode()

static void _decode ( aom_decoder_t this,
const uint8_t *  buf,
size_t  size 
)
static

◆ _draw_image()

static void _draw_image ( aom_decoder_t this,
aom_image_t *  aom_img 
)
static

◆ _open_plugin()

static video_decoder_t * _open_plugin ( video_decoder_class_t class_gen,
xine_stream_t stream 
)
static

◆ init_plugin_aom()

static void * init_plugin_aom ( xine_t xine,
const void *  data 
)
static

Variable Documentation

◆ dec_info_video_aom

const decoder_info_t dec_info_video_aom
static
Initial value:
= {
.supported_types = video_types_aom,
.priority = 1,
}
static const uint32_t video_types_aom[]
Definition: libaom.c:361

◆ EXPORTED

const plugin_info_t xine_plugin_info [] EXPORTED
Initial value:
= {
{ PLUGIN_NONE, 0, NULL, 0, NULL, NULL }
}
static const decoder_info_t dec_info_video_aom
Definition: libaom.c:366
static void * init_plugin_aom(xine_t *xine, const void *data)
Definition: libaom.c:342
#define XINE_VERSION_CODE
Definition: xine_internal.h:57
NULL
Definition: xine_plugin.c:78
#define PLUGIN_NONE
Definition: xine_plugin.h:29
#define PLUGIN_VIDEO_DECODER
Definition: xine_plugin.h:33

◆ video_types_aom

const uint32_t video_types_aom[]
static
Initial value:
= {
0
}
#define BUF_VIDEO_AV1
Definition: buffer.h:197