|
FFmpeg
|
#include "config_components.h"#include <stdbool.h>#include <multimedia/player_framework/native_avcapability.h>#include <multimedia/player_framework/native_avcodec_videodecoder.h>#include "libavutil/fifo.h"#include "libavutil/hwcontext_oh.h"#include "libavutil/imgutils.h"#include "libavutil/mem.h"#include "libavutil/opt.h"#include "libavutil/refstruct.h"#include "libavutil/thread.h"#include "avcodec.h"#include "codec_internal.h"#include "decode.h"#include "hwconfig.h"#include "ohcodec.h"#include "pthread_internal.h"Go to the source code of this file.
Data Structures | |
| struct | OHCodecDecContext |
| struct | OHCodecBuffer |
Macros | |
| #define | OFFSET(x) |
| #define | VD (AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_DECODING_PARAM) |
| #define | DECLARE_OHCODEC_VCLASS(short_name) |
| #define | DECLARE_OHCODEC_VDEC(short_name, full_name, codec_id, bsf) |
Functions | |
| DEFINE_OFFSET_ARRAY (OHCodecDecContext, mutex_cond, mutex_cond_cnt,(OFFSET(input_mutex), OFFSET(output_mutex)),(OFFSET(input_cond), OFFSET(output_cond))) | |
| static void | oh_decode_release (AVRefStructOpaque unused, void *obj) |
| static int | oh_decode_create (OHCodecDecContext *s, AVCodecContext *avctx) |
| static int | oh_decode_set_format (OHCodecDecContext *s, AVCodecContext *avctx) |
| static void | oh_decode_on_err (OH_AVCodec *codec, int32_t err, void *userdata) |
| static void | oh_decode_on_stream_changed (OH_AVCodec *codec, OH_AVFormat *format, void *userdata) |
| static void | oh_decode_on_need_input (OH_AVCodec *codec, uint32_t index, OH_AVBuffer *buffer, void *userdata) |
| static void | oh_decode_on_output (OH_AVCodec *codec, uint32_t index, OH_AVBuffer *buffer, void *userdata) |
| static int | oh_decode_start (OHCodecDecContext *s, AVCodecContext *avctx) |
| static av_cold int | oh_decode_init (AVCodecContext *avctx) |
| static av_cold int | oh_decode_close (AVCodecContext *avctx) |
| static void | oh_buffer_release (void *opaque, uint8_t *data) |
| static int | oh_decode_wrap_hw_buffer (AVCodecContext *avctx, AVFrame *frame, OHBufferQueueItem *output, const OH_AVCodecBufferAttr *attr) |
| static int | oh_decode_wrap_sw_buffer (AVCodecContext *avctx, AVFrame *frame, OHBufferQueueItem *output, const OH_AVCodecBufferAttr *attr) |
| static int | oh_decode_output_frame (AVCodecContext *avctx, AVFrame *frame, OHBufferQueueItem *output) |
| static int | oh_decode_send_pkt (AVCodecContext *avctx, OHBufferQueueItem *input) |
| static int | oh_decode_receive_frame (AVCodecContext *avctx, AVFrame *frame) |
| static void | oh_decode_flush (AVCodecContext *avctx) |
Variables | |
| static const AVCodecHWConfigInternal *const | oh_hw_configs [] |
| static const AVOption | ohcodec_vdec_options [] |
| #define OFFSET | ( | x | ) |
| #define VD (AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_DECODING_PARAM) |
| #define DECLARE_OHCODEC_VCLASS | ( | short_name | ) |
| #define DECLARE_OHCODEC_VDEC | ( | short_name, | |
| full_name, | |||
| codec_id, | |||
| bsf ) |
| DEFINE_OFFSET_ARRAY | ( | OHCodecDecContext | , |
| mutex_cond | , | ||
| mutex_cond_cnt | , | ||
| (OFFSET(input_mutex), OFFSET(output_mutex)) | , | ||
| (OFFSET(input_cond), OFFSET(output_cond)) | ) |
|
static |
Definition at line 88 of file ohdec.c.
Referenced by oh_decode_create().
|
static |
Definition at line 99 of file ohdec.c.
Referenced by oh_decode_init().
|
static |
Definition at line 144 of file ohdec.c.
Referenced by oh_decode_init().
|
static |
Definition at line 202 of file ohdec.c.
Referenced by oh_decode_on_need_input(), oh_decode_on_output(), oh_decode_on_stream_changed(), and oh_decode_start().
|
static |
Definition at line 219 of file ohdec.c.
Referenced by oh_decode_output_frame(), and oh_decode_start().
|
static |
Definition at line 298 of file ohdec.c.
Referenced by oh_decode_start().
|
static |
Definition at line 317 of file ohdec.c.
Referenced by oh_decode_start().
|
static |
Definition at line 336 of file ohdec.c.
Referenced by oh_decode_init().
|
static |
|
static |
|
static |
Definition at line 432 of file ohdec.c.
Referenced by oh_decode_wrap_hw_buffer().
|
static |
Definition at line 453 of file ohdec.c.
Referenced by oh_decode_output_frame().
|
static |
Definition at line 489 of file ohdec.c.
Referenced by oh_decode_output_frame().
|
static |
Definition at line 535 of file ohdec.c.
Referenced by oh_decode_receive_frame().
|
static |
Definition at line 573 of file ohdec.c.
Referenced by oh_decode_receive_frame().
|
static |
|
static |
|
static |