Background of the Invention
The present invention relates to a circuit an method for reading out picture data written in a main memory and displaying the data on a picture display in an electronic still camera, and more particularly to a multi-picture control circuit and method for accessing pictures written in a main memory and displaying them individually or in groups of more than one at a time.
Generally, in an electronic still camera, a video signal photoelectrically converted by a photoelectric converting device such as a charge-coupled device (CCD), is converted to digital video data by an analog to digital (A/D) converter and is written on a writing medium by frames. The video data written on a writing medium may be erased for other video data or may be stored in another writing medium. A buffer memory performs the former function and a main memory performs the latter function. To write/store a lot of video data, a capacity of main memory is usually set to be far greater than the buffer memory capacity. The video data written in a main memory may be processed by a data processor such as a microcomputer and may be provided for another object such as copying, transmission or reproduction. To see the contents of video data written in a main memory, the video data copied in another buffer memory (buffer memory for reproduction), is sequentially read out, converted to an analog composite video signal by a digital-to-analog (D/A) converter, and displayed on a display apparatus such as a monitor incorporated in an electronic still camera.
FIG. 1 is a block diagram of a circuit for displaying pictures written in a conventional electronic still camera. A video signal from a video input portion 1 is converted to digital video data in an A/D converter 2 and is written by frames in a buffer memory 3. Video data written in the buffer memory 3 may be erased to allow for the writing of additional data in the buffer memory 3, or may be stored in a main memory 4. Main memory 4 can store more than one picture's worth of data. For efficient control of written picture data, each picture's worth of data is written in a page whose writing region is the same as or greater than a writing region for writing one picture of data. Thus, different pages have different pictures of data. In other words, a microcomputer can control written video data by pages regardless of the contents. FIG. 2 illustrates the address designation of pictures of data in the main memory 4 of FIG. 1. Here, the size of one frame is 256 bytes.times.256 bytes and the number of pages is 16. The picture data for one page is divided into horizontal and vertical components. The horizontal component corresponds to horizontal addresses of the picture data and the vertical component corresponds to vertical addresses thereof. For better resolution, through the use of one field capacity by nonsequential scanning, the size of one frame can be 512 bytes.times.512 bytes. If a main memory with this capacity is used, the number of pages becomes 4. Picture data written in each region of main memory 4 can be checked via a picture display 7 of FIG. 1, erased for writing another picture, or moved to another region in main memory. Microcomputer 9 controls main memory 4. To check the written picture data via the picture display, a page is selected from among pages of main memory 4 to read out picture data from the selected page, and writes the read out picture data into a reproducing frame buffer. Picture data written in reproducing buffer memory 5 is read out, corresponding to horizontal and vertical periods suitable for picture display 7, then is converted to analog data by D/A converter 6 to be displayed on picture display 7. Since the picture data written in main memory 4 is read out by pages and written in reproducing buffer memory 5, the conventional electronic still camera is disadvantageous in that the above operation must be repeated as required, or a certain picture region must be particularly designated, in order for a user to see more than one picture.
Summary of the Invention
Therefore, it is an object of the present invention to provide a circuit for designating one or more picture's worth of data written in a main memory and simultaneously displaying the designated picture data.
It is another object of the present invention to provide a method for designating one or more picture's worth of data written in a math memory and simultaneously displaying the designated picture data.
To attain the objects, the multi-picture control circuit for an electronic still camera comprises:
a picture selector for receiving a user's picture selecting instruction;
a microcomputer for performing a control operation for displaying one or more frames of picture data on a picture display according to the picture selecting instruction input from the picture selector; and
a multi-picture controller for realizing various picture states under the control of the microcomputer.
In controlling the multi-picture reproducing circuit, the multi-picture controlling method for an electronic still camera comprises the steps of:
operating as a normal mode if a detecting mode is not designated, and interrupting the output from a reproducing buffer memory to a picture display if the detecting mode is designated;
controlling a multi-picture controller by a microcomputer according to an instruction of the picture selector and reading out picture data of the main memory to write it into the reproducing buffer memory;
resuming the output from the reproducing buffer memory to the picture display after the completion of the writing step;
waiting for an instruction from the picture selector after the output step; and
erasing a currently displayed picture when receiving a completion signal in the previous step, and reproducing a picture which was displayed before the detecting step, and returning to a normal mode.
Brief Description of the Drawings
The above objects and other advantages of the present invention will become more apparent by describing in detail a preferred embodiment of the present invention with reference to the attached drawings in which:
FIG. 1 is a block diagram of a picture displaying circuit for a conventional electronic still camera;
FIG. 2 illustrates divided picture regions in the main memory shown in FIG. 1;
FIG. 3 is a block diagram of a multi-picture display circuit of the present invention;
FIG. 4 is a block diagram of the multi-picture controller shown in FIG. 3 and includes the main memory, reproducing buffer memory, and microcomputer of FIG. 3;
FIG. 5 is an embodiment of one multi-picture display address generator shown in FIG. 4;
FIG. 6 is a flowchart of a multi-picture controlling method of the present invention;
FIG. 7 is a flowchart illustrating an embodiment of the detected picture displaying routine shown in FIG. 6;
FIG. 8 is a flowchart illustrating an embodiment of the one-picture displaying routine shown in FIG. 7;
FIG. 9 is a flowchart illustrating an embodiment of the two-picture displaying routine shown in FIG. 7;
FIGS. 10A and 10B show an embodiment of the four-picture displaying routine shown in FIG. 7; and
FIGS. 11A through 11F show the states of a picture displayed according to the present invention.
Detailed Description of the Invention
Referring to FIG. 3, a multi-picture displaying circuit of the present invention comprises a video input 1 for producing an analog video signal from an object to be pictured, an A/D converter 2 for converting the analog video signal to digital video data, a buffer memory 3 for writing the digital video data by frames, a main memory 4 for writing/storing picture data of buffer memory 3, a reproducing buffer memory 5 for storing picture data read out from main memory 4 in the unit of frames, a D/A converter 6 for converting digital video data read out from reproducing buffer memory 5 to an analog video signal, a picture display 7 for displaying the analog video signal on a screen, a picture selector 8 for selecting a picture which is to be displayed on picture display 7, a microcomputer 9 for performing operational control according to a picture selecting instruction input from the picture selector 8, and a multi-picture controller 10 for generating a read address for producing each picture state under the control of the microcomputer 9.
Including a means for designating a detecting mode and a means for designating the page of a picture to be reproduced, picture selector 8 inputs a user's instruction of selecting a detecting mode. In order to perform a control operation for realizing a reproduced picture in reproducing buffer memory 5 by receiving an instruction from picture selector 8, microcomputer 9 designates a page address for the picture data written in main memory 4 and controls the operation of multi-picture controller 10. Including a multiplexer, address generators, a horizontal and vertical counter and a flip-flop, under the control of microcomputer 9, multi-picture controller 10 generates a read address in a page designated by microcomputer 9.
Referring to FIG. 4, multi-picture controller 10 comprises a plurality of N-picture address generators 141, 142, 143, 144 . . . , 14N, a multiplexer 13 for selectively outputting the outputs of the N-picture address generator and supplying the output to main memory 4, a horizontal and vertical counter 12 for generating horizontal and vertical addresses of the reproducing buffer memory 5, a horizontal and vertical overflow detector 15 for detecting an overflow of horizontal and vertical counter 12, and a flip-flop 11 for controlling a clock input to the horizontal and vertical counter. The horizontal and vertical counter 12 designates addresses for reproducing buffer memory 5 and makes the process of designating an address of reproducing buffer memory 5 synchronized with the process of designating an address of picture of data in main memory 1.
Referring to FIG. 5, to count a predetermined interval in the horizontal and vertical directions, each of the N-picture address generators 141, 142, 143, 144, . . . , 14N of FIG. 4 comprises a horizontal address generator 14NH, a vertical address generator 14NV, and an OR gate 14N0. The horizontal address generator 14NH comprises a first counter 14NH-2 for providing an even-numbered multiple of the input clock, a second counter 14NH-3 for providing an integer value times the input clock, a multiplier 14NH-1 which is connected to the first counter, a first adder 14NH-4 for adding the outputs of the first and second counters, a horizontal overflow detector 14NH-5 for detecting the overflow of the adder's output. The vertical address generator 14NV comprises a third counter 14NV-2 for providing an even-numbered multiple of the input clock, a fourth counter 14NV-3 for providing integer value times the input clock, a second multiplier 14NV-1 which is connected to the third counter, an adder 14NV-4 for adding the outputs of the third and fourth counters, and an overflow detector 14NV-5 for detecting the overflow of the adder's output. The outputs of the horizontal and vertical overflow detectors 14NH-5 and 14NV-5 are OR-gated in OR gate 14N0. In displaying more than one picture on the picture display 7, picture data of main memory 4 must be compressed. The compression method used in the present invention is to read out the picture data written in main memory 4 while skipping predetermined horizontal and vertical lines which are set according to the number of pictures to be displayed. This requires horizontal and vertical address generators. In order to provide a horizontally and vertically sub-divided picture, the horizontal and vertical address generators count an input clock by an integer (1, 2, 3 . . . , n). The present invention includes a first counter for counting the clock by an even number and a second counter for counting the clock by an integer. A count value of any multiple can be obtained by adding together the outputs of the first and second counters. Counting the even numbered value is performed by multiplying the received clock by an even number multiplier and supplying the multiplied clock frequency to a counter.
Now, for example, the reading out of picture data in the main memory 4 will be described in the case of detecting four picture data as shown in FIG. 11d. The first horizontal line of the first picture data is read out every other pixel in the horizontal direction according to the aforementioned picture data compression method. Subsequently, the first horizontal line of the second picture data is read out according to the same method as above. The read out picture data is written in the horizontal line of the first frame of the reproducing buffer memory 5. After the completion of writing the first horizontal line of the reproducing buffer memory 5, the vertical address of reproducing buffer memory 5 increases by "one". A horizontal line of the first and second picture data in main memory 4 is hopped by one and a third horizontal line will be read out according to the same method as above. In order to designate each page address whenever picture data to be read out from main memory 4 is changed, the microcomputer 9 senses the completion of the horizontal and vertical reading of each picture of data. Whether or not the reading of the horizontal or vertical components of this data is completed is determined by inspecting the most significant bit (MSB) of each address supplied from the horizontal address generator 144H and vertical address generator 144V of the four-picture address generator 144 to the address bus of main memory 4 in order to detect the falling edge of the MSB. Overflow detection is carried out in horizontal or vertical overflow detector 144H-5 or 144V-5. The detected overflow signal is sensed by microcomputer 9 which then supplies the page address of the picture's data to an address bus of main memory 4. While microcomputer 9 supplies this page address, in order to stop horizontal and vertical counter 12 of reproducing buffer memory 5, the above-mentioned overflow signal is supplied as a disable signal for a D flip-flop 11 which is connected to the input of the horizontal and vertical counter through OR gate 14N0. After supplying the page address of the second picture to main memory 4, microcomputer 9 produces a start signal to clear D flip-flops within overflow detectors 14NH-5 and 144V-5. The start signal from microcomputer 9 also clears D flip-flop 11 (which has interrupted the clock input to horizontal and vertical counter 12), enabling the flip-flop to supply the clock again which restarts the operation of horizontal and vertical counter 12. Simultaneously, horizontal and vertical address generators 144H and 144V of four-picture address generator 144 begin to operate again. When the vertical overflow signal is generated which indicates the completion of the reading out of the picture data for the designated page, microcomputer 9 supplies the page address of a next picture data The subsequent operation is the same as the reading of the previous picture of data. An overflow signal which is generated from an overflow detector 15 connected to the MSB of the address signal output from horizontal and vertical counter 12, indicates the end of operation of the four-picture address generator and the end of writing in reproducing buffer memory 5. The overflow signal is then supplied to microcomputer 9.
FIG. 6 is a flowchart of a multipicture controlling method of the present invention. During normal mode if designated by picture selector 8, a detecting mode is performed. Referring to FIG. 6, first, step 600 inspects whether or not an instruction from picture selector 8 is a end-of-detection instruction. If it is not a detection end instruction, step 610 checks whether or not picture formation is performed by the previous detecting mode. If picture data is being written in reproducing buffer memory 5 according to a particular multi-picture control routine, step 620 stops the writing into the reproducing buffer memory according to the multi-picture control routine, allowing the writing of the newly-designated multi-picture. A signal input from picture selector 8 to microcomputer 9 during the detecting mode represents a page number to be indicated or the end of the detection mode. In step 630, microcomputer 9 converts the number of pages to be displayed into a page address and stores it. If the page address of a picture of data to be displayed is provided, step 670 interrupts the output to picture display 7 to perform the multi-picture control routine. Step 680 stores the picture data to be displayed into reproducing buffer memory 5. In step 690 after the completion of writing into the reproducing buffer memory 5, output to picture display 7 is resumed so that the picture data written in the reproducing buffer memory 5 is displayed on picture display 7. Meanwhile, if in step 600, the instruction from picture selector 8 is an end-of-detection instruction, then step 640 checks whether or not the writing into reproducing buffer memory 5 is performed according to multi-picture controller 10. If writing is being performed in step 640, step 650 interrupts the writing. Step 660 provides the page address of the picture data to display the picture which was displayed before the reproduced picture. After step 660, the reproducing operation is carried out as in steps 670-690.
Referring to FIG. 7, the number of pictures to be displayed is determined to be ramified into respective N-picture control routines (steps 700-790).
Referring to FIG. 8, step 800 sets an operation display flag which indicates that reproducing buffer memory 5 is writing according to multi-picture controller 10. The flag is used when microcomputer 9 checks to see whether multi-picture controller 10 is operating or not. Step 810 supplies the page address of a designated picture of data to the address bus of main memory 4. Step 820 resets horizontal and vertical counter 12 to initialize it. After operating horizontal and vertical counter 12, step 830 starts the reading out from main memory 4 and writes into reproducing buffer memory 5. Step 840 checks for the absence or presence of a completion signal from horizontal and vertical counter 12, thereby waiting for the write operation to be completed. After the completion of writing, an operation indicating flag is reset to end the one-picture control routine in steps 850 and 860.
Referring to FIG. 9, when displaying two pictures on one screen, since the reproducing buffer memory region is vertically divided into two halves, vertical compression of picture data is required. Vertical compression of the picture data is carried out by vertically reading out every other horizontal line in main memory 4, resulting in 2:1 compression.
Vertical address generator 142NV of two-picture address generator 142 supplies as a vertical address of picture data in main memory 4, a value which is two times the vertical address of the reproducing buffer memory designated by horizontal and vertical counter 12. The completion of writing the upper picture is recognized by detecting the falling edge of the MSB in vertical address generator 142V of the two-picture address generator. When an overflow signal is generated in vertical address generator 142V, microcomputer 9 supplies the page address of the second picture's data to the address bus of main memory 4 to read and write the second picture's data.
First, in step 900, multi-picture controller 12 sets a writing flag in reproducing buffer memory 5. The flag is used when microcomputer 9 decides whether or not multi-picture controller 10 is operating. Step 910 supplies the page address of a designated picture's data to the address bus of main memory 4. To initialize the operation of horizontal and vertical counter 12, step 920 clears horizontal and vertical counter 12. Step 930 starts the reading out from main memory 4 and then the writing of the data into reproducing buffer memory 5 by operating horizontal and vertical counter 12. Step 940 checks for a vertical overflow signal, waiting for the completion of the writing of the first picture's data. After completion, step 950 supplies the page address of the second picture to the address bus of main memory 4. Step 960 restarts horizontal and vertical counter 12 to restart the reading out of main memory 4 and writing of reproducing buffer memory 5. Step 970 checks for the completion signal from horizontal and vertical counter 12, waiting for the completion in the writing of reproducing buffer memory 5, after which an operation display flag is reset to end the two-picture display routine in steps 980 and 990.
Referring to FIG. 10, when displaying four pictures on a screen, the reproducing buffer memory region is horizontally and vertically divided by 2 which requires horizontal and vertical data compression. The horizontal picture data compression is carried out by reading out one horizontal line of main memory 4 for every other pixel. An address value generated by the horizontal and vertical address generators of the four-picture address generator is supplied as a read address of main memory 4. The complete writing of the first horizontal line of the first picture data is recognized by detecting the falling edge of the MSB in horizontal address generator 144H of four-picture address generator 144. When an overflow signal is generated from horizontal address generator 144H of four-picture address generator 144, microcomputer 9 supplies a page address of the second picture data to the address bus of main memory 4 to read out and write the first horizontal line of the second picture's data. During the reading of the second picture, when an overflow signal is generated from horizontal address generator 144H of four-picture address generator 144, microcomputer 9 supplies the page address of the first picture to the address bus of main memory 4 to write and read out the next horizontal line of the first picture. The vertical compression of picture data is done by reading out every other horizontal line. A vertical address value generated from vertical address generator 144V of the four-picture address generator is supplied as a read address of the first and second picture data to main memory 4. When the final horizontal line of the first and second pictures is completely read out and written according to the process as above, microcomputer 9 supplies a page address of the third picture of data to the address bus of main memory 4 to read out and write the third and fourth pictures. The completion of the writing of the first and second pictures can be recognized by detecting the falling edge of the MSB of vertical address generator 144V of four-picture address generator 144. When an overflow signal is generated from vertical address generator 144V, microcomputer 9 supplies the page address of the third picture to the address bus of main memory 4 to read out and write the third picture.
First, step 1000 sets a flag which indicates that the reproducing buffer memory is writing according to the multi-picture controller 10. The flag is used when microcomputer 9 inspects whether or not multi-picture controller 10 is operating. Step 1010 supplies the page address of the first picture data to the address bus of main memory 4. Step 1020 resets horizontal and vertical counter 12 to initialize it. Step 1030 starts the reading out from main memory 4 and the writing into reproducing buffer memory 5 by operating horizontal and vertical counter 12. Step 1040 detects a horizontal overflow of four-picture address generator 144 to wait for the complete writing and reading of the first horizontal line of the first picture's data. After the complete writing and reading out of the first line of the first picture's data, step 1050 supplies a page address of the second picture to the address bus. Step 1060 writes and reads out the first horizontal line of the second picture by operating horizontal and vertical counter 12. Step 1070 detects horizontal overflow to wait for the complete writing of the first horizontal line of the second picture. After the complete writing of the first horizontal line of the second picture, step 1080 checks for the absence or presence of a vertical overflow signal. If the vertical overflow signal is not generated, step 1090 supplies a page address of the first picture to the address bus of main memory 4. Step 1100 resumes the operation of horizontal and vertical counter 12, and returns to step 1040 to detect the horizontal overflow: The reading out and writing up to the final horizontal line of the first and second pictures, are performed by repeating the steps 1040-1100. If the vertical overflow signal is detected in step 1080, step 1110 supplies a page address as the third picture's address to the address bus of main memory 4. The reading out and writing of the third and fourth pictures follow the same process as those of the first and second pictures, which are shown in steps 1120-1190 of FIG. 10. When a vertical overflow signal is detected in step 1170 after the writing of the final horizontal line of the fourth picture, the horizontal and vertical counter is cleared and the operation display flag is reset in steps 1200 and 1210, respectively, to end the four-picture control routine.
FIGS. 11A through 11F show the states of a picture displayed according to the present invention.
As described above in detail, the present invention is capable of displaying more than one picture at a time onto the picture display, thereby reducing the time to detect more than one picture's worth of data written in the main memory of an electronic still camera. Further, it is obvious that the multi-picture control circuit of the present invention can be applied to other apparatuses for storing picture data in a main memory such as a color video printer.
While the invention has been particularly shown and described with reference to preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.