OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_TOOLS_PLAYER_WTL_VIEW_H_ | 5 #ifndef MEDIA_TOOLS_PLAYER_WTL_VIEW_H_ |
6 #define MEDIA_TOOLS_PLAYER_WTL_VIEW_H_ | 6 #define MEDIA_TOOLS_PLAYER_WTL_VIEW_H_ |
7 | 7 |
8 #include <stdio.h> | 8 #include <stdio.h> |
9 #include <process.h> | 9 #include <process.h> |
10 #include <string.h> | 10 #include <string.h> |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 | 175 |
176 case 5: // Quadruple. | 176 case 5: // Quadruple. |
177 scaled_width = clipped_width; | 177 scaled_width = clipped_width; |
178 scaled_height = clipped_height; | 178 scaled_height = clipped_height; |
179 clipped_width = scaled_width / 4; | 179 clipped_width = scaled_width / 4; |
180 clipped_height = scaled_height / 4; | 180 clipped_height = scaled_height / 4; |
181 break; | 181 break; |
182 } | 182 } |
183 | 183 |
184 // Append each frame to end of file. | 184 // Append each frame to end of file. |
185 bool enable_dump_yuv_file = media::Movie::get()->GetDumpYuvFileEnable(); | 185 bool enable_dump_yuv_file = |
| 186 media::Movie::GetInstance()->GetDumpYuvFileEnable(); |
186 if (enable_dump_yuv_file) { | 187 if (enable_dump_yuv_file) { |
187 DumpYUV(video_frame); | 188 DumpYUV(video_frame); |
188 } | 189 } |
189 | 190 |
190 #ifdef TESTING | 191 #ifdef TESTING |
191 double yuv_time_start = GetTime(); // Start timer. | 192 double yuv_time_start = GetTime(); // Start timer. |
192 #endif | 193 #endif |
193 | 194 |
194 bool enable_draw = media::Movie::get()->GetDrawEnable(); | 195 bool enable_draw = media::Movie::GetInstance()->GetDrawEnable(); |
195 if (enable_draw) { | 196 if (enable_draw) { |
196 DCHECK(bm.bmBitsPixel == 32); | 197 DCHECK(bm.bmBitsPixel == 32); |
197 DrawYUV(video_frame, | 198 DrawYUV(video_frame, |
198 movie_dib_bits, | 199 movie_dib_bits, |
199 dibrowbytes, | 200 dibrowbytes, |
200 clipped_width, | 201 clipped_width, |
201 clipped_height, | 202 clipped_height, |
202 scaled_width, | 203 scaled_width, |
203 scaled_height); | 204 scaled_height); |
204 } | 205 } |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 } | 444 } |
444 } | 445 } |
445 | 446 |
446 media::VideoFrame* last_frame_; | 447 media::VideoFrame* last_frame_; |
447 base::TimeDelta last_timestamp_; | 448 base::TimeDelta last_timestamp_; |
448 | 449 |
449 DISALLOW_COPY_AND_ASSIGN(WtlVideoWindow); | 450 DISALLOW_COPY_AND_ASSIGN(WtlVideoWindow); |
450 }; | 451 }; |
451 | 452 |
452 #endif // MEDIA_TOOLS_PLAYER_WTL_VIEW_H_ | 453 #endif // MEDIA_TOOLS_PLAYER_WTL_VIEW_H_ |
OLD | NEW |