MediaProcessors
|
#include "ffmpeg_lhe.h"
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <pthread.h>
#include <libcjson/cJSON.h>
#include <libavcodec/avcodec.h>
#include <libmediaprocsutils/log.h>
#include <libmediaprocsutils/stat_codes.h>
#include <libmediaprocsutils/check_utils.h>
#include <libmediaprocsutils/fifo.h>
#include <libmediaprocs/proc_if.h>
#include <libmediaprocs/proc.h>
#include "ffmpeg_video.h"
#include "proc_frame_2_ffmpeg.h"
#include "video_settings.h"
Go to the source code of this file.
Classes | |
struct | ffmpeg_mlhe_enc_settings_ctx_s |
struct | ffmpeg_mlhe_enc_ctx_s |
struct | ffmpeg_mlhe_dec_settings_ctx_s |
struct | ffmpeg_mlhe_dec_ctx_s |
Typedefs | |
typedef struct ffmpeg_mlhe_enc_settings_ctx_s | ffmpeg_mlhe_enc_settings_ctx_t |
typedef struct ffmpeg_mlhe_enc_ctx_s | ffmpeg_mlhe_enc_ctx_t |
typedef struct ffmpeg_mlhe_dec_settings_ctx_s | ffmpeg_mlhe_dec_settings_ctx_t |
typedef struct ffmpeg_mlhe_dec_ctx_s | ffmpeg_mlhe_dec_ctx_t |
Functions | |
static proc_ctx_t * | ffmpeg_mlhe_enc_open (const proc_if_t *proc_if, const char *settings_str, log_ctx_t *log_ctx, va_list arg) |
static void | ffmpeg_mlhe_enc_close (proc_ctx_t **ref_proc_ctx) |
static int | ffmpeg_mlhe_enc_process_frame (proc_ctx_t *proc_ctx, fifo_ctx_t *iput_fifo_ctx, fifo_ctx_t *oput_fifo_ctx) |
static int | ffmpeg_mlhe_enc_rest_put (proc_ctx_t *proc_ctx, const char *str) |
static int | ffmpeg_mlhe_enc_rest_get (proc_ctx_t *proc_ctx, const proc_if_rest_fmt_t rest_fmt, void **ref_reponse) |
static int | ffmpeg_mlhe_enc_settings_ctx_init (volatile ffmpeg_mlhe_enc_settings_ctx_t *ffmpeg_mlhe_enc_settings_ctx, log_ctx_t *log_ctx) |
static void | ffmpeg_mlhe_enc_settings_ctx_deinit (volatile ffmpeg_mlhe_enc_settings_ctx_t *ffmpeg_mlhe_enc_settings_ctx, log_ctx_t *log_ctx) |
static proc_ctx_t * | ffmpeg_mlhe_dec_open (const proc_if_t *proc_if, const char *settings_str, log_ctx_t *log_ctx, va_list arg) |
static void | ffmpeg_mlhe_dec_close (proc_ctx_t **ref_proc_ctx) |
static int | ffmpeg_mlhe_dec_process_frame (proc_ctx_t *proc_ctx, fifo_ctx_t *iput_fifo_ctx, fifo_ctx_t *oput_fifo_ctx) |
static int | ffmpeg_mlhe_dec_rest_put (proc_ctx_t *proc_ctx, const char *str) |
static int | ffmpeg_mlhe_dec_rest_get (proc_ctx_t *proc_ctx, const proc_if_rest_fmt_t rest_fmt, void **ref_reponse) |
static int | ffmpeg_mlhe_dec_settings_ctx_init (volatile ffmpeg_mlhe_dec_settings_ctx_t *ffmpeg_mlhe_dec_settings_ctx, log_ctx_t *log_ctx) |
static void | ffmpeg_mlhe_dec_settings_ctx_deinit (volatile ffmpeg_mlhe_dec_settings_ctx_t *ffmpeg_mlhe_dec_settings_ctx, log_ctx_t *log_ctx) |
Variables | |
const proc_if_t | proc_if_ffmpeg_mlhe_enc |
const proc_if_t | proc_if_ffmpeg_mlhe_dec |
Definition in file ffmpeg_lhe.c.
typedef struct ffmpeg_mlhe_dec_ctx_s ffmpeg_mlhe_dec_ctx_t |
FFmpeg's MLHE video decoder wrapper context structure.
typedef struct ffmpeg_mlhe_dec_settings_ctx_s ffmpeg_mlhe_dec_settings_ctx_t |
FFmpeg's MLHE video decoder settings context structure.
typedef struct ffmpeg_mlhe_enc_ctx_s ffmpeg_mlhe_enc_ctx_t |
FFmpeg's MLHE video encoder wrapper context structure.
typedef struct ffmpeg_mlhe_enc_settings_ctx_s ffmpeg_mlhe_enc_settings_ctx_t |
FFmpeg's MLHE video encoder settings context structure.
|
static |
Implements the proc_if_s::close callback. See .proc_if.h for further details.
Definition at line 584 of file ffmpeg_lhe.c.
|
static |
Implements the proc_if_s::open callback. See .proc_if.h for further details.
Definition at line 525 of file ffmpeg_lhe.c.
|
static |
Implements the proc_if_s::process_frame callback. See .proc_if.h for further details.
Definition at line 615 of file ffmpeg_lhe.c.
|
static |
Implements the proc_if_s::rest_get callback. See .proc_if.h for further details.
Definition at line 703 of file ffmpeg_lhe.c.
|
static |
Implements the proc_if_s::rest_put callback. See .proc_if.h for further details.
Definition at line 661 of file ffmpeg_lhe.c.
|
static |
Release specific MLHE decoder settings (allocated in heap memory).
ffmpeg_mlhe_dec_settings_ctx | |
log_ctx |
Definition at line 834 of file ffmpeg_lhe.c.
|
static |
Initialize specific MLHE decoder settings to defaults.
ffmpeg_mlhe_dec_settings_ctx | |
log_ctx |
Definition at line 804 of file ffmpeg_lhe.c.
|
static |
Implements the proc_if_s::close callback. See .proc_if.h for further details.
Definition at line 248 of file ffmpeg_lhe.c.
|
static |
Implements the proc_if_s::open callback. See .proc_if.h for further details.
Definition at line 189 of file ffmpeg_lhe.c.
|
static |
Implements the proc_if_s::process_frame callback. See .proc_if.h for further details.
Definition at line 280 of file ffmpeg_lhe.c.
|
static |
Implements the proc_if_s::rest_get callback. See .proc_if.h for further details.
Definition at line 368 of file ffmpeg_lhe.c.
|
static |
Implements the proc_if_s::rest_put callback. See .proc_if.h for further details.
Definition at line 326 of file ffmpeg_lhe.c.
|
static |
Release specific MLHE video encoder settings (allocated in heap memory).
ffmpeg_mlhe_enc_settings_ctx | |
log_ctx |
Definition at line 501 of file ffmpeg_lhe.c.
|
static |
Initialize specific MLHE video encoder settings to defaults.
ffmpeg_mlhe_enc_settings_ctx | |
log_ctx |
Definition at line 471 of file ffmpeg_lhe.c.
const proc_if_t proc_if_ffmpeg_mlhe_dec |
Processor interface implementing the FFmpeg wrapper of the MLHE video decoder.
Definition at line 165 of file ffmpeg_lhe.c.
const proc_if_t proc_if_ffmpeg_mlhe_enc |
Processor interface implementing the FFmpeg wrapper of the LHE video encoder. Processor interface implementing the FFmpeg wrapper of the LHE video decoder. Processor interface implementing the FFmpeg wrapper of the MLHE video encoder.
Definition at line 145 of file ffmpeg_lhe.c.