yuvalkesi
Member level 5
Hi,
I have a frame of 1920 X 1080 pixels (21 bit address). This frame is divided to 10 sub-blocks (5 rows x 2 colomns of blocks) , each sub block is 960 x 216 (<= 10bits x 8 bits).
I need to write a function which convert a 21bit address (of the 1920 X 1080 pixels) to a specific sub block, meaning, this function will tell me in which block (out of the 10) the specific pixel is referred to, and in which place it is exactly.
I don't need you guys to write down the function, avcourse... just some clues to get started. I'm kinda stuck.
I tried to simple the question by making it a 6 x 6 pixels (6bit address) question. I divided it to 6 sub-blocks, each one is 2 x 3 pixels (4bit address), but still, how do I know when I'm given the 6bit address (or the 21 bit address in the original question) which block I'm referred to?
Attached a scheme of the sub blocks in the original question. Each block is 960 x 216:
Thanks!
Tom.
I have a frame of 1920 X 1080 pixels (21 bit address). This frame is divided to 10 sub-blocks (5 rows x 2 colomns of blocks) , each sub block is 960 x 216 (<= 10bits x 8 bits).
I need to write a function which convert a 21bit address (of the 1920 X 1080 pixels) to a specific sub block, meaning, this function will tell me in which block (out of the 10) the specific pixel is referred to, and in which place it is exactly.
I don't need you guys to write down the function, avcourse... just some clues to get started. I'm kinda stuck.
I tried to simple the question by making it a 6 x 6 pixels (6bit address) question. I divided it to 6 sub-blocks, each one is 2 x 3 pixels (4bit address), but still, how do I know when I'm given the 6bit address (or the 21 bit address in the original question) which block I'm referred to?
Attached a scheme of the sub blocks in the original question. Each block is 960 x 216:
Thanks!
Tom.