Realtimestagram
Procedures | Functions
image_io_pkg Package Body Reference
Package >> image_io_pkg

Functions

string   pad_string (
arg_str: in string
ret_len_c: in natural 10
fill_char_c: in character ' '
)

Procedures

  read_pbmplus_header(
constant exp_width: in integer
constant exp_height: in integer
constant exp_max_value: in integer
constant exp_type_of_pbm: in pbmplustype
)
  write_pbmplus_header(
constant p_width: in integer
constant p_height: in integer
constant max_value: in integer
constant type_of_pbm: in pbmplustype
)
  read_pixel( variable pixel: out integer ,signal end_of_file: out std_logic )
  read_pixel( signal pixel: out std_logic_vector ,signal end_of_file: out std_logic )
  read_rgb_pixel(
variable pixel_r: out integer
variable pixel_g: out integer
variable pixel_b: out integer
signal end_of_file: out std_logic
)
  read_rgb_pixel(
signal pixel_r: out std_logic_vector ( wordsize- 1 downto 0 )
signal pixel_g: out std_logic_vector ( wordsize- 1 downto 0 )
signal pixel_b: out std_logic_vector ( wordsize- 1 downto 0 )
signal end_of_file: out std_logic
)
  write_pixel( variable pixel: in integer )
  write_pixel( signal pixel: in std_logic_vector )
  write_bin_pixel( variable pixel: in boolean )
  write_bin_pixel( signal pixel: in std_logic )
  write_rgb_pixel(
variable pixel_r: in integer
variable pixel_g: in integer
variable pixel_b: in integer
)
  write_rgb_pixel(
signal pixel_r: in unsigned ( 7 downto 0 )
signal pixel_g: in unsigned ( 7 downto 0 )
signal pixel_b: in unsigned ( 7 downto 0 )
)
  write_ycbcr_pixel(
variable pixel_y: in integer
variable pixel_cb: in integer
variable pixel_cr: in integer
)
  write_ycbcr_pixel(
signal pixel_y: in unsigned ( 9 downto 0 )
signal pixel_cb: in unsigned ( 9 downto 0 )
signal pixel_cr: in unsigned ( 9 downto 0 )
)
  rgb_to_ycbcr(
variable r: in unsigned ( 7 downto 0 )
variable g: in unsigned ( 7 downto 0 )
variable b: in unsigned ( 7 downto 0 )
variable y: out unsigned ( 9 downto 0 )
variable cb: out unsigned ( 9 downto 0 )
variable cr: out unsigned ( 9 downto 0 )
)
  ycbcr_to_rgb(
variable y: in unsigned ( 9 downto 0 )
variable cb: in unsigned ( 9 downto 0 )
variable cr: in unsigned ( 9 downto 0 )
variable r: out unsigned ( 7 downto 0 )
variable g: out unsigned ( 7 downto 0 )
variable b: out unsigned ( 7 downto 0 )
)

Member Function Documentation

§ pad_string()

string pad_string (   arg_str in string ,
  ret_len_c in natural 10 ,
  fill_char_c in character ' '  
)
Function

§ read_pbmplus_header()

read_pbmplus_header ( constant   exp_width in integer ,
constant   exp_height in integer ,
constant   exp_max_value in integer ,
constant   exp_type_of_pbm in pbmplustype  
)
Procedure

§ read_pixel() [1/2]

read_pixel ( variable   pixel out integer ,
signal   end_of_file out std_logic  
)
Procedure

§ read_pixel() [2/2]

read_pixel ( signal   pixel out std_logic_vector ,
signal   end_of_file out std_logic  
)
Procedure

§ read_rgb_pixel() [1/2]

read_rgb_pixel ( variable   pixel_r out integer ,
variable   pixel_g out integer ,
variable   pixel_b out integer ,
signal   end_of_file out std_logic  
)
Procedure

§ read_rgb_pixel() [2/2]

read_rgb_pixel ( signal   pixel_r out std_logic_vector( wordsize- 1 downto 0 ) ,
signal   pixel_g out std_logic_vector( wordsize- 1 downto 0 ) ,
signal   pixel_b out std_logic_vector( wordsize- 1 downto 0 ) ,
signal   end_of_file out std_logic  
)
Procedure

§ rgb_to_ycbcr()

rgb_to_ycbcr ( variable   r in unsigned( 7 downto 0 ) ,
variable   g in unsigned( 7 downto 0 ) ,
variable   b in unsigned( 7 downto 0 ) ,
variable   y out unsigned( 9 downto 0 ) ,
variable   cb out unsigned( 9 downto 0 ) ,
variable   cr out unsigned( 9 downto 0 )  
)
Procedure

§ write_bin_pixel() [1/2]

write_bin_pixel ( variable   pixel in boolean  
)
Procedure

§ write_bin_pixel() [2/2]

write_bin_pixel ( signal   pixel in std_logic  
)
Procedure

§ write_pbmplus_header()

write_pbmplus_header ( constant   p_width in integer ,
constant   p_height in integer ,
constant   max_value in integer ,
constant   type_of_pbm in pbmplustype  
)
Procedure

§ write_pixel() [1/2]

write_pixel ( variable   pixel in integer  
)
Procedure

§ write_pixel() [2/2]

write_pixel ( signal   pixel in std_logic_vector  
)
Procedure

§ write_rgb_pixel() [1/2]

write_rgb_pixel ( variable   pixel_r in integer ,
variable   pixel_g in integer ,
variable   pixel_b in integer  
)
Procedure

§ write_rgb_pixel() [2/2]

write_rgb_pixel ( signal   pixel_r in unsigned( 7 downto 0 ) ,
signal   pixel_g in unsigned( 7 downto 0 ) ,
signal   pixel_b in unsigned( 7 downto 0 )  
)
Procedure

§ write_ycbcr_pixel() [1/2]

write_ycbcr_pixel ( variable   pixel_y in integer ,
variable   pixel_cb in integer ,
variable   pixel_cr in integer  
)
Procedure

§ write_ycbcr_pixel() [2/2]

write_ycbcr_pixel ( signal   pixel_y in unsigned( 9 downto 0 ) ,
signal   pixel_cb in unsigned( 9 downto 0 ) ,
signal   pixel_cr in unsigned( 9 downto 0 )  
)
Procedure

§ ycbcr_to_rgb()

ycbcr_to_rgb ( variable   y in unsigned( 9 downto 0 ) ,
variable   cb in unsigned( 9 downto 0 ) ,
variable   cr in unsigned( 9 downto 0 ) ,
variable   r out unsigned( 7 downto 0 ) ,
variable   g out unsigned( 7 downto 0 ) ,
variable   b out unsigned( 7 downto 0 )  
)
Procedure

The documentation for this class was generated from the following file: