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

Side by Side Diff: media/gpu/v4l2_device.cc

Issue 2559423002: media/gpu: switch v4l2_jpeg_decode_accelerator to use multi-planar APIs (Closed)
Patch Set: let's see if I get the number of patches to upload right this time... Created 4 years 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include <libdrm/drm_fourcc.h> 5 #include <libdrm/drm_fourcc.h>
6 #include <linux/videodev2.h> 6 #include <linux/videodev2.h>
7 #include <string.h> 7 #include <string.h>
8 8
9 #include "base/numerics/safe_conversions.h" 9 #include "base/numerics/safe_conversions.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 case V4L2_PIX_FMT_MT21: 49 case V4L2_PIX_FMT_MT21:
50 return PIXEL_FORMAT_MT21; 50 return PIXEL_FORMAT_MT21;
51 51
52 case V4L2_PIX_FMT_YUV420: 52 case V4L2_PIX_FMT_YUV420:
53 case V4L2_PIX_FMT_YUV420M: 53 case V4L2_PIX_FMT_YUV420M:
54 return PIXEL_FORMAT_I420; 54 return PIXEL_FORMAT_I420;
55 55
56 case V4L2_PIX_FMT_YVU420: 56 case V4L2_PIX_FMT_YVU420:
57 return PIXEL_FORMAT_YV12; 57 return PIXEL_FORMAT_YV12;
58 58
59 case V4L2_PIX_FMT_YUV422M:
60 return PIXEL_FORMAT_I422;
61
59 case V4L2_PIX_FMT_RGB32: 62 case V4L2_PIX_FMT_RGB32:
60 return PIXEL_FORMAT_ARGB; 63 return PIXEL_FORMAT_ARGB;
61 64
62 default: 65 default:
63 DVLOG(1) << "Add more cases as needed"; 66 DVLOG(1) << "Add more cases as needed";
64 return PIXEL_FORMAT_UNKNOWN; 67 return PIXEL_FORMAT_UNKNOWN;
65 } 68 }
66 } 69 }
67 70
68 // static 71 // static
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 385
383 DVLOG(1) << "Found encoder profile " << GetProfileName(profile.profile) 386 DVLOG(1) << "Found encoder profile " << GetProfileName(profile.profile)
384 << ", max resolution: " << profile.max_resolution.ToString(); 387 << ", max resolution: " << profile.max_resolution.ToString();
385 } 388 }
386 } 389 }
387 390
388 return profiles; 391 return profiles;
389 } 392 }
390 393
391 } // namespace media 394 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698