FFmpeg
4.0
|
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <libcrystalhd/bc_dts_types.h>
#include <libcrystalhd/bc_dts_defs.h>
#include <libcrystalhd/libcrystalhd_if.h>
#include "avcodec.h"
#include "decode.h"
#include "internal.h"
#include "libavutil/imgutils.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/opt.h"
Go to the source code of this file.
Data Structures | |
struct | OpaqueList |
struct | CHDContext |
Macros | |
#define | _XOPEN_SOURCE 600 |
#define | OUTPUT_PROC_TIMEOUT 50 |
Timeout parameter passed to DtsProcOutput() in us. More... | |
#define | TIMESTAMP_UNIT 100000 |
Step between fake timestamps passed to hardware in units of 100ns. More... | |
#define | DEFINE_CRYSTALHD_DECODER(x, X, bsf_name) |
Enumerations | |
enum | CopyRet { RET_ERROR = -1, RET_OK = 0, RET_COPY_AGAIN = 1 } |
Functions | |
static BC_MEDIA_SUBTYPE | id2subtype (CHDContext *priv, enum AVCodecID id) |
static void | print_frame_info (CHDContext *priv, BC_DTS_PROC_OUT *output) |
static uint64_t | opaque_list_push (CHDContext *priv, uint64_t reordered_opaque) |
static OpaqueList * | opaque_list_pop (CHDContext *priv, uint64_t fake_timestamp) |
static void | flush (AVCodecContext *avctx) |
static av_cold int | uninit (AVCodecContext *avctx) |
static av_cold int | init (AVCodecContext *avctx) |
static CopyRet | copy_frame (AVCodecContext *avctx, BC_DTS_PROC_OUT *output, AVFrame *frame, int *got_frame) |
static CopyRet | receive_frame (AVCodecContext *avctx, AVFrame *frame, int *got_frame) |
static int | crystalhd_decode_packet (AVCodecContext *avctx, const AVPacket *avpkt) |
static int | crystalhd_receive_frame (AVCodecContext *avctx, AVFrame *frame) |
Variables | |
static const AVOption | options [] |
#define _XOPEN_SOURCE 600 |
Definition at line 48 of file crystalhd.c.
#define OUTPUT_PROC_TIMEOUT 50 |
Timeout parameter passed to DtsProcOutput() in us.
Definition at line 69 of file crystalhd.c.
Referenced by receive_frame().
#define TIMESTAMP_UNIT 100000 |
Step between fake timestamps passed to hardware in units of 100ns.
Definition at line 71 of file crystalhd.c.
Referenced by opaque_list_push().
#define DEFINE_CRYSTALHD_DECODER | ( | x, | |
X, | |||
bsf_name | |||
) |
Definition at line 770 of file crystalhd.c.
enum CopyRet |
Enumerator | |
---|---|
RET_ERROR | |
RET_OK | |
RET_COPY_AGAIN |
Definition at line 78 of file crystalhd.c.
|
inlinestatic |
Definition at line 120 of file crystalhd.c.
Referenced by init().
|
inlinestatic |
Definition at line 140 of file crystalhd.c.
Referenced by receive_frame().
|
static |
Definition at line 186 of file crystalhd.c.
Referenced by crystalhd_decode_packet().
|
static |
Definition at line 214 of file crystalhd.c.
Referenced by copy_frame().
|
static |
Definition at line 267 of file crystalhd.c.
|
static |
Definition at line 279 of file crystalhd.c.
Referenced by compressor(), filter_frame(), gate(), init(), process_command(), vaapi_mpeg4_decode_slice(), and vaapi_vc1_decode_slice().
|
static |
Definition at line 301 of file crystalhd.c.
|
inlinestatic |
Definition at line 421 of file crystalhd.c.
Referenced by receive_frame().
|
inlinestatic |
Definition at line 560 of file crystalhd.c.
Referenced by crystalhd_receive_frame().
|
static |
Definition at line 655 of file crystalhd.c.
Referenced by crystalhd_receive_frame().
|
static |
Definition at line 707 of file crystalhd.c.
|
static |
Definition at line 106 of file crystalhd.c.