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

📄 set.h

📁 在dsp上实现h.264编解码
💻 H
字号:
/***************************************************************************** * set.h: h264 encoder ***************************************************************************** * Copyright (C) 2003 Laurent Aimar * $Id: set.h,v 1.1 2004/06/03 19:27:07 fenrir Exp $ * * Authors: Laurent Aimar <fenrir@via.ecp.fr> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA. *****************************************************************************/#ifndef _SET_H#define _SET_H 1enum profile_e{    PROFILE_BASELINE = 66,    PROFILE_MAIN     = 77,    PROFILE_EXTENTED = 88,    PROFILE_HIGH    = 100,    PROFILE_HIGH10  = 110,    PROFILE_HIGH422 = 122,    PROFILE_HIGH444 = 144};enum cqm4_e{    CQM_4IY = 0,    CQM_4PY = 1,    CQM_4IC = 2,    CQM_4PC = 3};enum cqm8_e{    CQM_8IY = 0,    CQM_8PY = 1};typedef struct{    int i_id;    int i_profile_idc;    int i_level_idc;    int b_constraint_set0;    int b_constraint_set1;    int b_constraint_set2;    int i_log2_max_frame_num;    int i_poc_type;    /* poc 0 */    int i_log2_max_poc_lsb;    /* poc 1 */    int b_delta_pic_order_always_zero;    int i_offset_for_non_ref_pic;    int i_offset_for_top_to_bottom_field;    int i_num_ref_frames_in_poc_cycle;    int i_offset_for_ref_frame[256];    int i_num_ref_frames;    int b_gaps_in_frame_num_value_allowed;    int i_mb_width;    int i_mb_height;    int b_frame_mbs_only;    int b_mb_adaptive_frame_field;    int b_direct8x8_inference;    int b_crop;    struct    {        int i_left;        int i_right;        int i_top;        int i_bottom;    } crop;      int b_qpprime_y_zero_transform_bypass;} SHU264_sps_t;typedef struct{    int i_id;    int i_sps_id;    int b_cabac;    int b_pic_order;    int i_num_slice_groups;    int i_num_ref_idx_l0_active;    int i_num_ref_idx_l1_active;    int b_weighted_pred;    int b_weighted_bipred;    int i_pic_init_qp;    int i_pic_init_qs;    int i_chroma_qp_index_offset;    int b_deblocking_filter_control;    int b_constrained_intra_pred;    int b_redundant_pic_cnt;    int b_transform_8x8_mode;    int i_cqm_preset;    const uint8_t *scaling_list[6]; /* could be 8, but we don't allow separate Cb/Cr lists */} SHU264_pps_t;/* default quant matrices */static const uint8_t SHU264_cqm_flat16[64] ={    16,16,16,16,16,16,16,16,    16,16,16,16,16,16,16,16,    16,16,16,16,16,16,16,16,    16,16,16,16,16,16,16,16,    16,16,16,16,16,16,16,16,    16,16,16,16,16,16,16,16,    16,16,16,16,16,16,16,16,    16,16,16,16,16,16,16,16};void SHU264_cqm_init( SHU264_t *h );#endif

⌨️ 快捷键说明

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