#include "media/capture/video/blob_utils.h"
#include "media/base/video_frame.h"
#include "media/capture/video_capture_types.h"
#include "third_party/libyuv/include/libyuv.h"
#include "third_party/skia/include/core/SkImage.h"
#include "ui/gfx/codec/jpeg_codec.h"
#include "ui/gfx/codec/png_codec.h"
#include <vector>
namespace media {
namespace {
static const int kJpegQualityDefault = …;
libyuv::RotationModeEnum TranslateIntegerRotationToLibyuvRotation(
const int rotation) { … }
mojom::BlobPtr ProduceJpegBlobFromMjpegFrame(const uint8_t* buffer,
const uint32_t bytesused,
const gfx::Size size,
const int rotation) { … }
}
mojom::BlobPtr RotateAndBlobify(const uint8_t* buffer,
const uint32_t bytesused,
const VideoCaptureFormat& capture_format,
const int rotation) { … }
}