JP7580973B2 - Electronic device, electronic device control method, and program - Google Patents
Electronic device, electronic device control method, and program Download PDFInfo
- Publication number
- JP7580973B2 JP7580973B2 JP2020141136A JP2020141136A JP7580973B2 JP 7580973 B2 JP7580973 B2 JP 7580973B2 JP 2020141136 A JP2020141136 A JP 2020141136A JP 2020141136 A JP2020141136 A JP 2020141136A JP 7580973 B2 JP7580973 B2 JP 7580973B2
- Authority
- JP
- Japan
- Prior art keywords
- display
- frame image
- time information
- playback position
- cpu
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- User Interface Of Digital Computer (AREA)
- Television Signal Processing For Recording (AREA)
- Studio Devices (AREA)
Description
本発明は、電子機器、電子機器の制御方法およびプログラムに関する。 The present invention relates to an electronic device, a control method for an electronic device, and a program.
近年、パーソナルコンピュータやデジタルカメラ、スマートフォン等の電子機器を用いて、動画を再生する際に、シークバーに対するユーザ操作により任意の位置から動画の再生を開始することができるようになっている。関連する技術として、特許文献1の技術が提案されている。特許文献1の技術は、動画の再生において、シークバーのマーカを動かす操作がされると、マーカの位置に対応する位置にメディアの縮小版プレビューを表示するとともに、マーカの時刻を表示している。 In recent years, when playing videos using electronic devices such as personal computers, digital cameras, and smartphones, it has become possible for the user to operate a seek bar to start playing the video from any position. As a related technique, the technique disclosed in Patent Document 1 has been proposed. In Patent Document 1, when an operation is performed to move a marker on a seek bar during video playback, a reduced preview of the media is displayed at a position corresponding to the position of the marker, and the time of the marker is also displayed.
しかしながら、特許文献1の技術では、シークバーに対するユーザ操作により動画の再生位置が変更された場合、即時に、動画の画像および当該画像の時刻の表示を切り替えることができないことがある。これは、動画の再生位置が変更された際に動画の画像および時刻を表示するための処理が行われるため、ユーザによるシークバーの操作に対して、画像および時刻を表示する処理が間に合わないことに起因する。この場合、ユーザ操作に対する応答性が低下するため、動画の再生位置を変更する際の操作性が低下するという問題が生じる。 However, with the technology of Patent Document 1, when the playback position of a video is changed by a user operation on the seek bar, it may not be possible to instantly switch the display of the video image and the time of that image. This is because, when the playback position of a video is changed, processing is performed to display the video image and time, and the processing to display the image and time does not keep up with the user's operation of the seek bar. In this case, the responsiveness to user operations is reduced, resulting in a problem of reduced operability when changing the playback position of the video.
本発明は、動画の再生位置を変更する際の操作性を向上させることを目的とする。 The present invention aims to improve the ease of use when changing the playback position of a video.
上記目的を達成するために、本発明の電子機器は、表示手段に対するタッチ操作を検出する検出手段と、動画と、当該動画の再生位置を示す表示アイテムと、前記再生位置に対応する時刻情報とを前記表示手段に表示する制御を行い、前記検出手段が検出したタッチ位置に応じて前記動画の再生位置を変更し、当該変更された再生位置に対応する動画のフレーム画像および当該フレーム画像の時刻情報を前記表示手段に表示する制御を行う制御手段と、を備え、前記制御手段は、タッチ操作に応じて再生位置が変更された際、当該変更された再生位置に対応するフレーム画像および当該フレーム画像に対応する時刻情報の表示が遅れる場合、前記変更された再生位置に対応するフレーム画像の時刻情報ではなく、タッチ操作のタッチ位置に基づいて算出した時刻情報を表示した後に、前記変更された再生位置に対応するフレーム画像および当該フレーム画像の時刻情報を表示する制御を行うことを特徴とする。 In order to achieve the above object, the electronic device of the present invention comprises a detection means for detecting a touch operation on a display means, and a control means for controlling the display means to display a video, a display item indicating a playback position of the video, and time information corresponding to the playback position, and for controlling the display means to change the playback position of the video in accordance with the touch position detected by the detection means and to display a frame image of the video corresponding to the changed playback position and the time information of the frame image on the display means, and the control means is characterized in that, when the playback position is changed in accordance with a touch operation, if there is a delay in displaying the frame image corresponding to the changed playback position and the time information of the frame image, it controls the display of the frame image corresponding to the changed playback position and the time information of the frame image after displaying time information calculated based on the touch position of the touch operation, rather than the time information of the frame image corresponding to the changed playback position.
本発明によれば、動画の再生位置を変更する際の操作性を向上させることができる。 The present invention can improve the ease of use when changing the playback position of a video.
以下、本発明の実施形態について図面を参照しながら詳細に説明する。しかしながら、以下の実施形態に記載されている構成はあくまで例示に過ぎず、本発明の範囲は実施形態に記載されている構成によって限定されることはない。 The following describes in detail an embodiment of the present invention with reference to the drawings. However, the configurations described in the following embodiments are merely examples, and the scope of the present invention is not limited to the configurations described in the embodiments.
図1は、本実施形態の電子機器100のハードウェア構成の一例を示す図である。電子機器100の構成は、図1の例には限定されない。図1に示されるように、電子機器100は内部バス150を有する。内部バス150に対して、CPU101、メモリ102、不揮発性メモリ103、画像処理部104、ディスプレイ105、操作部106、記録媒体I/F107、外部I/F109、通信I/F110が接続されている。「I/F」は、インタフェースである。内部バス150に接続される各部は、内部バス150を介して互いにデータの授受を行うことができる。 Figure 1 is a diagram showing an example of the hardware configuration of electronic device 100 of this embodiment. The configuration of electronic device 100 is not limited to the example of Figure 1. As shown in Figure 1, electronic device 100 has an internal bus 150. To internal bus 150, CPU 101, memory 102, non-volatile memory 103, image processing unit 104, display 105, operation unit 106, recording medium I/F 107, external I/F 109, and communication I/F 110 are connected. "I/F" stands for interface. Each unit connected to internal bus 150 can exchange data with each other via internal bus 150.
CPU101は、不揮発性メモリ103に記憶されているプログラムをメモリ102に展開し、メモリ102に展開されたプログラムを実行する。CPU101は、検出手段および制御手段に対応する。CPU101がプログラムを実行することにより、実施形態の各種の制御が実現される。メモリ102は、例えば、RAMである。不揮発性メモリ103は、例えば、ROMやハードディスクドライブ等である。不揮発性メモリ103には、上記のプログラム以外に、画像データや音声データ、その他のデータ等が記憶されてもよい。 The CPU 101 expands the program stored in the non-volatile memory 103 into the memory 102, and executes the program expanded into the memory 102. The CPU 101 corresponds to a detection means and a control means. The CPU 101 executes the program to realize various controls of the embodiment. The memory 102 is, for example, a RAM. The non-volatile memory 103 is, for example, a ROM or a hard disk drive. In addition to the above programs, the non-volatile memory 103 may also store image data, audio data, and other data.
画像処理部104は、CPU101の制御に基づいて、不揮発性メモリ103や記録媒体108に格納された画像データ、外部I/F109を介して取得した映像信号、通信I/F110を介して取得した画像データ等に対して各種の画像処理を施す。画像処理部104は、画像処理手段に対応する。画像処理部104が行う画像処理には、A/D変換処理やD/A変換処理、画像データの符号化処理、圧縮処理、デコード処理、拡大/縮小処理(リサイズ処理)、ノイズ低減処理、色変換処理等が含まれる。画像処理部104は、特定の画像処理を施すための専用の回路により実現されてもよい。また、上記の画像処理は、その種別に応じて、CPU101により実施されてもよい。 Based on the control of the CPU 101, the image processing unit 104 performs various image processing on image data stored in the non-volatile memory 103 or the recording medium 108, a video signal acquired via the external I/F 109, image data acquired via the communication I/F 110, etc. The image processing unit 104 corresponds to an image processing means. The image processing performed by the image processing unit 104 includes A/D conversion processing, D/A conversion processing, image data encoding processing, compression processing, decoding processing, enlargement/reduction processing (resizing processing), noise reduction processing, color conversion processing, etc. The image processing unit 104 may be realized by a dedicated circuit for performing a specific image processing. In addition, the above image processing may be performed by the CPU 101 depending on the type of image processing.
ディスプレイ105は、CPU101の制御に基づいて、画像やGUI(Graphical User Interface)を構成するGUI画面等を表示する。ディスプレイ105は、表示手段に対応する。CPU101は、実行するプログラムに応じて表示制御信号を生成し、ディスプレイ105に表示するための映像信号を生成してディスプレイ105に出力する制御を行う。ディスプレイ105は出力された映像信号に基づいて映像を表示する。電子機器100は、ディスプレイ105に映像を出力するインタフェースを有し、ディスプレイ105は、電子機器100に接続される外部のモニタ(テレビ等)であってもよい。 Under the control of CPU 101, display 105 displays images and GUI screens constituting a GUI (Graphical User Interface). Display 105 corresponds to a display means. CPU 101 generates a display control signal according to the program being executed, and performs control to generate a video signal for display on display 105 and output the video signal to display 105. Display 105 displays video based on the output video signal. Electronic device 100 has an interface that outputs video to display 105, and display 105 may be an external monitor (such as a television) connected to electronic device 100.
操作部106は、キーボード等の文字情報入力デバイスや、マウス或いはタッチパネルといったポインティングデバイス、ボタン、ダイヤル、ジョイスティック、タッチセンサ、タッチパッド等により構成される。操作部106は、ユーザ操作を受け付けるための入力デバイスである。操作部106は、タッチパネル106aを含む。タッチパネル106aは、ディスプレイ105に重ね合わせて平面的に構成され、接触された位置に応じた座標情報を出力する入力デバイスである。ディスプレイ105と操作部106とは、一体的に構成されたタッチパネルディスプレイであってもよいし、別個に構成されていてもよい。 The operation unit 106 is composed of a character information input device such as a keyboard, a pointing device such as a mouse or a touch panel, a button, a dial, a joystick, a touch sensor, a touch pad, etc. The operation unit 106 is an input device for receiving user operations. The operation unit 106 includes a touch panel 106a. The touch panel 106a is configured in a planar manner by being overlaid on the display 105, and is an input device that outputs coordinate information according to the touched position. The display 105 and the operation unit 106 may be an integrally configured touch panel display, or may be configured separately.
記録媒体I/F107は、メモリーカードといった記録媒体108を着脱可能に接続するためのインタフェースである。記録媒体I/F107は、CPU101の制御に基づき、接続された記録媒体108からのデータの読み出しや、記録媒体108に対するデータの書き込み等を行う。外部I/F109は、有線ケーブルまたは無線により、映像信号や音声信号等の入出力を行うためのインタフェースである。通信I/F110は、インターネット等のネットワーク111を介して、外部装置とファイルやコマンド等の各種データの送受信を行うためのインタフェースである。 The recording medium I/F 107 is an interface for removably connecting a recording medium 108 such as a memory card. Based on the control of the CPU 101, the recording medium I/F 107 performs operations such as reading data from the connected recording medium 108 and writing data to the recording medium 108. The external I/F 109 is an interface for inputting and outputting video signals, audio signals, etc., via a wired cable or wirelessly. The communication I/F 110 is an interface for transmitting and receiving various types of data such as files and commands to and from external devices via a network 111 such as the Internet.
タッチパネル106aに対して、ユーザは、各種の操作を行うことができる。CPU101は、タッチパネル106aに対する操作や状態を検出できる。タッチパネル106aに対する操作や状態としては、例えば、タッチダウン、タッチオン、タッチムーブ、タッチアップおよびタッチオフがある。タッチダウンは、タッチパネル106aにタッチしていなかった指やペンを新たにタッチパネル106aにタッチする操作である。タッチダウンは、タッチパネル106aに対するタッチの開始である。タッチオンは、タッチパネル106aを指やペンでタッチしている状態である。タッチムーブは、タッチパネル106aを指やペンでタッチしたまま移動する操作である。タッチアップは、タッチパネル106aにタッチしていた指やペンを離す操作である。タッチオフは、タッチパネル106aに対してタッチがされていない状態である。 The user can perform various operations on the touch panel 106a. The CPU 101 can detect operations and states on the touch panel 106a. Examples of operations and states on the touch panel 106a include touch down, touch on, touch move, touch up, and touch off. Touch down is an operation in which a finger or pen that has not been touching the touch panel 106a is now touching the touch panel 106a. Touch down is the start of touching the touch panel 106a. Touch on is a state in which the touch panel 106a is touched with a finger or pen. Touch move is an operation in which the finger or pen moves while still touching the touch panel 106a. Touch up is an operation in which the finger or pen that has been touching the touch panel 106a is released. Touch off is a state in which the touch panel 106a is not being touched.
CPU101は、タッチダウンを検出すると、タッチオンを検出する。CPU101は、タッチダウンを検出した後、タッチアップが検出されない限り、通常はタッチオンを検出し続ける。CPU101がタッチムーブを検出するときは、CPU101がタッチオンを検出している状態である。CPU101は、タッチオンを検出しても、タッチ位置が移動していなければタッチムーブを検出しない。CPU101は、タッチしていた全ての指やペンをタッチアップしたことを検出した後に、タッチオフを検出する。 When the CPU 101 detects touch-down, it detects touch-on. After detecting touch-down, the CPU 101 normally continues to detect touch-on unless it detects touch-up. When the CPU 101 detects touch-move, it is in a state where it has detected touch-on. Even if the CPU 101 detects touch-on, it does not detect touch-move unless the touch position has moved. The CPU 101 detects touch-off after detecting that all fingers or pens that were touching have been touched up.
以上の操作や状態、タッチパネル106a上に指やペンがタッチしている位置座標等に関する情報は内部バスを通じてCPU101に通知される。CPU101は、通知された情報に基づいてタッチパネル106aに対してどのような操作(タッチ操作)が行なわれたかを検出する。タッチムーブについて、CPU101は、タッチパネル106a上で移動する指やペンの移動方向を、位置座標の変化に基づいて、タッチパネル106a上の垂直成分および水平成分ごとに判定できる。 The above operations and states, information regarding the position coordinates of the finger or pen touching the touch panel 106a, etc. are notified to the CPU 101 via the internal bus. The CPU 101 detects what operation (touch operation) was performed on the touch panel 106a based on the notified information. For touch moves, the CPU 101 can determine the movement direction of the finger or pen moving on the touch panel 106a for each vertical and horizontal component on the touch panel 106a based on the change in the position coordinates.
CPU101は、所定距離以上のタッチムーブを検出した場合、スライド操作が行なわれたと判定するものとする。タッチパネル106a上に指をタッチしたまま、所定距離を素早く動かして、そのまま離すといった操作はフリックと称される。フリックは、言い換えればタッチパネル106a上を指ではじくように素早くなぞる操作である。CPU101は、所定距離以上を、所定速度以上でタッチムーブしたことを検出し、そのままタッチアップを検出するとフリックが行なわれたと判定できる。つまり、CPU101は、スライド操作に続いてフリックがあったものと判定できる。また、複数箇所(例えば2点)を同時にタッチして、互いのタッチ位置を近づけるタッチ操作はピンチインと称され、互いのタッチ位置を遠ざけるタッチ操作はピンチアウトと称される。ピンチアウトとピンチインとはピンチ操作(あるいは単にピンチ)と総称される。タッチパネル106aは、抵抗膜方式や静電容量方式、表面弾性波方式、赤外線方式、電磁誘導方式、画像認識方式、光センサ方式等、様々な方式のタッチパネルのうち何れの方式のものが適用されてもよい。適用される方式によって、タッチパネルに対する接触があったことでタッチがあったと検出する方式や、タッチパネルに対する指やペンの接近があったことでタッチがあったと検出する方式等があるが、何れの方式が適用されてもよい。 When the CPU 101 detects a touch move of a predetermined distance or more, it determines that a slide operation has been performed. An operation in which a finger is touched on the touch panel 106a, quickly moved a predetermined distance, and then released is called a flick. In other words, a flick is an operation in which a finger is quickly traced on the touch panel 106a as if flicking. When the CPU 101 detects a touch move of a predetermined distance or more at a predetermined speed or more and detects a touch up, it can determine that a flick has been performed. In other words, the CPU 101 can determine that a flick has been performed following a slide operation. In addition, a touch operation in which multiple points (for example, two points) are touched at the same time to bring the touch positions closer to each other is called a pinch in, and a touch operation in which the touch positions are moved away from each other is called a pinch out. Pinch out and pinch in are collectively called pinch operations (or simply pinch). The touch panel 106a may be of any of various touch panel types, such as a resistive film type, a capacitive type, a surface acoustic wave type, an infrared type, an electromagnetic induction type, an image recognition type, an optical sensor type, etc. Depending on the type applied, there are types that detect a touch by contact with the touch panel, and types that detect a touch by the approach of a finger or a pen to the touch panel, and any type may be applied.
図1の電子機器100は、例えば、パーソナルコンピュータやデジタルカメラ等の撮像装置であってもよい。電子機器100が撮像装置に適用される場合、記録媒体108はメモリーカード等であり、メモリーカードに記録された動画や静止画を、撮像装置のディスプレイ105(背面液晶画面)等に再生表示することができる。また、電子機器100は、スマートフォンやタブレット端末等のスマートデバイスに適用することもできる。さらに、電子機器100は、PDAや携帯型の画像ビューワ、ディスプレイを備えるプリンタ装置、デジタルフォトフレーム、音楽プレーヤー、ゲーム機、電子ブックリーダー等、動画や静止画を再生表示できる任意のデバイスに適用可能である。 The electronic device 100 in FIG. 1 may be, for example, an imaging device such as a personal computer or a digital camera. When the electronic device 100 is applied to an imaging device, the recording medium 108 is a memory card or the like, and videos and still images recorded on the memory card can be played and displayed on a display 105 (rear LCD screen) of the imaging device. The electronic device 100 can also be applied to smart devices such as smartphones and tablet terminals. Furthermore, the electronic device 100 can be applied to any device that can play and display videos and still images, such as a PDA or portable image viewer, a printer device with a display, a digital photo frame, a music player, a game console, an e-book reader, etc.
次に、本実施形態の電子機器100の処理の流れについて説明する。図2乃至図5は、本実施形態の電子機器100の再生処理の流れの一例を示すフローチャートである。以下のフローチャートの各処理は、CPU101がプログラムを実行することで、実現される。まず、S201で、CPU101は、動画および動画のメタデータに含まれる情報をディスプレイ105に表示する制御を行う。メタデータは、例えば、動画クリップの情報等である。動画およびメタデータの情報は、例えば、記録媒体108に記録されており、CPU101は、記録媒体108から動画および動画のメタデータを取得する。また、CPU101は、S201の処理を実行する際に、後述する変数Aおよび変数Bを初期化する。変数Aはシークバー304のタッチ位置に対応するフレームを特定する情報であり、変数Bは描画処理中のフレームを特定する情報である。フレームを特定する情報は、例えば、フレーム番号である。 Next, the flow of processing of the electronic device 100 of this embodiment will be described. FIGS. 2 to 5 are flowcharts showing an example of the flow of playback processing of the electronic device 100 of this embodiment. Each process of the following flowchart is realized by the CPU 101 executing a program. First, in S201, the CPU 101 controls the display of a video and information contained in the metadata of the video on the display 105. The metadata is, for example, information on a video clip. The information on the video and metadata is, for example, recorded on the recording medium 108, and the CPU 101 acquires the video and the metadata of the video from the recording medium 108. In addition, when executing the process of S201, the CPU 101 initializes variables A and B, which will be described later. Variable A is information that specifies a frame corresponding to the touch position of the seek bar 304, and variable B is information that specifies a frame during drawing processing. The information that specifies a frame is, for example, a frame number.
図6(A)は、ディスプレイ105に表示される画面の第1の例を示す図である。図6(A)において、ディスプレイ105には、動画の画(画像301)に、F値302および動画の再生位置の時刻303が重畳して表示されている。S202で、CPU101は、シークバーをディスプレイ105に表示する制御を行う。図6(B)は、ディスプレイ105に表示される画面の第2の例を示す図である。図6(B)の例では、図6(A)の情報に加えて、シークバー304、動画における現在位置を示すポインタ305、動画の開始時刻306および動画の終了時刻307が、画像301に重畳して表示されている。動画の開始時刻306は始点位置に対応し、動画の終了時刻307は終点位置に対応する。シークバー304は、動画の再生位置を示す表示アイテムに対応する。表示アイテムは、動画の再生位置を示すことができれば、シークバー以外の表示態様であってもよい。 6A is a diagram showing a first example of a screen displayed on the display 105. In FIG. 6A, the display 105 displays an F value 302 and a time 303 of the playback position of the video superimposed on an image (image 301) of the video. In S202, the CPU 101 performs control to display a seek bar on the display 105. FIG. 6B is a diagram showing a second example of a screen displayed on the display 105. In the example of FIG. 6B, in addition to the information in FIG. 6A, a seek bar 304, a pointer 305 indicating the current position in the video, a start time 306 of the video, and an end time 307 of the video are displayed superimposed on the image 301. The start time 306 of the video corresponds to the start point position, and the end time 307 of the video corresponds to the end point position. The seek bar 304 corresponds to a display item indicating the playback position of the video. The display item may be a display form other than a seek bar as long as it can indicate the playback position of the video.
動画が再生されているときに、ポインタ305は、シークバー304上を開始時刻306から終了時刻307まで移動する。また、シークバー304上のポインタ305は、ユーザ操作により任意の位置に移動することができる。これにより、動画の再生位置を変更することができる。CPU101は、図6(B)の例に示されるような画面をディスプレイ105に表示する制御を行う。 When a video is being played, the pointer 305 moves on the seek bar 304 from the start time 306 to the end time 307. The pointer 305 on the seek bar 304 can be moved to any position by a user operation. This makes it possible to change the playback position of the video. The CPU 101 performs control to display a screen such as that shown in the example of FIG. 6(B) on the display 105.
S203で、CPU101は、動画再生を開始する制御を行う。S204で、CPU101は、シークバー304に対するタッチダウン操作が操作部106に行われたかを判定する。シークバー304に対するタッチダウン操作がされているとされている場合、CPU101は、S204でYESと判定し、フローをS205に進める。一方、シークバー304に対するタッチダウン操作がされていない場合、CPU101は、S204でYESと判定し、フローを「A」に進める。「A」以降の処理については、後述する。 In S203, the CPU 101 performs control to start video playback. In S204, the CPU 101 determines whether a touchdown operation on the seek bar 304 has been performed on the operation unit 106. If it is determined that a touchdown operation on the seek bar 304 has been performed, the CPU 101 determines YES in S204 and advances the flow to S205. On the other hand, if a touchdown operation on the seek bar 304 has not been performed, the CPU 101 determines YES in S204 and advances the flow to "A". The processing from "A" onwards will be described later.
S205で、CPU101は、動画再生中であるか、または一時停止中であるかの再生状態を示す変数Sの値をメモリ102に記憶する。S206で、CPU101は、変数Sの値に基づいて、動画再生中であるかを判定する。変数Sの値が動画再生中であることを示している場合、CPU101は、S206でYESと判定し、フローをS207に進める。S207で、CPU101は、再生中の動画を一時停止する制御を行う。そして、CPU101は、フローをS208に進める。一方、変数Sの値が動画再生中でないことを示している場合、CPU101は、S206でNOと判定し、フローをS208に進める。 At S205, the CPU 101 stores in the memory 102 the value of the variable S, which indicates the playback state, whether the video is being played or paused. At S206, the CPU 101 determines whether the video is being played based on the value of the variable S. If the value of the variable S indicates that the video is being played, the CPU 101 determines YES at S206 and advances the flow to S207. At S207, the CPU 101 performs control to pause the video being played. Then, the CPU 101 advances the flow to S208. On the other hand, if the value of the variable S indicates that the video is not being played, the CPU 101 determines NO at S206 and advances the flow to S208.
S208で、CPU101は、シークバー操作に追従して画の描画が可能であるかを判定する。描画する画は、動画のフレーム画像である。シークバー操作に追従して画の描画が可能である場合、CPU101は、S208でYESと判定し、フローを「B」に進める。「B」以降の処理については、後述する。一方、シークバー操作に追従して画の描画が可能でない場合、CPU101は、S208でNOと判定し、フローをS209に進める。 In S208, the CPU 101 determines whether it is possible to draw an image in response to the seek bar operation. The image to be drawn is a frame image of a video. If it is possible to draw an image in response to the seek bar operation, the CPU 101 determines YES in S208 and advances the flow to "B". The processing from "B" onwards will be described later. On the other hand, if it is not possible to draw an image in response to the seek bar operation, the CPU 101 determines NO in S208 and advances the flow to S209.
本実施形態のシークバー操作(シークバー204に対するタッチ操作)は、動画の再生位置を変更する操作である。CPU101がS208でYESと判定した場合、シークバー操作に追従して画(フレーム画像)の描画が遅れることはない。つまり、シークバー操作により動画の再生位置が変更された場合、変更された再生位置の画(フレーム画像)の描画が、シークバー操作に対して遅れることはなく、間に合う。ただし、変更された再生位置の画(フレーム画像)の描画が、シークバー操作に対して遅れたとしても、遅延量が所定の閾値以下である場合(遅延量が少ない場合)、CPU101は、S208でYESと判定してもよい。この場合、操作性が殆ど低下しないためである。一方、CPU101がS208でNOと判定した場合、シークバー操作に追従して画(フレーム画像)の描画が遅れることになる。つまり、シークバー操作により動画の再生位置が変更された場合、変更された再生位置の画(フレーム画像)の描画が、シークバー操作より遅れることになる。 In this embodiment, the seek bar operation (touch operation on the seek bar 204) is an operation to change the playback position of the video. If the CPU 101 determines YES in S208, the drawing of the image (frame image) following the seek bar operation is not delayed. In other words, when the playback position of the video is changed by the seek bar operation, the drawing of the image (frame image) at the changed playback position is not delayed and is in time with the seek bar operation. However, even if the drawing of the image (frame image) at the changed playback position is delayed with respect to the seek bar operation, if the amount of delay is equal to or less than a predetermined threshold (if the amount of delay is small), the CPU 101 may determine YES in S208. This is because in this case, operability is hardly deteriorated. On the other hand, if the CPU 101 determines NO in S208, the drawing of the image (frame image) following the seek bar operation is delayed. In other words, if the playback position of the video is changed by operating the seek bar, the drawing of the image (frame image) at the changed playback position will lag behind the operation of the seek bar.
CPU101は、画像処理部104の処理速度と動画の画のサイズと動画の画の解像度とネットワーク111の通信環境と記録媒体108の転送速度とのうち少なくとも1つに基づいて、S208の判定を行ってもよい。例えば、画像処理部104の処理速度が所定速度以下である場合、変更された再生位置の画の描画が、シークバー操作より遅れることがあるため、CPU101は、S208でNOと判定してもよい。また、動画の画の解像度が所定解像度以上である場合も、同様に、変更された再生位置の画の描画が、シークバー操作より遅れることがあるため、CPU101は、S208でNOと判定してもよい。例えば、4Kや8K等の高解像度の動画の場合、シークバー操作により再生位置が変更された場合、変更された再生位置の画の描画が、シークバー操作より遅れる可能性が高くなる。このような場合、CPU101は、S208でNOと判定してもよい。 The CPU 101 may make the determination in S208 based on at least one of the processing speed of the image processing unit 104, the image size of the video, the resolution of the video, the communication environment of the network 111, and the transfer speed of the recording medium 108. For example, if the processing speed of the image processing unit 104 is equal to or lower than a predetermined speed, the drawing of the image at the changed playback position may be delayed from the seek bar operation, so the CPU 101 may determine NO in S208. Similarly, if the resolution of the video image is equal to or higher than a predetermined resolution, the drawing of the image at the changed playback position may be delayed from the seek bar operation, so the CPU 101 may determine NO in S208. For example, in the case of a high-resolution video such as 4K or 8K, when the playback position is changed by the seek bar operation, the drawing of the image at the changed playback position is likely to be delayed from the seek bar operation. In such a case, the CPU 101 may determine NO in S208.
また、画像処理部104の処理速度が所定速度以下のように低速である場合には、常に画の描画が遅れることとなる。動画の画のサイズが所定サイズ以上の場合、動画の画の解像度が所定解像度以上の場合、ネットワーク111の通信負荷が所定負荷以上の場合、或いは記録媒体108との転送速度が所定速度以下の場合も同様に、常に画の描画が遅れることとなる。従って、上記の各種の状況に応じて、CPU101は、S208の判定を行うことなく、処理をS209に進めてもよい。この場合、「B」以降の処理は実行されない。 Furthermore, when the processing speed of the image processing unit 104 is slower than a predetermined speed, the drawing of images will always be delayed. Similarly, when the size of the moving image is equal to or larger than a predetermined size, when the resolution of the moving image is equal to or larger than a predetermined resolution, when the communication load of the network 111 is equal to or larger than a predetermined load, or when the transfer speed with the recording medium 108 is equal to or smaller than a predetermined speed, the drawing of images will always be delayed. Therefore, depending on the various situations described above, the CPU 101 may proceed to S209 without making the determination in S208. In this case, the processing from "B" onwards is not executed.
S209で、CPU101は、タイマーのカウントが開始されているかを判定する。タイマーは、電子機器100のハードウェアタイマーであってもよいし、CPU101が実行するソフトウェアタイマーであってもよい。タイマーのカウントが開始している場合、CPU101は、S209でYESと判定し、フローをS210に進める。S210で、CPU101は、タイマーのカウントを終了させる。このとき、CPU101は、タイマーのカウントをリセットしてもよい。CPU101は、S209でNOと判定した場合、またはS210の処理を実行した場合、フローをS211に進める。S211で、CPU101は、タイマーのカウントを開始させる。 In S209, CPU 101 determines whether the timer has started counting. The timer may be a hardware timer of electronic device 100, or a software timer executed by CPU 101. If the timer has started counting, CPU 101 determines YES in S209 and advances the flow to S210. In S210, CPU 101 ends the timer counting. At this time, CPU 101 may reset the timer counting. If CPU 101 determines NO in S209 or has executed the process of S210, CPU 101 advances the flow to S211. In S211, CPU 101 starts the timer counting.
S212で、CPU101は、シークバー204に対する操作に応じて、シークバー304のx軸方向の始点と終点とに対してタッチされている位置の比率で再生位置のポインタ305を移動させる。これにより、ディスプレイ105に表示されている再生位置を示すポインタ305の位置が移動する。ここで、図6(B)に示されるように、シークバー204は、長手方向(x軸方向)に延在している。ポインタ305の位置は、x座標で表される。シークバー204が延在する方向は、ディスプレイ105における直交する2軸(x軸およびy軸)の何れの方向であってもよいし、斜めの方向であってもよい。 In S212, the CPU 101 moves the playback position pointer 305 in accordance with the operation on the seek bar 204 at the ratio of the touched position to the start point and end point of the x-axis direction of the seek bar 304. This moves the position of the pointer 305 indicating the playback position displayed on the display 105. Here, as shown in FIG. 6(B), the seek bar 204 extends in the longitudinal direction (x-axis direction). The position of the pointer 305 is represented by the x-coordinate. The direction in which the seek bar 204 extends may be in either direction of two orthogonal axes (x-axis and y-axis) on the display 105, or may be in a diagonal direction.
S213で、CPU101は、シークバー304の長手方向、x軸方向の始点と終点とに対してタッチされている位置の比率で再生位置の秒数を算出する。CPU101は、以下の式(1)を用いて、再生位置の秒数を算出することができる。以下の式(1)において、総秒数は、シークバー304の始点x座標(始点位置)から終点x座標(終点位置)までの秒数の総計であり、動画の時間を示す。
「再生位置の秒数=(タッチされているx座標―シークバーの始点x座標)/(シークバーの終点x座標-シークバーの始点x座標)×総秒数+開始時刻」・・・式(1)」
以上の式(1)で算出された再生位置の秒数は、シークバー204にシークバー操作(タッチ操作)された位置とシークバー204の両端とに基づく概算的な時間である。
In S213, CPU 101 calculates the number of seconds of the playback position based on the ratio of the touched position to the start point and end point in the longitudinal direction, or x-axis direction, of seek bar 304. CPU 101 can calculate the number of seconds of the playback position using the following formula (1): In the following formula (1), the total number of seconds is the sum of the number of seconds from the start x-coordinate (start position) to the end x-coordinate (end position) of seek bar 304, and indicates the duration of the video.
"Number of seconds to playback position = (touched x coordinate - seek bar start x coordinate) / (seek bar end x coordinate - seek bar start x coordinate) x total number of seconds + start time" ... formula (1)
The number of seconds of the playback position calculated by the above formula (1) is an approximate time based on the position of the seek bar 204 operated (touched) and both ends of the seek bar 204 .
S214で、CPU101は、S213で算出した再生位置の秒数を時、分および秒の第1の形式でディスプレイ105に表示させる制御を行う。図7(A)は、ディスプレイ105に表示される画面の第3の例を示す図である。図7(A)に示されるように、画像301に、時、分および秒の第1の形式で表される時刻308が重畳して表示されている。時刻308は、変更された再生位置に対応するフレーム画像の時刻情報に対応する。これにより、ユーザ操作に追従して即時に画の表示を切り替えることができない場合においても、タッチされた位置における時、分および秒の第1の形式で、動画の画の時刻を表示できる。このとき、CPU101は、画像301の更新は行わない。従って、ユーザ操作によりシークバー304の任意の位置がタッチされたときに、ユーザ操作に追従して即時に画の表示を切り替えることができなくても、ユーザ操作に対する応答性を保ちつつ、動画の中の所望の位置を検索することができる。 In S214, the CPU 101 controls the display 105 to display the number of seconds of the playback position calculated in S213 in a first format of hours, minutes, and seconds. FIG. 7A is a diagram showing a third example of a screen displayed on the display 105. As shown in FIG. 7A, a time 308 expressed in a first format of hours, minutes, and seconds is displayed superimposed on an image 301. The time 308 corresponds to the time information of the frame image corresponding to the changed playback position. This makes it possible to display the time of the image of the video in the first format of hours, minutes, and seconds at the touched position even when the image display cannot be switched immediately in response to a user operation. At this time, the CPU 101 does not update the image 301. Therefore, when an arbitrary position of the seek bar 304 is touched by a user operation, even if the image display cannot be switched immediately in response to the user operation, it is possible to search for a desired position in the video while maintaining responsiveness to the user operation.
S215で、CPU101は、操作部106に対してシークバー304のx軸方向にタッチムーブ操作が行われたかを判定する。タッチムーブ操作が行われた場合、CPU101は、S215でYESと判定し、フローをS209に戻す。一方、タッチムーブ操作が行われていない場合、CPU101は、S215でNOと判定し、フローを「C」からS216に移す。「C」以降の処理について、図3のフローチャートを参照して、説明する。図3のフローチャートに示されるように、フローは「C」からS216に移る。S216で、CPU101は、S211でカウントを開始したタイマーが所定時間経過しているかを判定する。タイマーが所定時間経過している場合、CPU101は、S216でYESと判定し、フローをS217に進める。 In S215, the CPU 101 determines whether a touch-move operation has been performed on the operation unit 106 in the x-axis direction of the seek bar 304. If a touch-move operation has been performed, the CPU 101 determines YES in S215 and returns the flow to S209. On the other hand, if a touch-move operation has not been performed, the CPU 101 determines NO in S215 and moves the flow from "C" to S216. The processing from "C" onwards will be described with reference to the flowchart in FIG. 3. As shown in the flowchart in FIG. 3, the flow moves from "C" to S216. In S216, the CPU 101 determines whether the timer that started counting in S211 has elapsed a predetermined time. If the timer has elapsed the predetermined time, the CPU 101 determines YES in S216 and moves the flow to S217.
S217で、CPU101は、タイマーのカウントを終了させる。S218で、CPU101は、再生位置の画の描画を開始しているかを判定する。再生位置の画の描画が開始していない場合、CPU101は、S218でNOと判定し、フローをS219に進める。S219で、CPU101は、シークバー304のx座標方向の始点と終点とに対する、タッチされているx座標の位置の比率で再生位置のフレームを算出し、算出した値を変数Aの値としてメモリ102に記憶する。変数Aは、上述したように、シークバー304のタッチ位置に対応するフレームを特定する情報であり、変数Bは描画処理中のフレームを特定する情報である。S220で、CPU101は、メモリ102に記憶されている変数Aと変数Bの値を読み出し、変数Aの値と変数Bの値とが同じであるかを判定する。 At S217, CPU 101 ends the timer count. At S218, CPU 101 determines whether drawing of the image at the playback position has started. If drawing of the image at the playback position has not started, CPU 101 determines NO at S218 and advances the flow to S219. At S219, CPU 101 calculates the frame of the playback position using the ratio of the touched x-coordinate position to the start and end points of the x-coordinate direction of seek bar 304, and stores the calculated value in memory 102 as the value of variable A. As described above, variable A is information that specifies the frame corresponding to the touched position of seek bar 304, and variable B is information that specifies the frame being drawn. At S220, CPU 101 reads the values of variable A and variable B stored in memory 102, and determines whether the value of variable A and the value of variable B are the same.
変数Aの値と変数Bの値とが同じでない場合、CPU101は、S220でNOと判定し、フローをS221に進める。S221で、CPU101は、メモリ102に記憶されている変数Aの値を読み出し、変数Aに対応するフレーム位置の画の描画を開始させる制御を行う。これにより、ディスプレイ105に、変数Aに対応するフレーム位置の画が描画されていく。S222で、CPU101は、メモリ102に記憶されている変数Aの値を読み出して、変数Bの値を変数Aの値にしてメモリ102に記憶する。 If the value of variable A and the value of variable B are not the same, CPU 101 determines NO in S220 and advances the flow to S221. In S221, CPU 101 reads the value of variable A stored in memory 102, and performs control to start drawing an image at the frame position corresponding to variable A. As a result, the image at the frame position corresponding to variable A is drawn on display 105. In S222, CPU 101 reads the value of variable A stored in memory 102, sets the value of variable B to the value of variable A, and stores it in memory 102.
そして、CPU101は、フローをS223に進める。CPU101は、S216でNOと判定した場合、S218でYESと判定した場合、またはS220でYESと判定した場合も、フローをS223に進める。CPU101は、S216で所定時間が経過していないと判定した場合にフローをS223に進めることで、画の描画間隔をあけることができる。これにより、タッチムーブ操作中の描画処理が行われないことから、ユーザ操作に対する応答性が低下することを抑制できる。 CPU 101 then advances the flow to S223. CPU 101 also advances the flow to S223 if it determines NO in S216, if it determines YES in S218, or if it determines YES in S220. CPU 101 advances the flow to S223 if it determines in S216 that the predetermined time has not elapsed, thereby allowing the interval between drawing images to be increased. This prevents a decrease in responsiveness to user operations, as drawing processing is not performed during a touch-move operation.
また、CPU101は、S220でYESと判定した場合、S221およびS222の処理を実行することなく、フローをS223に進める。S218の処理は、S216でNOと判定された場合、つまり所定時間経過した場合に実行される。そして、S220でYESと判定される場合は、変数Aの値と変数Bの値とが同じ場合である。従って、シークバー304においてタッチされているタッチ位置が所定時間同じであるときに、S220でYESと判定される。この場合、CPU101は、S221の処理、つまり再生位置の描画処理を省略することができる。 Furthermore, if the CPU 101 judges YES in S220, it advances the flow to S223 without executing the processes of S221 and S222. The process of S218 is executed when the CPU 101 judges NO in S216, that is, when a predetermined time has elapsed. If the CPU 101 judges YES in S220, it means that the value of variable A and the value of variable B are the same. Therefore, if the touch position on the seek bar 304 remains the same for a predetermined time, the CPU 101 judges YES in S220. In this case, the CPU 101 can omit the process of S221, that is, the process of drawing the playback position.
S223で、CPU101は、画の描画が完了したかを判定する。CPU101は、画の描画が完了したと判定した場合、S223でYESと判定し、フローをS224に進める。CPU101は、画の描画が完了していないと判定した場合、S223でNOと判定し、フローをS228に進める。S224で、CPU101は、シークバー304のx軸方向の始点と終点とに対する、タッチされているx座標の位置の比率で再生位置のフレームを算出し、算出した値を変数Aの値としてメモリ102に記憶する。S225で、CPU101は、メモリ102の変数Aの値と変数Bの値とを読み出し、変数Aの値と変数Bの値とが同じであるかを判定する。変数Aの値と変数Bの値とが同じでない場合、CPU101は、S225でNOと判定し、フローをS226に進める。 In S223, the CPU 101 determines whether drawing of the image is complete. If the CPU 101 determines that drawing of the image is complete, it determines YES in S223 and advances the flow to S224. If the CPU 101 determines that drawing of the image is not complete, it determines NO in S223 and advances the flow to S228. In S224, the CPU 101 calculates the frame of the playback position based on the ratio of the touched x coordinate position to the start point and end point of the x axis direction of the seek bar 304, and stores the calculated value in the memory 102 as the value of variable A. In S225, the CPU 101 reads the values of variable A and variable B in the memory 102 and determines whether the values of variable A and variable B are the same. If the values of variable A and variable B are not the same, the CPU 101 determines NO in S225 and advances the flow to S226.
S226で、CPU101は、描画完了した画のタイムコードを時、分、秒およびフレームの第2の形式でディスプレイ105に表示する制御を行う。S226の処理は、S223でYESと判定した場合に行われる。動画の画の描画が完了したとき、つまり動画の画が更新されたときに、CPU101は、更新した動画の画に対応するタイムコードを第2の形式で表示する制御を行う。 At S226, the CPU 101 controls the display 105 to display the time code of the image that has been completely drawn in a second format of hours, minutes, seconds, and frames. The processing of S226 is performed when the determination at S223 is YES. When the drawing of the moving image is completed, that is, when the moving image image is updated, the CPU 101 controls the display of the time code corresponding to the updated moving image image in the second format.
図7(B)は、ディスプレイ105に表示される画面の第4の例を示す図である。CPU101は、描画が完了すると、ディスプレイ105に表示される画像301を更新する制御を行うとともに、時、分、秒およびフレームの第2の形式の時刻309をタイムコードとして画像301に重畳して表示する制御を行う。図7(A)の時刻308と図7(B)の時刻309とは、ともに時刻情報であるが、有効桁数が異なる。図7(A)の時刻308は、シークバー304に対してタッチ操作されたタッチ位置に基づき概算的に算出された時刻情報である。時刻308は、フレームを含まない。例えば、図7(A)の例の場合、第1の形式の時刻情報である時刻308は「00:16:11」であり、フレームを示す情報を含まない。 Fig. 7(B) is a diagram showing a fourth example of a screen displayed on the display 105. When drawing is completed, the CPU 101 performs control to update the image 301 displayed on the display 105, and also performs control to display the time 309 in the second format of hours, minutes, seconds, and frames superimposed on the image 301 as a time code. The time 308 in Fig. 7(A) and the time 309 in Fig. 7(B) are both time information, but the number of significant digits is different. The time 308 in Fig. 7(A) is time information roughly calculated based on the touch position of the touch operation on the seek bar 304. The time 308 does not include a frame. For example, in the example of Fig. 7(A), the time 308, which is the time information in the first format, is "00:16:11", and does not include information indicating a frame.
一方、図7(B)の時刻309は、シークバー304に対してタッチ操作により変更された再生位置に対応する画(フレーム画像)のフレームを示す情報を含む。例えば、図7(B)の例の場合、第2の形式の時刻情報である時刻309は「00:16:11.03」であり、フレームを示す情報として「03」を含む。つまり、第1の形式の時刻情報は、第2の形式の時刻情報よりも有効桁数が小さい。従って、CPU101がユーザ操作中は時、分および秒で表される有効桁数が小さい第1の形式の時刻表示の制御を行うことで、応答性の低下を抑制することができる。そして、画の描画が完了した際には時、分、秒およびフレームの第2の形式で描画完了した画のタイムコードを表示することができる。S227で、CPU101は、変数Bの値を初期化してメモリ102に記憶する。 On the other hand, the time 309 in FIG. 7B includes information indicating the frame of the image (frame image) corresponding to the playback position changed by touching the seek bar 304. For example, in the example of FIG. 7B, the time 309, which is the time information in the second format, is "00:16:11.03" and includes "03" as information indicating the frame. In other words, the time information in the first format has a smaller number of significant digits than the time information in the second format. Therefore, by controlling the time display in the first format, which has a smaller number of significant digits represented by hours, minutes, and seconds, during user operation, the CPU 101 can suppress a decrease in responsiveness. Then, when the drawing of the image is completed, the time code of the image that has been drawn can be displayed in the second format of hours, minutes, seconds, and frames. In S227, the CPU 101 initializes the value of the variable B and stores it in the memory 102.
上述したように、CPU101は、S225でNOと判定した場合、S226の処理を実行する。これにより、描画が完了した画のフレームとタッチ操作(タッチオン)している位置のフレームとが異なる場合、時刻309としてタッチオンしている位置の画のタイムコードが表示される。S221で描画が開始された画は、S222で記憶された変数Bに対応し、描画が完了した画は、S224で記憶された変数Aに対応する。従って、画の描画が開始してから完了するまでに、タッチ位置が変化すると、CPU101は、S225でNOと判定する。この場合、CPU101は、S226で描画が完了した画のタイムコードを画像301に重畳して表示する。一方、CPU101は、S225でYESと判定した場合、S226の処理を実行することなく、フローをS228に進める。この場合、画の描画が開始してから完了するまでに、タッチ位置は同じ位置である。この場合、S226のタイムコードを表示する処理を省略することができる。 As described above, when the CPU 101 judges NO in S225, it executes the process of S226. As a result, when the frame of the image where drawing is completed and the frame of the position where the touch operation (touch-on) is performed are different, the time code of the image where the touch-on position is displayed as the time 309. The image where drawing is started in S221 corresponds to the variable B stored in S222, and the image where drawing is completed corresponds to the variable A stored in S224. Therefore, when the touch position changes from the start to the completion of drawing of the image, the CPU 101 judges NO in S225. In this case, the CPU 101 displays the time code of the image where drawing is completed in S226 by superimposing it on the image 301. On the other hand, when the CPU 101 judges YES in S225, it advances the flow to S228 without executing the process of S226. In this case, the touch position is the same from the start to the completion of drawing of the image. In this case, the process of displaying the time code in S226 can be omitted.
S228で、CPU101は、操作部106に対してタッチオンの状態(タッチ中)であるかを判定する。タッチ中である場合、CPU101は、S228でYESと判定し、フローを「D」から図2のS215に移す。一方、タッチ中でない場合、CPU101は、S228でNOと判定し、フローをS229に進める。この場合、操作部106の状態はタッチオフの状態になっている。S229で、CPU101は、シークバー304のx座標方向の始点と終点とに対する、タッチされているx座標の位置の比率で再生位置のフレームを算出し、算出した変数Aの値をメモリ102に記憶する。 In S228, the CPU 101 determines whether the operation unit 106 is in a touch-on state (touching). If it is being touched, the CPU 101 determines YES in S228 and moves the flow from "D" to S215 in FIG. 2. On the other hand, if it is not being touched, the CPU 101 determines NO in S228 and advances the flow to S229. In this case, the operation unit 106 is in a touch-off state. In S229, the CPU 101 calculates the frame of the playback position based on the ratio of the touched x-coordinate position to the start and end points of the x-coordinate direction of the seek bar 304, and stores the calculated value of variable A in the memory 102.
S230で、CPU101は、メモリ102に記憶されている変数Aの値と変数Bの値とを読み出し、変数Aの値と変数Bの値とが同じであるかを判定する。変数Aの値と変数Bの値とが同じでない場合、CPU101は、S230でNOと判定し、フローをS231に進める。S231で、CPU101は、メモリ102に記憶されている変数Aの値を読み出し、変数Aのフレーム位置の画の描画を開始する制御を行う。S231は、変数Aの値と変数Bの値とが同じでない場合に実行される処理である。つまり、タッチオフされたシークバー304の位置における画が描画されていないときに、S231の処理が実行される。 In S230, CPU 101 reads the values of variable A and variable B stored in memory 102, and determines whether the values of variable A and variable B are the same. If the values of variable A and variable B are not the same, CPU 101 determines NO in S230 and advances the flow to S231. In S231, CPU 101 reads the value of variable A stored in memory 102, and performs control to start drawing an image at the frame position of variable A. S231 is a process that is executed when the values of variable A and variable B are not the same. In other words, the process of S231 is executed when an image has not been drawn at the position of the seek bar 304 that has been touched off.
S232で、CPU101は、メモリ102に記憶されている変数Sの値を読み出し、変数Sの値が一時停止中を示しているかを判定する。変数Sの値が一時停止中でないことを示している場合、CPU101は、S232でNOと判定し、フローをS233に進める。S233で、CPU101は、メモリ102に記憶されている変数Aの値を読み出し、変数Aに対応するフレーム位置から動画の再生を開始する制御を行う。CPU101は、S230でYESと判定した場合、S232でYESと判定した場合、またはS233の処理を実行した場合、フローを「E」からS242に移す。S242以降の処理は、後述する。 At S232, CPU 101 reads the value of variable S stored in memory 102 and determines whether the value of variable S indicates that playback is paused. If the value of variable S indicates that playback is not paused, CPU 101 determines NO at S232 and advances the flow to S233. At S233, CPU 101 reads the value of variable A stored in memory 102 and performs control to start playback of the video from the frame position corresponding to variable A. If CPU 101 determines YES at S230, if it determines YES at S232, or if it has executed the processing of S233, it moves the flow from "E" to S242. The processing from S242 onwards will be described later.
次に、図2のS208でCPU101がYESと判定した場合の処理について、図4のフローチャートを参照して説明する。CPU101は、S208でシークバー操作に追従して画の描画が可能であるかを判定する。CPU101は、S208でYESと判定した場合、フローを「B」から、図4のS234に移す。S234で、CPU101は、シークバー304上で再生位置のポインタ305がタッチオンされている位置に基づいて移動する制御を行う。これにより、ディスプレイ105に重畳して表示されるポインタ305の位置が移動する。S235で、CPU101は、シークバー304のx座標方向の始点と終点とに対する、タッチされているx座標の位置の比率で再生位置のフレームを算出し、算出した値を変数Aの値としてメモリ102に記憶する。 Next, the process when CPU 101 judges YES in S208 of FIG. 2 will be described with reference to the flowchart of FIG. 4. CPU 101 judges whether it is possible to draw an image following the seek bar operation in S208. When CPU 101 judges YES in S208, it moves the flow from "B" to S234 of FIG. 4. In S234, CPU 101 controls the movement of pointer 305 of the playback position based on the touched position on seek bar 304. This moves the position of pointer 305 displayed superimposed on display 105. In S235, CPU 101 calculates the frame of the playback position based on the ratio of the touched x coordinate position to the start and end points of the x coordinate direction of seek bar 304, and stores the calculated value in memory 102 as the value of variable A.
S236で、CPU101は、メモリ102に記憶されている変数Aの値を読み出し、読み出した変数Aに対応するフレーム位置の画を描画する制御を行う。S237で、CPU101は、S236で描画した画のタイムコードを時、分、秒およびフレームの形式でディスプレイ105に表示する制御を行う。S236およびS237の処理は、上述したS208でYESと判定された場合、つまりシークバー操作に追従して画の描画が可能である場合に実行される。従って、ユーザによるシークバー304の操作に、画の描画が間に合うため、CPU101は、描画が完了した画に、時、分、秒およびフレームの第2の形式の時刻情報を画像301に重畳して表示する制御を行う。 In S236, CPU 101 reads the value of variable A stored in memory 102, and performs control to draw an image at a frame position corresponding to the read variable A. In S237, CPU 101 performs control to display the time code of the image drawn in S236 on display 105 in the format of hours, minutes, seconds, and frames. The processes of S236 and S237 are executed when the above-mentioned S208 is judged as YES, that is, when it is possible to draw an image following the operation of the seek bar. Therefore, since the image can be drawn in time for the user to operate the seek bar 304, CPU 101 performs control to display the time information in the second format of hours, minutes, seconds, and frames superimposed on image 301 for the image for which drawing has been completed.
S238で、CPU101は、操作部106を用いてシークバー304のx軸方向にタッチムーブ操作が行われたかを判定する。x軸方向にタッチムーブ操作が行われた場合、CPU101は、S238でYESと判定し、フローをS234に戻し、S234からS237の処理を実行する。一方、x軸方向にタッチムーブ操作が行われていない場合、CPU101は、S238でNOと判定し、フローをS239に進める。S239で、CPU101は、操作部106の状態がタッチオンの状態(タッチ中)であるかを判定する。タッチ中である場合、CPU101は、S239でYESと判定し、フローをS238に戻す。一方、タッチ中でない場合、CPU101は、S239でNOと判定し、フローをS240に進める。この場合、操作部106の状態はタッチオフとなる。 In S238, the CPU 101 determines whether a touch-move operation has been performed in the x-axis direction of the seek bar 304 using the operation unit 106. If a touch-move operation has been performed in the x-axis direction, the CPU 101 determines YES in S238, returns the flow to S234, and executes the processes of S234 to S237. On the other hand, if a touch-move operation has not been performed in the x-axis direction, the CPU 101 determines NO in S238, and advances the flow to S239. In S239, the CPU 101 determines whether the state of the operation unit 106 is touch-on (touching). If it is touching, the CPU 101 determines YES in S239, and returns the flow to S238. On the other hand, if it is not touching, the CPU 101 determines NO in S239, and advances the flow to S240. In this case, the state of the operation unit 106 becomes touch-off.
S240で、CPU101は、メモリ102に記憶されている変数Sの値を読み出し、読み出した変数Sが一時停止中であることを示しているかを判定する。変数Sが一時停止中であることを示していない場合、CPU101は、S240でNOと判定し、フローをS241に進める。S241で、CPU101は、メモリ102に記憶されている変数Aの値を読み出し、変数Aに対応するフレーム位置(再生位置)から動画の再生を開始する制御を行う。CPU101は、S240でYESと判定した場合、またはS241の処理を実行した場合、フローを「F」に移す。また、CPU101は、図2のS204でNOと判定した場合、フローを「A」から、図4の「F」に移す。図3の「E」からのフローの移行先も「F」である。 At S240, CPU 101 reads the value of variable S stored in memory 102 and determines whether the read variable S indicates that playback is paused. If variable S does not indicate that playback is paused, CPU 101 determines NO at S240 and advances the flow to S241. At S241, CPU 101 reads the value of variable A stored in memory 102 and performs control to start playback of the video from the frame position (playback position) corresponding to variable A. If CPU 101 determines YES at S240 or executes the process of S241, it moves the flow to "F". Also, if CPU 101 determines NO at S204 in FIG. 2, it moves the flow from "A" to "F" in FIG. 4. The flow transition destination from "E" in FIG. 3 is also "F".
図4の「F」以降の処理について説明する。図5は、図4の「F」以降の処理の流れを示すフローチャートである。S242で、CPU101は、メモリ102に記憶されている変数Sの値を読み出し、変数Sの値が一時停止中を示しているかを判定する。変数Sの値が一時停止中であることを示している場合、CPU101は、S242でYESと判定し、フローをS243に進める。S243で、CPU101は、画の描画が完了していないかを判定する。S243の判定は、図3のS221またはS231で開始されたフレーム位置の画の描画が完了したかを判定する処理である。画の描画が完了していない場合、CPU101は、S243でNOと判定し、フローをS244に進める。S244で、CPU101は、シークバー304のx軸方向の始点と終点とに対する、タッチされているx座標の位置の比率で再生位置のフレームを算出し、変数Aの値としてメモリ102に記憶する。 The processing from "F" onward in FIG. 4 will be described. FIG. 5 is a flowchart showing the flow of the processing from "F" onward in FIG. 4. In S242, CPU 101 reads the value of variable S stored in memory 102, and determines whether the value of variable S indicates that the processing is paused. If the value of variable S indicates that the processing is paused, CPU 101 determines YES in S242, and advances the flow to S243. In S243, CPU 101 determines whether the drawing of the image has not been completed. The determination in S243 is a process for determining whether the drawing of the image at the frame position started in S221 or S231 in FIG. 3 has been completed. If the drawing of the image has not been completed, CPU 101 determines NO in S243, and advances the flow to S244. In S244, the CPU 101 calculates the frame of the playback position based on the ratio of the touched x-coordinate position to the start and end points of the x-axis direction of the seek bar 304, and stores this in the memory 102 as the value of variable A.
S245で、CPU101は、メモリ102に記憶されている変数Aの値と変数Bの値とを読み出し、変数Aの値と変数Bの値とが同じであるかを判定する。変数Aの値と変数Bの値とが同じでない場合、CPU101は、S245でNOと判定し、フローをS246に進める。S246で、CPU101は、描画が完了した画のタイムコードを時、分、秒およびフレームの第2の形式で画像301に重畳して表示する。S247で、CPU101は、変数Bの値を初期化してメモリ102に記憶する。CPU101は、S242でNOと判定した場合、S243でYESと判定した場合、S245でYESと判定した場合、またはS247の処理を実行した場合、フローをS248に進める。 At S245, CPU 101 reads the values of variables A and B stored in memory 102 and determines whether the values of variables A and B are the same. If the values of variables A and B are not the same, CPU 101 determines NO at S245 and advances the flow to S246. At S246, CPU 101 displays the time code of the image for which drawing has been completed in a second format of hours, minutes, seconds, and frames superimposed on image 301. At S247, CPU 101 initializes the value of variable B and stores it in memory 102. If CPU 101 determines NO at S242, YES at S243, YES at S245, or executes the process of S247, the flow advances to S248.
S248で、CPU101は、操作部106に対して再生ボタンを押下する操作がされたかを判定する。再生ボタンは、動画を再生するためのボタンであり、ディスプレイ105に表示される画面上のボタンであってもよいし、電子機器100に設けられるボタン部材であってもよい。再生ボタンを押下する操作がされた場合、CPU101は、S248でYESと判定し、フローをS249に進める。S249で、CPU101は、変数Sの値に基づいて、動画再生中であるかを判定する。動画再生中である場合、CPU101は、S249でYESと判定し、フローをS250に進める。S250で、CPU101は、再生中の動画を一時停止する制御を行う。このとき、CPU101は、変数Sの値を変更する。一方、動画再生中でない場合、CPU101は、S249でNOと判定し、フローをS251に進める。S251で、CPU101は、メモリ102の変数Aの値を読み出し、変数Aに対応するフレーム位置から動画の再生を開始する制御を行う。 In S248, the CPU 101 determines whether the operation of pressing the play button on the operation unit 106 has been performed. The play button is a button for playing a video, and may be a button on the screen displayed on the display 105, or may be a button member provided on the electronic device 100. If the operation of pressing the play button has been performed, the CPU 101 determines YES in S248 and advances the flow to S249. In S249, the CPU 101 determines whether a video is being played based on the value of the variable S. If a video is being played, the CPU 101 determines YES in S249 and advances the flow to S250. In S250, the CPU 101 performs control to pause the video being played. At this time, the CPU 101 changes the value of the variable S. On the other hand, if a video is not being played, the CPU 101 determines NO in S249 and advances the flow to S251. At S251, the CPU 101 reads the value of variable A from the memory 102 and performs control to start playing the video from the frame position corresponding to variable A.
CPU101は、S248でNOと判定した場合、S250の処理を実行した場合、またはS251の処理を実行した場合、フローをS252に進める。S252で、CPU101は、操作部106に対して所定の終了操作がされたかを判定する。所定の終了操作がされた場合、CPU101は、S252でYESと判定し、本実施形態の再生処理を終了させる。このとき、CPU101は、ディスプレイ105に表示していた再生画面を非表示にする制御を行ってもよい。一方、所定の終了操作がされていない場合、CPU101は、S252でNOと判定し、フローを「G」から図2のS204に移す。 If the CPU 101 judges NO in S248, executes the process of S250, or executes the process of S251, the flow proceeds to S252. In S252, the CPU 101 judges whether a predetermined ending operation has been performed on the operation unit 106. If the predetermined ending operation has been performed, the CPU 101 judges YES in S252 and ends the playback process of this embodiment. At this time, the CPU 101 may perform control to hide the playback screen that was displayed on the display 105. On the other hand, if the predetermined ending operation has not been performed, the CPU 101 judges NO in S252 and moves the flow from "G" to S204 in FIG. 2.
以上に説明したように、本実施形態の電子機器100は、シークバー操作により動画の再生位置が変更される操作が行われたときに、動画の画の描画が遅れたとしても、タッチ操作のタッチ位置に基づいて算出した時刻情報を表示する。その後、電子機器100は、シークバー操作により変更された再生位置の動画の画および当該画に対応するタイムコードを表示する。これにより、動画の画の描画がシークバー操作に間に合わないような場合でも、シークバー操作に対応する動画の画の時刻情報を表示することができるため、動画の再生位置が変更された際の操作性を向上させることができる。 As described above, the electronic device 100 of this embodiment displays time information calculated based on the touch position of the touch operation when an operation that changes the playback position of the video is performed by operating the seek bar, even if the drawing of the video image is delayed. The electronic device 100 then displays the video image at the playback position changed by the seek bar operation and the time code corresponding to that image. This makes it possible to display the time information of the video image corresponding to the seek bar operation even if the drawing of the video image does not arrive in time for the seek bar operation, thereby improving operability when the playback position of the video is changed.
以上、本発明の好ましい実施の形態について説明したが、本発明は上述した各実施の形態に限定されず、その要旨の範囲内で種々の変形及び変更が可能である。本発明は、上述の各実施の形態の1以上の機能を実現するプログラムを、ネットワークや記録媒体を介してシステムや装置に供給し、そのシステム又は装置のコンピュータの1つ以上のプロセッサがプログラムを読み出して実行する処理でも実現可能である。また、本発明は、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。 Although the preferred embodiments of the present invention have been described above, the present invention is not limited to the above-mentioned embodiments, and various modifications and variations are possible within the scope of the gist of the present invention. The present invention can also be realized by supplying a program that realizes one or more functions of the above-mentioned embodiments to a system or device via a network or recording medium, and having one or more processors of a computer in the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., an ASIC) that realizes one or more functions.
100 電子機器
101 CPU
104 画像処理部
105 ディスプレイ
106 操作部
106a タッチパネル
301 画像
304 シークバー
305 ポインタ
308 時刻
309 時刻
100 Electronic equipment 101 CPU
104 Image processing unit 105 Display 106 Operation unit 106a Touch panel 301 Image 304 Seek bar 305 Pointer 308 Time 309 Time
Claims (10)
動画と、当該動画の再生位置を示す表示アイテムと、前記再生位置に対応する時刻情報とを前記表示手段に表示する制御を行い、前記検出手段が検出したタッチ位置に応じて前記動画の再生位置を変更し、当該変更された再生位置に対応する動画のフレーム画像および当該フレーム画像の時刻情報を前記表示手段に表示する制御を行う制御手段と、を備え、
前記制御手段は、タッチ操作に応じて再生位置が変更された際、当該変更された再生位置に対応するフレーム画像および当該フレーム画像に対応する時刻情報の表示が遅れる場合、前記変更された再生位置に対応するフレーム画像の時刻情報ではなく、タッチ操作のタッチ位置に基づいて算出した時刻情報を表示した後に、前記変更された再生位置に対応するフレーム画像および当該フレーム画像の時刻情報を表示する制御を行うことを特徴とする電子機器。 A detection means for detecting a touch operation on a display means;
a control means for controlling the display means to display a video, a display item indicating a playback position of the video, and time information corresponding to the playback position, and for controlling the display means to change the playback position of the video in accordance with the touch position detected by the detection means, and for controlling the display means to display a frame image of the video corresponding to the changed playback position and the time information of the frame image,
The electronic device is characterized in that, when the playback position is changed in response to a touch operation, if the display of the frame image corresponding to the changed playback position and the time information corresponding to the frame image is delayed, the control means controls the display of the frame image corresponding to the changed playback position and the time information of the frame image, after displaying time information calculated based on the touch position of the touch operation, rather than the time information of the frame image corresponding to the changed playback position.
前記制御手段は、前記タッチ操作に応じた再生位置が変更された際、当該変更された再生位置に対応するフレーム画像および当該フレーム画像に対応する時刻情報の表示が遅れる場合、前記タッチ操作のタッチ位置と、前記シークバーの始点位置および終点位置と、前記動画の開始時刻および終了時刻とに基づいて、時刻情報を算出して表示する制御を行うことを特徴とする請求項1に記載の電子機器。 the control means displays a seek bar as a display item indicating the playback position;
The electronic device according to claim 1, characterized in that when the playback position is changed in response to the touch operation, if the display of the frame image corresponding to the changed playback position and the time information corresponding to the frame image is delayed, the control means performs control to calculate and display time information based on the touch position of the touch operation, the start and end positions of the seek bar, and the start and end times of the video.
動画と、当該動画の再生位置を示す表示アイテムと、前記再生位置に対応する時刻情報とを前記表示手段に表示する制御を行い、前記検出手段が検出したタッチ位置に応じて前記動画の再生位置を変更し、当該変更された再生位置に対応する動画のフレーム画像および当該フレーム画像の時刻情報を前記表示手段に表示する制御を行う工程、を備え、
タッチ操作に応じて再生位置が変更された際、当該変更された再生位置に対応するフレーム画像および当該フレーム画像に対応する時刻情報の表示が遅れる場合、前記変更された再生位置に対応するフレーム画像の時刻情報ではなく、タッチ操作のタッチ位置に基づいて算出した時刻情報を表示した後に、前記変更された再生位置に対応するフレーム画像および当該フレーム画像の時刻情報を表示する制御を行うことを特徴とする電子機器の制御方法。 A method for controlling an electronic device having a detection unit that detects a touch operation on a display unit, comprising:
a step of controlling the display means to display a video, a display item indicating a playback position of the video, and time information corresponding to the playback position, changing the playback position of the video in accordance with the touch position detected by the detection means, and controlling the display means to display a frame image of the video corresponding to the changed playback position and the time information of the frame image,
A control method for an electronic device, characterized in that when the playback position is changed in response to a touch operation, if the display of a frame image corresponding to the changed playback position and the time information corresponding to the frame image is delayed, the method controls the display of the frame image corresponding to the changed playback position and the time information of the frame image, after displaying time information calculated based on the touch position of the touch operation, rather than the time information of the frame image corresponding to the changed playback position.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2020141136A JP7580973B2 (en) | 2020-08-24 | 2020-08-24 | Electronic device, electronic device control method, and program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2020141136A JP7580973B2 (en) | 2020-08-24 | 2020-08-24 | Electronic device, electronic device control method, and program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2022036765A JP2022036765A (en) | 2022-03-08 |
| JP7580973B2 true JP7580973B2 (en) | 2024-11-12 |
Family
ID=80493680
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2020141136A Active JP7580973B2 (en) | 2020-08-24 | 2020-08-24 | Electronic device, electronic device control method, and program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP7580973B2 (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2012119945A (en) | 2010-12-01 | 2012-06-21 | Fujitsu Ltd | Image transmission method, image transmission device, and image transmission program |
| JP2016143233A (en) | 2015-02-02 | 2016-08-08 | 株式会社デンソー | Display control device |
| JP2017117435A (en) | 2015-12-22 | 2017-06-29 | キヤノン株式会社 | Information processing apparatus, control method thereof, and program |
| JP2018036841A (en) | 2016-08-31 | 2018-03-08 | ソニー株式会社 | Signal processing apparatus, signal processing method, program, and electronic apparatus |
| JP2020127149A (en) | 2019-02-05 | 2020-08-20 | キヤノン株式会社 | Information processing apparatus, control method thereof, and program |
| JP2020127148A (en) | 2019-02-05 | 2020-08-20 | キヤノン株式会社 | Information processing apparatus, control method thereof and program |
-
2020
- 2020-08-24 JP JP2020141136A patent/JP7580973B2/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2012119945A (en) | 2010-12-01 | 2012-06-21 | Fujitsu Ltd | Image transmission method, image transmission device, and image transmission program |
| JP2016143233A (en) | 2015-02-02 | 2016-08-08 | 株式会社デンソー | Display control device |
| JP2017117435A (en) | 2015-12-22 | 2017-06-29 | キヤノン株式会社 | Information processing apparatus, control method thereof, and program |
| JP2018036841A (en) | 2016-08-31 | 2018-03-08 | ソニー株式会社 | Signal processing apparatus, signal processing method, program, and electronic apparatus |
| JP2020127149A (en) | 2019-02-05 | 2020-08-20 | キヤノン株式会社 | Information processing apparatus, control method thereof, and program |
| JP2020127148A (en) | 2019-02-05 | 2020-08-20 | キヤノン株式会社 | Information processing apparatus, control method thereof and program |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2022036765A (en) | 2022-03-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8610678B2 (en) | Information processing apparatus and method for moving a displayed object between multiple displays | |
| JP5506375B2 (en) | Information processing apparatus and control method thereof | |
| US10534527B2 (en) | Relative pen scroll | |
| KR20140126327A (en) | Thumbnail-image selection of applications | |
| JP2015508211A (en) | Method and apparatus for controlling a screen by tracking a user's head through a camera module and computer-readable recording medium thereof | |
| CN103685930B (en) | Display control unit and its control method | |
| CN103294337A (en) | Electronic apparatus and control method | |
| US9841886B2 (en) | Display control apparatus and control method thereof | |
| US20090283341A1 (en) | Input device and control method thereof | |
| JP5220157B2 (en) | Information processing apparatus, control method therefor, program, and storage medium | |
| JP6758922B2 (en) | Electronic devices and their control methods | |
| JP6758921B2 (en) | Electronic devices and their control methods | |
| US10296130B2 (en) | Display control apparatus, display control method, and storage medium storing related program | |
| CN113961106B (en) | Predictive control method, input system, and computer readable recording medium | |
| TWI420381B (en) | Systems and methods for application management, and computer program products thereof | |
| US20170228149A1 (en) | Information processing apparatus and information processing method | |
| JP5911321B2 (en) | Display control device and control method of display control device | |
| JP6907368B2 (en) | Electronic devices and their control methods | |
| JP7580973B2 (en) | Electronic device, electronic device control method, and program | |
| US20120151409A1 (en) | Electronic Apparatus and Display Control Method | |
| US10983686B2 (en) | Display control apparatus equipped with touch panel, control method therefor, and storage medium storing control program therefor | |
| US20140184566A1 (en) | Electronic apparatus, method of controlling the same, and computer-readable recording medium | |
| JP6971573B2 (en) | Electronic devices, their control methods and programs | |
| JP2021099643A (en) | Electronic device and method for controlling the same | |
| US20230254555A1 (en) | Electronic apparatus, control method therefor, and computer-readable storage medium storing program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20230807 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20241001 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20241030 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7580973 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |