gr::blocks::unpacked_to_packed
gr::block
gnuradio/blocks/unpacked_to_packed.h
class T
std::shared_ptr< unpacked_to_packed< T > > std::shared_ptr<unpacked_to_packed<T> > gr::blocks::unpacked_to_packed< T >::sptr sptr gr::blocks::unpacked_to_packed::sptr
sptr static sptr gr::blocks::unpacked_to_packed< T >::make (unsigned int bits_per_chunk, endianness_t endianness) make gr::blocks::unpacked_to_packed::make unsigned int bits_per_chunk endianness_t endianness

Convert a stream of unpacked bytes or shorts into a stream of packed bytes or shorts.

input: stream of T; output: stream of T

This is the inverse of gr::blocks::packed_to_unpacked_XX.

The low `bits_per_chunk` bits are extracted from each input byte or short. These bits are then packed densely into the output bytes or shorts, such that all 8 or 16 bits of the output bytes or shorts are filled with valid input bits. The right thing is done if bits_per_chunk is not a power of two.

The combination of gr::blocks::packed_to_unpacked_XX followed by gr_chunks_to_symbols_Xf or gr_chunks_to_symbols_Xc handles the general case of mapping from a stream of bytes or shorts into arbitrary float or complex symbols.

gr::blocks::packed_to_unpacked_bb, gr::blocks::unpacked_to_packed_bb,

gr::blocks::packed_to_unpacked_ss, gr::blocks::unpacked_to_packed_ss,

gr::blocks::chunks_to_symbols_bf, gr::blocks::chunks_to_symbols_bc.

gr::blocks::chunks_to_symbols_sf, gr::blocks::chunks_to_symbols_sc.

gr::basic_block
gr::block
gr::blocks::unpacked_to_packed< T >
gr::messages::msg_accepter
gr::msg_accepter
std::enable_shared_from_this< basic_block >
T
gr::basic_block
d_name
d_symbol_alias
d_symbol_name
d_input_signature
d_output_signature
d_debug_logger
d_logger
msg_queue
d_rpc_vars
d_message_subscribers
gr::block
d_max_output_buffer
d_min_output_buffer
d_pmt_done
d_system_port
gr::blocks::unpacked_to_packed< T >
gr::io_signature
gr::messages::msg_accepter
gr::msg_accepter
std::basic_string< Char >
std::deque< T >
elements
std::enable_shared_from_this< basic_block >
std::map< pmt::pmt_t, msg_queue_t, msg_queue_comparator >
keys
elements
std::shared_ptr< T >
ptr
std::shared_ptr< io_signature >
ptr
std::shared_ptr< logger >
std::shared_ptr< pmt_base >
std::string
std::vector< long >
std::vector< rpcbasic_sptr >
elements
p
- gr::blocks::unpacked_to_packed
  _post
- gr::blocks::unpacked_to_packed
  active_thread_priority
- gr::blocks::unpacked_to_packed
  add_item_tag
- gr::blocks::unpacked_to_packed
  add_item_tag
- gr::blocks::unpacked_to_packed
  alias
- gr::blocks::unpacked_to_packed
  alias_pmt
- gr::blocks::unpacked_to_packed
  alias_set
- gr::blocks::unpacked_to_packed
  alignment
- gr::blocks::unpacked_to_packed
  allocate_buffer
- gr::blocks::unpacked_to_packed
  allocate_detail
- gr::blocks::unpacked_to_packed
  basic_block
- gr::blocks::unpacked_to_packed
  basic_block
- gr::blocks::unpacked_to_packed
  BLACK
- gr::blocks::unpacked_to_packed
  blkd_input_timer_value
- gr::blocks::unpacked_to_packed
  block
- gr::blocks::unpacked_to_packed
  block
- gr::blocks::unpacked_to_packed
  check_topology
- gr::blocks::unpacked_to_packed
  clear_finished
- gr::blocks::unpacked_to_packed
  color
- gr::blocks::unpacked_to_packed
  consume
- gr::blocks::unpacked_to_packed
  consume_each
- gr::blocks::unpacked_to_packed
  d_blkd_input_timer_value
- gr::blocks::unpacked_to_packed
  d_color
- gr::blocks::unpacked_to_packed
  d_debug_logger
- gr::blocks::unpacked_to_packed
  d_input_signature
- gr::blocks::unpacked_to_packed
  d_logger
- gr::blocks::unpacked_to_packed
  d_max_output_buffer
- gr::blocks::unpacked_to_packed
  d_message_subscribers
- gr::blocks::unpacked_to_packed
  d_min_output_buffer
- gr::blocks::unpacked_to_packed
  d_name
- gr::blocks::unpacked_to_packed
  d_output_signature
- gr::blocks::unpacked_to_packed
  d_pmt_done
- gr::blocks::unpacked_to_packed
  d_rpc_set
- gr::blocks::unpacked_to_packed
  d_rpc_vars
- gr::blocks::unpacked_to_packed
  d_setlock
- gr::blocks::unpacked_to_packed
  d_symbol_alias
- gr::blocks::unpacked_to_packed
  d_symbol_name
- gr::blocks::unpacked_to_packed
  d_symbolic_id
- gr::blocks::unpacked_to_packed
  d_system_port
- gr::blocks::unpacked_to_packed
  d_unique_id
- gr::blocks::unpacked_to_packed
  declare_sample_delay
- gr::blocks::unpacked_to_packed
  declare_sample_delay
- gr::blocks::unpacked_to_packed
  delete_head_nowait
- gr::blocks::unpacked_to_packed
  detail
- gr::blocks::unpacked_to_packed
  dispatch_msg
- gr::blocks::unpacked_to_packed
  empty_handled_p
- gr::blocks::unpacked_to_packed
  empty_handled_p
- gr::blocks::unpacked_to_packed
  empty_p
- gr::blocks::unpacked_to_packed
  empty_p
- gr::blocks::unpacked_to_packed
  enable_update_rate
- gr::blocks::unpacked_to_packed
  erase_msg
- gr::blocks::unpacked_to_packed
  expand_minmax_buffer
- gr::blocks::unpacked_to_packed
  finished
- gr::blocks::unpacked_to_packed
  fixed_rate
- gr::blocks::unpacked_to_packed
  fixed_rate_ninput_to_noutput
- gr::blocks::unpacked_to_packed
  fixed_rate_noutput_to_ninput
- gr::blocks::unpacked_to_packed
  forecast
- gr::blocks::unpacked_to_packed
  general_work
- gr::blocks::unpacked_to_packed
  get_iterator
- gr::blocks::unpacked_to_packed
  get_msg_map
- gr::blocks::unpacked_to_packed
  get_tags_in_range
- gr::blocks::unpacked_to_packed
  get_tags_in_range
- gr::blocks::unpacked_to_packed
  get_tags_in_window
- gr::blocks::unpacked_to_packed
  get_tags_in_window
- gr::blocks::unpacked_to_packed
  GREY
- gr::blocks::unpacked_to_packed
  has_msg_handler
- gr::blocks::unpacked_to_packed
  has_msg_port
- gr::blocks::unpacked_to_packed
  history
- gr::blocks::unpacked_to_packed
  identifier
- gr::blocks::unpacked_to_packed
  input_signature
- gr::blocks::unpacked_to_packed
  insert_tail
- gr::blocks::unpacked_to_packed
  is_pc_rpc_set
- gr::blocks::unpacked_to_packed
  is_rpc_set
- gr::blocks::unpacked_to_packed
  is_set_max_noutput_items
- gr::blocks::unpacked_to_packed
  is_unaligned
- gr::blocks::unpacked_to_packed
  log_level
- gr::blocks::unpacked_to_packed
  make
- gr::blocks::unpacked_to_packed
  max_noutput_items
- gr::blocks::unpacked_to_packed
  max_output_buffer
- gr::blocks::unpacked_to_packed
  message_port_is_hier
- gr::blocks::unpacked_to_packed
  message_port_is_hier_in
- gr::blocks::unpacked_to_packed
  message_port_is_hier_out
- gr::blocks::unpacked_to_packed
  message_port_pub
- gr::blocks::unpacked_to_packed
  message_port_register_in
- gr::blocks::unpacked_to_packed
  message_port_register_out
- gr::blocks::unpacked_to_packed
  message_port_sub
- gr::blocks::unpacked_to_packed
  message_port_unsub
- gr::blocks::unpacked_to_packed
  message_ports_in
- gr::blocks::unpacked_to_packed
  message_ports_out
- gr::blocks::unpacked_to_packed
  message_subscribers
- gr::blocks::unpacked_to_packed
  min_noutput_items
- gr::blocks::unpacked_to_packed
  min_output_buffer
- gr::blocks::unpacked_to_packed
  mp_relative_rate
- gr::blocks::unpacked_to_packed
  msg_accepter
- gr::blocks::unpacked_to_packed
  msg_queue
- gr::blocks::unpacked_to_packed
  name
- gr::blocks::unpacked_to_packed
  nitems_read
- gr::blocks::unpacked_to_packed
  nitems_written
- gr::blocks::unpacked_to_packed
  nmsgs
- gr::blocks::unpacked_to_packed
  no_pc_rpc
- gr::blocks::unpacked_to_packed
  notify_msg_neighbors
- gr::blocks::unpacked_to_packed
  output_multiple
- gr::blocks::unpacked_to_packed
  output_multiple_set
- gr::blocks::unpacked_to_packed
  output_signature
- gr::blocks::unpacked_to_packed
  pc_input_buffers_full
- gr::blocks::unpacked_to_packed
  pc_input_buffers_full
- gr::blocks::unpacked_to_packed
  pc_input_buffers_full_avg
- gr::blocks::unpacked_to_packed
  pc_input_buffers_full_avg
- gr::blocks::unpacked_to_packed
  pc_input_buffers_full_var
- gr::blocks::unpacked_to_packed
  pc_input_buffers_full_var
- gr::blocks::unpacked_to_packed
  pc_noutput_items
- gr::blocks::unpacked_to_packed
  pc_noutput_items_avg
- gr::blocks::unpacked_to_packed
  pc_noutput_items_var
- gr::blocks::unpacked_to_packed
  pc_nproduced
- gr::blocks::unpacked_to_packed
  pc_nproduced_avg
- gr::blocks::unpacked_to_packed
  pc_nproduced_var
- gr::blocks::unpacked_to_packed
  pc_output_buffers_full
- gr::blocks::unpacked_to_packed
  pc_output_buffers_full
- gr::blocks::unpacked_to_packed
  pc_output_buffers_full_avg
- gr::blocks::unpacked_to_packed
  pc_output_buffers_full_avg
- gr::blocks::unpacked_to_packed
  pc_output_buffers_full_var
- gr::blocks::unpacked_to_packed
  pc_output_buffers_full_var
- gr::blocks::unpacked_to_packed
  pc_throughput_avg
- gr::blocks::unpacked_to_packed
  pc_work_time
- gr::blocks::unpacked_to_packed
  pc_work_time_avg
- gr::blocks::unpacked_to_packed
  pc_work_time_total
- gr::blocks::unpacked_to_packed
  pc_work_time_var
- gr::blocks::unpacked_to_packed
  post
- gr::blocks::unpacked_to_packed
  processor_affinity
- gr::blocks::unpacked_to_packed
  produce
- gr::blocks::unpacked_to_packed
  relative_rate
- gr::blocks::unpacked_to_packed
  relative_rate_d
- gr::blocks::unpacked_to_packed
  relative_rate_i
- gr::blocks::unpacked_to_packed
  remove_item_tag
- gr::blocks::unpacked_to_packed
  remove_item_tag
- gr::blocks::unpacked_to_packed
  replace_buffer
- gr::blocks::unpacked_to_packed
  reset_perf_counters
- gr::blocks::unpacked_to_packed
  rpc_set
- gr::blocks::unpacked_to_packed
  sample_delay
- gr::blocks::unpacked_to_packed
  set_alignment
- gr::blocks::unpacked_to_packed
  set_blkd_input_timer_value
- gr::blocks::unpacked_to_packed
  set_block_alias
- gr::blocks::unpacked_to_packed
  set_color
- gr::blocks::unpacked_to_packed
  set_detail
- gr::blocks::unpacked_to_packed
  set_fixed_rate
- gr::blocks::unpacked_to_packed
  set_history
- gr::blocks::unpacked_to_packed
  set_input_signature
- gr::blocks::unpacked_to_packed
  set_inverse_relative_rate
- gr::blocks::unpacked_to_packed
  set_is_unaligned
- gr::blocks::unpacked_to_packed
  set_log_level
- gr::blocks::unpacked_to_packed
  set_max_noutput_items
- gr::blocks::unpacked_to_packed
  set_max_output_buffer
- gr::blocks::unpacked_to_packed
  set_max_output_buffer
- gr::blocks::unpacked_to_packed
  set_min_noutput_items
- gr::blocks::unpacked_to_packed
  set_min_output_buffer
- gr::blocks::unpacked_to_packed
  set_min_output_buffer
- gr::blocks::unpacked_to_packed
  set_msg_handler
- gr::blocks::unpacked_to_packed
  set_output_multiple
- gr::blocks::unpacked_to_packed
  set_output_signature
- gr::blocks::unpacked_to_packed
  set_processor_affinity
- gr::blocks::unpacked_to_packed
  set_relative_rate
- gr::blocks::unpacked_to_packed
  set_relative_rate
- gr::blocks::unpacked_to_packed
  set_tag_propagation_policy
- gr::blocks::unpacked_to_packed
  set_thread_priority
- gr::blocks::unpacked_to_packed
  set_unaligned
- gr::blocks::unpacked_to_packed
  setup_pc_rpc
- gr::blocks::unpacked_to_packed
  setup_rpc
- gr::blocks::unpacked_to_packed
  shared_from_base
- gr::blocks::unpacked_to_packed
  sptr
- gr::blocks::unpacked_to_packed
  start
- gr::blocks::unpacked_to_packed
  stop
- gr::blocks::unpacked_to_packed
  symbol_name
- gr::blocks::unpacked_to_packed
  symbolic_id
- gr::blocks::unpacked_to_packed
  system_handler
- gr::blocks::unpacked_to_packed
  tag_propagation_policy
- gr::blocks::unpacked_to_packed
  tag_propagation_policy_t
- gr::blocks::unpacked_to_packed
  thread_priority
- gr::blocks::unpacked_to_packed
  to_basic_block
- gr::blocks::unpacked_to_packed
  TPP_ALL_TO_ALL
- gr::blocks::unpacked_to_packed
  TPP_CUSTOM
- gr::blocks::unpacked_to_packed
  TPP_DONT
- gr::blocks::unpacked_to_packed
  TPP_ONE_TO_ONE
- gr::blocks::unpacked_to_packed
  unaligned
- gr::blocks::unpacked_to_packed
  unique_id
- gr::blocks::unpacked_to_packed
  unset_max_noutput_items
- gr::blocks::unpacked_to_packed
  unset_processor_affinity
- gr::blocks::unpacked_to_packed
  update_rate
- gr::blocks::unpacked_to_packed
  vcolor
- gr::blocks::unpacked_to_packed
  WHITE
- gr::blocks::unpacked_to_packed
  WORK_CALLED_PRODUCE
- gr::blocks::unpacked_to_packed
  WORK_DONE
- gr::blocks::unpacked_to_packed
  work_return_t
- gr::blocks::unpacked_to_packed
  ~basic_block
- gr::blocks::unpacked_to_packed
  ~block
- gr::blocks::unpacked_to_packed
  ~msg_accepter