以下はオプションファイルです。

  1 #======== File I/O =====================
  2 # NOTE: These below parameter are set in command line.
  3 # InputFile                   : /home/hisakazu-fu/work/yuv.yuv
  4 # BitstreamFile               : /home/hisakazu-fu/work/yuv.hevc
  5 SourceWidth                 : 256
  6 SourceHeight                : 256
  7 # FramesToBeEncoded           : 622
  8 FramesToBeEncoded           : 1
  9 
 10 FrameRate                     : 29.97
 11 InputChromaFormat             : 444
 12 ChromaFormatIDC               : 444
 13 # CostMode                      : lossless
 14 # QP                            : 0           # Quantization parameter(0-51) # defined in top of this file
 15 InputBitDepth                 : 8           # is mean HightBitDepth(default of hevc is 8bit)
 16 
 17 #======== Profile ================
 18 Profile                       : main-RExt
 19 
 20 #======== Unit definition ================
 21 MaxCUWidth                    : 64          # Maximum coding unit width in pixel
 22 MaxCUHeight                   : 64          # Maximum coding unit height in pixel
 23 MaxPartitionDepth             : 4           # Maximum coding unit depth
 24 QuadtreeTULog2MaxSize         : 5           # Log2 of maximum transform size for
 25                                             # quadtree-based TU coding (2...6)
 26 QuadtreeTULog2MinSize         : 2           # Log2 of minimum transform size for
 27                                             # quadtree-based TU coding (2...6)
 28 QuadtreeTUMaxDepthInter       : 3
 29 QuadtreeTUMaxDepthIntra       : 3
 30 
 31 #======== Coding Structure =============
 32 IntraPeriod                   : -1          # Period of I-Frame ( -1 = only first)
 33 DecodingRefreshType           : 0           # Random Accesss 0:none, 1:CRA, 2:IDR, 3:Recovery Point SEI
 34 GOPSize                       : 4           # GOP Size (number of B slice = GOPSize-1)
 35 ReWriteParamSetsFlag          : 1           # Write parameter sets with every IRAP
 36 
 37 IntraQPOffset                 : -1
 38 LambdaFromQpEnable            : 1           # see JCTVC-X0038 for suitable parameters for IntraQPOffset, QPoffset, QPOffsetModelOff, QPOffsetModelScale when enabled
 39 #        Type POC QPoffset QPOffsetModelOff QPOffsetModelScale CbQPoffset CrQPoffset QPfactor tcOffsetDiv2 betaOffsetDiv2 temporal_id #ref_pics_active #ref_pics reference pictures     predict deltaRPS #ref_idcs reference idcs
 40 Frame1:  P    1   5       -6.5                      0.2590         0          0          1.0   0            0               0           4                4         -1 -5 -9 -13       0
 41 Frame2:  P    2   4       -6.5                      0.2590         0          0          1.0   0            0               0           4                4         -1 -2 -6 -10       1      -1       5         1 1 1 0 1
 42 Frame3:  P    3   5       -6.5                      0.2590         0          0          1.0   0            0               0           4                4         -1 -3 -7 -11       1      -1       5         0 1 1 1 1
 43 Frame4:  P    4   1        0.0                      0.0            0          0          1.0   0            0               0           4                4         -1 -4 -8 -12       1      -1       5         0 1 1 1 1
 44 
 45 #=========== Motion Search =============
 46 FastSearch                    : 1           # 0:Full search  1:TZ search
 47 SearchRange                   : 64          # (0: Search range is a Full frame)
 48 BipredSearchRange             : 4           # Search range for bi-prediction refinement
 49 HadamardME                    : 1           # Use of hadamard measure for fractional ME
 50 FEN                           : 1           # Fast encoder decision
 51 FDM                           : 1           # Fast Decision for Merge RD cost
 52 
 53 #======== Quantization =============
 54 MaxDeltaQP                    : 0           # CU-based multi-QP optimization
 55 MaxCuDQPDepth                 : 0           # Max depth of a minimum CuDQP for sub-LCU-level delta QP
 56 DeltaQpRD                     : 0           # Slice-based multi-QP optimization
 57 RDOQ                          : 1           # RDOQ
 58 RDOQTS                        : 1           # RDOQ for transform skip
 59 TransformSkip                 : 1           # Transform skipping (0: OFF, 1: ON)
 60 TransformSkipFast             : 1           # Fast Transform skipping (0: OFF, 1: ON)
 61 SliceChromaQPOffsetPeriodicity: 0           # Used in conjunction with Slice Cb/Cr QpOffsetIntraOrPeriodic. Use 0 (default) to disable periodic nature.
 62 SliceCbQpOffsetIntraOrPeriodic: 0           # Chroma Cb QP Offset at slice level for I slice or for periodic inter slices as defined by SliceChromaQPOffsetPeriodicity. Replaces offset in the GOP table.
 63 SliceCrQpOffsetIntraOrPeriodic: 0           # Chroma Cr QP Offset at slice level for I slice or for periodic inter slices as defined by SliceChromaQPOffsetPeriodicity. Replaces offset in the GOP table.
 64 
 65 #=========== Deblock Filter ============
 66 LoopFilterOffsetInPPS         : 1           # Dbl params: 0=varying params in SliceHeader, param = base_param + GOP_offset_param; 1 (default) =constant params in PPS, param = base_param)
 67 LoopFilterDisable             : 0           # Disable deblocking filter (0=Filter, 1=No Filter)
 68 LoopFilterBetaOffset_div2     : 0           # base_param: -6 ~ 6
 69 LoopFilterTcOffset_div2       : 0           # base_param: -6 ~ 6
 70 DeblockingFilterMetric        : 0           # blockiness metric (automatically configures deblocking parameters in bitstream). Applies slice-level loop filter offsets (LoopFilterOffsetInPPS and LoopFilterDisable must be 0)
 71 
 72 #=========== Misc. ============
 73 # InternalBitDepth              : 8           # codec operating bit-depth
 74 
 75 #=========== Coding Tools =================
 76 SAO                           : 1           # Sample adaptive offset  (0: OFF, 1: ON)
 77 AMP                           : 1           # Asymmetric motion partitions (0: OFF, 1: ON)
 78 SAOLcuBoundary                : 0           # SAOLcuBoundary using non-deblocked pixels (0: OFF, 1: ON)
 79 
 80 #============ Slices ================
 81 SliceMode                : 0                # 0: Disable all slice options.
 82                                             # 1: Enforce maximum number of LCU in an slice,
 83                                             # 2: Enforce maximum number of bytes in an 'slice'
 84                                             # 3: Enforce maximum number of tiles in a slice
 85 SliceArgument            : 1500             # Argument for 'SliceMode'.
 86                                             # If SliceMode==1 it represents max. SliceGranularity-sized blocks per slice.
 87                                             # If SliceMode==2 it represents max. bytes per slice.
 88                                             # If SliceMode==3 it represents max. tiles per slice.
 89 
 90 LFCrossSliceBoundaryFlag : 1                # In-loop filtering, including ALF and DB, is across or not across slice boundary.
 91                                             # 0:not across, 1: across
 92 
 93 #============ PCM ================
 94 PCMEnabledFlag                      : 0                # 0: No PCM mode
 95 PCMLog2MaxSize                      : 5                # Log2 of maximum PCM block size.
 96 PCMLog2MinSize                      : 3                # Log2 of minimum PCM block size.
 97 PCMInputBitDepthFlag                : 1                # 0: PCM bit-depth is internal bit-depth. 1: PCM bit-depth is input bit-depth.
 98 PCMFilterDisableFlag                : 0                # 0: Enable loop filtering on I_PCM samples. 1: Disable loop filtering on I_PCM samples.
 99 
100 #============ Tiles ================
101 TileUniformSpacing                  : 0                # 0: the column boundaries are indicated by TileColumnWidth array, the row boundaries are indicated by TileRowHeight array
102                                                        # 1: the column and row boundaries are distributed uniformly
103 NumTileColumnsMinus1                : 0                # Number of tile columns in a picture minus 1
104 TileColumnWidthArray                : 2 3              # Array containing tile column width values in units of CTU (from left to right in picture)
105 NumTileRowsMinus1                   : 0                # Number of tile rows in a picture minus 1
106 TileRowHeightArray                  : 2                # Array containing tile row height values in units of CTU (from top to bottom in picture)
107 
108 LFCrossTileBoundaryFlag             : 1                # In-loop filtering is across or not across tile boundary.
109                                                        # 0:not across, 1: across
110 
111 #============ WaveFront ================
112 WaveFrontSynchro                    : 0                # 0:  No WaveFront synchronisation (WaveFrontSubstreams must be 1 in this case).
113                                                        # >0: WaveFront synchronises with the LCU above and to the right by this many LCUs.
114 
115 #=========== Quantization Matrix =================
116 ScalingList                   : 0                      # ScalingList 0 : off, 1 : default, 2 : file read
117 ScalingListFile               : scaling_list.txt       # Scaling List file name. If file is not exist, use Default Matrix.
118 
119 #============ Lossless ================
120 TransquantBypassEnable     : 0                         # Value of PPS flag.
121 CUTransquantBypassFlagForce: 0                         # Force transquant bypass mode, when transquant_bypass_enable_flag is enabled
122 
123 #============ Rate Control ======================
124 RateControl                         : 0                # Rate control: enable rate control
125 TargetBitrate                       : 1000000          # Rate control: target bitrate, in bps
126 KeepHierarchicalBit                 : 2                # Rate control: 0: equal bit allocation; 1: fixed ratio bit allocation; 2: adaptive ratio bit allocation
127 LCULevelRateControl                 : 1                # Rate control: 1: LCU level RC; 0: picture level RC
128 RCLCUSeparateModel                  : 1                # Rate control: use LCU level separate R-lambda model
129 InitialQP                           : 0                # Rate control: initial QP
130 RCForceIntraQP                      : 0                # Rate control: force intra QP to be equal to initial QP
131 
132 ### DO NOT ADD ANYTHING BELOW THIS LINE ###
133 ### DO NOT DELETE THE EMPTY LINE BELOW ###

これを元に、入力データ(256*256*3)にEncodeを行っているんですが、出力データが256*256しか出力されません。入力データをnumpy.flatten()にして一次元にしているのがだめなのでしょうか?