MythTV master
mythavutil.cpp
Go to the documentation of this file.
1//
2// mythavutil.cpp
3// MythTV
4//
5// Created by Jean-Yves Avenard on 28/06/2014.
6// Copyright (c) 2014 Bubblestuff Pty Ltd. All rights reserved.
7//
8
9// Qt
10#include <QtGlobal>
11#include <QMutexLocker>
12#include <QFile>
13#if QT_VERSION >= QT_VERSION_CHECK(6,5,0)
14#include <QtProcessorDetection>
15#endif
16
17// MythTV
18#include "mythaverror.h"
19#include "libmythbase/mythconfig.h"
21#include "mythdeinterlacer.h"
22#include "mythavutil.h"
23
24// FFmpeg
25extern "C" {
26#include "libavcodec/avcodec.h"
27#include "libavutil/imgutils.h"
28#include "libavformat/avformat.h"
29}
30
32{
33 switch (Type)
34 {
35 case FMT_YV12: return AV_PIX_FMT_YUV420P;
36 case FMT_YUV420P9: return AV_PIX_FMT_YUV420P9;
37 case FMT_YUV420P10: return AV_PIX_FMT_YUV420P10;
38 case FMT_YUV420P12: return AV_PIX_FMT_YUV420P12;
39 case FMT_YUV420P14: return AV_PIX_FMT_YUV420P14;
40 case FMT_YUV420P16: return AV_PIX_FMT_YUV420P16;
41 case FMT_NV12: return AV_PIX_FMT_NV12;
42 case FMT_P010: return AV_PIX_FMT_P010;
43 case FMT_P016: return AV_PIX_FMT_P016;
44 case FMT_YUV422P: return AV_PIX_FMT_YUV422P;
45 case FMT_YUV422P9: return AV_PIX_FMT_YUV422P9;
46 case FMT_YUV422P10: return AV_PIX_FMT_YUV422P10;
47 case FMT_YUV422P12: return AV_PIX_FMT_YUV422P12;
48 case FMT_YUV422P14: return AV_PIX_FMT_YUV422P14;
49 case FMT_YUV422P16: return AV_PIX_FMT_YUV422P16;
50 case FMT_YUV444P: return AV_PIX_FMT_YUV444P;
51 case FMT_YUV444P9: return AV_PIX_FMT_YUV444P9;
52 case FMT_YUV444P10: return AV_PIX_FMT_YUV444P10;
53 case FMT_YUV444P12: return AV_PIX_FMT_YUV444P12;
54 case FMT_YUV444P14: return AV_PIX_FMT_YUV444P14;
55 case FMT_YUV444P16: return AV_PIX_FMT_YUV444P16;
56 case FMT_RGB24: return AV_PIX_FMT_RGB24;
57 case FMT_BGRA: return AV_PIX_FMT_BGRA; // NOLINT(bugprone-branch-clone)
58 case FMT_RGB32: return AV_PIX_FMT_RGB32;
59 case FMT_ARGB32: return AV_PIX_FMT_ARGB;
60 case FMT_RGBA32: return AV_PIX_FMT_RGBA;
61 case FMT_YUY2: return AV_PIX_FMT_UYVY422;
62 case FMT_VDPAU: return AV_PIX_FMT_VDPAU;
63 case FMT_VTB: return AV_PIX_FMT_VIDEOTOOLBOX;
64 case FMT_VAAPI: return AV_PIX_FMT_VAAPI;
65 case FMT_MEDIACODEC: return AV_PIX_FMT_MEDIACODEC;
66 case FMT_NVDEC: return AV_PIX_FMT_CUDA;
67 case FMT_DXVA2: return AV_PIX_FMT_DXVA2_VLD;
68 case FMT_MMAL: return AV_PIX_FMT_MMAL;
69 case FMT_DRMPRIME: return AV_PIX_FMT_DRM_PRIME;
70 case FMT_NONE: break;
71 }
72 return AV_PIX_FMT_NONE;
73}
74
76{
77 switch (Fmt)
78 {
79 case AV_PIX_FMT_YUVJ420P:
80 case AV_PIX_FMT_YUV420P: return FMT_YV12;
81 case AV_PIX_FMT_YUV420P9: return FMT_YUV420P9;
82 case AV_PIX_FMT_YUV420P10: return FMT_YUV420P10;
83 case AV_PIX_FMT_YUV420P12: return FMT_YUV420P12;
84 case AV_PIX_FMT_YUV420P14: return FMT_YUV420P14;
85 case AV_PIX_FMT_YUV420P16: return FMT_YUV420P16;
86 case AV_PIX_FMT_NV12: return FMT_NV12;
87 case AV_PIX_FMT_P010: return FMT_P010;
88 case AV_PIX_FMT_P016: return FMT_P016;
89 case AV_PIX_FMT_YUVJ422P:
90 case AV_PIX_FMT_YUV422P: return FMT_YUV422P;
91 case AV_PIX_FMT_YUV422P9: return FMT_YUV422P9;
92 case AV_PIX_FMT_YUV422P10: return FMT_YUV422P10;
93 case AV_PIX_FMT_YUV422P12: return FMT_YUV422P12;
94 case AV_PIX_FMT_YUV422P14: return FMT_YUV422P14;
95 case AV_PIX_FMT_YUV422P16: return FMT_YUV422P16;
96 case AV_PIX_FMT_YUVJ444P:
97 case AV_PIX_FMT_YUV444P: return FMT_YUV444P;
98 case AV_PIX_FMT_YUV444P9: return FMT_YUV444P9;
99 case AV_PIX_FMT_YUV444P10: return FMT_YUV444P10;
100 case AV_PIX_FMT_YUV444P12: return FMT_YUV444P12;
101 case AV_PIX_FMT_YUV444P14: return FMT_YUV444P14;
102 case AV_PIX_FMT_YUV444P16: return FMT_YUV444P16;
103 case AV_PIX_FMT_UYVY422: return FMT_YUY2;
104 case AV_PIX_FMT_RGB24: return FMT_RGB24;
105 case AV_PIX_FMT_ARGB: return FMT_ARGB32;
106 case AV_PIX_FMT_RGBA: return FMT_RGBA32;
107 case AV_PIX_FMT_BGRA: return FMT_BGRA;
108 case AV_PIX_FMT_CUDA: return FMT_NVDEC;
109 case AV_PIX_FMT_MMAL: return FMT_MMAL;
110 case AV_PIX_FMT_VDPAU: return FMT_VDPAU;
111 case AV_PIX_FMT_VIDEOTOOLBOX: return FMT_VTB;
112 case AV_PIX_FMT_VAAPI: return FMT_VAAPI;
113 case AV_PIX_FMT_DXVA2_VLD: return FMT_DXVA2;
114 case AV_PIX_FMT_MEDIACODEC: return FMT_MEDIACODEC;
115 case AV_PIX_FMT_DRM_PRIME: return FMT_DRMPRIME;
116 default: break;
117 }
118 return FMT_NONE;
119}
120
122{
123 switch (Transfer)
124 {
125 case AVCOL_TRC_SMPTE2084: return MythHDR::HDR10;
126 case AVCOL_TRC_BT2020_10:
127 case AVCOL_TRC_ARIB_STD_B67: return MythHDR::HLG;
128 default: break;
129 }
130 return MythHDR::SDR;
131}
132
139{
140 if (!Frame)
141 return;
142
143 // Create a wrapper frame and set it up
144 // (yes - this will end up being a wrapper around a wrapper!)
145 if (VideoFrameType type = PixelFormatToFrameType(static_cast<AVPixelFormat>(Frame->format));
147 {
148 // AVFrame video data consists of 3 independent buffers.
149 // MythVideoFrame requires video data to be in one memory block.
150 // Create a copy of the frame with all video data in one memory block.
151 AVFrame tempFrame = *Frame;
152 AVFrame *tf = &tempFrame;
153
154 size_t b0 = tf->buf[0]->size;
155 size_t b1 = tf->buf[1]->size;
156 size_t b2 = tf->buf[2]->size;
157
158 // Extend size to a multiple of 16 bytes for MythVideoFrame alignment constraints
159 size_t b0a = ((b0 + 15) / 16) * 16;
160 size_t b1a = ((b1 + 15) / 16) * 16;
161 size_t b2a = ((b2 + 15) / 16) * 16;
162
163 // Allocate contiguous buffer with enough space for the three segments
164 uint8_t *tbuf{ new uint8_t[b0a + b1a + b2a]{} };
165
166 tf->data[0] = tbuf;
167 tf->data[1] = tbuf + b0a;
168 tf->data[2] = tbuf + b0a + b1a;
169 memcpy(tf->data[0], tf->buf[0]->data, b0);
170 memcpy(tf->data[1], tf->buf[1]->data, b1);
171 memcpy(tf->data[2], tf->buf[2]->data, b2);
172
173 // Create a MythVideoFrame from the temporary AVFrame
174 MythVideoFrame mythframe(type, tf->data[0],
175 MythVideoFrame::GetBufferSize(type, tf->width, tf->height),
176 tf->width, tf->height);
177 mythframe.m_offsets[0] = 0;
178 mythframe.m_offsets[1] = tf->data[1] - tf->data[0];
179 mythframe.m_offsets[2] = tf->data[2] - tf->data[0];
180 mythframe.m_pitches[0] = tf->linesize[0];
181 mythframe.m_pitches[1] = tf->linesize[1];
182 mythframe.m_pitches[2] = tf->linesize[2];
183
184 // Deinterlacing
187 MythDeinterlacer deinterlacer;
188 deinterlacer.Filter(&mythframe, kScan_Interlaced, nullptr, true);
189
190 // Copy back our deinterlaced frame and free the video buffer of the temporary AVFrame
191 memcpy(Frame->data[0], tf->data[0], b0);
192 memcpy(Frame->data[1], tf->data[1], b1);
193 memcpy(Frame->data[2], tf->data[2], b2);
194 delete[] tbuf;
195
196 // Must remove buffer before mythframe is deleted
197 mythframe.m_buffer = nullptr;
198 }
199}
200
202int MythAVUtil::FillAVFrame(AVFrame *Frame, const MythVideoFrame *From, AVPixelFormat Fmt)
203{
204 if (Fmt == AV_PIX_FMT_NONE)
205 Fmt = FrameTypeToPixelFormat(From->m_type);
206
207 av_image_fill_arrays(Frame->data, Frame->linesize, From->m_buffer,
208 Fmt, From->m_width, From->m_height, IMAGE_ALIGN);
209 Frame->data[1] = From->m_buffer + From->m_offsets[1];
210 Frame->data[2] = From->m_buffer + From->m_offsets[2];
211 Frame->linesize[0] = From->m_pitches[0];
212 Frame->linesize[1] = From->m_pitches[1];
213 Frame->linesize[2] = From->m_pitches[2];
214 return static_cast<int>(MythVideoFrame::GetBufferSize(From->m_type, From->m_width, From->m_height));
215}
216
221{
222 sws_freeContext(m_swsctx);
223}
224
225int MythAVCopy::SizeData(int Width, int Height, AVPixelFormat Fmt)
226{
227 if (Width == m_width && Height == m_height && Fmt == m_format)
228 return m_size;
229
230 m_size = av_image_get_buffer_size(Fmt, Width, Height, IMAGE_ALIGN);
231 m_width = Width;
232 m_height = Height;
233 m_format = Fmt;
234 return m_size;
235}
236
237int MythAVCopy::Copy(AVFrame* To, AVPixelFormat ToFmt, const AVFrame* From, AVPixelFormat FromFmt,
238 int Width, int Height)
239{
240 int newwidth = Width;
241#ifdef Q_PROCESSOR_ARM
242 // references https://code.mythtv.org/trac/ticket/12888 and
243 // https://trac.ffmpeg.org/ticket/6192
244 // TODO: This is from 2017-02-17 and probably needs to be tested again.
245
246 // The ARM build of FFMPEG has a bug that if sws_scale is
247 // called with source and dest sizes the same, and
248 // formats as shown below, it causes a bus error and the
249 // application core dumps. To avoid this I make a -1
250 // difference in the new width, causing it to bypass
251 // the code optimization which is failing.
252 if (FromFmt == AV_PIX_FMT_YUV420P && ToFmt == AV_PIX_FMT_BGRA)
253 newwidth = Width - 1;
254#endif
255 m_swsctx = sws_getCachedContext(m_swsctx, Width, Height, FromFmt,
256 newwidth, Height, ToFmt, SWS_FAST_BILINEAR,
257 nullptr, nullptr, nullptr);
258 if (m_swsctx == nullptr)
259 return -1;
260 sws_scale(m_swsctx, From->data, From->linesize, 0, Height, To->data, To->linesize);
261 return SizeData(Width, Height, ToFmt);
262}
263
271 unsigned char* Buffer, AVPixelFormat Fmt)
272{
273 if (!Buffer)
274 return 0;
275 AVFrame frame;
276 AVPixelFormat fromfmt = MythAVUtil::FrameTypeToPixelFormat(From->m_type);
277 MythAVUtil::FillAVFrame(&frame, From, fromfmt);
278 av_image_fill_arrays(To->data, To->linesize, Buffer, Fmt, From->m_width, From->m_height, IMAGE_ALIGN);
279 return Copy(To, Fmt, &frame, fromfmt, From->m_width, From->m_height);
280}
281
287{
289}
290
291AVCodecContext *MythCodecMap::GetCodecContext(const AVStream* Stream,
292 const AVCodec* Codec,
293 bool NullCodec)
294{
295 if (Stream == nullptr || Stream->codecpar == nullptr)
296 return nullptr;
297 QMutexLocker lock(&m_mapLock);
298 AVCodecContext* avctx = m_streamMap.value(Stream, nullptr);
299 if (avctx == nullptr)
300 {
301 if (NullCodec)
302 {
303 Codec = nullptr;
304 }
305 else if (Codec == nullptr)
306 {
307 Codec = avcodec_find_decoder(Stream->codecpar->codec_id);
308 if (Codec == nullptr)
309 {
310 LOG(VB_GENERAL, LOG_WARNING, QString("avcodec_find_decoder fail for %1")
311 .arg(Stream->codecpar->codec_id));
312 return nullptr;
313 }
314 }
315 avctx = avcodec_alloc_context3(Codec);
316 if (avctx != nullptr && avcodec_parameters_to_context(avctx, Stream->codecpar) < 0)
317 avcodec_free_context(&avctx);
318
319 if (avctx != nullptr)
320 {
321 avctx->pkt_timebase = Stream->time_base;
322 m_streamMap.insert(Stream, avctx);
323 }
324 }
325 return avctx;
326}
327
328AVCodecContext *MythCodecMap::FindCodecContext(const AVStream* Stream)
329{
330 return m_streamMap.value(Stream, nullptr);
331}
332
336void MythCodecMap::FreeCodecContext(const AVStream* Stream)
337{
338 QMutexLocker lock(&m_mapLock);
339 AVCodecContext* avctx = m_streamMap.take(Stream);
340 if (avctx)
341 {
342 if (avctx->internal)
343 avcodec_flush_buffers(avctx);
344 avcodec_free_context(&avctx);
345 }
346}
347
349{
350 QMutexLocker lock(&m_mapLock);
351 QMap<const AVStream*, AVCodecContext*>::iterator i = m_streamMap.begin();
352 while (i != m_streamMap.end())
353 {
354 const AVStream *stream = i.key();
355 ++i;
356 FreeCodecContext(stream);
357 }
358}
359
361{
362 const int probeBufferSize = 8 * 1024;
363 const AVInputFormat *fmt = nullptr;
364 AVProbeData probe;
365 memset(&probe, 0, sizeof(AVProbeData));
366 probe.filename = "";
367 probe.buf = new unsigned char[probeBufferSize + AVPROBE_PADDING_SIZE];
368 probe.buf_size = probeBufferSize;
369 memset(probe.buf, 0, probeBufferSize + AVPROBE_PADDING_SIZE);
370 av_log_set_level(AV_LOG_FATAL);
371 if (filename == "")
372 m_errorCode = 97;
373 QFile infile(filename);
374 if (m_errorCode == 0 && !infile.open(QIODevice::ReadOnly))
375 m_errorCode = 99;
376 if (m_errorCode==0) {
377 int64_t leng = infile.read(reinterpret_cast<char*>(probe.buf), probeBufferSize);
378 probe.buf_size = static_cast<int>(leng);
379 infile.close();
380 fmt = av_probe_input_format(&probe, static_cast<int>(true));
381 if (fmt == nullptr)
382 m_errorCode = 98;
383 }
384 AVFormatContext *ctx = nullptr;
385 if (m_errorCode==0)
386 {
387 ctx = avformat_alloc_context();
388 m_errorCode = avformat_open_input(&ctx, filename.toUtf8().constData(),
389 fmt, nullptr);
390 }
391 if (m_errorCode==0)
392 m_errorCode = avformat_find_stream_info(ctx, nullptr);
393
394 if (m_errorCode==0)
395 {
396 for (uint ix = 0; ix < ctx->nb_streams; ix++)
397 {
398 AVStream *stream = ctx->streams[ix];
399 if (stream == nullptr)
400 continue;
401 AVCodecParameters *codecpar = stream->codecpar;
402 const AVCodecDescriptor* desc = nullptr;
404 info.m_codecType = ' ';
405 if (codecpar != nullptr)
406 {
407 desc = avcodec_descriptor_get(codecpar->codec_id);
408 switch (codecpar->codec_type)
409 {
410 case AVMEDIA_TYPE_VIDEO:
411 info.m_codecType = 'V';
412 break;
413 case AVMEDIA_TYPE_AUDIO:
414 info.m_codecType = 'A';
415 break;
416 case AVMEDIA_TYPE_SUBTITLE:
417 info.m_codecType = 'S';
418 break;
419 default:
420 continue;
421 }
422 }
423 if (desc != nullptr)
424 info.m_codecName = desc->name;
425 info.m_duration = stream->duration * stream->time_base.num / stream->time_base.den;
426 if (info.m_codecType == 'V')
427 {
428 if (codecpar != nullptr)
429 {
430 info.m_width = codecpar->width;
431 info.m_height = codecpar->height;
432 info.m_SampleAspectRatio = static_cast<float>(codecpar->sample_aspect_ratio.num)
433 / static_cast<float>(codecpar->sample_aspect_ratio.den);
434 switch (codecpar->field_order)
435 {
436 case AV_FIELD_PROGRESSIVE:
437 info.m_fieldOrder = "PR";
438 break;
439 case AV_FIELD_TT:
440 info.m_fieldOrder = "TT";
441 break;
442 case AV_FIELD_BB:
443 info.m_fieldOrder = "BB";
444 break;
445 case AV_FIELD_TB:
446 info.m_fieldOrder = "TB";
447 break;
448 case AV_FIELD_BT:
449 info.m_fieldOrder = "BT";
450 break;
451 default:
452 break;
453 }
454 }
455 info.m_frameRate = static_cast<float>(stream->r_frame_rate.num)
456 / static_cast<float>(stream->r_frame_rate.den);
457 info.m_avgFrameRate = static_cast<float>(stream->avg_frame_rate.num)
458 / static_cast<float>(stream->avg_frame_rate.den);
459 }
460 if (info.m_codecType == 'A')
461 info.m_channels = codecpar->ch_layout.nb_channels;
462 m_streamInfoList.append(info);
463 }
464 }
465 if (m_errorCode != 0)
466 {
467 switch(m_errorCode) {
468 case 97:
469 m_errorMsg = "File Not Found";
470 break;
471 case 98:
472 m_errorMsg = "av_probe_input_format returned no result";
473 break;
474 case 99:
475 m_errorMsg = "File could not be opened";
476 break;
477 default:
478 m_errorMsg = QString::fromStdString(av_make_error_stdstring_unknown(m_errorCode));
479 }
480 LOG(VB_GENERAL, LOG_ERR,
481 QString("MythStreamInfoList failed for %1. Error code:%2 Message:%3")
482 .arg(filename).arg(m_errorCode).arg(m_errorMsg));
483
484 }
485
486 if (ctx != nullptr)
487 {
488 avformat_close_input(&ctx);
489 avformat_free_context(ctx);
490 }
491 delete [] probe.buf;
492}
AVFrame AVFrame
int m_width
Definition: mythavutil.h:59
int m_height
Definition: mythavutil.h:60
int Copy(AVFrame *To, const MythVideoFrame *From, unsigned char *Buffer, AVPixelFormat Fmt=AV_PIX_FMT_YUV420P)
Initialise AVFrame and copy contents of VideoFrame frame into it, performing any required conversion.
Definition: mythavutil.cpp:270
SwsContext * m_swsctx
Definition: mythavutil.h:58
AVPixelFormat m_format
Definition: mythavutil.h:57
int SizeData(int Width, int Height, AVPixelFormat Fmt)
Definition: mythavutil.cpp:225
int m_size
Definition: mythavutil.h:61
static void DeinterlaceAVFrame(AVFrame *Frame)
Deinterlace an AVFrame.
Definition: mythavutil.cpp:138
static VideoFrameType PixelFormatToFrameType(AVPixelFormat Fmt)
Definition: mythavutil.cpp:75
static MythHDR::HDRType FFmpegTransferToHDRType(int Transfer)
Definition: mythavutil.cpp:121
static int FillAVFrame(AVFrame *Frame, const MythVideoFrame *From, AVPixelFormat Fmt=AV_PIX_FMT_NONE)
Initialise AVFrame with content from MythVideoFrame.
Definition: mythavutil.cpp:202
static AVPixelFormat FrameTypeToPixelFormat(VideoFrameType Type)
Definition: mythavutil.cpp:31
void FreeAllContexts()
Definition: mythavutil.cpp:348
AVCodecContext * FindCodecContext(const AVStream *Stream)
Definition: mythavutil.cpp:328
QRecursiveMutex m_mapLock
Definition: mythavutil.h:40
AVCodecContext * GetCodecContext(const AVStream *Stream, const AVCodec *Codec=nullptr, bool NullCodec=false)
Definition: mythavutil.cpp:291
void FreeCodecContext(const AVStream *Stream)
Definition: mythavutil.cpp:336
QMap< const AVStream *, AVCodecContext * > m_streamMap
Definition: mythavutil.h:39
Handles software based deinterlacing of video frames.
void Filter(MythVideoFrame *Frame, FrameScanType Scan, MythVideoProfile *Profile, bool Force=false)
Deinterlace Frame if needed.
HDRType
Definition: mythhdr.h:37
@ SDR
Definition: mythhdr.h:38
@ HDR10
Definition: mythhdr.h:39
@ HLG
Definition: mythhdr.h:40
QVector< MythStreamInfo > m_streamInfoList
Definition: mythavutil.h:104
MythStreamInfoList(const QString &filename)
Definition: mythavutil.cpp:360
VideoFrameType m_type
Definition: mythframe.h:118
static size_t GetBufferSize(VideoFrameType Type, int Width, int Height, int Aligned=MYTH_WIDTH_ALIGNMENT)
Definition: mythframe.cpp:416
MythDeintType m_deinterlaceAllowed
Definition: mythframe.h:159
FramePitches m_pitches
Definition: mythframe.h:141
uint8_t * m_buffer
Definition: mythframe.h:119
MythDeintType m_deinterlaceSingle
Definition: mythframe.h:157
static bool YUVFormat(VideoFrameType Type)
Definition: mythframe.h:465
FrameOffsets m_offsets
Definition: mythframe.h:142
unsigned int uint
Definition: compat.h:60
MTV_PUBLIC std::string av_make_error_stdstring_unknown(int errnum)
Definition: mythaverror.h:47
@ DEINT_MEDIUM
Definition: mythframe.h:70
@ DEINT_ALL
Definition: mythframe.h:75
@ DEINT_CPU
Definition: mythframe.h:72
VideoFrameType
Definition: mythframe.h:20
@ FMT_RGB32
endian dependent format, ARGB or BGRA
Definition: mythframe.h:32
@ FMT_YUV420P9
Definition: mythframe.h:24
@ FMT_RGBA32
Definition: mythframe.h:34
@ FMT_YUV444P
Definition: mythframe.h:43
@ FMT_YUV420P14
Definition: mythframe.h:27
@ FMT_VAAPI
Definition: mythframe.h:57
@ FMT_YUV420P12
Definition: mythframe.h:26
@ FMT_VTB
Definition: mythframe.h:61
@ FMT_YUV422P10
Definition: mythframe.h:38
@ FMT_YUV444P16
Definition: mythframe.h:48
@ FMT_YUV422P9
Definition: mythframe.h:37
@ FMT_YUV422P14
Definition: mythframe.h:40
@ FMT_ARGB32
Definition: mythframe.h:33
@ FMT_YV12
Definition: mythframe.h:23
@ FMT_P016
Definition: mythframe.h:54
@ FMT_DRMPRIME
Definition: mythframe.h:63
@ FMT_RGB24
Definition: mythframe.h:30
@ FMT_VDPAU
Definition: mythframe.h:56
@ FMT_YUV444P12
Definition: mythframe.h:46
@ FMT_YUV444P9
Definition: mythframe.h:44
@ FMT_NONE
Definition: mythframe.h:21
@ FMT_YUV444P10
Definition: mythframe.h:45
@ FMT_NVDEC
Definition: mythframe.h:62
@ FMT_YUV422P
Definition: mythframe.h:36
@ FMT_YUV422P16
Definition: mythframe.h:41
@ FMT_YUV420P10
Definition: mythframe.h:25
@ FMT_YUV420P16
Definition: mythframe.h:28
@ FMT_P010
Definition: mythframe.h:53
@ FMT_NV12
Definition: mythframe.h:52
@ FMT_MMAL
Definition: mythframe.h:59
@ FMT_DXVA2
Definition: mythframe.h:58
@ FMT_YUY2
Definition: mythframe.h:50
@ FMT_YUV444P14
Definition: mythframe.h:47
@ FMT_BGRA
Definition: mythframe.h:31
@ FMT_YUV422P12
Definition: mythframe.h:39
@ FMT_MEDIACODEC
Definition: mythframe.h:60
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
Definition: mythlogging.h:39
dictionary info
Definition: azlyrics.py:7
@ kScan_Interlaced
Definition: videoouttypes.h:98