⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dnxhddata.c

📁 ffmpeg的完整源代码和作者自己写的文档。不但有在Linux的工程哦
💻 C
📖 第 1 页 / 共 2 页
字号:
/* * VC3/DNxHD data. * Copyright (c) 2007 SmartJog S.A., Baptiste Coudurier <baptiste dot coudurier at smartjog dot com>. * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * FFmpeg is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */#include "dnxhddata.h"static const uint8_t dnxhd_1237_luma_weigth[] = {     0,  32,  33,  34, 34, 36, 37, 36,    36,  37,  38,  38, 38, 39, 41, 44,    43,  41,  40,  41, 46, 49, 47, 46,    47,  49,  51,  54, 60, 62, 59, 55,    54,  56,  58,  61, 65, 66, 64, 63,    66,  73,  78,  79, 80, 79, 78, 78,    82,  87,  89,  90, 93, 95, 96, 97,    97, 100, 104, 102, 98, 98, 99, 99,};static const uint8_t dnxhd_1237_chroma_weigth[] = {     0,  32,  36,  39, 39, 38, 39,  41,    45,  51,  57,  58, 53, 48, 47,  51,    55,  58,  66,  75, 81, 83, 82,  78,    73,  72,  74,  77, 83, 85, 83,  82,    89,  99,  96,  90, 94, 97, 99, 105,   109, 105,  95,  89, 92, 95, 94,  93,    92,  88,  89,  90, 93, 95, 96,  97,    97, 100, 104, 102, 98, 98, 99,  99,};static const uint8_t dnxhd_1238_luma_weigth[] = {     0, 32, 32, 33, 34, 33, 33, 33,    33, 33, 33, 33, 33, 35, 37, 37,    36, 36, 35, 36, 38, 38, 36, 35,    36, 37, 38, 41, 42, 41, 39, 38,    38, 38, 39, 41, 42, 41, 39, 39,    40, 41, 43, 44, 44, 44, 44, 44,    45, 47, 47, 47, 49, 50, 51, 51,    51, 53, 55, 57, 58, 59, 57, 57,};static const uint8_t dnxhd_1238_chroma_weigth[] = {     0, 32, 35, 35, 35, 34, 34, 35,    39, 43, 45, 45, 41, 39, 40, 41,    42, 44, 48, 55, 59, 63, 65, 59,    53, 52, 52, 55, 61, 62, 58, 58,    63, 66, 66, 65, 70, 74, 70, 66,    65, 68, 75, 77, 74, 74, 77, 76,    73, 73, 73, 73, 76, 80, 89, 90,    82, 77, 80, 86, 84, 82, 82, 82,};static const uint8_t dnxhd_1242_luma_weigth[] = {     0, 32, 33, 33, 34, 35, 36, 35,    33, 33, 35, 36, 37, 37, 38, 37,    37, 37, 36, 37, 37, 37, 38, 39,    37, 36, 37, 40, 42, 45, 46, 44,    41, 42, 44, 45, 47, 49, 50, 48,    46, 48, 49, 50, 52, 52, 50, 49,    47, 48, 50, 50, 51, 51, 50, 49,    49, 51, 52, 51, 49, 47, 47, 47,};static const uint8_t dnxhd_1242_chroma_weigth[] = {     0, 32, 37, 42, 45, 45, 45, 44,    38, 37, 40, 42, 44, 49, 51, 47,    41, 40, 43, 44, 46, 48, 51, 54,    51, 47, 47, 45, 47, 50, 51, 49,    46, 47, 49, 47, 50, 55, 55, 51,    48, 49, 51, 51, 52, 52, 54, 54,    49, 49, 52, 53, 54, 54, 53, 53,    55, 59, 63, 62, 60, 60, 60, 60, };static const uint8_t dnxhd_1243_luma_weigth[] = {     0, 32, 32, 33, 33, 35, 35, 35,    35, 35, 35, 35, 34, 35, 38, 40,    39, 37, 37, 37, 36, 35, 36, 38,    40, 41, 42, 44, 45, 44, 42, 41,    40, 38, 36, 36, 37, 38, 40, 43,    44, 45, 45, 45, 45, 45, 45, 41,    39, 41, 45, 47, 47, 48, 48, 48,    46, 44, 45, 47, 47, 48, 47, 47,};static const uint8_t dnxhd_1243_chroma_weigth[] = {     0, 32, 36, 37, 36, 37, 39, 39,    41, 43, 43, 42, 41, 41, 41, 42,    43, 43, 43, 44, 44, 44, 46, 47,    46, 45, 45, 45, 45, 46, 44, 44,    45, 44, 42, 41, 43, 46, 45, 44,    45, 45, 45, 46, 46, 46, 45, 44,    45, 44, 45, 47, 47, 48, 49, 48,    46, 45, 46, 47, 47, 48, 47, 47,};static const uint8_t dnxhd_1237_dc_codes[12] = {    0, 12, 13, 1, 2, 3, 4, 5, 14, 30, 62, 63,};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -