MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / map_format

Function map_format

libavcodec/lcevcdec.c:33–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31#include "lcevctab.h"
32
33static LCEVC_ColorFormat map_format(int format)
34{
35 switch (format) {
36 case AV_PIX_FMT_YUV420P:
37 return LCEVC_I420_8;
38 case AV_PIX_FMT_YUV420P10:
39 return LCEVC_I420_10_LE;
40 case AV_PIX_FMT_NV12:
41 return LCEVC_NV12_8;
42 case AV_PIX_FMT_NV21:
43 return LCEVC_NV21_8;
44 case AV_PIX_FMT_GRAY8:
45 return LCEVC_GRAY_8;
46 }
47
48 return LCEVC_ColorFormat_Unknown;
49}
50
51static int alloc_base_frame(void *logctx, FFLCEVCContext *lcevc,
52 const AVFrame *frame, LCEVC_PictureHandle *picture)

Callers 2

alloc_base_frameFunction · 0.70
alloc_enhanced_frameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected