summaryrefslogtreecommitdiffstats
path: root/content/renderer/video_decode_accelerator_host.cc
blob: 013277a44d9d08c990312e8c241add199cef8fa4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "content/renderer/video_decode_accelerator_host.h"

#include "base/logging.h"
#include "base/task.h"

using media::VideoDecodeAccelerator;
using media::VideoDecodeAcceleratorCallback;

VideoDecodeAcceleratorHost::VideoDecodeAcceleratorHost(
    MessageRouter* router,
    IPC::Message::Sender* ipc_sender,
    int32 decoder_host_id)
    : message_loop_(NULL),
      router_(router),
      ipc_sender_(ipc_sender),
      context_route_id_(0),
      decoder_host_id_(decoder_host_id),
      decoder_id_(0) {
}

VideoDecodeAcceleratorHost::~VideoDecodeAcceleratorHost() {}

void VideoDecodeAcceleratorHost::OnChannelConnected(int32 peer_pid) {}

void VideoDecodeAcceleratorHost::OnChannelError() {
  ipc_sender_ = NULL;
}

bool VideoDecodeAcceleratorHost::OnMessageReceived(const IPC::Message& msg) {
  bool handled = true;
  DCHECK(handled);
  return handled;
}

const std::vector<uint32>& VideoDecodeAcceleratorHost::GetConfig(
    const std::vector<uint32>& prototype_config) {
  // TODO(vmr): implement.
  NOTIMPLEMENTED();
  return configs_;
}

bool VideoDecodeAcceleratorHost::Initialize(
    const std::vector<uint32>& config) {
  // TODO(vmr): implement.
  NOTIMPLEMENTED();
  return false;
}

bool VideoDecodeAcceleratorHost::Decode(
    media::BitstreamBuffer* bitstream_buffer,
    VideoDecodeAcceleratorCallback* callback) {
  // TODO(vmr): implement.
  NOTIMPLEMENTED();
  return false;
}

void VideoDecodeAcceleratorHost::AssignPictureBuffer(
    std::vector<PictureBuffer*> picture_buffers) {
  // TODO(vmr): implement.
  NOTIMPLEMENTED();
}

void VideoDecodeAcceleratorHost::ReusePictureBuffer(
    PictureBuffer* picture_buffer) {
  // TODO(vmr): implement.
  NOTIMPLEMENTED();
}

bool VideoDecodeAcceleratorHost::Flush(
    VideoDecodeAcceleratorCallback* callback) {
  // TODO(vmr): implement.
  NOTIMPLEMENTED();
  return false;
}

bool VideoDecodeAcceleratorHost::Abort(
    VideoDecodeAcceleratorCallback* callback) {
  // TODO(vmr): implement.
  NOTIMPLEMENTED();
  return false;
}

DISABLE_RUNNABLE_METHOD_REFCOUNT(VideoDecodeAcceleratorHost);