摘要:
A method for storing node information of a Huffman tree. The method creates an index of each node in the Huffman tree using a breadth first search (BFS) algorithm. The method further reads each node of the Huffman tree beginning from a root node according to a sequence of the index of each node, and stores node information of each node into an array of the Huffman tree.
摘要:
A method for protecting electronic keys sets a plurality of hash functions, divides an electronic key into a plurality of key segments, creates a data storage structure for each of the key segments, and calculates a hash address for each of the key segments of the electronic key using each of the hash functions. The method further obtains a plurality of hash addresses of the plurality of key segments corresponding to the plurality of hash functions, stores information of the data storage structure of each key segment in a hash table according to the hash address of the key segment corresponding to one of the hash functions.
摘要:
A method for seeking a file position of a file first seeks an estimated file position corresponding to a specified time point in the file, and adjusts the estimated file position according to a preset estimation formula. The method further determines the estimated file position is an accurate file position of the specified time point in the file until a difference between the estimated file position and the specified time point is less than a preset value.
摘要:
A method for storing node information of a Huffman tree. The method creates an index of each node in the Huffman tree using a breadth first search (BFS) algorithm. The method further reads each node of the Huffman tree beginning from a root node according to a sequence of the index of each node, and stores node information of each node into an array of the Huffman tree.
摘要:
A method for encoding images receives a specified type of an image request from a terminal device, obtains encoded images from a storage device of the server directly upon the condition that the image request has been processed. The method further adds a task into a coder of the server to process the image request upon the condition that the image request has not been processed, encodes captured images by the coder according to the image request, stores the encoded images and the corresponding specified type of the image request in the storage device, and outputs the encoded images to the terminal device.
摘要:
A method embeds product information in videos with product placements using an electronic device. The electronic device converts product information of products into advertisement information, and saves the advertisement information in an ad database. The advertisement information includes product images and advertisements of the products. The electronic device exports the advertisement of a presented product displayed on a display device from the ad database according to the product images during the video broadcasts. The advertisement of the presented product is displayed on the display device.
摘要:
A method embeds product information in TV programs with product placements using an electronic device. The electronic device defines keywords and advertising information of products presented on a TV program, and further defines appearance times of the keywords according to product presented times. During the TV program broadcasts, the electronic device currently displays the keywords and the presented products on a display device according to the appearance times, receives a selection operation on a product presented on the display device, exports the advertising information of the selected product. The advertising information is displayed on the display device.
摘要:
A server communicates with at least one client. If the server wants to transmit streaming media to a client, the client sends a package to the server. The package indicates if the client can decode the streaming media. If the client can decode the streaming media, the server decodes the streaming media and outputs the decoded streaming media on a display of the server. The server sends the streaming media to the client. The client decodes the streaming media and outputs the decoded streaming media on a display of the client. If the client cannot decode the streaming media, the server obtains the streaming media on the desktop of the server and compresses the streaming media to a compressed file. The client receives the compressed file from the server, and decompresses the compressed file. The decompressed files are output on the display of the client.
摘要:
A method searches product information in TV programs with product placements using an electronic device. The electronic device encloses presented products of the TV program in a graphic box, and defines keywords related to the presented products. During the TV program broadcasts, the electronic device receives a selection operation on a product displayed on a display device, and uses a search engine to search for related information of the selected product according to keywords. The searched information is displayed on the display device for users to browse.
摘要:
A method searches product information in TV programs with product placements using an electronic device. The electronic device defines keywords and appearance times of products presented on a TV program. During the TV program broadcasts, the electronic device displays the keywords of the presented products on a display device according to the predetermined appearance times. A product is selected from the presented products after any of the keyword presented on the TV program is tapped. The electronic device uses a search engine to search for related information of the selected product according to the tapped keyword, and displays the searched information on the display device for users to browse.