Module FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str NameLoad NameLoad Return SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot NameLoad body Return NameLoad Assign NameStore SubscriptLoad NameLoad Index Str If CompareGt SubscriptLoad NameLoad Index Str Call NameLoad NameLoad body AugAssignSub NameStore BinOpMult BinOpSub SubscriptLoad NameLoad Index Str Call NameLoad NameLoad Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq NameLoad Num body Return Num Assign NameStore SubscriptLoad NameLoad Index Str If CompareGt SubscriptLoad NameLoad Index Str Call NameLoad NameLoad body Assign NameStore BinOpMult Num BinOpDiv BinOpSub SubscriptLoad NameLoad Index Str Call NameLoad NameLoad Call NameLoad NameLoad AugAssignSub NameStore BinOpMult Num NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str If CompareGt NameLoad NameLoad body Assign NameStore BinOpDiv BinOpSub NameLoad NameLoad NameLoad AugAssignSub NameStore BinOpMult NameLoad Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str For NameStore NameLoad body Assign SubscriptStore NameLoad Index Str BinOpDiv Call NameLoad SubscriptLoad NameLoad Index Str NameLoad Assign NameStore NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Num For NameStore NameLoad body AugAssignAdd NameStore SubscriptLoad NameLoad Index Str AugAssignAdd NameStore BinOpDiv Num NameLoad If CompareGt NameLoad NameLoad body AugAssignAdd NameStore BinOpSub NameLoad NameLoad If NameLoad body Print BinOpMod Str TupleLoad NameLoad BinOpSub NameLoad NameLoad Assign NameStore NameLoad AugAssignAdd NameStore Num Return BinOpDiv NameLoad BinOpDiv Call NameLoad NameLoad NameLoad decorator_list
N/A PickScorer N/A N/A name N/A N/A N/A scorer_map N/A psnr rt ScorePsnrBitrate ScoreCpuPsnr N/A N/A scorer_map N/A name N/A ScorePsnrBitrate N/A N/A target_bitrate result N/A N/A N/A Returns the score of a particular encoding result.

  Arguments:
  - target_bitrate: Desired bitrate in kilobits per second
  - result: a dictionary containing the analysis of the encoding.

  In this particular score function, the PSNR and the achieved bitrate
  of the encoding are of interest.
   N/A N/A result N/A N/A None N/A score N/A result N/A psnr N/A N/A N/A result N/A bitrate N/A int target_bitrate N/A N/A score N/A N/A N/A result N/A bitrate N/A int target_bitrate 0.1 N/A score N/A ScoreCpuPsnr N/A N/A target_bitrate result N/A N/A N/A Returns the score relevant to interactive usage.

  The constraints are:
  - Stay within the requested bitrate
  - Encode time needs to stay below clip length
  - Decode time needs to stay below clip length
  Otherwise, PSNR rules. N/A N/A target_bitrate 0.0 N/A N/A -1.0 N/A score N/A result N/A psnr N/A N/A N/A result N/A bitrate N/A int target_bitrate N/A N/A percent_overshoot N/A 100.0 N/A N/A N/A result N/A bitrate N/A float target_bitrate N/A float target_bitrate N/A score N/A 0.1 percent_overshoot N/A used_time N/A result N/A encode_cputime N/A available_time N/A result N/A cliptime N/A N/A used_time available_time N/A N/A badness N/A N/A used_time available_time available_time N/A score N/A badness 100 N/A score N/A DelayCalculation N/A N/A frame_info_list framerate bitrate buffer_size print_trace N/A False N/A N/A Calculate the total delay in frame delivery for these frames.
  Arguments:
  - frame_info_list: a list of frame information records.
      Each frame information record has the size in bits in the "size" field
  - framerate: frames per second
  - bitrate: integer, bits per second
  - buffer_size: Initial buffer size, in seconds
  Returns:
  Delay as a proportion of total clip time - that is, if the clip is 10s
  long, and the function returns 0.2, the clip will take 12 seconds to play.
   N/A frame frame_info_list N/A N/A N/A frame N/A transmit_time N/A N/A float N/A frame N/A size bitrate N/A playback_clock buffer_size N/A buffer_clock 0 N/A delay 0 N/A frame_count 0 N/A frame frame_info_list N/A N/A buffer_clock N/A frame N/A transmit_time N/A playback_clock N/A 1.0 framerate N/A N/A buffer_clock playback_clock N/A N/A delay N/A buffer_clock playback_clock N/A print_trace N/A N/A N/A Frame %d %f behind N/A frame_count N/A buffer_clock playback_clock N/A playback_clock buffer_clock N/A frame_count 1 N/A N/A delay N/A N/A float frame_count framerate N/A