Patent ID: 8085820

Claim:
A digital broadcast signal multiplexing apparatus, which multiplexes a total number a (a is an integer of 0 or more and a≦x) of data A into a number x (x is an integer of 0 or more) of data X to be transmitted as digital broadcast signals, the apparatus comprising: buffers which store the number x of data X; a comparator, which: determines a cumulative sum SX of the data X in the buffers and a cumulative sum SA of the data A, wherein the cumulative sum SX and the cumulative sum SA both have initial values of 0, and compares the cumulative sum SX with the cumulative sum SA; a first processor, which: when a comparison result by the comparator is that the cumulative sum SX is less than or equal to the cumulative sum SA: sets the data A into n th (n is an integer of 0 or more) data X, wherein n is initialized as less than x, and adds x to the cumulative sum SX, and when the comparison result by the comparator is that the cumulative sum SX is not less than or equal to the cumulative sum SA: adds the number a to the cumulative sum SA, and increments n to n+1; and a second processor, which determines whether or not n is greater than or equal to x, and causes the comparator and the first processor to repeatedly execute until n is greater than or equal to x; and wherein the digital broadcast signal multiplexing apparatus is configured to transmit the number of x of the data X.