NVIDIA DRIVE OS Linux API Reference

5.1.3.0 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
nvmedia_common.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2017-2019 NVIDIA CORPORATION. All rights reserved. All
3  * information contained herein is proprietary and confidential to NVIDIA
4  * Corporation. Any use, reproduction, or disclosure without the written
5  * permission of NVIDIA Corporation is prohibited.
6  */
7 
8 
17 #ifndef NVMEDIA_COMMON_H
18 #define NVMEDIA_COMMON_H
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 #include "nvmedia_core.h"
25 
52 #define NVMEDIA_COMMON_VERSION_MAJOR 1
53 
54 #define NVMEDIA_COMMON_VERSION_MINOR 24
55 
60 #define NVMEDIA_MIN_CAPTURE_FRAME_BUFFERS 2u
61 
65 #define NVMEDIA_MAX_CAPTURE_FRAME_BUFFERS 32u
66 
70 typedef enum {
80 
84 typedef enum {
94 
98 typedef enum {
124 
129 typedef struct {
131  uint8_t *bitstream;
133  uint32_t bitstreamBytes;
135  uint32_t bitstreamSize;
137 
141 enum
142 {
149 };
150 
161 typedef void NvMediaPictureInfo;
162 
173 typedef void NvMediaRefSurface;
174 
192 typedef struct {
197  NvMediaRefSurface *surface;
211  int32_t field_order_cnt[2];
217  uint16_t FrameIdx;
218 
222  uint16_t not_existing;
224 
226 #define MAX_USER_SEI_PAYLOAD 128U
227 
233 typedef struct {
261  uint8_t UserDefinedSeiPayload[MAX_USER_SEI_PAYLOAD];
263 
281 typedef struct {
283  int32_t field_order_cnt[2];
286 
290  uint16_t frame_num;
292  uint8_t field_pic_flag;
296  uint8_t num_ref_frames;
344  uint8_t *slice_group_map;
346  uint8_t fmo_aso_enable;
349 
351  uint8_t scaling_lists_4x4[6][16];
353  uint8_t scaling_lists_8x8[2][64];
354 
356  NvMediaReferenceFrameH264 referenceFrames[16];
359  uint32_t nNumSlices;
361  uint32_t *pSliceDataOffsets;
363  uint8_t frameType;
364 
366  struct {
370  uint16_t view_id;
380  uint16_t InterViewRefsL0[16];
382  uint16_t InterViewRefsL1[16];
383  } mvcext;
384 
392  int32_t last_sps_id;
394  int32_t last_pps_id;
398 
414 typedef struct
415 {
417  uint16_t display_primaries_x[3];
419  uint16_t display_primaries_y[3];
421  uint16_t white_point_x;
423  uint16_t white_point_y;
429 
430 
438 typedef struct
439 {
444  uint8_t *pBitstreamData;
446  uint32_t uNumSlices;
448  uint32_t *pSliceDataOffsets;
450  uint32_t uCTBCount;
452  uint32_t uFirstCtbAddr;
460 
476 typedef struct {
477  // sps
497  uint8_t bit_depth_luma;
535  uint8_t reserved1[3];
536 
537  // pps
554 
571 
588 
607 
609  uint16_t column_width_minus1[22];
611  uint16_t row_height_minus1[20];
612 
613  // RefPicSets
615  uint32_t iCur;
617  uint32_t IDRPicFlag;
619  uint32_t RAPPicFlag;
623  uint32_t NumPocTotalCurr;
629  uint32_t NumPocLtCurr;
631  uint32_t NumBitsToSkip;
638  NvMediaRefSurface *RefPics[16];
639  int32_t PicOrderCntVal[16];
641  uint8_t IsLongTerm[16];
642  int8_t RefPicSetStCurrBefore[8];
643  int8_t RefPicSetStCurrAfter[8];
644  int8_t RefPicSetLtCurr[8];
645 
646  // scaling lists (diag order)
648  uint8_t ScalingList4x4[6][16];
650  uint8_t ScalingList8x8[6][64];
652  uint8_t ScalingList16x16[6][64];
654  uint8_t ScalingList32x32[2][64];
656  uint8_t ScalingListDCCoeff16x16[6];
658  uint8_t ScalingListDCCoeff32x32[2];
659 
661  uint32_t NumDeltaPocs[64];
662 
664  // sps extension HEVC-main 444
685 
687  // pps extension HEVC-main 444
703  int8_t cb_qp_adjustment[6];
705  int8_t cr_qp_adjustment[6];
707  uint8_t reserved2;
709  uint8_t frameType;
710 
719 
721  struct {
723  uint32_t mv_hevc_enable;
725  uint32_t nuh_layer_id;
741  int32_t RefPicSetInterLayer0[32];
743  int32_t RefPicSetInterLayer1[32];
744  } mvext;
764 typedef struct {
769  NvMediaRefSurface *forward_reference;
774  NvMediaRefSurface *backward_reference;
775 
789  uint8_t alternate_scan;
791  uint8_t q_scale_type;
802  uint8_t f_code[2][2];
804  uint8_t intra_quantizer_matrix[64];
806  uint8_t non_intra_quantizer_matrix[64];
810  uint32_t nNumSlices;
812  uint32_t *pSliceDataOffsets;
816 
835 typedef struct {
840  NvMediaRefSurface *forward_reference;
845  NvMediaRefSurface *backward_reference;
846 
848  int32_t trd[2];
850  int32_t trb[2];
864  uint8_t interlaced;
866  uint8_t quant_type;
868  uint8_t quarter_sample;
878  uint8_t intra_quantizer_matrix[64];
880  uint8_t non_intra_quantizer_matrix[64];
884  uint8_t reversible_vlc;
887  uint32_t nNumSlices;
889  uint32_t *pSliceDataOffsets;
890 
896  uint32_t divx_flags;
902 
920 typedef struct {
925  NvMediaRefSurface *forward_reference;
930  NvMediaRefSurface *backward_reference;
935  NvMediaRefSurface *range_mapped;
936 
938  uint8_t picture_type;
943 
944 
946  uint8_t postprocflag;
948  uint8_t pulldown;
950  uint8_t interlace;
952  uint8_t tfcntrflag;
954  uint8_t finterpflag;
956  uint8_t psf;
958  uint8_t dquant;
960  uint8_t panscan_flag;
962  uint8_t refdist_flag;
964  uint8_t quantizer;
966  uint8_t extended_mv;
968  uint8_t extended_dmv;
970  uint8_t overlap;
972  uint8_t vstransform;
974  uint8_t loopfilter;
976  uint8_t fastuvmc;
980  uint8_t range_mapy;
984  uint8_t range_mapuv;
985 
990  uint8_t multires;
995  uint8_t syncmarker;
1000  uint8_t rangered;
1005  uint8_t rangeredfrm;
1010  uint8_t maxbframes;
1013  uint32_t nNumSlices;
1016 
1018  uint8_t profile;
1020  uint16_t frameWidth;
1022  uint16_t frameHeight;
1041 typedef struct {
1043  NvMediaRefSurface *LastReference;
1045  NvMediaRefSurface *GoldenReference;
1047  NvMediaRefSurface *AltReference;
1049  uint8_t key_frame;
1051  uint8_t version;
1053  uint8_t show_frame;
1058  uint8_t clamp_type;
1071  uint8_t filter_type;
1083  uint8_t dequant_index;
1085  int8_t deltaq[5];
1086 
1098  uint8_t mb_seg_tree_probs [3];
1099 
1101  int8_t seg_feature[2][4];
1103  int8_t ref_lf_deltas[4];
1105  int8_t mode_lf_deltas[4];
1106 
1108  uint8_t BitsConsumed;
1110  uint8_t AlignByte[3];
1118  uint32_t coeff_partition_size[8];
1120  uint32_t coeff_partition_start_offset[8];
1123  uint32_t nNumSlices;
1130 
1150 typedef struct {
1152  uint32_t inter_mode_counts[7][3][2];
1154  uint32_t sb_ymode_counts[4][10];
1156  uint32_t uv_mode_counts[10][10];
1158  uint32_t partition_counts[16][4];
1160  uint32_t switchable_interp_counts[4][3];
1162  uint32_t intra_inter_count[4][2];
1164  uint32_t comp_inter_count[5][2];
1166  uint32_t single_ref_count[5][2][2];
1168  uint32_t comp_ref_count[5][2];
1170  uint32_t tx32x32_count[2][4];
1172  uint32_t tx16x16_count[2][3];
1174  uint32_t tx8x8_count[2][2];
1176  uint32_t mbskip_count[3][2];
1178  uint32_t joints[4];
1180  uint32_t sign[2][2];
1182  uint32_t classes[2][11];
1184  uint32_t class0[2][2];
1186  uint32_t bits[2][10][2];
1188  uint32_t class0_fp[2][2][4];
1190  uint32_t fp[2][4];
1192  uint32_t class0_hp[2][2];
1194  uint32_t hp[2][2];
1196  uint32_t countCoeffs[2][2][6][6][4];
1198  uint32_t countCoeffs8x8[2][2][6][6][4];
1200  uint32_t countCoeffs16x16[2][2][6][6][4];
1202  uint32_t countCoeffs32x32[2][2][6][6][4];
1204  uint32_t countEobs[4][2][2][6][6];
1206 
1213 typedef struct {
1214 
1216  uint8_t kf_bmode_prob[10][10][8];
1218  uint8_t kf_bmode_probB[10][10][1];
1220  uint8_t ref_pred_probs[3];
1222  uint8_t mb_segment_tree_probs[7];
1224  uint8_t segment_pred_probs[3];
1226  uint8_t ref_scores[4];
1228  uint8_t prob_comppred[2];
1230  uint8_t pad1[9];
1231 
1233  uint8_t kf_uv_mode_prob[10][8];
1235  uint8_t kf_uv_mode_probB[10][1];
1237  uint8_t pad2[6];
1238 
1240  uint8_t inter_mode_prob[7][4];
1242  uint8_t intra_inter_prob[4];
1243 
1245  uint8_t uv_mode_prob[10][8];
1247  uint8_t tx8x8_prob[2][1];
1249  uint8_t tx16x16_prob[2][2];
1251  uint8_t tx32x32_prob[2][3];
1253  uint8_t sb_ymode_probB[4][1];
1255  uint8_t sb_ymode_prob[4][8];
1256 
1258  uint8_t partition_prob[2][16][4];
1259 
1261  uint8_t uv_mode_probB[10][1];
1263  uint8_t switchable_interp_prob[4][2];
1265  uint8_t comp_inter_prob[5];
1267  uint8_t mbskip_probs[3];
1269  uint8_t pad3[1];
1270 
1272  uint8_t joints[3];
1274  uint8_t sign[2];
1276  uint8_t class0[2][1];
1278  uint8_t fp[2][3];
1280  uint8_t class0_hp[2];
1282  uint8_t hp[2];
1284  uint8_t classes[2][10];
1286  uint8_t class0_fp[2][2][3];
1288  uint8_t bits[2][10];
1289 
1291  uint8_t single_ref_prob[5][2];
1293  uint8_t comp_ref_prob[5];
1295  uint8_t pad4[17];
1296 
1298  uint8_t probCoeffs[2][2][6][6][4];
1300  uint8_t probCoeffs8x8[2][2][6][6][4];
1302  uint8_t probCoeffs16x16[2][2][6][6][4];
1304  uint8_t probCoeffs32x32[2][2][6][6][4];
1306 
1315 typedef struct {
1317  NvMediaRefSurface *LastReference;
1319  NvMediaRefSurface *GoldenReference;
1321  NvMediaRefSurface *AltReference;
1323  uint32_t width;
1325  uint32_t height;
1327  uint32_t ref0_width;
1329  uint32_t ref0_height;
1331  uint32_t ref1_width;
1333  uint32_t ref1_height;
1335  uint32_t ref2_width;
1337  uint32_t ref2_height;
1339  uint32_t keyFrame;
1341  uint32_t bit_depth;
1343  uint32_t prevIsKeyFrame;
1345  uint32_t PrevShowFrame;
1349  uint32_t errorResilient;
1351  uint32_t intraOnly;
1355  uint8_t refFrameSignBias[4];
1361  int32_t qpYAc;
1363  int32_t qpYDc;
1365  int32_t qpChAc;
1367  int32_t qpChDc;
1369  uint32_t lossless;
1371  uint32_t transform_mode;
1379  uint32_t comp_pred_mode;
1381  uint32_t comp_fixed_ref;
1383  uint32_t comp_var_ref[2];
1387  uint32_t log2_tile_rows;
1389  uint32_t segmentEnabled;
1397  uint8_t segmentFeatureEnable[8][4];
1399  short segmentFeatureData[8][4];
1403  uint32_t mbRefLfDelta[4];
1405  uint32_t mbModeLfDelta[2];
1409  uint32_t frameTagSize;
1412 
1422 #define NVMEDIA_VIDEO_ENCODER_TIMEOUT_INFINITE 0xFFFFFFFF
1423 
1428 #define NVMEDIA_ENCODE_INFINITE_GOPLENGTH 0xFFFFFFFF
1429 
1434 typedef struct {
1436  uint32_t qpInterP;
1438  uint32_t qpInterB;
1440  uint32_t qpIntra;
1441 } NvMediaEncodeQP;
1442 
1448 typedef enum
1449 {
1461 
1466 typedef struct {
1470  uint32_t numBFrames;
1471  union {
1472  struct {
1474  uint32_t averageBitRate;
1477  uint32_t vbvBufferSize;
1481  } cbr;
1482  struct {
1486  } const_qp;
1487  struct {
1489  uint32_t averageBitRate;
1491  uint32_t maxBitRate;
1494  uint32_t vbvBufferSize;
1497  uint32_t vbvInitialDelay;
1498  } vbr;
1499  struct {
1501  uint32_t averageBitRate;
1503  uint32_t maxBitRate;
1506  uint32_t vbvBufferSize;
1509  uint32_t vbvInitialDelay;
1512  } vbr_minqp;
1513  struct {
1515  uint32_t averageBitRate;
1518  uint32_t vbvBufferSize;
1521  uint32_t vbvInitialDelay;
1523  NvMediaEncodeQP minQP;
1524  } cbr_minqp;
1525  } params;
1531  uint32_t maxSessionQP;
1533 
1538 typedef enum {
1546 
1558 typedef enum {
1574 
1578 typedef enum {
1581 
1595 
1600 typedef enum {
1603 
1633 
1638 typedef enum {
1649 
1653 typedef enum {
1661 
1666 typedef enum {
1672 
1677 typedef enum {
1685 
1690 typedef enum {
1698 
1703 typedef enum {
1722 
1741 
1750 
1759 
1769 
1774 typedef enum {
1794 
1800 typedef enum {
1808 
1814 typedef enum {
1822 
1827 typedef enum {
1835 
1840 #define MAX_NON_SLICE_DATA_SIZE 2048U
1841 
1846 typedef struct {
1848  uint32_t ulNalSize;
1851 } NvMediaNalData;
1852 
1856 typedef struct {
1864  uint16_t aspectSARWidth;
1877  uint8_t videoFormat;
1892  uint8_t colourMatrix;
1899 
1903 typedef struct {
1913 
1917 typedef struct {
1919  int32_t mvx : 12;
1921  int32_t mvy : 10;
1923  uint32_t refidx : 5;
1925  uint32_t dir : 1;
1927  uint32_t partType : 2;
1929  uint32_t lastofPart : 1;
1931  uint32_t lastOfMB : 1;
1933 
1938 typedef enum {
1984 
1988 typedef struct {
1990  uint32_t features;
1994  uint32_t gopLength;
2002  uint32_t idrPeriod;
2058 
2062 typedef struct {
2064  uint32_t payloadSize;
2066  uint32_t payloadType;
2068  uint8_t *payload;
2070 
2074 typedef struct {
2076  uint32_t encodeWidth;
2078  uint32_t encodeHeight;
2083  uint32_t frameRateNum;
2086  uint32_t frameRateDen;
2090  uint8_t profile;
2094  uint8_t level;
2130  uint32_t mvcNumViews : 4;
2132  uint32_t enableExternalPictureRC : 1;
2134  uint32_t enableAllIFrames : 1;
2136  uint32_t reserved : 26;
2138 
2142 typedef struct {
2146  uint32_t encodePicFlags;
2153  uint32_t nextBFrames;
2188  uint32_t frameRateNum;
2191  uint32_t frameRateDen;
2193  uint32_t viewId;
2206 typedef struct {
2214  uint16_t aspectSARWidth;
2227  uint8_t videoFormat;
2242  uint8_t matrixCoeffs;
2243  /* Holds that num_units_in_tick, time_scale and fixed_frame_rate_flag are present
2244  in the bitstream (as defined in Annex E of the ITU-T Specification). */
2246  /* Specified the bitstream restriction info (as defined in Annex E of the ITU-T Specification). */
2249 
2254 typedef enum {
2300 
2304 typedef struct {
2307  uint32_t features;
2311  uint32_t gopLength;
2319  uint32_t idrPeriod;
2365 
2369 typedef struct {
2371  uint32_t encodeWidth;
2373  uint32_t encodeHeight;
2380  uint32_t frameRateNum;
2383  uint32_t frameRateDen;
2387  uint8_t profile;
2391  uint8_t level;
2395  uint8_t levelTier;
2431  uint32_t mvNumViews : 4;
2433  uint32_t enableExternalPictureRC : 1;
2435  uint32_t enableAllIFrames : 1;
2437  uint32_t reserved : 26;
2439 
2443 typedef struct {
2445  uint32_t payloadSize;
2447  uint32_t payloadType;
2449  uint32_t nalUnitType;
2451  uint8_t *payload;
2453 
2457 typedef struct {
2461  uint32_t encodePicFlags;
2468  uint32_t nextBFrames;
2503  uint32_t frameRateNum;
2506  uint32_t frameRateDen;
2508  uint32_t viewId;
2510 
2523 typedef enum {
2542 
2546 typedef struct {
2548  uint32_t features;
2552  uint32_t gopLength;
2558  uint32_t idrPeriod;
2559 
2564  uint32_t filter_type;
2566  uint32_t filter_level;
2571  int8_t ref_lf_deltas[4];
2573  int8_t mode_lf_deltas[2];
2578 
2579  /* Set the feature flag \ref NVMEDIA_ENCODE_CONFIG_VP9_ENABLE_QUANTIZATION_PARAMS
2580  to set the following parameters */
2583  uint32_t base_qindex;
2586  int32_t delta_y_dc_q;
2589  int32_t delta_uv_dc;
2592  int32_t delta_uv_ac;
2593 
2594  /* Set the feature flag \ref NVMEDIA_ENCODE_CONFIG_VP9_ENABLE_TRANSFORM_MODE to
2595  set the following parameter */
2599  uint32_t transform_mode;
2600 
2601  /* Set the feature flag \ref NVMEDIA_ENCODE_CONFIG_VP9_ENABLE_HIGH_PRECISION_MV
2602  to set the following parameter */
2605  uint32_t high_prec_mv;
2606 
2607  /* Set the feature flag \ref NVMEDIA_ENCODE_CONFIG_VP9_DISABLE_ERROR_RESILIENT to
2608  set the following parameter */
2612 
2622 
2626 typedef struct {
2628  uint32_t encodeWidth;
2630  uint32_t encodeHeight;
2636  uint32_t frameRateNum;
2639  uint32_t frameRateDen;
2658 
2662 typedef struct {
2666  uint32_t encodePicFlags;
2673  uint32_t nextBFrames;
2702 
2715 typedef enum {
2730 
2734 typedef struct {
2736  uint32_t features;
2740  uint32_t gopLength;
2744  uint32_t version;
2751  uint32_t filter_type;
2753  uint32_t filter_level;
2758  int8_t ref_lf_deltas[4];
2760  int8_t mode_lf_deltas[4];
2768  uint32_t base_qindex;
2771  uint32_t y1dc_delta_q;
2773  uint32_t y2dc_delta_q;
2775  uint32_t y2ac_delta_q;
2777  uint32_t uvdc_delta_q;
2779  uint32_t uvac_delta_q;
2791  int8_t seg_filter_level[4];
2793  int8_t seg_qindex[4];
2810 
2814 typedef struct {
2816  uint32_t encodeWidth;
2818  uint32_t encodeHeight;
2821  uint32_t frameRateNum;
2824  uint32_t frameRateDen;
2831 
2835 typedef struct {
2839  uint32_t encodePicFlags;
2847  uint32_t frameRateNum;
2850  uint32_t frameRateDen;
2852 
2857 typedef enum {
2865 
2876 #define NVMEDIA_DISP_ATTR_BRIGHTNESS (1<<0)
2877 
2881 #define NVMEDIA_DISP_ATTR_CONTRAST (1<<1)
2882 
2886 #define NVMEDIA_DISP_ATTR_SATURATION (1<<2)
2887 
2891 #define NVMEDIA_DISP_ATTR_HUE (1<<3)
2892 
2896 #define NVMEDIA_DISP_ATTR_COLOR_STANDARD (1<<4)
2897 
2901 #define NVMEDIA_DISP_ATTR_LIMITED_RGB (1<<5)
2902 
2906 #define NVMEDIA_DISP_ATTR_COMPOSITION (1<<6)
2907 
2911 #define NVMEDIA_DISP_ATTR_SET_DEPTH (1<<7)
2912 
2916 #define NVMEDIA_DISP_ATTR_SET_POSITION (1<<8)
2917 
2923 typedef enum {
2933 
2937 typedef struct {
2942  float_t brightness;
2947  float_t contrast;
2952  float_t saturation;
2957  float_t hue;
2981  uint32_t depth;
2987 
3057 typedef enum
3058 {
3082 
3085 typedef enum {
3101 
3104 /*
3105  * \defgroup history_nvmedia_common History
3106  * Provides change history for the NvMedia Common Types.
3107  *
3108  * \section history_nvmedia_common Version History
3109  *
3110  * <b> Version 1.0 </b> March 21, 2017
3111  * - Initial release
3112  *
3113  * <b> Version 1.1 </b> April 18, 2017
3114  * - Added \ref NvMediaDecoderInstanceId enum and
3115  * \ref NvMediaEncoderInstanceId enum
3116  * - Changed to use standard data types
3117  * - Removed input surface rotation and mirroring enumerations and members from
3118  * \ref NvMediaEncodeInitializeParamsH264 and \ref NvMediaEncodeInitializeParamsH265
3119  *
3120  * <b> Version 1.2 </b> May 4, 2017
3121  * - Added SLICE_LEVEL_OUTPUT, RTP_MODE_OUTPUT, EXT_PIC_RC_HINT, DYNAMIC_RPS,
3122  * MV_BUFFER_DUMP and RECON_CRC features for \ref NvMediaEncodeH264Features
3123  * and \ref NvMediaEncodeH265Features
3124  * - Add bConstFrameQP parameter in \ref NvMediaEncodeRCParams.
3125  * - Add NvMediaEncAttrType enum and NvMediaNalData data structure.
3126  *
3127  * <b> Version 1.3 </b> May 8, 2017
3128  * - Added \ref numMacroblocksPerSlice in \ref NvMediaEncodeConfigH264
3129  * and \ref numCTUsPerSlice in \ref NvMediaEncodeConfigH265.
3130  *
3131  * <b> Version 1.4 </b> May 10, 2017
3132  * - Added LOOP_FILTER_PARAMS, QUANTIZATION_PARAMS, TRANSFORM_MODE, HIGH_PRECISION_MV
3133  * and ERROR_RESILIENT features in \ref NvMediaEncodeVP9Features.
3134  * - Added filter_type, filter_level, sharpness_level, ref_lf_deltas, mode_lf_deltas,
3135  * bmode_ref_lf_delta_enabled, bmode_ref_lf_delta_update, base_qindex, delta_y_dc_q,
3136  * delta_uv_dc, delta_uv_ac, transform_mode, high_prec_mv and error_resilient
3137  * parameters in \ref NvMediaEncodeConfigVP9.
3138  *
3139  * <b> Version 1.5 </b> May 17, 2017
3140  * - Added display_attributes enum defines
3141  * - Added \ref NvMediaDispCompMode and \ref NvMediaDispAttributes
3142  *
3143  * <b> Version 1.6 </b> May 18, 2017
3144  * - Added NvMediaTransform enum defines
3145  *
3146  * <b> Version 1.7 </b> June 05, 2017
3147  * - Add \ref bSliceDecEnable and \ref NvMediaSliceDecodeData structure member in
3148  * \ref NvMediaPictureInfoH265 structure.
3149  *
3150  * <b> Version 1.8 </b> June 07, 2017
3151  * - Added \ref NvMediaEncodeH264POCType enum for H.264 pic_order_cnt_type.
3152  * The support is added for pic_order_cnt_type 0 and 2. pic_order_cnt_type 1 is not
3153  * not supported.
3154  * - Added variable pocType of type \ref NvMediaEncodeH264POCType in \ref NvMediaEncodeConfigH264.
3155  *
3156  * <b> Version 1.9 </b> June 09, 2017
3157  * -Added PROFILING feature in \ref NvMediaEncodeH264Features,
3158  * \ref NvMediaEncodeH265Features and \ref NvMediaEncodeVP9Features.
3159  *
3160  * <b> Version 1.10 </b> June 09, 2017
3161  * - Removed RECON_CRC features from \ref NvMediaEncodeH264Features
3162  * and \ref NvMediaEncodeH265Features and added it as enableReconCRC
3163  * for \ref NvMediaEncodeInitializeParamsH264 and \ref
3164  * NvMediaEncodeInitializeParamsH265.
3165  * - Added enableMVC, enableROIEncode and enableSliceEncode
3166  * in \ref NvMediaEncodeInitializeParamsH264 and \ref
3167  * NvMediaEncodeInitializeParamsH265.
3168  *
3169  * <b> Version 1.11 </b> June 22, 2017
3170  * -Added levelTier parameter in \ref NvMediaEncodeInitializeParamsH265
3171  * Added initQP, maxQP parameters in \ref NvMediaEncodeConfigH264,
3172  * \ref NvMediaEncodeConfigH265 and \ref NvMediaEncodeConfigVP9.
3173  *
3174  * <b> Version 1.12 </b> June 29, 2017
3175  * -Added feature in \ref NvMediaEncodeH264Features and \ref NvMediaEncodeH265Features,
3176  * to enable 4 byte start code.
3177  *
3178  * <b> Version 1.13</b> June 30, 2017
3179  * -Added HEVC MV interface members in \ref NvMediaPictureInfoH265 structure
3180  *
3181  * <b> Version 1.14</b> July 26, 2017
3182  * -Added enableWeightedPrediction in \ref NvMediaEncodeConfigH264 structure *
3183  *
3184  * <b> Version 1.15</b> Sept 1, 2017
3185  * -Added NvMediaEncodeVP8Features, NvMediaEncodeConfigVP8, NvMediaEncodeInitializeParamsVP8
3186  * and NvMediaEncodePicParamsVP8 structures *
3187  *
3188  * <b> Version 1.16 </b> Sept 13, 2017
3189  * -Added frameRateNum and frameRateDen parameters in \ref NvMediaEncodePicParamsVP8
3190  *
3191  * <b> Version 1.17 </b> Oct 26, 2017
3192  * -Added useBFramesAsRef parameter in \ref NvMediaEncodeInitializeParamsH264
3193  * and \ref NvMediaEncodeInitializeParamsH265
3194  *
3195  * <b> Version 1.18 </b> Nov 6, 2017
3196  * - Added enableTwoPassRC and enableSourceHalfScaled for \ref NvMediaEncodeInitializeParamsH264 and
3197  * \ref NvMediaEncodeInitializeParamsH265.
3198  *
3199  * <b> Version 1.19 </b> Nov 24, 2017
3200  * - Added mvNumViews for \ref NvMediaEncodeInitializeParamsH265 and viewId for
3201  * \ref NvMediaEncodePicParamsH265. Added mvcNumViews for \ref NvMediaEncodeInitializeParamsH264
3202  * and viewId for \ref NvMediaEncodePicParamsH264.
3203  *
3204  * <b> Version 1.20 </b> March 16, 2018
3205  * - Added \ref NvMediaNoiseReductionAlgorithm structure
3206  *
3207  * <b> Version 1.21 </b> October 4, 2018
3208  * - Added Ultrafast encoding support for H.264 for platforms >=T194 in
3209  * \ref NvMediaEncodeH264Features
3210  *
3211  * <b> Version 1.22 </b> October 29, 2018
3212  * - Added enableExternalPictureRC in \ref NvMediaEncodeInitializeParamsH264
3213  * and \ref NvMediaEncodeInitializeParamsH265
3214  *
3215  * <b> Version 1.23 </b> Dec 14, 2018
3216  * - Defined Macro constants as unsigned to fix MISRA issues
3217  * - Fix MISRA violations 21.1 and 21.2
3218  *
3219  * <b> Version 1.24 </b> Jan 02, 2019
3220  * - Added enableAllIFrames in \ref NvMediaEncodeInitializeParamsH264
3221  * and \ref NvMediaEncodeInitializeParamsH265
3222  */
3223 
3224 
3225 #ifdef __cplusplus
3226 }; /* extern "C" */
3227 #endif
3228 
3229 #endif /* NVMEDIA_COMMON_H */
uint32_t nNumSlices
Number of slices in this picture.
Mirroring in the horizontal.
uint16_t aspectSARHeight
If aspectRatioIdc is Extended SAR it indicates vertical size of the sample aspect ratio (in the same ...
uint8_t cabacBypassAlignmentEnableFlag
Holds the SPS cabac_bypass_alignment_enabled_flag; always 0 in current profile.
uint32_t qpInterB
QP value for B frames.
uint32_t useBFramesAsRef
Enables B frames to be used as refernces frames.
uint8_t scaling_matrix_present
Copy of the H.264 bitstream field.
Enable support for motion vector buffer dump.
Holds H265-specific encode initialization parameters.
uint32_t * pSliceDataOffsets
Passing NULL for pSliceDataOffsets disables error-concealment.
uint32_t y1dc_delta_q
VP8 delta (subtracted from baseline quant index)
uint32_t nNumSlices
Number of slices in this picture.
uint32_t allow_high_precision_mv
Holds a copy of the VP9 bitstream field.
NvMediaBool videoFullRangeFlag
Holds the output range of the luma and chroma samples (as defined in Annex E of the ITU-T Specificati...
uint32_t log2_tile_columns
Holds a copy of the VP9 bitstream field.
uint8_t log2_diff_max_min_transform_block_size
Holds a copy of the H.265 bitstream field.
uint32_t mb_segment_abs_delta
VP8 mb segment abs delta.
uint32_t pic_height_in_map_units_minus1
Copy of the H.264 bitstream field.
int8_t pps_cr_qp_offset
Holds a copy of the H.265 bitstream field.
This attribute is used to get SPS data for current encoding session.
uint32_t hdr_processed_offset
Offset to byte which is parsed in cpu.
uint8_t highPrecisionOffsetsEnableFlag
Holds the SPS high_precision_offsets_enabled_flag.
NvMediaBool videoSignalTypePresentFlag
If set to NVMEDIA_TRUE, it specifies that the videoFormat, videoFullRangeFlag and colourDescriptionPr...
Disable Intra 8x8 vertical left prediction.
uint8_t num_short_term_ref_pic_sets
Holds a copy of the H.265 bitstream field.
uint32_t qpInterP
QP value for P frames.
Enable to set loop filter parameters.
uint32_t log2_tile_rows
Holds a copy of the VP9 bitstream field.
uint8_t num_ref_frames
Copy of the H.264 bitstream field.
uint8_t maxNumRefFrames
Holds the max reference numbers used for encoding.
uint32_t viewId
Holds the viewId of current picture.
uint16_t white_point_x
Normalized x chromaticity cordinate of white point of mastering display.
NvMediaEncodeQP maxQP
Holds maximum QP parameters.
Automatic profile selection.
uint32_t idrPeriod
Holds the IDR interval.
int8_t pps_beta_offset_div2
Holds a copy of the H.265 bitstream field.
uint8_t frame0_flipped_flag
Indicates which one of the two constituent frames is flipped, as described in Annex D...
Mastering display data for an H.265 picture.
uint32_t frameTagSize
Holds a copy of the VP9 bitstream field.
uint32_t encodePicFlags
Holds bit-wise OR`ed encode pic flags.
NvMediaRefSurface * forward_reference
Reference used by B and P frames.
uint8_t profile
Holds the encoding profile.
uint8_t log2_max_pic_order_cnt_lsb_minus4
Holds a copy of the H.265 bitstream field.
NvMediaBool bGMCConceal
Parser only: DivX GMC Concealment Flag to prevent decoding of non I-VOPs during a GMC sequence and in...
NvMediaEncodeH264Features
Defines H264 encoder configuration features.
uint8_t picture_structure
Holds a copy of the MPEG bitstream field.
uint8_t * slice_group_map
Slice group map.
uint8_t frame_mbs_only_flag
Copy of the H.264 bitstream field.
uint8_t transferCharacteristics
Holds the opto-electronic transfer characteristics to use (as defined in Annex E of the ITU-T Specifi...
uint8_t weighted_bipred_idc
Copy of the H.264 bitstream field.
uint8_t field_pic_flag
Copy of the H.264 bitstream field.
Holds picture parameter information for a VP9 picture.
NvMediaEncodeRCParams rcParams
Holds the rate control parameters for the current encoding session.
Intra predicted picture.
Holds an application data buffer containing compressed video data.
int8_t chroma_qp_index_offset
Copy of the H.264 bitstream field.
uint8_t vop_fcode_forward
Holds a copy of the bitstream field.
Disable Intra 8x8 vertical right prediction.
uint16_t frame_num
Copy of the H.264 bitstream field.
uint32_t uCoeffPartitionBufferHandle
Handle to VP8 Coeff partition (for OTF case).
uint8_t level
Holds the encoding level.
uint32_t refresh_entropy_probs
VP8 refresh entropy probs.
uint32_t nextBFrames
Secifies the number of B-frames that follow the current frame.
uint32_t frameRateDen
Holds the numerator for frame rate used for encoding in frames per second ( Frame rate = frameRateNum...
uint8_t extended_dmv
Holds a copy of the VC-1 bitstream field.
uint32_t numBFrames
Specified number of B frames between two reference frames.
uint8_t content_interpretation_flag
Indicates the intended interpretation of the constituent frames, as described in Annex D...
float_t saturation
A value clamped to between 0.1 and 2.0, initialized to 1.0 at NvMediaVideoMixer creation.
Enable support to use 4 byte start code in all the slices in a picture.
Specifies the decoder instance ID 1.
uint32_t y2dc_delta_q
VP8 Y2 dc delta.
uint8_t matrixCoeffs
Holds the matrix coefficients used in deriving the luma and chroma from the RGB primaries (as defined...
uint32_t * pSliceDataOffsets
Passing NULL for pSliceDataOffsets disables error-concealment.
uint8_t log2SaoOffsetScaleChroma
Holds the PPS log2_sao_offset_scale_chroma.
uint32_t ref2_height
Holds a copy of the VP9 bitstream field.
Holds the H.265 video usability information parameters.
uint32_t NvMediaBool
A boolean value, holding NVMEDIA_TRUE or NVMEDIA_FALSE.
Definition: nvmedia_core.h:79
NvMediaEncodeExternalMEHint * meExternalHints
Holds the pointer to ME external hints for the current frame.
uint8_t update_mb_seg_data
Holds a copy of the VP8 bitstream field.
NvMediaRefSurface * surface
The surface that contains the reference image.
uint16_t frameHeight
Parser only: Actual frame height.
Constant bitrate mode with MinQP.
NvMediaEncoderInstanceId
Specifies the encoder instance ID.
NvMediaBool bmode_ref_lf_delta_update
Set it to true if MB-level loop filter adjustment delta values are updated.
uint8_t loopfilter
Holds a copy of the VC-1 bitstream field.
NvMediaDecoderInstanceId
Specifies the decoder instance ID.
NvMediaEncodeLevel
Defines encoding levels.
uint32_t frameRateNum
Holds the numerator for frame rate used for encoding in frames per second ( Frame rate = frameRateNum...
uint32_t seiPayloadArrayCnt
Holds the number of elements allocated in seiPayloadArray array.
Disable Intra 4x4 horizontal down prediction.
uint32_t * pSliceDataOffsets
Passing NULL for pSliceDataOffsets disables error-concealment.
uint8_t fastuvmc
Holds a copy of the VC-1 bitstream field.
uint8_t CbrHdrBedRange
Holds a copy of the VP8 bitstream field.
uint8_t update_mb_seg_map
Holds a copy of the VP8 bitstream field.
uint8_t vstransform
Holds a copy of the VC-1 bitstream field.
uint8_t maxbframes
Copy of the VC-1 bitstream field.
int32_t qpYDc
Holds a copy of the VP9 bitstream field.
NvMediaEncodeH264POCType pocType
Holds pic_ordec_cnt_type.
High filter quality.
uint32_t NumActiveRefLayerPics1
Holds a copy of the H.265-MV bitstream field.
Holds quantization parameters(QP) value for frames.
NvMediaBool is_long_term
Is this a long term reference (else short term).
uint32_t NumPocTotalCurr
Holds a copy of the H.265 bitstream field.
uint32_t vbvInitialDelay
Holds the VBV(HRD) initial delay in bits.
Rotation by 270 degrees.
uint32_t frameRateDen
Holds the denominator for frame rate used for encoding in frames per second ( Frame rate = frameRateN...
NvMediaBool overscanInfoPresentFlag
If set to NVMEDIA_TRUE, it specifies that the overscanInfo is present.
Disable Intra 4x4 diagonal down right prediction.
uint8_t mode_ref_lf_delta_enabled
Holds a copy of the VP8 bitstream field.
NvMediaBool enableTwoPassRC
Enable 2 pass RC support.
uint32_t encodeHeight
Holds the encode height.
uint32_t frameRateDen
Holds the denominator for frame rate used for encoding in frames per second ( Frame rate = frameRateN...
A lower depth overlay is fully covering any higher depth overlay.
Quality Level 1 Pre-settings.
uint8_t intraSmoothingDisabledFlag
Holds the SPS intra_smoothing_disabled_flag.
uint16_t white_point_y
Normalized y chromaticity cordinate of white point of mastering display.
VC-1 advanced profile codec.
uint32_t sharpness_level
Specifies Sharpness level.
NvMediaEncodeRCParams rcParams
Holds the rate control parameters for the current encoding session.
uint32_t numCandsPerBlk8x16
Holds the number of candidates per 8x16 block.
uint8_t extendedPrecisionProcessingFlag
Holds the SPS extended_precision_processing_flag; always 0 in current profile.
uint32_t intraRefreshCnt
Holds the number of frames over which intra refresh will happen.
uint8_t transquant_bypass_enabled_flag
Holds a copy of the H.265 bitstream field.
uint8_t redundant_pic_cnt_present_flag
Copy of the H.264 bitstream field.
uint32_t uBitstreamDataLen
Bitstream data.
uint8_t log2MaxTransformSkipSize
Holds the PPS extension log2_max_transform_skip_block_size_minus2, 0...5.
Medium filter quality.
NvMediaBool no_temporal_mv_hints
Set to disable temporal mv hints.
NvMediaBool bLastSlice
Last slice flag: whether this SliceData contains last slice of frame.
NvMediaEncodeVP9Features
Defines VP9 encoder configuration features.
uint8_t q_scale_type
Holds a copy of the MPEG bitstream field.
uint8_t entropy_coding_mode_flag
Copy of the H.264 bitstream field.
uint32_t maxSessionQP
Holds the max QP for encoding session when external picture RC hint is used.
uint8_t log2_min_transform_block_size_minus2
Holds a copy of the H.265 bitstream field.
IP Search mode bit Intra 4x4.
uint8_t show_frame
Holds a copy of the VP8 bitstream field.
uint8_t colourPrimaries
Holds color primaries for converting to RGB (as defined in Annex E of the ITU-T Specification).
uint8_t intra_dc_precision
Holds a copy of the MPEG bitstream field.
uint32_t divx_flags
Parser Only: DivX flags.
Holds H264 video usability information parameters.
float_t hue
A value clamped to between -PI and PI, initialized to 0.0 at NvMediaVideoMixer creation.
int8_t pic_init_qp_minus26
Copy of the H.264 bitstream field.
NvMediaRefSurface * LastReference
Holds a pointer to the last reference frame.
uint8_t delta_pic_order_always_zero_flag
Copy of the H.264 bitstream field.
uint8_t diff_cu_qp_delta_depth
Holds a copy of the H.265 bitstream field.
uint8_t constrained_intra_pred_flag
Holds a copy of the H.265 bitstream field.
uint32_t frameRateDen
Holds the denominator for frame rate used for encoding in frames per second ( Frame rate = frameRateN...
uint8_t syncmarker
Copy of the VC-1 bitstream field.
uint32_t frameRateNum
Holds the numerator for frame rate used for encoding in frames per second ( Frame rate = frameRateNum...
NvMediaBool bottom_is_reference
Is the bottom field used as a reference.
uint8_t weighted_bipred_flag
Holds a copy of the H.265 bitstream field.
uint32_t uCoeffPartitionDataLen
Number of bytes in VP8 Coeff partition (for OTF case)
NvMediaRefSurface * GoldenReference
Golden reference frame.
uint32_t gopLength
Holds the number of pictures in one GOP.
Holds H264-specific encode initialization parameters.
uint8_t enableWeightedPrediction
Holds enable weighted predition.
uint8_t alternate_vertical_scan_flag
Holds a copy of the bitstream field.
H.264 specific User SEI message.
uint8_t update_mb_seg_abs
Copy of the VP8 bitstream field.
uint32_t transform_mode
Specifies transform_mode: 0: only4x4, 1: allow_8x8, 2: allow_16x16, 3: allow_32x32, 4:transform_mode_select.
NvMediaRefSurface * LastReference
Last reference frame.
Disable Intra 4x4 vertical right prediction.
uint8_t slice_group_map_type
Copy of the H.264 bitstream field.
NvMediaBool enableROIEncode
Enable region of interest encoding.
uint8_t colourMatrix
Holds the matrix coefficients used in deriving the luma and chroma from the RGB primaries (as defined...
float_t contrast
A value clamped to between 0.1 and 2.0, initialized to 1.0 at NvMediaVideoMixer creation.
uint8_t key_frame
Holds a copy of the VP8 bitstream field.
uint32_t pic_height_in_luma_samples
Holds a copy of the H.265 bitstream field.
Holds VP9-specific encoder picture parameters, which are sent on a per frame basis.
Specifies that Adaptive Transform 8x8 mode is disabled.
uint32_t ref0_height
Holds a copy of the VP9 bitstream field.
uint32_t modeRefLfEnabled
Holds a copy of the VP9 bitstream field.
uint8_t dquant
Holds a copy of the VC-1 bitstream field.
uint8_t constrained_intra_pred_flag
Copy of the H.264 bitstream field.
int32_t last_pps_id
Copy of the H.264 bitstream field.
Enable to set quantization parameters.
NvMediaBool enableExternalMEHints
Holds a flag indicating whether to enable or disable the external ME hints.
Holds picture parameter information for an MPEG-4 Part 2 picture.
uint8_t num_ref_idx_l0_active_minus1
Copy of the H.264 bitstream field.
Holds H265-specific encoder picture parameters.
uint8_t frameType
0:FrameType_B 1:FrameType_P 2:FrameType_I
uint8_t log2_diff_max_min_pcm_luma_coding_block_size
Holds a copy of the H.265 bitstream field.
uint32_t default_ref_layers_active_flag
Holds a copy of the H.265-MV bitstream field.
NvMediaBool enableLimitedRGB
Set this to NVMEDIA_TRUE for limited-RGB (16-235) input.
uint8_t full_pel_backward_vector
Holds a copy of the MPEG-1 bitstream field.
NvMediaDispCompMode
Specifies composition modes for layers.
NvMediaBool bmode_ref_lf_delta_enabled
Set it to true if MB-level loop filter adjustment is on.
uint32_t segmentEnabled
Holds a copy of the VP9 bitstream field.
NvMediaNoiseReductionAlgorithm
Noise Reduction Algorithm.
Bi-directionally predicted picture.
Constant bitrate mode.
uint8_t loop_filter_across_tiles_enabled_flag
Holds a copy of the H.265 bitstream field.
uint32_t hdr_partition_size
Remaining header parition size.
NvMediaEncodeH264AdaptiveTransformMode adaptiveTransformMode
Holds the AdaptiveTransform Mode.
NvMediaRefSurface * AltReference
Alternate reference frame.
uint8_t tiles_enabled_flag
Holds a copy of the H.265 bitstream field.
uint8_t tfcntrflag
Holds a copy of the VC-1 bitstream field.
uint8_t postprocflag
Holds a copy of the VC-1 bitstream field.
uint8_t loop_filter_level
Holds a copy of the VP8 bitstream field.
uint8_t resync_marker_disable
Holds a copy of the bitstream field.
uint8_t deblocking_filter_control_present_flag
Holds a copy of the H.265 bitstream field.
uint8_t num_ref_idx_l1_active_minus1
Copy of the H.264 bitstream field.
Specifies that the decoder instance ID can be set dynamically during decode.
uint8_t fastRiceAdaptationEnableFlag
Holds the SPS fast_rice_adaptation_enabled_flag.
uint32_t bitstreamBytes
The number of data bytes.
uint8_t separate_colour_plane_flag
Holds a copy of the H.265 bitstream field.
Rotation by 180 degrees.
NvMediaBool enableMVC
If client want to do MVC encoding then this flag need to be set.
uint32_t encodePicFlags
Holds bit-wise OR`ed encode pic flags.
uint32_t numCandsPerBlk16x8
Holds the number of candidates per 16x8 block.
uint32_t intraRefreshPeriod
Holds the interval between frames that trigger a new intra refresh cycle and this cycle lasts for int...
uint8_t filter_type
Holds a copy of the VP8 bitstream field.
Holds picture parameter information for an H.265 picture.
uint8_t rangered
VC-1 SP/MP range reduction control.
NvMediaBool overscanInfoPresentFlag
If set to NVMEDIA_TRUE, it specifies that the overscanInfo is present.
NvMediaBool overscanAppropriateFlag
Holds the overscan info (as defined in Annex E of the ITU-T Specification).
uint8_t picture_coding_type
Holds a copy of the MPEG bitstream field.
uint8_t output_flag_present_flag
Holds a copy of the H.265 bitstream field.
uint32_t encodeWidth
Holds the encode width.
Enable support for external picture RC hint.
Disable Intra chroma vertical prediction.
Enable constrainedFrame encoding where each slice in the constrained picture is independent of other ...
uint8_t top_field_first
Holds a copy of the MPEG bitstream field.
uint8_t interlaced
Holds a copy of the bitstream field.
uint32_t base_qindex
Set the feature flag NVMEDIA_ENCODE_CONFIG_VP8_ENABLE_QUANTIZATION_PARAMS to set the following parame...
uint16_t not_existing
Parser only: Non-existing reference frame flag (corresponding PicIdx should be set to -1) ...
uint32_t comp_fixed_ref
Holds a copy of the VP9 bitstream field.
MPEG4 Part 2 codec.
uint8_t log2_diff_max_min_luma_coding_block_size
Holds a copy of the H.265 bitstream field.
uint32_t frameRateDen
Holds the numerator for frame rate used for encoding in frames per second ( Frame rate = frameRateNum...
uint32_t features
Holds bit-wise OR`ed configuration feature flags.
uint32_t NumDirectRefLayers
Holds a copy of the H.265-MV bitstream field.
NvMediaVP9BackwardUpdates backwardUpdateCounts
Parser only: Backward update counts.
uint8_t crossComponentPredictionEnableFlag
Holds the PPS cross_component_prediction_enabled_flag.
int8_t init_qp_minus26
Holds a copy of the H.265 bitstream field.
Disable Intra 8x8 vertical prediction.
NvMediaBool mb_no_coeff_skip_flag
Set to enable skipping of macroblocks with no non-zero coefficients at the frame level.
uint32_t gopLength
Holds the number of pictures in one GOP.
NvMediaColorStandard
Defines color standards.
Definition: nvmedia_core.h:123
uint32_t uvac_delta_q
VP8 UV ac delta.
uint8_t alt_ref_frame_sign_bias
Holds a copy of the VP8 bitstream field.
uint8_t num_long_term_ref_pics_sps
Holds a copy of the H.265 bitstream field.
uint32_t payloadSize
SEI payload size in bytes.
int8_t second_chroma_qp_index_offset
Copy of the H.264 bitstream field.
Forward predicted.
Disable Intra 16x16 vertical prediction.
Indicates that this frame is encoded with each slice completely independent of other slices in the fr...
uint32_t vbvBufferSize
Holds the VBV(HRD) buffer size.
picture header data present or not
Specifies that the encoder instance ID can be set dynamically during encode.
uint32_t NumBitsToSkip
Holds a copy of the H.265 bitstream field.
NvMediaBool videoSignalTypePresentFlag
If set to NVMEDIA_TRUE, it specifies that the videoFormat, videoFullRangeFlag, and colourDescriptionP...
NvMediaEncodeExternalMEHint * meExternalHints
Holds the pointer to ME external hints for the current frame.
uint8_t transform_skip_enabled_flag
Holds a copy of the H.265 bitstream field.
NvMediaRefSurface * forward_reference
Reference used by B and P frames.
uint32_t maxSliceSizeInBytes
Holds the max slice size in bytes for dynamic slice mode.
uint8_t log2_min_pcm_luma_coding_block_size_minus3
Holds a copy of the H.265 bitstream field.
Disable Intra 8x8 horizontal up prediction.
Low (default) filter quality.
Holds VP9-specific encode initialization parameters.
uint32_t numMacroblocksPerSlice
Number of macroblocks per slice.
Auto selected picture type.
NvMediaEncodeH264SEIPayload * seiPayloadArray
Array of SEI payloads which will be inserted for this frame.
uint8_t pps_slice_chroma_qp_offsets_present_flag
Holds a copy of the H.265 bitstream field.
uint8_t chromaQpAdjustmentTableSize
Holds the PPS chroma_qp_adjustment_table_size_minus1+1, 1...6.
NvMediaEncodeH264SPSPPSRepeatMode repeatSPSPPS
Holds the frequency of the writing of Sequence and Picture parameters.
uint8_t cabac_init_present_flag
Holds a copy of the H.265 bitstream field.
uint32_t numCandsPerBlk8x8
Holds the number of candidates per 8x8 block.
NvMediaBool enableLimitedRGB
Set this to NVMEDIA_TRUE for limited-RGB (16-235) input.
uint16_t aspectSARHeight
If aspectRatioIdc is Extended SAR then it indicates vertical size of the sample aspect ratio (in the ...
uint8_t quarter_sample
Holds a copy of the bitstream field.
uint8_t slice_segment_header_extension_present_flag
Holds a copy of the H.265 bitstream field.
uint8_t CbrHdrBedValue
Holds a copy of the VP8 bitstream field.
Holds VP9 encoder configuration parameters.
uint32_t base_qindex
Specifies quant base index (used only when rc_mode = 0) for each segment 0...255. ...
uint32_t RetRefreshGoldenFrame
Parser only: RetRefreshGoldenFrame.
uint8_t cu_qp_delta_enabled_flag
Holds a copy of the H.265 bitstream field.
uint32_t * pSliceDataOffsets
If not NULL, nNumSlices entries, contains offset of each slice within the bitstream data buffer...
NvMediaBool enableSliceEncode
use slice encode to reduce latency in getting encoded buffers.
uint32_t intraRefreshPeriod
Holds the interval between frames that trigger a new intra refresh cycle and this cycle lasts for int...
uint32_t hdr_start_offset
Start of header partition.
uint8_t transform_8x8_mode_flag
Copy of the H.264 bitstream field.
NvMediaBool bStereoEnabled
Flag whether stereo is enabled or not.
NvMediaBool enableExternalMEHints
Set to NVMEDIA_TRUE to enable external ME hints.
NvMediaRefSurface * backward_reference
Reference used by B frames.
uint32_t NumActiveRefLayerPics
Holds a copy of the H.265-MV bitstream field.
Disable Intra chroma DC prediction.
Disable Intra 4x4 vertical prediction.
uint32_t errorResilient
Error Resilient.
uint32_t frameRateNum
Holds the numerator for frame rate used for encoding in frames per second ( Frame rate = frameRateNum...
uint8_t log2_min_luma_coding_block_size_minus3
Holds a copy of the H.265 bitstream field.
int32_t qpChDc
Holds a copy of the VP9 bitstream field.
Noise reduction algorithm for outdoor medium light condition.
Pic_order_cnt_type 2.
uint32_t viewId
Holds the viewId of current picture.
uint32_t encodeHeight
Holds the encode height.
uint32_t ulNalSize
Nal size for header.
uint8_t pps_deblocking_filter_disabled_flag
Holds a copy of the H.265 bitstream field.
uint32_t filter_type
Set the feature flag NVMEDIA_ENCODE_CONFIG_VP8_ENABLE_LOOP_FILTER_PARAMS to change the following para...
uint32_t poc_lsb_not_present_flag
Holds a copy of the H.265-MV bitstream field.
uint8_t maxNumRefFrames
Holds the max reference numbers used for encoding.
NvMediaBool error_resilient
Enable Error resiliency.
uint32_t min_display_parameter_luminance
Nominal minimum display luminance in units of 0.0001 candelas per square metre.
uint8_t entropy_coding_sync_enabled_flag
Holds a copy of the H.265 bitstream field.
int32_t qpYAc
Holds a copy of the VP9 bitstream field.
uint32_t mcomp_filter_type
Holds a copy of the VP9 bitstream field.
uint32_t encodePicFlags
Holds bit-wise OR`ed encode pic flags.
NvMediaBool videoFullRangeFlag
Holds the output range of the luma and chroma samples (as defined in Annex E of the ITU-T Specificati...
NVIDIA Media Interface: Core
uint8_t videoFormat
Holds the source video format (as defined in Annex E of the ITU-T Specification). ...
Enable gradual decoder refresh or intra refresh.
Rotation by 90 degrees.
Block only when operation is pending.
uint8_t golden_ref_frame_sign_bias
Holds a copy of the VP8 bitstream field.
uint8_t MVCReserved8Bits
Copy of the H.264 mvc bitstream field.
NvMediaEncodeRCParams rcParams
Holds the rate control parameters from the current frame onward if the NVMEDIA_ENCODE_PIC_FLAG_RATECO...
NvMediaBool limitedRGB
Limited RGB NVMEDIA_DISP_ATTR_LIMITED_RGB.
uint32_t nNumSlices
Number of slices in this picture.
uint8_t amp_enabled_flag
Holds a copy of the H.265 bitstream field.
uint32_t encodeWidth
Holds the encode width.
uint32_t allow_comp_inter_inter
Holds a copy of the VP9 bitstream field.
uint32_t slice_group_change_rate_minus1
Copy of the H.264 bitstream field.
NvMediaBool bmode_ref_lf_delta_update
Set it to true if MB-level loop filter adjustment delta values are updated.
uint8_t num_extra_slice_header_bits
Holds a copy of the H.265 bitstream field.
uint32_t bitstreamSize
Size of bitstream array.
uint32_t frameRateDen
Holds the denominator for frame rate used for encoding in frames per second ( Frame rate = frameRateN...
uint8_t intraBlockCopyEnableFlag
Holds the SPS intraBlockCopyEnableFlag; always 0 not currently used by the spec.
uint8_t log2_max_frame_num_minus4
Copy of the H.264 bitstream field.
uint8_t range_mapy
Holds a copy of the VC-1 bitstream field.
NvMediaEncodeH264BDirectMode bdirectMode
Holds the BDirect mode.
uint8_t reserved2
Ensures alignment to 4 bytes.
uint8_t panscan_flag
Holds a copy of the VC-1 bitstream field.
NvMediaDispCompMode compositionMode
Defines the composition mode for the layer.
uint8_t picture_type
I=0, P=1, B=3, BI=4 from 7.1.1.4.
uint8_t BitsConsumed
Bits consumed for the current bitstream byte.
Mirroring along a diagonal axis from the top right to the bottom left of the rectangular region...
Disable Intra 4x4 horizontal prediction.
int8_t pps_tc_offset_div2
Holds a copy of the H.265 bitstream field.
uint32_t ref1_width
Holds a copy of the VP9 bitstream field.
Holds VP8-specific encoder picture parameters, which are sent on a per frame basis.
uint8_t log2_max_pic_order_cnt_lsb_minus4
Copy of the H.264 bitstream field.
NvMediaEncodeH264BDirectMode
Defines H.264 specific Bdirect modes.
NvMediaTransform
Transformations.
Enable to set quantization parameters.
Enable gradual decoder refresh or intra refresh.
VC-1 simple and main profile codec.
uint32_t max_one_active_ref_layer_flag
Holds a copy of the H.265-MV bitstream field.
Holds the H265 encoder configuration parameters.
uint32_t PrevShowFrame
Previous frame is show frame.
uint8_t * payload
Pointer to user data.
uint8_t version
Holds a copy of the VP8 bitstream field.
uint8_t * pBitstreamData
Ptr to bitstream data for this picture (slice-layer)
H264 specific encoder picture params.
uint32_t mv_hevc_enable
Indicates hecv-mv is present in the stream.
uint32_t filter_level
Specifies the loop filter strength for each segment.
uint8_t current_frame_is_frame0_flag
Indicate whether current frame is frame 0, as described in Annex D.
uint8_t mode_ref_lf_delta_update
Holds a copy of the VP8 bitstream field.
uint8_t deblocking_filter_control_present_flag
Copy of the H.264 bitstream field.
uint32_t nalUnitType
SEI nal_unit_type.
NvmediaVP9EntropyProbs entropy
Holds a copy of the VP9 bitstream field.
NvMediaBool enableMVC
If client want to do MVC encoding then this flag need to be set.
Holds an External Motion Vector hint.
NvMediaEncodeRCParams rcParams
Holds the rate control parameters from the current frame onward if the NVMEDIA_ENCODE_PIC_FLAG_RATECO...
Enable support for dynamic reference picture set RPS/DPB control support.
uint8_t rounding_control
Derived from vop_rounding_type bitstream field.
NvMediaEncodePicFlags
Defines encoding Picture encode flags.
uint32_t uFirstCtbAddr
CTB number of first CTB in the slice data.
uint32_t high_prec_mv
Specifies to enable high precision MV.
uint8_t log2SaoOffsetScaleLuma
Holds the PPS log2_sao_offset_scale_luma, max(0,bitdepth-10), maxBitdepth 16 for future.
uint32_t motionPredictionExclusionFlags
Holds bit-wise OR`ed exclusion flags.
uint8_t frame_coding_mode
Progressive=0, Frame-interlace=2, Field-interlace=3; see VC-1 7.1.1.15.
NvMediaMasteringDisplayData MasteringDispData
Parser Only: Mastering display data if present.
uint32_t uNumSlices
Number of slices in this SliceData.
NvMediaEncodeH264MotionPredictionExclusionFlags
Defines motion prediction exclusion flags for H.264.
uint8_t inter_view_flag
Copy of the H.264 mvc bitstream field.
NvMediaSEIPayloadH264 seiPayloadInfo
Parser only: SEI payload info.
uint8_t quant_type
Holds a copy of the bitstream field.
NvMediaEncodeProfile
Defines encoding profiles.
uint8_t data_partitioned
Holds a copy of the bitstream field.
Disable Inter L0 partition 8x16 prediction.
int32_t delta_uv_dc
Specifies qindex adjustment for uv accoefficient, -15...15.
NvMediaBool top_is_reference
Is the top field used as a reference.
uint8_t full_pel_forward_vector
Holds a copy of the MPEG-1 bitstream field.
uint32_t features
Holds bit-wise OR`ed configuration feature flags.
uint16_t chroma_format_idc
Copy of the H.264 bitstream field.
Disable Intra chroma horizontal prediction.
Holds a rectangular region of a surface.
Definition: nvmedia_core.h:146
Original (default) noise reduction algorithm.
uint8_t maxNumRefFrames
Holds the max reference numbers used for encoding.
uint8_t profile
Parser only: Profile.
uint32_t features
Holds bit-wise OR`ed configuration feature flags.
NvMediaBool aspectRatioInfoPresentFlag
If set to NVMEDIA_TRUE, specifies the aspectRatioIdc is present.
uint8_t profile
Holds the encoding profile.
uint32_t lossless
Holds a copy of the VP9 bitstream field.
uint32_t RetRefreshAltFrame
Parser only: RetRefreshAltFrame.
uint8_t field_views_flag
Indicates whether all pictures in the current coded video sequence are coded as complementary field p...
NvMediaEncodeH264EntropyCodingMode entropyCodingMode
Holds the entropy coding mode.
uint32_t y2ac_delta_q
VP8 Y2 ac delta.
No transformation.
NvMediaEncodeQuality
Defines encode quality level pre-settings.
uint8_t sps_range_extension_present_flag
uint8_t transformSkipRotationEnableFlag
Holds the SPS extension for transform_skip_rotation_enabled_flag.
Holds VP9 entropy contexts.
uint32_t loopFilterLevel
Holds a copy of the VP9 bitstream field.
Disable Intra 8x8 DC prediction.
uint8_t weighted_pred_flag
Copy of the H.264 bitstream field.
uint8_t dequant_index
Holds a copy of the VP8 bitstream field.
NvMediaEncodeRCParams rcParams
Holds the rate control parameters from the current frame onward if the NVMEDIA_ENCODE_PIC_FLAG_RATECO...
uint32_t NumPocStCurrBefore
Holds a copy of the H.265 bitstream field.
NvMediaRefSurface * forward_reference
Reference used by B and P frames.
NvMediaEncodeQuality quality
Holds encode quality pre-set.
uint8_t * payload
pointer to user data
uint8_t enableWeightedPrediction
Holds enable weighted predition.
NvMediaBool enableSliceEncode
use slice encode to reduce latency in getting encoded buffers.
Holds rate control configuration parameters.
uint32_t bit_depth
Holds the depth per pixel.
Enable support to use client provided QP max for all frame types.
uint8_t loop_filter_across_slices_enabled_flag
Holds a copy of the H.265 bitstream field.
uint32_t frameRateNum
Holds the numerator for frame rate used for encoding in frames per second ( Frame rate = frameRateNum...
NvMediaBool enableReconCRC
Enable support for recon CRC generation.
NvMediaFilterQuality
Defines filter quality levels.
Quality Level 2 Pre-settings.
uint8_t dependent_slice_segments_enabled_flag
Holds a copy of the H.265 bitstream field.
slice level data used with slice level decoding
uint8_t finterpflag
Holds a copy of the VC-1 bitstream field.
uint8_t direct_8x8_inference_flag
Copy of the H.264 bitstream field.
uint8_t quantizer
Holds a copy of the VC-1 bitstream field.
uint8_t bit_depth_chroma
Holds a copy of the H.265 bitstream field.
uint32_t nNumSlices
Holds the number of slices in this picture.
NvMediaEncodeQP minQP
Holds the minimum QP used for rate control.
Specifies that Adaptive Transform 8x8 mode is auto selected by the encoder driver.
NvMediaEncodeQP constQP
Holds the initial QP to be used for encoding, these values would be used for all frames in Constant Q...
NvMediaEncodeExternalMEHint * meExternalHints
Holds the pointer to ME external hints for the current frame.
NvMediaBool enableSourceHalfScaled
Enable 2 pass RC with quarter resolution first pass.
uint8_t psf
Holds a copy of the VC-1 bitstream field.
uint8_t masterin_display_data_present
Parser Only: Flag to indicated mastering display data is present.
uint8_t frameType
0:FrameType_B 1:FrameType_P 2:FrameType_I
NvMediaEncodePicType
Input picture type.
uint32_t payloadType
SEI payload types and syntax can be found in Annex D of the H.264 Specification.
This is used to get header info (SPS/PPS/VPS) using GetAttribute call.
Pic_order_cnt_type 0.
NvMediaEncodeRCParams rcParams
Holds the rate control parameters from the current frame onward if the NVMEDIA_ENCODE_PIC_FLAG_RATECO...
uint8_t pps_range_extension_present_flag
uint16_t aspectSARWidth
If aspectRatioIdc is Extended SAR then it indicates horizontal size of the sample aspect ratio (in ar...
uint32_t useBFramesAsRef
Enables B frames to be used as refernces frames.
uint8_t vop_coding_type
Holds a copy of the bitstream field.
NvMediaRefSurface * range_mapped
Reference used for range mapping.
NvMediaEncAttrType
Specifies the Video encoder get attribute type.
uint32_t nextBFrames
Secifies the number of B-frames that follow the current frame.
uint32_t NumPocStCurrAfter
Holds a copy of the H.265 bitstream field.
uint8_t explicitRdpcmEnableFlag
Holds the SPS explicit_rdpcm_enabled_flag.
Holds NvMedia display attributes.
NvMediaBool colourDescriptionPresentFlag
If set to NVMEDIA_TRUE, it specifies that the colourPrimaries, transferCharacteristics, and colourMatrix are present.
NvMediaEncodeQuality quality
Holds encode quality pre-set.
uint8_t clamp_type
Copy of the VP8 bitstream field.
uint8_t long_term_ref_pics_present_flag
Holds a copy of the H.265 bitstream field.
uint8_t log2_parallel_merge_level_minus2
Holds a copy of the H.265 bitstream field.
uint8_t implicitRdpcmEnableFlag
Holds the SPS implicit_rdpcm_enabled_flag.
uint32_t sharpness_level
Specifies Sharpness level.
NvMediaEncodeConfigH264VUIParams * h264VUIParameters
Holds the H264 video usability info pamameters.
uint32_t encodeHeight
Holds the encode height.
uint16_t numSliceCountMinus1
Holds a number that is 1 less than the number of slices desired per frame.
Holds an external motion vector hint with counts per block type.
int32_t qpChAc
Holds a copy of the VP9 bitstream field.
uint8_t bottom_field_flag
Bottom field flag TopField=0 BottomField=1.
Disable Intra 8x8 horizontal prediction.
NvMediaRefSurface * GoldenReference
Holds a pointer to the golden reference frame.
void NvMediaPictureInfo
A generic "picture information" pointer type.
uint32_t transform_mode
Holds a copy of the VP9 bitstream field.
uint8_t transformSkipContextEnableFlag
Holds the SPS extension for transform_skip_context_enabled_flag.
uint32_t intraRefreshCnt
Holds the number of frames over which intra refresh will happen.
#define MAX_NON_SLICE_DATA_SIZE
Maximum encoded header info size.
NvMediaBool enableSliceLevelEncode
Set this to NVMEDIA_TRUE for slice level encode.
int32_t CurrPicOrderCntVal
Holds a copy of the H.265 bitstream field.
Disable Intra 4x4 DC prediction.
Disable Intra 16x16 horizontal prediction.
uint8_t transferCharacteristics
Holds the opto-electronic transfer characteristics to use (as defined in Annex E of the ITU-T Specifi...
Enable support for motion vector buffer dump.
Disable Intra chroma plane prediction.
NvMediaEncodePicType pictureType
Holds input picture type.
Disable Inter L0 partition 16x8 prediction.
Holds an H265-specific User SEI message.
uint32_t max_display_parameter_luminance
Nominal maximum display luminance in units of 0.0001 candelas per square metre.
uint8_t diffCuChromaQpAdjustmentDepth
Holds the PPS diff_cu_chroma_qp_adjustment_depth, 0...3.
uint32_t height
Holds a copy of the VP9 bitstream field.
Enable support to use client provided QP max for all frame types.
uint8_t overlap
Holds a copy of the VC-1 bitstream field.
NvMediaEncodeQP maxQP
Holds maximum QP parameters.
NvMediaEncodePicType pictureType
Holds input picture type.
Picture parameter information for an H.264 picture.
float_t brightness
A value clamped to between -0.5 and 0.5, initialized to 0.0 at NvMediaVideoOutput creation...
NvMediaBool stop_prob_update
Set to turn off all probability updates to save hw testing time.
NvMediaBool bSliceDecEnable
Flag to indicate slice decode is enabled.
uint32_t encodeHeight
Holds the encode height.
uint16_t FrameIdx
Copy of the H.264 bitstream field: frame_num from slice_header for short-term references, LongTermPicNum from decoding algorithm for long-term references.
Holds picture parameter information for an MPEG 1 or MPEG 2 picture.
uint32_t seiPayloadArrayCnt
Holds the number of elements allocated in seiPayloadArray array.
uint32_t frameRateNum
Holds the numerator for frame rate used for encoding in frames per second ( Frame rate = frameRateNum...
uint8_t num_tile_rows_minus1
Holds a copy of the H.265 bitstream field.
uint8_t num_slice_groups_minus1
Copy of the H.264 bitstream field.
NvMediaEncodeRCParams rcParams
Holds the rate control parameters for the current encoding session.
uint8_t sign_data_hiding_enabled_flag
Holds a copy of the H.265 bitstream field.
Indicates change in rate control parameters from the current picture onwards.
NvMediaEncodeH265Features
Defines H265 encoder configuration features.
Starts a new intra refresh cycle if intra refresh support is enabled otherwise it indicates a P frame...
uint32_t pic_width_in_mbs_minus1
Copy of the H.264 bitstream field.
Disable Intra 8x8 diagonal down left prediction.
NvMediaEncodeQP initQP
Holds Initial QP parameters.
uint8_t intra_vlc_format
Holds a copy of the MPEG bitstream field.
slice header data present or not
Holds an H264 encoder configuration.
uint8_t scaling_list_enable_flag
Holds a copy of the H.265 bitstream field.
uint16_t aspectSARWidth
If aspectRatioIdc is Extended SAR it indicates horizontal size of the sample aspect ratio (in arbitra...
Specifies that Adaptive Transform 8x8 mode must be used.
uint8_t num_ref_idx_l0_default_active_minus1
Holds a copy of the H.265 bitstream field.
uint8_t num_ref_idx_l1_default_active_minus1
Holds a copy of the H.265 bitstream field.
uint32_t resolutionChange
Resolution change.
uint8_t videoFormat
Holds the source video format (as defined in Annex E of the ITU-T Specification). ...
uint32_t gopLength
Holds the number of pictures in one GOP.
uint8_t bit_depth_luma
Holds a copy of the H.265 bitstream field.
uint8_t mb_adaptive_frame_field_flag
Copy of the H.264 bitstream field.
NvMediaEncodeConfigH265VUIParams * h265VUIParameters
Holds the H265 video usability info pamameters.
uint32_t IDRPicFlag
Holds a copy of the H.265 bitstream field.
NvMediaBool bmode_ref_lf_delta_enabled
Set it to true if MB-level loop filter adjustment is on.
SPS/PPS is repeated for every intra frame.
uint32_t frameRateNum
Holds the numerator for frame rate used for encoding in frames per second ( Frame rate = frameRateNum...
uint32_t prevIsKeyFrame
If previous frame is key frame.
void NvMediaRefSurface
A generic "reference surface" pointer type.
Holds picture parameter information for a VC1 picture.
uint32_t width
Holds a copy of the VP9 bitstream field.
H.264 Multiview Video Coding codec.
uint32_t gopLength
Holds the number of pictures in one GOP.
int32_t delta_uv_ac
Specifies qindex adjustment for uv dccoefficient, -15...15.
uint32_t numReferenceFrames
Number of reference frame.
Enable to write access unit delimiter syntax in bitstream.
Repeating of SPS/PPS is disabled.
uint8_t num_inter_view_refs_l0
Copy of the H.264 mvc bitstream field.
uint8_t weighted_pred_flag
Holds a copy of the H.265 bitstream field.
NvMediaEncodeH264POCType
Define H.264 pic_order_cnt_type.
Holds VP8 encoder configuration parameters.
uint32_t loopFilterSharpness
Holds a copy of the VP9 bitstream field.
NvMediaBool bConstFrameQP
using constant frame QP throughout the current encode frame.
NvMediaEncodePicType pictureType
Holds input picture type.
uint32_t encodeWidth
Holds the encode width.
uint8_t fmo_aso_enable
Copy of the H.264 bitstream field.
uint8_t rangeredfrm
Copy of the VC-1 bitstream field.
uint32_t * pSliceDataOffsets
Passing NULL for pSliceDataOffsets disables error-concealment.
uint32_t maxBitRate
Holds the maximum bitrate for the encoded output.
uint8_t levelTier
Holds the level tier information.
uint8_t num_tile_columns_minus1
Holds a copy of the H.265 bitstream field.
Enable support to use client provided Initial QP for all frame types.
NvMediaVideoCodec
Video codec type.
NvMediaEncodeH264SPSPPSRepeatMode
Specifies the frequency of the writing of Sequence and Picture parameters for H.264.
uint32_t idrPeriod
Holds the IDR interval.
uint32_t pic_width_in_luma_samples
Holds a copy of the H.265 bitstream field.
uint32_t encodePicFlags
Holds bit-wise OR`ed encode pic flags.
NvMediaEncodeQP maxQP
Holds maximum QP parameters.
uint32_t idrPeriod
Holds the IDR interval.
uint8_t frame_pred_frame_dct
Holds a copy of the MPEG bitstream field.
Disable Intra 4x4 vertical left prediction.
uint32_t RAPPicFlag
Holds a copy of the H.265 bitstream field.
uint8_t disableDeblockingFilter
Holds disable the deblocking filter.
uint8_t pcm_sample_bit_depth_luma_minus1
Holds a copy of the H.265 bitstream field.
H265 Multiview Video Coding codec.
uint8_t max_transform_hierarchy_depth_inter
Holds a copy of the H.265 bitstream field.
uint32_t ref1_height
Holds a copy of the VP9 bitstream field.
NvMediaEncodeH265SEIPayload * seiPayloadArray
Array of SEI payloads which will be inserted for this frame.
Disable Intra 4x4 diagonal down left prediction.
uint8_t maxNumRefFrames
Holds the max reference numbers used for encoding.
uint8_t num_of_partitions
Holds a copy of the VP8 bitstream field.
uint32_t nextBFrames
Holds the number of B-frames that follow the current frame.
uint32_t payloadSize
SEI payload size in bytes.
Enable to set loop filter parameters.
Information about an H.264 reference frame.
Enable support to use client provided QP max for all frame types.
int32_t segmentMapTemporalUpdate
Holds a copy of the VP9 bitstream field.
int8_t pps_cb_qp_offset
Holds a copy of the H.265 bitstream field.
Disable Intra 16x16 DC prediction.
NvMediaBool timingInfoPresentFlag
Holds that num_units_in_tick, time_scale and fixed_frame_rate_flag are present in the bitstream (as d...
NvMediaEncodeParamsRCMode rateControlMode
Holds the rate control mode.
NvMediaBool enableTwoPassRC
Enable 2 pass RC support.
uint8_t deblocking_filter_override_enabled_flag
Holds a copy of the H.265 bitstream field.
Noise reduction algorithm for indoor medium light condition.
uint16_t num_views_minus1
Copy of the H.264 mvc bitstream field.
uint8_t sharpness_level
Holds a copy of the VP8 bitstream field.
NvMediaBool is_reference
Will the decoded frame be used as a reference later.
NvMediaEncodeQP maxQP
Holds max QP parameters.
uint8_t flag_slices_across_multiple_rows
Indicates whether the MPEG slices span across multiple rows.
Enable to write access unit delimiter syntax in bitstream.
uint32_t numCTUsPerSlice
Number of CTU per slice.
Mirroring in the vertical direction.
NvMediaBlockingType
Blocking type.
Enable constrainedFrame encoding where each slice in the constrained picture is independent of other ...
uint16_t frameWidth
Parser only: Actual frame width.
int32_t delta_y_dc_q
Specifies explicit qindex adjustment for y dccoefficient, -15...15.
uint8_t top_field_first
Holds a copy of the bitstream field.
Enable support to use client provided Initial QP for all frame types.
uint8_t pcm_enabled_flag
Holds a copy of the H.265 bitstream field.
uint8_t uniform_spacing_flag
Holds a copy of the H.265 bitstream field.
uint32_t nuh_layer_id
Holds a copy of the H.265-MV bitstream field.
NvMediaBool overscanAppropriateFlag
Holds the overscan info (as defined in Annex E of the ITU-T Specification).
NvMediaEncodeH264MotionSearchControlFlags
Defines motion search mode control flags for H.264.
uint32_t uvdc_delta_q
VP8 UV dc delta.
NvMediaEncodeParamsRCMode
Rate Control Modes.
uint8_t strong_intra_smoothing_enabled_flag
Holds a copy of the H.265 bitstream field.
Enable support to use 4 byte start code in all the slices in a picture.
Mirroring along a diagonal axis from the top left to the bottom right of the rectangular region...
uint8_t pic_order_cnt_type
Copy of the H.264 bitstream field.
uint8_t num_inter_view_refs_l1
Copy of the H.264 mvc bitstream field.
uint32_t frameRateNum
Holds the numerator for frame rate used for encoding in frames per second ( Frame rate = frameRateNum...
uint16_t numSliceCountMinus1
Set to 1 less than the number of slices desired per frame.
Enable support to use client provided Initial QP for all frame types.
Automatic level selection.
uint32_t nNumSlices
Number of slices in this picture.
Enable support to use client provided Initial QP for all frame types.
uint8_t pcm_loop_filter_disabled_flag
Holds a copy of the H.265 bitstream field.
Disable Intra 8x8 diagonal down right prediction.
uint8_t range_mapy_flag
Holds a copy of the VC-1 bitstream field.
uint8_t spatial_flipping_flag
Indicates that whether one of the two constituent frames is spatially flipped relative to its intende...
uint8_t interlace
Holds a copy of the VC-1 bitstream field.
uint32_t maxSliceSizeInBytes
Holds the maximum slice size in bytes for dynamic slice mode.
NvMediaEncodeH264SPSPPSRepeatMode repeatSPSPPS
Holds the frequency of the writing of Sequence and Picture parameters.
Noise reduction algorithm for outdoor high light condition.
#define MAX_USER_SEI_PAYLOAD
Maximum user defined sei payload size.
uint32_t iCur
Holds a copy of the H.265 bitstream field.
Variable bitrate mode.
uint32_t NumDeltaPocsOfRefRpsIdx
Holds a copy of the H.265 bitstream field.
uint8_t refresh_entropy_probs
Holds a copy of the VP8 bitstream field.
uint8_t frameContextIdx
Holds a copy of the VP9 bitstream field.
uint8_t reversible_vlc
Holds a copy of the bitstream field.
Disable Intra 4x4 horizontal up prediction.
uint32_t averageBitRate
Holds the average bitrate (in bits/sec) used for encoding.
uint32_t intraOnly
Intra only.
uint16_t video_object_layer_height
Parser Only: Video object layer height.
uint32_t uCTBCount
Number of CTB present in this CTB.
IP Search mode bit Intra 8x8.
int32_t last_sps_id
Copy of the H.264 bitstream field.
uint8_t quincunx_sampling_flag
Indicate whether each colour component plane of each consituent frame is quincunx sampled or not...
uint8_t colourPrimaries
Holds color primaries for converting to RGB (as defined in Annex E of the ITU-T Specification).
uint32_t encodeWidth
Holds the encode width.
uint32_t filter_type
Set the feature flag NVMEDIA_ENCODE_CONFIG_VP9_ENABLE_LOOP_FILTER_PARAMS to change the following para...
uint32_t payloadType
SEI payload types and syntax can be found in Annex D of the H265 Specification.
uint32_t depth
Holds a positive value (up to 255) that specifies the video displays relative to the top-most layer...
NvMediaRefSurface * backward_reference
Reference used by B frames.
uint32_t keyFrame
Holds a copy of the VP9 bitstream field.
uint32_t uUserSeiPayloadLength
Specify the length of user data unregistered SEI message, as described in Annex D.
Quality Level 0 Pre-settings.
uint8_t disableDeblockingFilterIDC
Holds the deblocking filter mode.
IP Search mode bit Intra 16x16.
uint8_t chroma_format_idc
Holds a copy of the chroma_format_idc.
Disable Inter L0 partition 16x16 prediction.
uint8_t range_mapuv
Holds a copy of the VC-1 bitstream field.
NvMediaEncodeRCParams rcParams
Holds the rate control parameters for the current encoding session.
Picture parameter information for a VP8 picture.
Holds VP9 counters for adaptive entropy contexts.
uint8_t * bitstream
A pointer to the bitstream data bytes.
uint8_t lists_modification_present_flag
Holds a copy of the H.265 bitstream field.
NvMediaEncodeQP initQP
Holds Initial QP parameters.
A lower depth overlay is per-pixel alpha blended over any higher depth overlay.
uint8_t pulldown
Holds a copy of the VC-1 bitstream field.
Noise reduction algorithm for indoor high light condition.
uint32_t comp_pred_mode
Holds a copy of the VP9 bitstream field.
uint32_t offsetToDctParts
Holds a copy of the VP9 bitstream field.
uint8_t vop_fcode_backward
Holds a copy of the bitstream field.
NvMediaEncodeH264AdaptiveTransformMode
Defines H.264 specific Adaptive Transform modes.
uint8_t max_transform_hierarchy_depth_intra
Holds a copy of the H.265 bitstream field.
H.264 SEI payload information Used by the parser only.
uint32_t * pSliceDataOffsets
Passing NULL for pSliceDataOffsets disables error-concealment.
uint8_t multires
Copy of the VC-1 bitstream field.
This attribute is used to get PPS data for current encoding session.
uint32_t NumPocLtCurr
Holds a copy of the H.265 bitstream field.
uint8_t short_video_header
Holds a copy of the bitstream field.
A lower depth overlay is per-pixel alpha blended over any higher depth overlay.
uint8_t alternate_scan
Holds a copy of the MPEG bitstream field.
uint8_t sample_adaptive_offset_enabled_flag
Holds a copy of the H.265 bitstream field.
uint32_t features
Holds bit-wise OR`ed configuration feature flags.
SPS/PPS is repeated for every IDR frame.
Disable Inter L0 partition 8x8 prediction.
Specifies the encoder instance ID 0.
uint32_t version
VP8 version type.
uint8_t range_mapuv_flag
Holds a copy of the VC-1 bitstream field.
uint32_t ref2_width
Holds a copy of the VP9 bitstream field.
NvMediaBool enableSourceHalfScaled
Enable 2 pass RC with quarter resolution first pass.
uint32_t update_mb_segmentation_map
Set the feature flag NVMEDIA_ENCODE_CONFIG_VP8_ENABLE_SEGMENTATION to set the following parameters...
NvMediaBool colourDescriptionPresentFlag
If set to NVMEDIA_TRUE, it specifies that the colourPrimaries, transferCharacteristics and colourMatr...
int32_t qpprime_y_zero_transform_bypass_flag
Copy of the H.264 bitstream field, qpprime_y_zero_transform_bypass_flag.
uint8_t extended_mv
Holds a copy of the VC-1 bitstream field.
uint8_t aspectRatioIdc
Holds the aspect ratio IDC (as defined in Annex E of the ITU-T specification).
This attribute is used to get VPS data for current h265 encoding session.
NvMediaEncodeQP initQP
Holds Initial QP parameters.
NvMediaBool bErrorFlag
Error flag if some parsing error detected.
Enable support for dynamic reference picture set RPS/DPB control support.
Enable support to use client provided QP max for all frame types.
NvMediaBool enableROIEncode
Enable region of interest encoding.
uint8_t refdist_flag
Holds a copy of the VC-1 bitstream field.
uint16_t video_object_layer_width
Parser Only: Video object layer width.
Noise reduction algorithm for outdoor low light condition.
uint32_t segmentFeatureMode
Holds a copy of the VP9 bitstream field.
NvMediaSliceDecodeData sliceDecData
Slice decode data when Slice decode is enabled.
Specifies the decoder instance ID 0.
Writes the sequence and picture header in encoded bitstream of the current picture.
NvMediaEncodeH264EntropyCodingMode
Defines H.264 entropy coding modes.
uint32_t filter_level
Specifies the loop filter strength for each segment.
uint32_t vop_time_increment_bitcount
Holds a copy of the bitstream field.
NvMediaRect position
The rectangle where the video renders.
uint8_t frame_packing_arrangement_type
Indicate the type of packing arrangement of the frames, as described in Annex D.
NvMediaBool enableExternalMEHints
Set to NVMEDIA_TRUE to enable external ME hints.
NvMediaColorStandard colorStandard
Color standard for video display.
uint8_t pcm_sample_bit_depth_chroma_minus1
Holds a copy of the H.265 bitstream field.
Disable Intra 16x16 plane prediction.
NvMediaEncodePicType pictureType
Holds input picture type.
uint32_t ref0_width
Holds a copy of the VP9 bitstream field.
uint32_t frameRateDen
Holds the numerator for frame rate used for encoding in frames per second ( Frame rate = frameRateNum...
Specifies the encoder instance ID 1.
uint8_t concealment_motion_vectors
Holds a copy of the MPEG bitstream field.
Variable bitrate mode with MinQP.
NvMediaRefSurface * AltReference
Holds a pointer to the alternate reference frame.
uint8_t aspectRatioIdc
Holds the acpect ratio IDC (as defined in Annex E of the ITU-T Specification).
Disable Intra 8x8 horizontal down prediction.
uint8_t bottom_field_flag
Copy of the H.264 bitstream field.
uint16_t vop_time_increment_resolution
Holds a copy of the bitstream field.
uint8_t pic_order_present_flag
Copy of the H.264 bitstream field.
NvMediaBool enableLimitedRGB
Holds a flag indicating whether input is limted-RGB (16-235).
NvMediaBool enableReconCRC
Enable support for recon CRC generation.
Enable support for external picture RC hint.
uint32_t qpIntra
QP value for Intra frames.
uint32_t RetRefreshLastFrame
Parser only: RetRefreshLastFrame.
uint32_t update_mb_segmentation_data
VP8 update mb segmentation data.
uint8_t segmentation_enabled
Holds a copy of the VP8 bitstream field.
uint32_t segmentMapUpdate
Holds a copy of the VP9 bitstream field.
uint8_t level
Holds the encoding level.
NvMediaEncodeQuality quality
Holds encode quality pre-set.
uint32_t NumActiveRefLayerPics0
Holds a copy of the H.265-MV bitstream field.
Noise reduction algorithm for indoor low light condition.
uint8_t chromaQpAdjustmentEnableFlag
Holds the PPS chroma_qp_adjustment_enabled_flag .
NvMediaBool bitstreamRestrictionFlag
Holds the bitstream restriction info (as defined in Annex E of the ITU-T Specification).
uint32_t numCandsPerBlk16x16
Holds the number of candidates per 16x16 block.
sequence header data present or not
uint16_t view_id
Copy of the H.264 mvc bitstream field.
Holds VP8-specific encode initialization parameters.
uint8_t sps_temporal_mvp_enabled_flag
Holds a copy of the H.265 bitstream field.
NvMediaEncodeQP initQP
Holds Initial QP parameters.
NvMediaEncodeVP8Features
Defines VP8 encoder configuration features.
NvMediaRefSurface * backward_reference
Reference used by B frames.
NvMediaBool aspectRatioInfoPresentFlag
If set to NVMEDIA_TRUE, it specifies that the aspectRatioIdc is present.
NvMediaBool bFirstSlice
First slice flag: whether this SliceData contains first slice of frame.