FFmpeg
|
#include "config.h"
#include <stdint.h>
#include <string.h>
#include <VideoToolbox/VideoToolbox.h>
#include "buffer.h"
#include "common.h"
#include "hwcontext.h"
#include "hwcontext_internal.h"
#include "hwcontext_videotoolbox.h"
#include "mem.h"
#include "pixfmt.h"
#include "pixdesc.h"
Go to the source code of this file.
Variables | |
struct { | |
uint32_t cv_fmt | |
bool full_range | |
enum AVPixelFormat pix_fmt | |
} | cv_pix_fmts [] |
const HWContextType | ff_hwcontext_type_videotoolbox |
enum AVPixelFormat av_map_videotoolbox_format_to_pixfmt | ( | uint32_t | cv_fmt | ) |
Convert a VideoToolbox (actually CoreVideo) format to AVPixelFormat.
Returns AV_PIX_FMT_NONE if no known equivalent was found.
Definition at line 53 of file hwcontext_videotoolbox.c.
Referenced by vt_map_frame().
uint32_t av_map_videotoolbox_format_from_pixfmt | ( | enum AVPixelFormat | pix_fmt | ) |
Convert an AVPixelFormat to a VideoToolbox (actually CoreVideo) format.
Returns 0 if no known equivalent was found.
Definition at line 63 of file hwcontext_videotoolbox.c.
uint32_t av_map_videotoolbox_format_from_pixfmt2 | ( | enum AVPixelFormat | pix_fmt, |
bool | full_range | ||
) |
Same as av_map_videotoolbox_format_from_pixfmt function, but can map and return full range pixel formats via a flag.
Definition at line 68 of file hwcontext_videotoolbox.c.
Referenced by av_map_videotoolbox_format_from_pixfmt().
|
static |
Definition at line 78 of file hwcontext_videotoolbox.c.
|
static |
Definition at line 92 of file hwcontext_videotoolbox.c.
|
static |
Definition at line 107 of file hwcontext_videotoolbox.c.
Referenced by vt_map_frame().
|
static |
Definition at line 114 of file hwcontext_videotoolbox.c.
Referenced by vt_transfer_data_from(), and vt_transfer_data_to().
|
static |
Definition at line 170 of file hwcontext_videotoolbox.c.
|
static |
Definition at line 201 of file hwcontext_videotoolbox.c.
|
static |
Definition at line 232 of file hwcontext_videotoolbox.c.
uint32_t cv_fmt |
Definition at line 36 of file hwcontext_videotoolbox.c.
Referenced by av_map_videotoolbox_format_to_pixfmt().
bool full_range |
Definition at line 37 of file hwcontext_videotoolbox.c.
Referenced by av_map_videotoolbox_format_from_pixfmt2(), dvbsub_parse_clut_segment(), ff_draw_init(), and mov_write_colr_tag().
enum AVPixelFormat pix_fmt |
Definition at line 38 of file hwcontext_videotoolbox.c.
Referenced by av_map_videotoolbox_format_from_pixfmt(), and av_map_videotoolbox_format_from_pixfmt2().
const { ... } cv_pix_fmts[] |
Referenced by av_map_videotoolbox_format_from_pixfmt2(), and av_map_videotoolbox_format_to_pixfmt().
const HWContextType ff_hwcontext_type_videotoolbox |
Definition at line 243 of file hwcontext_videotoolbox.c.