Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: talk/media/webrtc/webrtcvideoengine2.h

Issue 1306813009: H.264 video codec support using OpenH264/FFmpeg (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: (Alphabetical sorting in common_video.gyp deps) Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | talk/media/webrtc/webrtcvideoengine2.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2014 Google Inc. 3 * Copyright 2014 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 // the first frame to know that you gave a bad codec parameter could make 311 // the first frame to know that you gave a bad codec parameter could make
312 // debugging hard). 312 // debugging hard).
313 // TODO(pbos): Consider setting up encoders lazily. 313 // TODO(pbos): Consider setting up encoders lazily.
314 Dimensions() : width(176), height(144), is_screencast(false) {} 314 Dimensions() : width(176), height(144), is_screencast(false) {}
315 int width; 315 int width;
316 int height; 316 int height;
317 bool is_screencast; 317 bool is_screencast;
318 }; 318 };
319 319
320 union VideoEncoderSettings { 320 union VideoEncoderSettings {
321 webrtc::VideoCodecH264 h264;
321 webrtc::VideoCodecVP8 vp8; 322 webrtc::VideoCodecVP8 vp8;
322 webrtc::VideoCodecVP9 vp9; 323 webrtc::VideoCodecVP9 vp9;
323 }; 324 };
324 325
325 static std::vector<webrtc::VideoStream> CreateVideoStreams( 326 static std::vector<webrtc::VideoStream> CreateVideoStreams(
326 const VideoCodec& codec, 327 const VideoCodec& codec,
327 const VideoOptions& options, 328 const VideoOptions& options,
328 int max_bitrate_bps, 329 int max_bitrate_bps,
329 size_t num_streams); 330 size_t num_streams);
330 static std::vector<webrtc::VideoStream> CreateSimulcastVideoStreams( 331 static std::vector<webrtc::VideoStream> CreateSimulcastVideoStreams(
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 VideoOptions options_; 527 VideoOptions options_;
527 // TODO(deadbeef): Don't duplicate information between 528 // TODO(deadbeef): Don't duplicate information between
528 // send_params/recv_params, rtp_extensions, options, etc. 529 // send_params/recv_params, rtp_extensions, options, etc.
529 VideoSendParameters send_params_; 530 VideoSendParameters send_params_;
530 VideoRecvParameters recv_params_; 531 VideoRecvParameters recv_params_;
531 }; 532 };
532 533
533 } // namespace cricket 534 } // namespace cricket
534 535
535 #endif // TALK_MEDIA_WEBRTC_WEBRTCVIDEOENGINE2_H_ 536 #endif // TALK_MEDIA_WEBRTC_WEBRTCVIDEOENGINE2_H_
OLDNEW
« no previous file with comments | « no previous file | talk/media/webrtc/webrtcvideoengine2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698