Patent ID: 7941034

Claim:
A method for encoding a flag of an image, comprising steps of: while encoding an I Frame, firstly setting a start code of an I Frame picture to be coded, for marking a start of the I Frame; setting a flag for indicating whether to encode an identification field; judging the set flag, and if the flag indicates to encode the identification field of time and control code of a video tape recorder, then encoding the identification field of time and control code of a video tape recorder, else not encoding the identification field of time and control code of the video tape recorder; while decoding an I Frame, firstly searching the start code of the I Frame picture to determine a start position of one I Frame picture; then checking information of the flag indicating whether to encode the identification field of time and control code of a video tape recorder; if the flag indicates to encode the identification field of time and control code of a video tape recorder, then decoding the identification field of time and control code of a video tape recorder, and then going on consequent decoding; else going on consequent decoding directly.